diff options
author | ache <ache@FreeBSD.org> | 2006-05-27 08:27:22 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2006-05-27 08:27:22 +0800 |
commit | 81cee9fa574db4c5f0acc81d85cbc4bb92cd8668 (patch) | |
tree | 7990e86abc332cb7fbadfc83315d418cbc4edb65 /ftp/wu-ftpd | |
parent | fe58009ced4bda3b834eda97dfd2525c9be533ed (diff) | |
download | freebsd-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/Makefile | 9 | ||||
-rw-r--r-- | ftp/wu-ftpd/files/ftpd.c-pam | 10 |
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 + */ |