aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/proftpd
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2009-10-12 21:20:01 +0800
committerwxs <wxs@FreeBSD.org>2009-10-12 21:20:01 +0800
commit50e3f7a69bcea56b9ecd1086ae17bc71031a263c (patch)
treee277633f0903c772177fd53dd5cf0aba9b01f483 /ftp/proftpd
parent45ee131efaa8d1c5e030f8e52c9fcaa51157d275 (diff)
downloadfreebsd-ports-graphics-50e3f7a69bcea56b9ecd1086ae17bc71031a263c.tar.gz
freebsd-ports-graphics-50e3f7a69bcea56b9ecd1086ae17bc71031a263c.tar.zst
freebsd-ports-graphics-50e3f7a69bcea56b9ecd1086ae17bc71031a263c.zip
- Use PLIST_SUB instead of PLIST_FILES in some cases.
- Whitespace fix to pet portlint. PR: ports/138977 Submitted by: Chris Petrik <c.petrik.sosa@gmail.com> (maintainer)
Diffstat (limited to 'ftp/proftpd')
-rw-r--r--ftp/proftpd/Makefile24
-rw-r--r--ftp/proftpd/pkg-plist5
2 files changed, 22 insertions, 7 deletions
diff --git a/ftp/proftpd/Makefile b/ftp/proftpd/Makefile
index b3dcef11d2b..4208e7085a7 100644
--- a/ftp/proftpd/Makefile
+++ b/ftp/proftpd/Makefile
@@ -20,8 +20,8 @@ MASTER_SITES= ftp://ftp.proftpd.org/distrib/source/ \
http://www.smartftp.com/oss/proftpd/:digest \
LOCAL/beech:digest \
LOCAL/beech:sql_tds
-DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER?= chris@officialunix.com
COMMENT?= Highly configurable ftp daemon
@@ -107,7 +107,9 @@ MODULES:=${MODULES}:mod_rewrite
MODULES:=${MODULES}:mod_wrap2
INCLUDEDIRS:=${INCLUDEDIRS}:${WORKDIR}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
-PLIST_FILES+= include/proftpd/mod_wrap2.h
+PLIST_SUB+= WRAP=""
+.else
+PLIST_SUB+= WRAP="@comment "
.endif
.if defined(WITH_WRAP_FILE)
@@ -190,7 +192,9 @@ LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
.if ${MODULES:M*mod_sql_*}
MODULES:=mod_sql${MODULES}
-PLIST_FILES+= include/proftpd/mod_sql.h
+PLIST_SUB+= SQL=""
+.else
+PLIST_SUB+= SQL="@comment "
.endif
.if defined(WITH_OPENSSL)
@@ -202,15 +206,19 @@ MODULES:=${MODULES}:mod_tls
.if defined(WITH_CTRLS)
CONFIGURE_ARGS+= --enable-ctrls
-PLIST_FILES+= sbin/ftpdctl
.if !defined(WITHOUT_CTRLS_ADMIN)
MODULES:=${MODULES}:mod_ctrls_admin
.endif
+PLIST_SUB+= CTRLS_ADMIN=""
+.else
+PLIST_SUB+= CTRLS_ADMIN="@comment "
.endif
.if defined(WITH_QUOTA)
MODULES:=${MODULES}:mod_quotatab:mod_quotatab_file
-PLIST_FILES+= include/proftpd/mod_quotatab.h
+PLIST_SUB+= QUOTA=""
+.else
+PLIST_SUB+= QUOTA="@comment "
.if defined(WITH_LDAP)
MODULES:=${MODULES}:mod_quotatab_ldap
.endif
@@ -243,7 +251,9 @@ DISTFILES+= mod_sql_tds-4.11.tar.bz2:sql_tds
EXTRACT_ONLY+= mod_sql_tds-4.11.tar.bz2
MODULES:=${MODULES}:mod_sql_tds
MODULES:=mod_sql${MODULES}
-PLIST_FILES+= include/proftpd/mod_sql.h
+PLIST_SUB+= TDS=""
+.else
+PLIST_SUB+= TDS="@comment "
INCLUDEDIRS:=${INCLUDEDIRS}:${LOCALBASE}/include
LIBDIRS:=${LIBDIRS}:${LOCALBASE}/lib
LIB_DEPENDS+= sybdb.5:${PORTSDIR}/databases/freetds
diff --git a/ftp/proftpd/pkg-plist b/ftp/proftpd/pkg-plist
index 4071781e4a9..85699743a53 100644
--- a/ftp/proftpd/pkg-plist
+++ b/ftp/proftpd/pkg-plist
@@ -34,6 +34,10 @@ include/proftpd/libsupp.h
include/proftpd/log.h
include/proftpd/mkhome.h
%%CLAMAV%%include/proftpd/mod_clamav.h
+%%WRAP%%include/proftpd/mod_wrap2.h
+%%SQL%%include/proftpd/mod_sql.h
+%%TDS%%include/proftpd/mod_sql.h
+%%QUOTA%%include/proftpd/mod_quotatab.h
include/proftpd/mod_ctrls.h
include/proftpd/modules.h
include/proftpd/netacl.h
@@ -64,6 +68,7 @@ libdata/pkgconfig/proftpd.pc
sbin/ftpshut
sbin/in.proftpd
sbin/proftpd
+%%CTRLS_ADMIN%%sbin/ftpdctl
%%NLS%%share/locale/zh_CN/LC_MESSAGES/proftpd.mo
%%NLS%%share/locale/en_US/LC_MESSAGES/proftpd.mo
%%NLS%%share/locale/it_IT/LC_MESSAGES/proftpd.mo