From d2ac026186b60592199c9cde58f4cc2fcefb34ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Mart=C3=ADnez?= Date: Fri, 24 Feb 2017 22:56:48 +0100 Subject: [PATCH] pure-ftpd: add package (#790) --- packages/pure-ftpd/build.sh | 6 ++++++ packages/pure-ftpd/pure-pwconvert.c.patch | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 packages/pure-ftpd/build.sh create mode 100644 packages/pure-ftpd/pure-pwconvert.c.patch diff --git a/packages/pure-ftpd/build.sh b/packages/pure-ftpd/build.sh new file mode 100644 index 000000000..d206c54a8 --- /dev/null +++ b/packages/pure-ftpd/build.sh @@ -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 index 000000000..60afc9061 --- /dev/null +++ b/packages/pure-ftpd/pure-pwconvert.c.patch @@ -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; + }