pure-ftpd: Add virtual users, default to $HOME

This commit is contained in:
Fredrik Fornwall 2017-02-24 23:31:28 +01:00
parent d2ac026186
commit 323ae2af7d
2 changed files with 15 additions and 1 deletions

View File

@ -3,4 +3,6 @@ TERMUX_PKG_DESCRIPTION="Pure-FTPd is a free (BSD), secure, production-quality an
TERMUX_PKG_VERSION=1.0.45
TERMUX_PKG_SRCURL=https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=f6f26ab932e7fd2557435ee48f4fe089b2360a352b8ac7b2360cc9aaad63e92a
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-nonroot --with-minimal --with-ftpwho"
TERMUX_PKG_DEPENDS="libcrypt"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-nonroot --with-minimal --with-ftpwho --with-puredb"
TERMUX_PKG_CONFFILES="etc/pure-ftpd.conf"

View File

@ -0,0 +1,12 @@
diff -u -r ../pure-ftpd-1.0.45/src/ftpd_p.h ./src/ftpd_p.h
--- ../pure-ftpd-1.0.45/src/ftpd_p.h 2017-01-09 20:51:00.000000000 +0100
+++ ./src/ftpd_p.h 2017-02-24 23:16:25.721476594 +0100
@@ -350,7 +350,7 @@
# define getpwnam(A) fakegetpwnam(A)
# define getpwuid(A) fakegetpwnam(NULL)
#endif
-#define NON_ROOT_ANON_DIR "/ftp"
+#define NON_ROOT_ANON_DIR "@TERMUX_HOME@"
#ifdef PROBE_RANDOM_AT_RUNTIME
static const char *random_device;