aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2005-07-15 14:24:46 +0800
committerdinoex <dinoex@FreeBSD.org>2005-07-15 14:24:46 +0800
commit0c70db3785a2dc3fb3b583284b5b2afd49005787 (patch)
tree77f7cc02155549d14f32eb0398acb6faeffd2376
parent0aeee40cad0eb5685cb7438b3a0a4cff75c4d80d (diff)
downloadfreebsd-ports-gnome-0c70db3785a2dc3fb3b583284b5b2afd49005787.tar.gz
freebsd-ports-gnome-0c70db3785a2dc3fb3b583284b5b2afd49005787.tar.zst
freebsd-ports-gnome-0c70db3785a2dc3fb3b583284b5b2afd49005787.zip
- include SSL in OPTIONS
PR: 83421 Submitted by: Marcus Grando
-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' \