Subject: pkg/26522: ProFTPd doesn't handle PAM support
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <pancake@phreaker.net>
List: pkgsrc-bugs
Date: 08/02/2004 22:58:48
>Number: 26522
>Category: pkg
>Synopsis: PAM support for ProFTPd
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 02 22:00:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 2.0G
>Organization:
>Environment:
System: NetBSD pl2 2.0G NetBSD 2.0G (pancake-laptop) #10: Wed Jul 21 20:57:24 CEST 2004 pancake@panser:/usr/src/sys/arch/i386/compile/PANCAKE_LAPTOP i386
Architecture: i386
Machine: i386
>Description:
adds PAM support to proftpd
>How-To-Repeat:
patch -p0 <...
>Fix:
apply this to net/proftpd
--- Makefile.orig 2004-08-02 11:11:17.000000000 -0400
+++ Makefile 2004-08-02 11:55:05.000000000 -0400
@@ -1,6 +1,5 @@
# $NetBSD: Makefile,v 1.12 2004/01/24 14:50:06 grant Exp $
-PKGNAME= proftpd-1.2.9
DISTNAME= proftpd-1.2.9
CATEGORIES= net
MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/
@@ -12,6 +11,7 @@
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
+USE_BUILDLINK3= YES
GNU_CONFIGURE= # defined
USE_GNU_TOOLS+= make
USE_PKGINSTALL= YES
@@ -20,10 +20,17 @@
CONFIGURE_ARGS+=--localstatedir=/var/run
CONFIGURE_ARGS+=--disable-sendfile
+.include "../../mk/bsd.prefs.mk"
+BUILD_DEFS+= PROFTPD_USE_PAM
+PROFTPD_USE_PAM?=NO
+
RCD_SCRIPTS= proftpd
CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \
${PKG_SYSCONFDIR}/proftpd.conf
+.if defined(PROFTPD_USE_PAM) && ${PROFTPD_USE_PAM} == "YES"
+CONFIGURE_ARGS+=--enable-auth-pam
+.endif
## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
## MODULES:= ${MODULES}:mod_ldap
@@ -70,4 +77,8 @@
${INSTALL_DATA} ${WRKSRC}/sample-configurations/*.conf \
${PREFIX}/share/examples/proftpd
+.if ${PROFTPD_USE_PAM} == YES
+.include "../../security/PAM/buildlink3.mk"
+.endif
+
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: