summaryrefslogtreecommitdiff
path: root/ftp
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2005-07-15 06:24:46 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2005-07-15 06:24:46 +0000
commitfabe4a5cd9678767aa78dac993637c52929ec983 (patch)
tree3deeddc4c121b1ee4d22202f3937d59195535c20 /ftp
parent- Update to 2.7.3 (diff)
- include SSL in OPTIONS
PR: 83421 Submitted by: Marcus Grando
Notes
Notes: svn path=/head/; revision=139251
Diffstat (limited to 'ftp')
-rw-r--r--ftp/vsftpd/Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/ftp/vsftpd/Makefile b/ftp/vsftpd/Makefile
index 214131f9893a..f13d12aa91c3 100644
--- a/ftp/vsftpd/Makefile
+++ b/ftp/vsftpd/Makefile
@@ -9,6 +9,7 @@ PORTNAME= vsftpd
PORTVERSION= 2.0.3
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://vsftpd.beasts.org/users/cevans/
+PKGNAMESUFFIX?= ${SSL_SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A FTP daemon that aims to be "very secure"
@@ -23,15 +24,8 @@ DOCFILES= AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \
LDFLAGS+= -lwrap
-OPTIONS= RC_NG "install RC_NG script" off
-
-.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL)
-USE_OPENSSL= yes
-CFLAGS+= -I${OPENSSLINC}
-LDFLAGS+= -L${OPENSSLLIB}
-.else
-MAKE_ENV+= LDFLAGS="${LDFLAGS}"
-.endif
+OPTIONS= RC_NG "install RC_NG script" off \
+ VSFTPD_SSL "Include support for SSL" off
.include <bsd.port.pre.mk>
@@ -42,6 +36,15 @@ PLIST_SUB+= RC_NG=""
PLIST_SUB+= RC_NG="@comment "
.endif
+.if !defined(WITHOUT_SSL) && defined(WITH_VSFTPD_SSL)
+.include "${PORTSDIR}/Mk/bsd.openssl.mk"
+SSL_SUFFIX= -ssl
+CFLAGS+= -I${OPENSSLINC}
+LDFLAGS+= -L${OPENSSLLIB}
+.else
+MAKE_ENV+= LDFLAGS="${LDFLAGS}"
+.endif
+
do-configure:
.if defined(WITH_RC_NG)
@${SED} -e 's,%%RC_SUBR%%,${RC_SUBR},g' -e 's,%%PREFIX%%,${PREFIX},g' \