aboutsummaryrefslogtreecommitdiff
path: root/ftp/vsftpd
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-07-26 16:21:29 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-07-26 16:21:29 +0000
commit0dbc14cfaaaf2402d6b34d05246f6bf97b19f7df (patch)
tree7223fc465009bb63c45ba084de975bed82f9b5b6 /ftp/vsftpd
parentccfa16c5974de774db903e88f667afaa6ea9d0f3 (diff)
downloadports-0dbc14cfaaaf2402d6b34d05246f6bf97b19f7df.tar.gz
ports-0dbc14cfaaaf2402d6b34d05246f6bf97b19f7df.zip
Notes
Diffstat (limited to 'ftp/vsftpd')
-rw-r--r--ftp/vsftpd/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/ftp/vsftpd/Makefile b/ftp/vsftpd/Makefile
index dd6feef1545c..18a45bbe5907 100644
--- a/ftp/vsftpd/Makefile
+++ b/ftp/vsftpd/Makefile
@@ -26,19 +26,21 @@ DOCFILES= AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \
README README.security README.ssl REFS REWARD \
SIZE SPEED TODO TUNING
-OPTIONS= VSFTPD_SSL "Include support for SSL" off \
- PIDFILE "unofficial support for pidfile" off
+OPTIONS_DEFINE= VSFTPD_SSL PIDFILE
+
+VSFTPD_SSL_DESC=Include support for SSL
+PIDFILE_DESC= Unofficial support for pidfile
.include <bsd.port.pre.mk>
-.if defined(WITH_VSFTPD_SSL) && !defined(WITHOUT_SSL)
+.if ${PORT_OPTIONS:MVSFTPD_SSL} && !defined(WITHOUT_SSL)
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
SSL_SUFFIX= -ssl
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
.endif
-.if defined(WITH_PIDFILE)
+.if ${PORT_OPTIONS:MPIDFILE}
EXTRA_PATCHES+= ${FILESDIR}/pidfile.patch
.endif
@@ -46,7 +48,7 @@ EXTRA_PATCHES+= ${FILESDIR}/pidfile.patch
LDFLAGS+= -lssp_nonshared
do-configure:
-.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL)
+.if !defined(WITHOUT_SSL) && ${PORT_OPTIONS:MVSFTPD_SSL}
${REINPLACE_CMD} -e \
"s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \
-e "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \
@@ -94,7 +96,7 @@ do-install:
${INSTALL_MAN} -m 644 ${WRKSRC}/$${i} ${MANPREFIX}/man/man5/ ; \
done
${MKDIR} /var/ftp
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for i in ${DOCFILES}
${INSTALL_DATA} -m 644 ${WRKSRC}/${i} ${DOCSDIR}