- Update to 5.40

- Set default pid location via stunnel's conf.d directory structure
This commit is contained in:
Ryan Steinmetz 2017-01-28 17:23:50 +00:00
parent 5ea60a698b
commit e56f6fd745
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432635
4 changed files with 12 additions and 5 deletions

View file

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= stunnel
PORTVERSION= 5.39
PORTVERSION= 5.40
PORTEPOCH= 1
CATEGORIES= security
MASTER_SITES= https://www.stunnel.org/downloads/%SUBDIR%/ \
@ -87,7 +87,7 @@ post-patch:
# place files under /var/tmp so that this can be run by an unprivileged
# user stunnel and group stunnel
@${REINPLACE_CMD} -E -e 's|\@prefix\@/var/lib/stunnel/|/var/tmp/stunnel|; \
s|nobody|stunnel|;s|nogroup|stunnel|' \
s|nobody|stunnel|;s|nogroup|stunnel|;s|;include |include |' \
${WRKSRC}/tools/stunnel.conf-sample.in
@${REINPLACE_CMD} -E -e 's|\$$\(prefix\)/var/run/stunnel/stunnel.pid|$$(localstatedir)/stunnel.pid|' \
${WRKSRC}/src/Makefile.in
@ -108,6 +108,10 @@ post-patch:
post-build:
@${STRIP_CMD} ${WRKSRC}/src/.libs/libstunnel.so
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}/conf.d/
${INSTALL_DATA} ${FILESDIR}/pid.conf ${STAGEDIR}${ETCDIR}/conf.d/
cert:
@${ECHO} ""
@${ECHO} "**************************************************************************"

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1483375978
SHA256 (stunnel-5.39.tar.gz) = 288c087a50465390d05508068ac76c8418a21fae7275febcc63f041ec5b04dee
SIZE (stunnel-5.39.tar.gz) = 647101
TIMESTAMP = 1485624002
SHA256 (stunnel-5.40.tar.gz) = 23acdb390326ffd507d90f8984ecc90e0d9993f6bd6eac1d0a642456565c45ff
SIZE (stunnel-5.40.tar.gz) = 648828

View file

@ -0,0 +1 @@
pid = /var/run/stunnel.pid

View file

@ -1,6 +1,7 @@
bin/stunnel
bin/stunnel3
%%ETCDIR%%/stunnel.conf-sample
%%ETCDIR%%/conf.d/pid.conf
lib/stunnel/libstunnel.a
lib/stunnel/libstunnel.so
man/man8/stunnel.8.gz
@ -34,4 +35,5 @@ man/man8/stunnel.pl.8.gz
%%PORTDOCS%%@dir %%DOCSDIR%%
@dir lib/stunnel
@dir etc/stunnel
@dir etc/stunnel/conf.d
@unexec if [ -d %D/etc/stunnel ]; then echo "If you are permanently removing this port, you should run ``rm -rf %D/etc/stunnel`` to remove any configuration files left."; fi