Gentoo Archives: gentoo-commits

From: "Anthony G. Basile (blueness)" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/stunnel: stunnel-5.22.ebuild ChangeLog stunnel-5.21.ebuild
Date: Thu, 30 Jul 2015 11:19:19
Message-Id: 20150730111913.2A2A2110@oystercatcher.gentoo.org
1 blueness 15/07/30 11:19:13
2
3 Modified: ChangeLog
4 Added: stunnel-5.22.ebuild
5 Removed: stunnel-5.21.ebuild
6 Log:
7 Version bump to fix ipv6 passive resolver. Remove buggy unstable.
8
9 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
10
11 Revision Changes Path
12 1.240 net-misc/stunnel/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.240&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.240&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?r1=1.239&r2=1.240
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v
21 retrieving revision 1.239
22 retrieving revision 1.240
23 diff -u -r1.239 -r1.240
24 --- ChangeLog 29 Jul 2015 13:14:41 -0000 1.239
25 +++ ChangeLog 30 Jul 2015 11:19:13 -0000 1.240
26 @@ -1,6 +1,12 @@
27 # ChangeLog for net-misc/stunnel
28 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.239 2015/07/29 13:14:41 blueness Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.240 2015/07/30 11:19:13 blueness Exp $
31 +
32 +*stunnel-5.22 (30 Jul 2015)
33 +
34 + 30 Jul 2015; Anthony G. Basile <blueness@g.o> +stunnel-5.22.ebuild,
35 + -stunnel-5.21.ebuild:
36 + Version bump to fix ipv6 passive resolver. Remove buggy unstable.
37
38 29 Jul 2015; Anthony G. Basile <blueness@g.o> stunnel-5.20.ebuild:
39 Stable on ppc and ppc64. Bug #551890.
40
41
42
43 1.1 net-misc/stunnel/stunnel-5.22.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.22.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.22.ebuild?rev=1.1&content-type=text/plain
47
48 Index: stunnel-5.22.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-5.22.ebuild,v 1.1 2015/07/30 11:19:13 blueness Exp $
53
54 EAPI="5"
55
56 inherit ssl-cert eutils multilib systemd user
57
58 DESCRIPTION="TLS/SSL - Port Wrapper"
59 HOMEPAGE="http://www.stunnel.org/index.html"
60 SRC_URI="ftp://ftp.stunnel.org/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
61 http://www.usenix.org.uk/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
62 http://ftp.nluug.nl/pub/networking/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
63 http://www.namesdir.com/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
64 http://stunnel.cybermirror.org/archive/${PV%%.*}.x/${P}.tar.gz
65 http://mirrors.zerg.biz/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
66 ftp://mirrors.go-parts.com/stunnel/archive/${PV%%.*}.x/${P}.tar.gz"
67
68 LICENSE="GPL-2"
69 SLOT="0"
70 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
71 IUSE="ipv6 selinux stunnel3 tcpd"
72
73 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
74 dev-libs/openssl:="
75 RDEPEND="${DEPEND}
76 stunnel3? ( dev-lang/perl )
77 selinux? ( sec-policy/selinux-stunnel )"
78
79 RESTRICT="test"
80
81 pkg_setup() {
82 enewgroup stunnel
83 enewuser stunnel -1 -1 -1 stunnel
84 }
85
86 src_prepare() {
87 # Hack away generation of certificate
88 sed -i -e "s/^install-data-local:/do-not-run-this:/" \
89 tools/Makefile.in || die "sed failed"
90
91 echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel
92 }
93
94 src_configure() {
95 econf \
96 --libdir="${EPREFIX}/usr/$(get_libdir)" \
97 $(use_enable ipv6) \
98 $(use_enable tcpd libwrap) \
99 --with-ssl="${EPREFIX}"/usr \
100 --disable-fips
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" install
105 rm -rf "${ED}"/usr/share/doc/${PN}
106 rm -f "${ED}"/etc/stunnel/stunnel.conf-sample \
107 "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8
108 use stunnel3 || rm -f "${ED}"/usr/bin/stunnel3
109
110 # The binary was moved to /usr/bin with 4.21,
111 # symlink for backwards compatibility
112 dosym ../bin/stunnel /usr/sbin/stunnel
113
114 dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog
115 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
116 tools/importCA.html
117
118 insinto /etc/stunnel
119 doins "${FILESDIR}"/stunnel.conf
120 doinitd "${FILESDIR}"/stunnel
121
122 doenvd "${T}"/20stunnel
123
124 systemd_dounit "${S}/tools/stunnel.service"
125 systemd_newtmpfilesd "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf
126 }
127
128 pkg_postinst() {
129 if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then
130 install_cert /etc/stunnel/stunnel
131 chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
132 chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
133 fi
134
135 einfo "If you want to run multiple instances of stunnel, create a new config"
136 einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change "
137 einfo "\'pid= \' with a unique filename."
138 }