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