[Buildroot] [git commit] proftpd: Add ftp user creation

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Oct 10 17:27:38 UTC 2015


commit: http://git.buildroot.net/buildroot/commit/?id=dd73abb9691e122fd5dafecbb6bf421c1a23df33
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

In order to remove '/home/ftp' and the ftp user from the 'skeleton'
package, we need to add the creation of the ftp users to the package so
it still work out of the box (with an anonymous user).

Signed-off-by Maxime Hadjinlian <maxime.hadjinlian at gmail.com>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera at imgtec.com>

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
---
 package/proftpd/proftpd.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index dec243d..d040b8c 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -51,6 +51,10 @@ define PROFTPD_INSTALL_TARGET_CMDS
 	$(INSTALL) -m 0644 -D $(@D)/sample-configurations/basic.conf $(TARGET_DIR)/etc/proftpd.conf
 endef
 
+define PROFTPD_USERS
+	ftp -1 ftp -1 * /home/ftp - - Anonymous FTP User
+endef
+
 define PROFTPD_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 0755 package/proftpd/S50proftpd $(TARGET_DIR)/etc/init.d/S50proftpd
 endef


More information about the buildroot mailing list