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.21.ebuild ChangeLog
Date: Tue, 28 Jul 2015 12:01:18
Message-Id: 20150728120109.954F0C1@oystercatcher.gentoo.org
1 blueness 15/07/28 12:01:09
2
3 Modified: ChangeLog
4 Added: stunnel-5.21.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.237 net-misc/stunnel/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.237&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.237&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?r1=1.236&r2=1.237
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v
20 retrieving revision 1.236
21 retrieving revision 1.237
22 diff -u -r1.236 -r1.237
23 --- ChangeLog 9 Jul 2015 14:38:38 -0000 1.236
24 +++ ChangeLog 28 Jul 2015 12:01:09 -0000 1.237
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.236 2015/07/09 14:38:38 blueness Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.237 2015/07/28 12:01:09 blueness Exp $
30 +
31 +*stunnel-5.21 (28 Jul 2015)
32 +
33 + 28 Jul 2015; Anthony G. Basile <blueness@g.o> +stunnel-5.21.ebuild:
34 + Version bump.
35
36 *stunnel-5.20 (09 Jul 2015)
37
38
39
40
41 1.1 net-misc/stunnel/stunnel-5.21.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.21.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.21.ebuild?rev=1.1&content-type=text/plain
45
46 Index: stunnel-5.21.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.21.ebuild,v 1.1 2015/07/28 12:01:09 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 stunnel3 tcpd"
70
71 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
72 dev-libs/openssl:="
73 RDEPEND="${DEPEND}
74 stunnel3? ( dev-lang/perl )
75 selinux? ( sec-policy/selinux-stunnel )"
76
77 pkg_setup() {
78 enewgroup stunnel
79 enewuser stunnel -1 -1 -1 stunnel
80 }
81
82 src_prepare() {
83 # Hack away generation of certificate
84 sed -i -e "s/^install-data-local:/do-not-run-this:/" \
85 tools/Makefile.in || die "sed failed"
86
87 echo "CONFIG_PROTECT=\"/etc/stunnel/stunnel.conf\"" > "${T}"/20stunnel
88 }
89
90 src_configure() {
91 econf \
92 --libdir="${EPREFIX}/usr/$(get_libdir)" \
93 $(use_enable ipv6) \
94 $(use_enable tcpd libwrap) \
95 --with-ssl="${EPREFIX}"/usr \
96 --disable-fips
97 }
98
99 src_install() {
100 emake DESTDIR="${D}" install
101 rm -rf "${ED}"/usr/share/doc/${PN}
102 rm -f "${ED}"/etc/stunnel/stunnel.conf-sample \
103 "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8
104 use stunnel3 || rm -f "${ED}"/usr/bin/stunnel3
105
106 # The binary was moved to /usr/bin with 4.21,
107 # symlink for backwards compatibility
108 dosym ../bin/stunnel /usr/sbin/stunnel
109
110 dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog
111 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
112 tools/importCA.html
113
114 insinto /etc/stunnel
115 doins "${FILESDIR}"/stunnel.conf
116 doinitd "${FILESDIR}"/stunnel
117
118 doenvd "${T}"/20stunnel
119
120 systemd_dounit "${S}/tools/stunnel.service"
121 systemd_newtmpfilesd "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf
122 }
123
124 pkg_postinst() {
125 if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then
126 install_cert /etc/stunnel/stunnel
127 chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
128 chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
129 fi
130
131 einfo "If you want to run multiple instances of stunnel, create a new config"
132 einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change "
133 einfo "\'pid= \' with a unique filename."
134 }