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