From 5c7496801d6849f3193dae168d459e5140e8c635 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 27 May 2006 00:27:22 +0000 Subject: Enable optional PAM support using WITH_PAM knob PR: 97774 Submitted by: Tsurutani Naoki --- ftp/wu-ftpd/Makefile | 9 ++++++++- ftp/wu-ftpd/files/ftpd.c-pam | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ftp/wu-ftpd/files/ftpd.c-pam (limited to 'ftp/wu-ftpd') 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 ++#define PAM_ESTABLISH_CRED 0x1 + /* Static variables used to communicate between the conversation function + * and the server_login function + */ -- cgit v1.2.3