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