Browse Source

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

android-5
Fredrik Fornwall 8 years ago
parent
commit
323ae2af7d
  1. 4
      packages/pure-ftpd/build.sh
  2. 12
      packages/pure-ftpd/src-ftpd_p.h.patch

4
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"

12
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;
Loading…
Cancel
Save