mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Enable optional PAM support using WITH_PAM knob
PR: 97774 Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
This commit is contained in:
parent
8855367349
commit
5c7496801d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=163563
@ -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
|
||||
|
10
ftp/wu-ftpd/files/ftpd.c-pam
Normal file
10
ftp/wu-ftpd/files/ftpd.c-pam
Normal file
@ -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
|
||||
*/
|
Loading…
Reference in New Issue
Block a user