Gentoo Archives: gentoo-commits

From: "Ulrich Mueller (ulm)" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/stunnel: ChangeLog stunnel-4.26.ebuild stunnel-4.22.ebuild
Date: Wed, 08 Oct 2008 20:08:06
Message-Id: E1KnfK3-0006jE-RT@stork.gentoo.org
1 ulm 08/10/08 20:07:51
2
3 Modified: ChangeLog
4 Added: stunnel-4.26.ebuild
5 Removed: stunnel-4.22.ebuild
6 Log:
7 Version bump, bug 240522. Remove intermediate version.
8 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.100 net-misc/stunnel/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.100&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.100&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?r1=1.99&r2=1.100
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v
20 retrieving revision 1.99
21 retrieving revision 1.100
22 diff -u -r1.99 -r1.100
23 --- ChangeLog 25 Jul 2008 20:08:51 -0000 1.99
24 +++ ChangeLog 8 Oct 2008 20:07:51 -0000 1.100
25 @@ -1,6 +1,12 @@
26 # ChangeLog for net-misc/stunnel
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.99 2008/07/25 20:08:51 beandog Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.100 2008/10/08 20:07:51 ulm Exp $
30 +
31 +*stunnel-4.26 (08 Oct 2008)
32 +
33 + 08 Oct 2008; Ulrich Mueller <ulm@g.o> -stunnel-4.22.ebuild,
34 + +stunnel-4.26.ebuild:
35 + Version bump, bug 240522. Remove intermediate version.
36
37 25 Jul 2008; Steve Dibb <beandog@g.o> stunnel-4.25.ebuild:
38 amd64 stable, bug 222805
39
40
41
42 1.1 net-misc/stunnel/stunnel-4.26.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/stunnel-4.26.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/stunnel-4.26.ebuild?rev=1.1&content-type=text/plain
46
47 Index: stunnel-4.26.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.26.ebuild,v 1.1 2008/10/08 20:07:51 ulm Exp $
52
53 inherit autotools ssl-cert eutils
54
55 DESCRIPTION="TLS/SSL - Port Wrapper"
56 HOMEPAGE="http://stunnel.mirt.net/"
57 SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
62 IUSE="ipv6 selinux tcpd"
63
64 DEPEND="tcpd? ( sys-apps/tcp-wrappers )
65 >=dev-libs/openssl-0.9.6j"
66 RDEPEND="${DEPEND}
67 selinux? ( sec-policy/selinux-stunnel )"
68
69 pkg_setup() {
70 enewgroup stunnel
71 enewuser stunnel -1 -1 -1 stunnel
72 }
73
74 src_unpack() {
75 unpack ${A}
76 cd "${S}"
77 epatch "${FILESDIR}/${PN}-4.21-libwrap.patch"
78 eautoreconf
79
80 # Hack away generation of certificate
81 sed -i -e "s/^install-data-local:/do-not-run-this:/" \
82 tools/Makefile.in || die "sed failed"
83 }
84
85 src_compile() {
86 econf $(use_enable ipv6) \
87 $(use_enable tcpd libwrap) || die "econf died"
88 emake || die "emake died"
89 }
90
91 src_install() {
92 emake DESTDIR="${D}" install || die "emake install failed"
93 rm -rf "${D}"/usr/share/doc/${PN}
94 rm -f "${D}"/etc/stunnel/stunnel.conf-sample "${D}"/usr/bin/stunnel3 \
95 "${D}"/usr/share/man/man8/stunnel.{fr,pl}.8
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 doc/en/transproxy.txt
102 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
103 tools/importCA.html
104
105 insinto /etc/stunnel
106 doins "${FILESDIR}"/stunnel.conf
107 newinitd "${FILESDIR}"/stunnel.rc6 stunnel
108
109 keepdir /var/run/stunnel
110 fowners stunnel:stunnel /var/run/stunnel
111 }
112
113 pkg_postinst() {
114 if [ ! -f "${ROOT}"/etc/stunnel/stunnel.key ]; then
115 install_cert /etc/stunnel/stunnel
116 chown stunnel:stunnel "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
117 chmod 0640 "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem}
118 fi
119
120 if [ ! -z "$(grep /etc/stunnel/stunnel.pid \
121 "${ROOT}"/etc/stunnel/stunnel.conf )" ] ; then
122
123 ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
124 ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
125 ewarn "the update takes place"
126 ewarn
127 ewarn "The new location will be /var/run/stunnel/stunnel.pid"
128 fi
129 }