aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/wu-ftpd
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2006-05-27 08:27:22 +0800
committerache <ache@FreeBSD.org>2006-05-27 08:27:22 +0800
commit81cee9fa574db4c5f0acc81d85cbc4bb92cd8668 (patch)
tree7990e86abc332cb7fbadfc83315d418cbc4edb65 /ftp/wu-ftpd
parentfe58009ced4bda3b834eda97dfd2525c9be533ed (diff)
downloadfreebsd-ports-gnome-81cee9fa574db4c5f0acc81d85cbc4bb92cd8668.tar.gz
freebsd-ports-gnome-81cee9fa574db4c5f0acc81d85cbc4bb92cd8668.tar.zst
freebsd-ports-gnome-81cee9fa574db4c5f0acc81d85cbc4bb92cd8668.zip
Enable optional PAM support using WITH_PAM knob
PR: 97774 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Diffstat (limited to 'ftp/wu-ftpd')
-rw-r--r--ftp/wu-ftpd/Makefile9
-rw-r--r--ftp/wu-ftpd/files/ftpd.c-pam10
2 files changed, 18 insertions, 1 deletions
diff --git a/ftp/wu-ftpd/Makefile b/ftp/wu-ftpd/Makefile
index dd15cc3bca5e..3342e8c31f8f 100644
--- a/ftp/wu-ftpd/Makefile
+++ b/ftp/wu-ftpd/Makefile
@@ -21,10 +21,17 @@ COMMENT= A replacement ftp server for Un*x systems
CONFLICTS= wu-ftpd+ipv6-[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 \
--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/files/ftpd.c-pam b/ftp/wu-ftpd/files/ftpd.c-pam
new file mode 100644
index 000000000000..8049306979ce
--- /dev/null
+++ b/ftp/wu-ftpd/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
+@@ -6926,6 +6926,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
+ */