diff options
author | bapt <bapt@FreeBSD.org> | 2013-03-26 17:58:33 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-03-26 17:58:33 +0800 |
commit | 512b099b0e8162a661f66142e440e6deda9c754f (patch) | |
tree | 0703b05c980a1a962f207fe4415499f2f3f22ae8 /ftp/vsftpd-ext | |
parent | 399e8c4c349f1b9f4bacd9c9976acd8b96fe1bce (diff) | |
download | freebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.tar.gz freebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.tar.zst freebsd-ports-gnome-512b099b0e8162a661f66142e440e6deda9c754f.zip |
Convert left unconverted ports in ftp to new options framework
Diffstat (limited to 'ftp/vsftpd-ext')
-rw-r--r-- | ftp/vsftpd-ext/Makefile | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/ftp/vsftpd-ext/Makefile b/ftp/vsftpd-ext/Makefile index 9aae1023b9a9..0422b41297c7 100644 --- a/ftp/vsftpd-ext/Makefile +++ b/ftp/vsftpd-ext/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: vsftpd-ext -# Date created: 11 Mar 2009 -# Whom: Maxim Ignatenko -# +# Created by: Maxim Ignatenko # $FreeBSD$ -# PORTNAME= vsftpd-ext PORTVERSION= ${UPSTREAMVERSION}.${EXTVERSION} @@ -15,7 +11,7 @@ DISTNAME= vsFTPd-${UPSTREAMVERSION}-ext${EXTVERSION} EXTRACT_SUFX= .tgz MAINTAINER= gelraen.ua@gmail.com -COMMENT= A FTP daemon that aims to be "very secure". Extended build +COMMENT= FTP daemon that aims to be "very secure". Extended build CONFLICTS= vsftpd-2* vsftpd${SSL_SUFFIX}${PKGNAMESUFFIX2}-2* @@ -30,20 +26,18 @@ DOCFILES= AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \ README README.security README.ssl REFS REWARD \ SIZE SPEED TODO TUNING -OPTIONS= RC_SCRIPT "install RC_SCRIPT" on \ - VSFTPD_SSL "Include support for SSL" off +OPTIONS_DEFINE= RC_SCRIPT SSL DOCS +OPTIONS_DEFAULTL= RC_SCRIPT +RC_SCRIPT_DESC= install RC_SCRIPT -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_RC_SCRIPT) +.if ${PORT_OPTIONS:MRC_SCRIPT} USE_RC_SUBR= vsftpd .endif -.if defined(WITH_VSFTPD_SSL) && !defined(WITHOUT_SSL) -.if ${OSVERSION} < 700000 -WITH_OPENSSL_PORT= yes -.endif -.include "${PORTSDIR}/Mk/bsd.openssl.mk" +.if ${PORT_OPTIONS:MSSL} +USE_OPENSSL= yes SSL_SUFFIX= -ssl CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} @@ -73,7 +67,7 @@ do-configure: -e 's|delay_failed_logins|delay_failed_login|' \ -e 's|delay_successful_logins|delay_successful_login|' \ ${WRKSRC}/vsftpd.8 ${WRKSRC}/vsftpd.conf.5 ${WRKSRC}/tunables.c -.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL) +.if ${PORT_OPTIONS:MSSL} ${REINPLACE_CMD} -e \ "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \ ${WRKSRC}/builddefs.h @@ -97,7 +91,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} @@ -109,4 +103,4 @@ do-install: .endfor .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |