pure-ftpd: add package (#790)
authorDavid Martínez <vaites@users.noreply.github.com>
Fri, 24 Feb 2017 21:56:48 +0000 (22:56 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Fri, 24 Feb 2017 21:56:48 +0000 (22:56 +0100)
packages/pure-ftpd/build.sh [new file with mode: 0644]
packages/pure-ftpd/pure-pwconvert.c.patch [new file with mode: 0644]

diff --git a/packages/pure-ftpd/build.sh b/packages/pure-ftpd/build.sh
new file mode 100644 (file)
index 0000000..d206c54
--- /dev/null
@@ -0,0 +1,6 @@
+TERMUX_PKG_HOMEPAGE=https://www.pureftpd.org/project/pure-ftpd
+TERMUX_PKG_DESCRIPTION="Pure-FTPd is a free (BSD), secure, production-quality and standard-conformant FTP server"
+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"
diff --git a/packages/pure-ftpd/pure-pwconvert.c.patch b/packages/pure-ftpd/pure-pwconvert.c.patch
new file mode 100644 (file)
index 0000000..60afc90
--- /dev/null
@@ -0,0 +1,18 @@
+--- ../../build/pure-ftpd/cache/pure-ftpd-1.0.45/src/pure-pwconvert.c  2017-01-09 20:51:01.000000000 +0100
++++ ./src/pure-pwconvert.c     2017-02-23 20:57:25.626342233 +0100
+@@ -27,6 +27,7 @@
+ # endif
+ #endif
++#ifndef __ANDROID__
+     setpwent();
+     while ((pwd = getpwent()) != NULL) {
+         if (pwd->pw_name == NULL) {
+@@ -76,6 +77,7 @@
+                pwd->pw_gecos, pwd->pw_dir);
+     }
+     endpwent();
++#endif
+     return 0;
+ }