vsftpd: install sample config file to /etc
authorStephan Hoffmann <sho@relinux.de>
Tue, 15 Jan 2013 23:24:08 +0000 (23:24 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 20 Jan 2013 21:17:07 +0000 (22:17 +0100)
vsftpd comes with a sample config file that can serve as a starting
point for customization and enables a basic functionality.

[Peter: drop /usr/share/empty creation]
Signed-off-by: Stephan Hoffmann <sho@relinux.de>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/vsftpd/vsftpd.mk

index 8d261c8626a5f0c52903c5b888e007bdc92fc2fa..a075e82629cca558b8105e9ed1617981139f0802 100644 (file)
@@ -44,6 +44,9 @@ define VSFTPD_INSTALL_TARGET_CMDS
        test -f $(TARGET_DIR)/etc/init.d/S70vsftpd || \
                $(INSTALL) -D -m 755 package/vsftpd/vsftpd-init \
                        $(TARGET_DIR)/etc/init.d/S70vsftpd
+       test -f $(TARGET_DIR)/etc/vsftpd.conf || \
+               $(INSTALL) -D -m 644 $(@D)/vsftpd.conf \
+                       $(TARGET_DIR)/etc/vsftpd.conf
 endef
 
 define VSFTPD_UNINSTALL_TARGET_CMDS