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.09.ebuild ChangeLog
Date: Fri, 02 Jan 2015 15:52:31
Message-Id: 20150102155228.182B8EB99@oystercatcher.gentoo.org
1 blueness 15/01/02 15:52:28
2
3 Modified: ChangeLog
4 Added: stunnel-5.09.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
9
10 Revision Changes Path
11 1.198 net-misc/stunnel/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.198&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.198&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/ChangeLog?r1=1.197&r2=1.198
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v
20 retrieving revision 1.197
21 retrieving revision 1.198
22 diff -u -r1.197 -r1.198
23 --- ChangeLog 10 Dec 2014 15:06:40 -0000 1.197
24 +++ ChangeLog 2 Jan 2015 15:52:28 -0000 1.198
25 @@ -1,6 +1,11 @@
26 # ChangeLog for net-misc/stunnel
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.197 2014/12/10 15:06:40 blueness Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.198 2015/01/02 15:52:28 blueness Exp $
31 +
32 +*stunnel-5.09 (02 Jan 2015)
33 +
34 + 02 Jan 2015; Anthony G. Basile <blueness@g.o> +stunnel-5.09.ebuild:
35 + Version bump
36
37 10 Dec 2014; Anthony G. Basile <blueness@g.o> -stunnel-5.02.ebuild,
38 -stunnel-5.03.ebuild, -stunnel-5.04.ebuild, -stunnel-5.05.ebuild:
39
40
41
42 1.1 net-misc/stunnel/stunnel-5.09.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.09.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/stunnel-5.09.ebuild?rev=1.1&content-type=text/plain
46
47 Index: stunnel-5.09.ebuild
48 ===================================================================
49 # Copyright 1999-2015 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-5.09.ebuild,v 1.1 2015/01/02 15:52:28 blueness Exp $
52
53 EAPI="5"
54
55 inherit ssl-cert eutils systemd user
56
57 DESCRIPTION="TLS/SSL - Port Wrapper"
58 HOMEPAGE="http://www.stunnel.org/index.html"
59 SRC_URI="ftp://ftp.stunnel.org/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
60 http://www.usenix.org.uk/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
61 http://ftp.nluug.nl/pub/networking/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
62 http://www.namesdir.com/mirrors/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
63 http://stunnel.cybermirror.org/archive/${PV%%.*}.x/${P}.tar.gz
64 http://mirrors.zerg.biz/stunnel/archive/${PV%%.*}.x/${P}.tar.gz
65 ftp://mirrors.go-parts.com/stunnel/archive/${PV%%.*}.x/${P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x86-macos"
70 IUSE="ipv6 selinux tcpd"
71
72 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
73 dev-libs/openssl"
74 RDEPEND="${DEPEND}
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
88 src_configure() {
89 econf \
90 $(use_enable ipv6) \
91 $(use_enable tcpd libwrap) \
92 --with-ssl="${EPREFIX}"/usr \
93 --disable-fips
94 }
95
96 src_install() {
97 emake DESTDIR="${D}" install
98 rm -rf "${ED}"/usr/share/doc/${PN}
99 rm -f "${ED}"/etc/stunnel/stunnel.conf-sample "${ED}"/usr/bin/stunnel3 \
100 "${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8
101
102 # The binary was moved to /usr/bin with 4.21,
103 # symlink for backwards compatibility
104 dosym ../bin/stunnel /usr/sbin/stunnel
105
106 dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog
107 dohtml 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 doinitd "${FILESDIR}"/stunnel
113
114 systemd_dounit "${S}/tools/stunnel.service"
115 systemd_newtmpfilesd "${FILESDIR}"/stunnel.tmpfiles.conf stunnel.conf
116 }
117
118 pkg_postinst() {
119 if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then
120 install_cert /etc/stunnel/stunnel
121 chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
122 chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
123 fi
124
125 einfo "If you want to run multiple instances of stunnel, create a new config"
126 einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change "
127 einfo "\'pid= \' with a unique filename."
128 }