1 |
commit: acc27f8afb32905d2674ff1714134277e1ac49e9 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 29 08:35:19 2016 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 29 08:35:38 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=acc27f8a |
7 |
|
8 |
net-misc/stunnel: version bump to 5.38 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
net-misc/stunnel/Manifest | 1 + |
13 |
net-misc/stunnel/stunnel-5.38.ebuild | 93 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 94 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/stunnel/Manifest b/net-misc/stunnel/Manifest |
17 |
index 5f2f676..382aa35 100644 |
18 |
--- a/net-misc/stunnel/Manifest |
19 |
+++ b/net-misc/stunnel/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST stunnel-5.34.tar.gz 644677 SHA256 786111168a84a5a01188dddfcecb37d8c69a4c725 |
21 |
DIST stunnel-5.35.tar.gz 645148 SHA256 ffa386ae4c825f35f35157c285e7402a6d58779ad8c3822f74a9d355b54aba1d SHA512 cdec7ddafbfac4a1d420704baec72fedbd655871137ec8283c066203c0859019c6e11ce00647e5b471a019409e4eb5e9525166eddd7ddffa25055b95c0cacd9e WHIRLPOOL 9d3c4538827ce94a27ad6922a2c4e38192ec8a3d23e0059e328651eaadf7c0696c8751174553bce801a2e940c34c164d871d76b7b623a59133cd0a5c6b00aed2 |
22 |
DIST stunnel-5.36.tar.gz 645205 SHA256 eb8952fcfdfcdf5056a1f1a78e1ec5014b819c5f5f7599b924dc4490ffe4b5ea SHA512 663dd155aab17b628fd1ef8ae1c604efc0cdf026566e98fbff16ba4da5b12b06cd6801bf4f604a9b2ea98d993c184ce97c63c1f716fa86b5e630e5fd504e3317 WHIRLPOOL 12f95a119b840b6afdcaf4d41ee325896bc89feda9ed172651dee1b52a3231fe1599c8fb6c69c1a0f93b342a3b785fb3d002a94a31b14678052313f224c48d0e |
23 |
DIST stunnel-5.37.tar.gz 645336 SHA256 d0e3530e3effc64fdec792c71791d4937c6b8bd3b9ea4895c6bb6526dcd0d241 SHA512 b42dd9e0ea7d024ebbbb0729a0db9caeecfbe3296464f475caa9ee7927c42d762c51a597b6c3a261151bb863e4696fc7cc1c6fe270eb02731e11b29cd60e440a WHIRLPOOL db272f71cba5a7ff516c159c07adc953b7c1c5ce731161fd1bd9827e529ad64f7b7a5de6105ecee3fe225d9044846430c749fcd23b759098d7c7b63cc1b731ba |
24 |
+DIST stunnel-5.38.tar.gz 647774 SHA256 09ada29ba1683ab1fd1f31d7bed8305127a0876537e836a40cb83851da034fd5 SHA512 29adae28955639ab7732ff0d7ea3c097211babcd0c8932717c582f5e38279811a0a209f1daa2c6a22cf69ef28b8b67439038625ba58683c268c322b19e43ac58 WHIRLPOOL ae549e6d498a0bf31591b32f56c4d97141e00485d66aa50be23c5022e9c73f5d51c91d685bf135bf12a365a9b56d53c2dded042ecd8810cbe19e74ca7f89cc5b |
25 |
|
26 |
diff --git a/net-misc/stunnel/stunnel-5.38.ebuild b/net-misc/stunnel/stunnel-5.38.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..a8a6f7d |
29 |
--- /dev/null |
30 |
+++ b/net-misc/stunnel/stunnel-5.38.ebuild |
31 |
@@ -0,0 +1,93 @@ |
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:0= )" |
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 |
+ # libressl compat |
75 |
+ epatch "${FILESDIR}"/stunnel-compat-libressl.patch |
76 |
+ |
77 |
+ echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ econf \ |
82 |
+ --libdir="${EPREFIX}/usr/$(get_libdir)" \ |
83 |
+ $(use_enable ipv6) \ |
84 |
+ $(use_enable tcpd libwrap) \ |
85 |
+ --with-ssl="${EPREFIX}"/usr \ |
86 |
+ --disable-fips |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ emake DESTDIR="${D}" install |
91 |
+ rm -rf "${ED}"/usr/share/doc/${PN} |
92 |
+ rm -f "${ED}"/etc/stunnel/stunnel.conf-sample \ |
93 |
+ "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
94 |
+ use stunnel3 || rm -f "${ED}"/usr/bin/stunnel3 |
95 |
+ |
96 |
+ # The binary was moved to /usr/bin with 4.21, |
97 |
+ # symlink for backwards compatibility |
98 |
+ dosym ../bin/stunnel /usr/sbin/stunnel |
99 |
+ |
100 |
+ dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog |
101 |
+ dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \ |
102 |
+ tools/importCA.html |
103 |
+ |
104 |
+ insinto /etc/stunnel |
105 |
+ doins "${FILESDIR}"/stunnel.conf |
106 |
+ newinitd "${FILESDIR}"/stunnel-r1 stunnel |
107 |
+ |
108 |
+ doenvd "${T}"/20stunnel |
109 |
+ |
110 |
+ systemd_dounit "${S}/tools/stunnel.service" |
111 |
+ systemd_newtmpfilesd "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf |
112 |
+} |
113 |
+ |
114 |
+pkg_postinst() { |
115 |
+ if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then |
116 |
+ install_cert /etc/stunnel/stunnel |
117 |
+ chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
118 |
+ chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
119 |
+ fi |
120 |
+ |
121 |
+ einfo "If you want to run multiple instances of stunnel, create a new config" |
122 |
+ einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change " |
123 |
+ einfo "\'pid= \' with a unique filename." |
124 |
+} |