diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-07-27 00:21:29 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-07-27 00:21:29 +0800 |
commit | 75c3a0f260cf010dba6687b73b7a9059471c1743 (patch) | |
tree | 7223fc465009bb63c45ba084de975bed82f9b5b6 /ftp/vsftpd | |
parent | 104544acb226daf30324ede2c254f70b821467c9 (diff) | |
download | freebsd-ports-gnome-75c3a0f260cf010dba6687b73b7a9059471c1743.tar.gz freebsd-ports-gnome-75c3a0f260cf010dba6687b73b7a9059471c1743.tar.zst freebsd-ports-gnome-75c3a0f260cf010dba6687b73b7a9059471c1743.zip |
- Use OPTIONS_DEFINE
PR: 170101
Submitted by: Hung-te Liang
Diffstat (limited to 'ftp/vsftpd')
-rw-r--r-- | ftp/vsftpd/Makefile | 14 |
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} |