summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftp/wu-ftpd+ipv6/Makefile11
-rw-r--r--ftp/wu-ftpd+ipv6/files/ftpd.c-pam10
2 files changed, 19 insertions, 2 deletions
diff --git a/ftp/wu-ftpd+ipv6/Makefile b/ftp/wu-ftpd+ipv6/Makefile
index f9865ea1dc28..56287f652554 100644
--- a/ftp/wu-ftpd+ipv6/Makefile
+++ b/ftp/wu-ftpd+ipv6/Makefile
@@ -9,7 +9,7 @@
PORTNAME= wu-ftpd+ipv6
PORTVERSION= 2.6.2
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/
DISTNAME= wu-ftpd-${PORTVERSION}
@@ -24,11 +24,18 @@ COMMENT= A replacement ftp server for Un*x systems
CONFLICTS= wu-ftpd-[0-9]* heimdal-[0-9]*
USE_AUTOTOOLS= autoconf:213
-CONFIGURE_ARGS= --enable-rfc931 --disable-pasvip --enable-opie \
+CONFIGURE_ARGS= --enable-rfc931 --disable-pasvip \
--enable-noop --disable-numericuid --enable-nlst-dirs \
--enable-ipv6 \
--prefix=${PREFIX} --with-etc-dir=${PREFIX}/etc
+.if !defined(WITH_PAM)
+CONFIGURE_ARGS+= --enable-opie
+.else
+CONFIGURE_ARGS+= --enable-pam
+EXTRA_PATCHES+= ${FILESDIR}/ftpd.c-pam
+.endif
+
MAKE_ENV+= WARNINGS=-DSPT_TYPE=SPT_BUILTIN
MAN1= ftpcount.1 ftpwho.1
diff --git a/ftp/wu-ftpd+ipv6/files/ftpd.c-pam b/ftp/wu-ftpd+ipv6/files/ftpd.c-pam
new file mode 100644
index 000000000000..70623d3b8134
--- /dev/null
+++ b/ftp/wu-ftpd+ipv6/files/ftpd.c-pam
@@ -0,0 +1,10 @@
+--- src/ftpd.c.orig Fri Nov 30 01:56:11 2001
++++ src/ftpd.c Wed May 24 16:21:21 2006
+@@ -7633,6 +7633,7 @@
+ */
+
+ #include <security/pam_appl.h>
++#define PAM_ESTABLISH_CRED 0x1
+ /* Static variables used to communicate between the conversation function
+ * and the server_login function
+ */