Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/stunnel/
Date: Wed, 05 Sep 2018 20:05:49
Message-Id: 1536177923.50cb79755ec50e0177006f28bb76a57544532653.blueness@gentoo
1 commit: 50cb79755ec50e0177006f28bb76a57544532653
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 5 20:05:23 2018 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 5 20:05:23 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50cb7975
7
8 net-misc/stunnel: version bump to 5.49
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-misc/stunnel/Manifest | 1 +
13 net-misc/stunnel/stunnel-5.49.ebuild | 95 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 96 insertions(+)
15
16 diff --git a/net-misc/stunnel/Manifest b/net-misc/stunnel/Manifest
17 index 4369e08ff02..f9ff0c8ed7a 100644
18 --- a/net-misc/stunnel/Manifest
19 +++ b/net-misc/stunnel/Manifest
20 @@ -5,3 +5,4 @@ DIST stunnel-5.44.tar.gz 699117 BLAKE2B 956c7ce8987f79efab3baaa5071263466ec01f04
21 DIST stunnel-5.45.tar.gz 706423 BLAKE2B 81c5355419de3b0bc88d59ea8c98d1a4523d7a1ae6a3d12464f7ab6a1df1f5dd798d2f50ec7adce7515e68a650149321f13e34791781620ad071824246502dce SHA512 653fea6e5002983bb9231a542ab1bab078428821910b8e257adbeea88e583e84d080615f232d5d3086e8d6069c43ddbdfc7923c4b50071ab0c0be547e76d8983
22 DIST stunnel-5.46.tar.gz 706499 BLAKE2B 6ece93015b2a59ec17fa60505bccb5e4444879d44fa0cea6e838aa56d178f61f26b8b9b469d8bf2991d4c094fd824eaed2b5214184f6a15e0c415c53b6f7d136 SHA512 2000e36d4d011a83e47afcaf19473e083da010d7b3909cb831c51975512257888615b5d64f4a4d78f48529d68c6740ea2be7f7935b0ab86de4535e290f78cc97
23 DIST stunnel-5.48.tar.gz 708356 BLAKE2B 6f4538c5fe6bc00eb0f45edfbf83f1de6cfcd23257aa368dc0ba788dd17af7033ba20f1ab7c3f5bf48a5e2ff3d4048eb1a344d1ea4cebebe69e6e2277aaf19ba SHA512 5e6669ecd6e9b49aa6ef82b9a4dc6a2193c975eef85262aba70c7f264ef1b4d15dc287a2baa94b71be063deddcd07a20a5347ed5280f044fc6f68c61429a24fa
24 +DIST stunnel-5.49.tar.gz 713560 BLAKE2B c93b6ea7f9e8da2668919101caf30850370f1c7e742863959d2c1350829e7f5a6d12ff8a8cf66dbac47db40c150cb23a6bce3bea6d79e3c906c4fedad8d410a2 SHA512 8bfd17684ea0d6eeec278f00618c6f96af113fbe14aaafd882d43f3d834ca1e5ed27f9908dffb04224ea4a1234063846f816e3528b95234ae156b61ade6aaa16
25
26 diff --git a/net-misc/stunnel/stunnel-5.49.ebuild b/net-misc/stunnel/stunnel-5.49.ebuild
27 new file mode 100644
28 index 00000000000..6e724f8d84f
29 --- /dev/null
30 +++ b/net-misc/stunnel/stunnel-5.49.ebuild
31 @@ -0,0 +1,95 @@
32 +# Copyright 1999-2018 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 ~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.48-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 +}