diff options
author | roam <roam@FreeBSD.org> | 2001-11-07 19:01:38 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2001-11-07 19:01:38 +0800 |
commit | 1d1fea76c647c5e443f0e0e59493df3dfe78895f (patch) | |
tree | 0aa759a2491394f93a6abb7bd0b755dea21bc5c3 /security/stunnel/Makefile | |
parent | ba207254663bb2de1ebf8acc841fc58765902f7e (diff) | |
download | freebsd-ports-gnome-1d1fea76c647c5e443f0e0e59493df3dfe78895f.tar.gz freebsd-ports-gnome-1d1fea76c647c5e443f0e0e59493df3dfe78895f.tar.zst freebsd-ports-gnome-1d1fea76c647c5e443f0e0e59493df3dfe78895f.zip |
Update to 3.21b, fixing a Makefile bogon and a file descriptor leak.
Add a new knob, PEM_DIR, to specify the path to install the certificate
generated during the stunnel build, and later, the one generated using
the 'cert' target of the port Makefile.
Approved by: maintainer
Diffstat (limited to 'security/stunnel/Makefile')
-rw-r--r-- | security/stunnel/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile index 96052f56b5eb..b29eff051e86 100644 --- a/security/stunnel/Makefile +++ b/security/stunnel/Makefile @@ -6,7 +6,7 @@ # PORTNAME= stunnel -PORTVERSION= 3.21 +PORTVERSION= 3.21b CATEGORIES= security MASTER_SITES= http://www.stunnel.org/download/stunnel/src/ \ ftp://stunnel.mirt.net/stunnel/ \ @@ -19,10 +19,12 @@ USE_OPENSSL= YES IS_INTERACTIVE= YES # prompts for information while generating certificate GNU_CONFIGURE= yes -CONFIGURE_ARGS= --localstatedir=/var/run +CONFIGURE_ARGS= --localstatedir=/var/run --with-pem-dir=${PEM_DIR} MAN8= stunnel.8 +PEM_DIR?= ${PREFIX}/etc + post-install: @${SED} "s+!!PREFIX!!+${PREFIX}+g" < ${FILESDIR}/stunnel.sh \ > ${PREFIX}/etc/rc.d/stunnel.sh.sample @@ -42,6 +44,6 @@ cert: @${ECHO} "**************************************************************************" @${ECHO} "" @(cd ${WRKSRC}; make cert) - ${INSTALL} -m 600 ${WRKSRC}/stunnel.pem ${PREFIX}/etc/ + ${INSTALL} -m 600 ${WRKSRC}/stunnel.pem ${PEM_DIR}/ .include <bsd.port.mk> |