aboutsummaryrefslogtreecommitdiff
path: root/security/stunnel
diff options
context:
space:
mode:
authorRyan Steinmetz <zi@FreeBSD.org>2017-01-28 17:23:50 +0000
committerRyan Steinmetz <zi@FreeBSD.org>2017-01-28 17:23:50 +0000
commite56f6fd7454611c86ca61738c3b68a65970c3b3b (patch)
tree2b66d9a76de97fbc13e9e3c831bae4c2000b5d5b /security/stunnel
parent5ea60a698be87f821a2e3a8feffec7ab09c6eea9 (diff)
downloadports-e56f6fd7454611c86ca61738c3b68a65970c3b3b.tar.gz
ports-e56f6fd7454611c86ca61738c3b68a65970c3b3b.zip
Notes
Diffstat (limited to 'security/stunnel')
-rw-r--r--security/stunnel/Makefile8
-rw-r--r--security/stunnel/distinfo6
-rw-r--r--security/stunnel/files/pid.conf1
-rw-r--r--security/stunnel/pkg-plist2
4 files changed, 12 insertions, 5 deletions
diff --git a/security/stunnel/Makefile b/security/stunnel/Makefile
index f82f53f706b3..2856beef6915 100644
--- a/security/stunnel/Makefile
+++ b/security/stunnel/Makefile
@@ -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} "**************************************************************************"
diff --git a/security/stunnel/distinfo b/security/stunnel/distinfo
index cd47a66d64ac..0a60a57de95c 100644
--- a/security/stunnel/distinfo
+++ b/security/stunnel/distinfo
@@ -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
diff --git a/security/stunnel/files/pid.conf b/security/stunnel/files/pid.conf
new file mode 100644
index 000000000000..f2b23cc181bb
--- /dev/null
+++ b/security/stunnel/files/pid.conf
@@ -0,0 +1 @@
+pid = /var/run/stunnel.pid
diff --git a/security/stunnel/pkg-plist b/security/stunnel/pkg-plist
index 6ab6de14db02..99a2c705b6e4 100644
--- a/security/stunnel/pkg-plist
+++ b/security/stunnel/pkg-plist
@@ -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