diff --git a/packages/pure-ftpd/build.sh b/packages/pure-ftpd/build.sh index d206c54a8..0bd925257 100644 --- a/packages/pure-ftpd/build.sh +++ b/packages/pure-ftpd/build.sh @@ -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" diff --git a/packages/pure-ftpd/src-ftpd_p.h.patch b/packages/pure-ftpd/src-ftpd_p.h.patch new file mode 100644 index 000000000..d743c28f7 --- /dev/null +++ b/packages/pure-ftpd/src-ftpd_p.h.patch @@ -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;