1 |
commit: 71ffa5f690f3f29c2b974acb0bcbd8135f1491ee |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 3 23:56:13 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 3 23:56:13 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71ffa5f6 |
7 |
|
8 |
net-misc/stunnel: version bump to 5.32 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
net-misc/stunnel/Manifest | 1 + |
13 |
net-misc/stunnel/stunnel-5.32.ebuild | 90 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 91 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/stunnel/Manifest b/net-misc/stunnel/Manifest |
17 |
index 48bff4d..aa9924f 100644 |
18 |
--- a/net-misc/stunnel/Manifest |
19 |
+++ b/net-misc/stunnel/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST stunnel-5.24.tar.gz 631730 SHA256 ab2e5a1034d422951ddad21b572eb7fa8efb4c4ce |
21 |
DIST stunnel-5.29.tar.gz 637806 SHA256 43909625403ea634fa7cb8399d58faf8e7f11c1b7b29097491469951f56df551 SHA512 1a7017921e29416dfb934d258c89b9b47db9922e6af1a29bd53895cb153d7de3908fd4cfd6e65e6aa8992cb26670dbfeab366c0f7ce0317d9045a67d1e30a934 WHIRLPOOL c15e09aa9777f6150f9cf3663c8e1dc32e3556295a63945aa7b4186e2c7a52e0d766f010afce548798aba2d7a2165b6af46613457e0b7339da8f438cb4694085 |
22 |
DIST stunnel-5.30.tar.gz 638771 SHA256 7d6eb389f6a1954b3bcf6c71d4ae3c5f9dde1990dd0b9e0cb1c7caf138d60570 SHA512 66bb610241e70881f8b14bfaec712a48361ec43a631db8b38ea0c94547fa184896e2d1fbbce52eb13c65411aa1ca10b3e9e42bde1651b38a5d551504b3b38f3c WHIRLPOOL 6b375be08c52088de065028d4d2e4d99301dbeb3a6771bbfe19f715d1dd9f7ccf893b87b973dbb19bfc5decf7f6e487322d857e04fdccdd535140ebecef358f8 |
23 |
DIST stunnel-5.31.tar.gz 639381 SHA256 a746b71ab3dc6c23eacb0daf7342467870e43ac933430905eb1b1d050bbae0b7 SHA512 250d55e684311ed79d43f25f7980e67627d8d58cfe8c13d4f90a8e0b00f13819adc1732bbc94ebba7dccc183384ea75c8ff3171f697d147f204b62fa60f63b67 WHIRLPOOL 61664e7e7d075627d6cbbfd0663d6d4770243ed2b469199a06d3d6b0ff338f631a51f6510bef5d761e56301c3f2c46a622c949f14b0560117fd756780c2945bb |
24 |
+DIST stunnel-5.32.tar.gz 641907 SHA256 0ee64774d7a720f3ffd129b08557ee0882704c7f65b859c40e315a175b68a6fd SHA512 aad3b718a727ae23bc88bda027017a5e4e19d2d08c1d4e95087dae20d4ed994d0ce29e9ae4b4d40456a7d7aaeb10c30a4283c6be2965d7183982204a347781bc WHIRLPOOL e2ec5471a33e033670ba23323ee86f02a1a368572138dd30075d1cee408a8fc298e98bdfc64143399ffbb0ead2dd62b834cacdca0adab0b7c72eef08dd2f3f38 |
25 |
|
26 |
diff --git a/net-misc/stunnel/stunnel-5.32.ebuild b/net-misc/stunnel/stunnel-5.32.ebuild |
27 |
new file mode 100644 |
28 |
index 0000000..4eac53e |
29 |
--- /dev/null |
30 |
+++ b/net-misc/stunnel/stunnel-5.32.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
35 |
+ |
36 |
+EAPI="5" |
37 |
+ |
38 |
+inherit ssl-cert eutils multilib systemd user |
39 |
+ |
40 |
+DESCRIPTION="TLS/SSL - Port Wrapper" |
41 |
+HOMEPAGE="http://www.stunnel.org/index.html" |
42 |
+SRC_URI="ftp://ftp.stunnel.org/stunnel/archive/${PV%%.*}.x/${P}.tar.gz |
43 |
+ http://www.usenix.org.uk/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz |
44 |
+ http://ftp.nluug.nl/pub/networking/stunnel/archive/${PV%%.*}.x/${P}.tar.gz |
45 |
+ http://www.namesdir.com/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz |
46 |
+ http://stunnel.cybermirror.org/archive/${PV%%.*}.x/${P}.tar.gz |
47 |
+ http://mirrors.zerg.biz/stunnel/archive/${PV%%.*}.x/${P}.tar.gz |
48 |
+ ftp://mirrors.go-parts.com/stunnel/archive/${PV%%.*}.x/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos" |
53 |
+IUSE="ipv6 libressl selinux stunnel3 tcpd" |
54 |
+ |
55 |
+DEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
56 |
+ !libressl? ( dev-libs/openssl:0 ) |
57 |
+ libressl? ( dev-libs/libressl )" |
58 |
+RDEPEND="${DEPEND} |
59 |
+ stunnel3? ( dev-lang/perl ) |
60 |
+ selinux? ( sec-policy/selinux-stunnel )" |
61 |
+ |
62 |
+RESTRICT="test" |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ enewgroup stunnel |
66 |
+ enewuser stunnel -1 -1 -1 stunnel |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ # Hack away generation of certificate |
71 |
+ sed -i -e "s/^install-data-local:/do-not-run-this:/" \ |
72 |
+ tools/Makefile.in || die "sed failed" |
73 |
+ |
74 |
+ echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ econf \ |
79 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
80 |
+ $(use_enable ipv6) \ |
81 |
+ $(use_enable tcpd libwrap) \ |
82 |
+ --with-ssl="${EPREFIX}"/usr \ |
83 |
+ --disable-fips |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ emake DESTDIR="${D}" install |
88 |
+ rm -rf "${ED}"/usr/share/doc/${PN} |
89 |
+ rm -f "${ED}"/etc/stunnel/stunnel.conf-sample \ |
90 |
+ "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
91 |
+ use stunnel3 || rm -f "${ED}"/usr/bin/stunnel3 |
92 |
+ |
93 |
+ # The binary was moved to /usr/bin with 4.21, |
94 |
+ # symlink for backwards compatibility |
95 |
+ dosym ../bin/stunnel /usr/sbin/stunnel |
96 |
+ |
97 |
+ dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog |
98 |
+ dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \ |
99 |
+ tools/importCA.html |
100 |
+ |
101 |
+ insinto /etc/stunnel |
102 |
+ doins "${FILESDIR}"/stunnel.conf |
103 |
+ doinitd "${FILESDIR}"/stunnel |
104 |
+ |
105 |
+ doenvd "${T}"/20stunnel |
106 |
+ |
107 |
+ systemd_dounit "${S}/tools/stunnel.service" |
108 |
+ systemd_newtmpfilesd "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf |
109 |
+} |
110 |
+ |
111 |
+pkg_postinst() { |
112 |
+ if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then |
113 |
+ install_cert /etc/stunnel/stunnel |
114 |
+ chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
115 |
+ chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
116 |
+ fi |
117 |
+ |
118 |
+ einfo "If you want to run multiple instances of stunnel, create a new config" |
119 |
+ einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change " |
120 |
+ einfo "\'pid= \' with a unique filename." |
121 |
+} |