1 |
commit: ed55662e3fb22e0221e19b692e31c921318e0f18 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 9 22:42:47 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 9 23:55:46 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed55662e |
7 |
|
8 |
net-misc/stunnel: add 5.59 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
net-misc/stunnel/Manifest | 1 + |
13 |
net-misc/stunnel/stunnel-5.59.ebuild | 101 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 102 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/stunnel/Manifest b/net-misc/stunnel/Manifest |
17 |
index e879a2e6aed..2b47fe53b95 100644 |
18 |
--- a/net-misc/stunnel/Manifest |
19 |
+++ b/net-misc/stunnel/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST stunnel-5.58.tar.gz 988551 BLAKE2B 45ce3d43ff683fa1146ced00c6a2ef7c09a935da3dcd1a6529fa024e064c251798d96a1e45d4abf13195ca50fb7f1cf3ddc25c9e954a1cad8bb4745c4e35701d SHA512 6f62bf13bf53f174b2810ad6708a9dfdb70e9b4e2f60c0c9cf4df691169a63014901402ccbe2862010f4cee240c1a8eec34b70a7a3fcef36e7a2ca14a7f70ece |
22 |
+DIST stunnel-5.59.tar.gz 995508 BLAKE2B 12dc07e5ef04dcc505d97cefeaee98284a1c85ca886f731bfe7af3a1ad5448e47ea1fc08ddddab3b6f79b71c8d91ec4f09c355397e6e1052384f77cbd1cf2a17 SHA512 c9f93ff6a09baef6d85e883cb469de495f5c006b9f0d3e018ade7a21bb3521e3db7982701c752d6b117ff2ad03a7f7299afd399c8956006af2eade52358ac1c7 |
23 |
|
24 |
diff --git a/net-misc/stunnel/stunnel-5.59.ebuild b/net-misc/stunnel/stunnel-5.59.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..40631323d41 |
27 |
--- /dev/null |
28 |
+++ b/net-misc/stunnel/stunnel-5.59.ebuild |
29 |
@@ -0,0 +1,101 @@ |
30 |
+# Copyright 1999-2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+inherit ssl-cert systemd tmpfiles |
36 |
+ |
37 |
+DESCRIPTION="TLS/SSL - Port Wrapper" |
38 |
+HOMEPAGE="https://www.stunnel.org/index.html" |
39 |
+SRC_URI=" |
40 |
+ https://www.stunnel.org/downloads/${P}.tar.gz |
41 |
+ 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 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" |
53 |
+IUSE="ipv6 selinux stunnel3 tcpd" |
54 |
+ |
55 |
+DEPEND=" |
56 |
+ dev-libs/openssl:0= |
57 |
+ tcpd? ( sys-apps/tcp-wrappers ) |
58 |
+" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ acct-user/stunnel |
62 |
+ acct-group/stunnel |
63 |
+ ${DEPEND} |
64 |
+ selinux? ( sec-policy/selinux-stunnel ) |
65 |
+ stunnel3? ( dev-lang/perl ) |
66 |
+" |
67 |
+ |
68 |
+RESTRICT="test" |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ # Hack away generation of certificate |
72 |
+ sed -i -e "s/^install-data-local:/do-not-run-this:/" \ |
73 |
+ tools/Makefile.in || die "sed failed" |
74 |
+ |
75 |
+ echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel |
76 |
+ |
77 |
+ eapply_user |
78 |
+} |
79 |
+ |
80 |
+src_configure() { |
81 |
+ local myeconfargs=( |
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 |
+ econf "${myeconfargs[@]}" |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ emake DESTDIR="${D}" install |
94 |
+ rm -rf "${ED}"/usr/share/doc/${PN} |
95 |
+ rm -f "${ED}"/etc/stunnel/stunnel.conf-sample \ |
96 |
+ "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
97 |
+ use stunnel3 || rm -f "${ED}"/usr/bin/stunnel3 |
98 |
+ |
99 |
+ # The binary was moved to /usr/bin with 4.21, |
100 |
+ # symlink for backwards compatibility |
101 |
+ dosym ../bin/stunnel /usr/sbin/stunnel |
102 |
+ |
103 |
+ dodoc AUTHORS.md BUGS.md CREDITS.md PORTS.md README.md TODO.md |
104 |
+ docinto html |
105 |
+ dodoc doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \ |
106 |
+ tools/importCA.html |
107 |
+ |
108 |
+ insinto /etc/stunnel |
109 |
+ doins "${FILESDIR}"/stunnel.conf |
110 |
+ newinitd "${FILESDIR}"/stunnel-r2 stunnel |
111 |
+ |
112 |
+ doenvd "${T}"/20stunnel |
113 |
+ |
114 |
+ systemd_dounit "${S}/tools/stunnel.service" |
115 |
+ newtmpfiles "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf |
116 |
+} |
117 |
+ |
118 |
+pkg_postinst() { |
119 |
+ if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then |
120 |
+ install_cert /etc/stunnel/stunnel |
121 |
+ chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
122 |
+ chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
123 |
+ fi |
124 |
+ |
125 |
+ einfo "If you want to run multiple instances of stunnel, create a new config" |
126 |
+ einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change " |
127 |
+ einfo "\'pid= \' with a unique filename. For openrc make a symlink from the" |
128 |
+ einfo "stunnel init script to \'stunnel.name\' and use that to start|stop" |
129 |
+ einfo "your custom instance" |
130 |
+} |