summaryrefslogtreecommitdiff
path: root/net/proftpd
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2004-08-30 18:13:18 +0000
committermartti <martti@pkgsrc.org>2004-08-30 18:13:18 +0000
commit6468e0403f631608b8bf79c5a68090aa799744d0 (patch)
treeaa2c99b32aae5a2749338f5fd9d88f382b581dc5 /net/proftpd
parent6ca44cf454f835ab9c506fb93f3f5f2b5913cf1f (diff)
downloadpkgsrc-6468e0403f631608b8bf79c5a68090aa799744d0.tar.gz
Add PAM support (pkg/26522)
Diffstat (limited to 'net/proftpd')
-rw-r--r--net/proftpd/Makefile41
1 files changed, 28 insertions, 13 deletions
diff --git a/net/proftpd/Makefile b/net/proftpd/Makefile
index a0f39f03eb2..672fd3633cf 100644
--- a/net/proftpd/Makefile
+++ b/net/proftpd/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2004/01/24 14:50:06 grant Exp $
+# $NetBSD: Makefile,v 1.13 2004/08/30 18:13:18 martti Exp $
PKGNAME= proftpd-1.2.9
DISTNAME= proftpd-1.2.9
@@ -25,6 +25,29 @@ RCD_SCRIPTS= proftpd
CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \
${PKG_SYSCONFDIR}/proftpd.conf
+PKG_SUPPORTED_OPTIONS = pam wrap quota
+PKG_OPTIONS_VAR = PROFTPD_OPTIONS
+
+# This (or something like this must be in mk/bsd.options.mk) to allow
+# to see the supported options
+##BUILD_DEFS+=PKG_SUPPORTED_OPTIONS
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpam)
+CONFIGURE_ARGS+=--enable-auth-pam
+.include "../../security/PAM/buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Mwrap)
+MODULES:=${MODULES}mod_wrap
+.endif
+
+MODULES=#defined
+.if !empty(PKG_OPTIONS:Mquota)
+MODULES:=${MODULES}mod_quota
+.endif
+
## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
## MODULES:= ${MODULES}:mod_ldap
## DEPENDS+= openldap-[0-9]*:../../databases/openldap
@@ -40,21 +63,13 @@ CONF_FILES= ${PREFIX}/share/examples/proftpd/basic.conf \
## DEPENDS+= postgresql-client-[0-9]*:../../databases/postgresql-client
## .endif
##
-## .if defined(PROFTPD_USE_QUOTA) && ${PROFTPD_USE_QUOTA} == "YES"
-## MODULES:= ${MODULES}:mod_quota
-## .endif
-##
## .if defined(PROFTPD_USE_README) && ${PROFTPD_USE_README} == "YES"
## MODULES:= ${MODULES}:mod_readme
## .endif
-##
-## .if defined(PROFTPD_USE_WRAP) && ${PROFTPD_USE_WRAP} == "YES"
-## MODULES:= ${MODULES}:mod_wrap
-## .endif
-##
-## .if !empty(MODULES)
-## CONFIGURE_ARGS+=--with-modules=${MODULES}
-## .endif
+
+.if !empty(MODULES)
+CONFIGURE_ARGS+=--with-modules=${MODULES}
+.endif
post-install:
# documentation