1 |
ramereth 09/08/23 01:34:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: stunnel-4.27-r1.ebuild |
5 |
Log: |
6 |
Fix init script for #107484 & #102179 (chroot & multiple instance support) |
7 |
(Portage version: 2.1.6.13/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.104 net-misc/stunnel/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.104&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?rev=1.104&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/ChangeLog?r1=1.103&r2=1.104 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v |
19 |
retrieving revision 1.103 |
20 |
retrieving revision 1.104 |
21 |
diff -u -r1.103 -r1.104 |
22 |
--- ChangeLog 9 Aug 2009 09:20:52 -0000 1.103 |
23 |
+++ ChangeLog 23 Aug 2009 01:34:35 -0000 1.104 |
24 |
@@ -1,6 +1,14 @@ |
25 |
# ChangeLog for net-misc/stunnel |
26 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.103 2009/08/09 09:20:52 ulm Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/ChangeLog,v 1.104 2009/08/23 01:34:35 ramereth Exp $ |
29 |
+ |
30 |
+*stunnel-4.27-r1 (22 Aug 2009) |
31 |
+ |
32 |
+ 22 Aug 2009; Lance Albertson <ramereth@g.o> |
33 |
+ +stunnel-4.27-r1.ebuild, +files/stunnel.initd: |
34 |
+ Clean up & fix init script to fix #107484. Additionally, add multiple |
35 |
+ stunnel instance support to fix #102179. Most of the init script ideas |
36 |
+ were modeled from the ubuntu stunnel4 script. |
37 |
|
38 |
09 Aug 2009; Ulrich Mueller <ulm@g.o> +stunnel-3.26.ebuild, |
39 |
-files/stunnel-4.21-setuid.patch: |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-misc/stunnel/stunnel-4.27-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/stunnel-4.27-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/stunnel-4.27-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: stunnel-4.27-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2009 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.27-r1.ebuild,v 1.1 2009/08/23 01:34:35 ramereth Exp $ |
53 |
|
54 |
inherit autotools ssl-cert eutils |
55 |
|
56 |
DESCRIPTION="TLS/SSL - Port Wrapper" |
57 |
HOMEPAGE="http://stunnel.mirt.net/" |
58 |
SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz" |
59 |
|
60 |
LICENSE="GPL-2" |
61 |
SLOT="0" |
62 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
63 |
IUSE="ipv6 selinux tcpd" |
64 |
|
65 |
DEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
66 |
>=dev-libs/openssl-0.9.8k" |
67 |
RDEPEND="${DEPEND} |
68 |
selinux? ( sec-policy/selinux-stunnel )" |
69 |
|
70 |
pkg_setup() { |
71 |
enewgroup stunnel |
72 |
enewuser stunnel -1 -1 -1 stunnel |
73 |
} |
74 |
|
75 |
src_unpack() { |
76 |
unpack ${A} |
77 |
cd "${S}" |
78 |
epatch "${FILESDIR}/${PN}-4.21-libwrap.patch" |
79 |
eautoreconf |
80 |
|
81 |
# Hack away generation of certificate |
82 |
sed -i -e "s/^install-data-local:/do-not-run-this:/" \ |
83 |
tools/Makefile.in || die "sed failed" |
84 |
} |
85 |
|
86 |
src_compile() { |
87 |
econf $(use_enable ipv6) \ |
88 |
$(use_enable tcpd libwrap) || die "econf died" |
89 |
emake || die "emake died" |
90 |
} |
91 |
|
92 |
src_install() { |
93 |
emake DESTDIR="${D}" install || die "emake install failed" |
94 |
rm -rf "${D}"/usr/share/doc/${PN} |
95 |
rm -f "${D}"/etc/stunnel/stunnel.conf-sample "${D}"/usr/bin/stunnel3 \ |
96 |
"${D}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
97 |
|
98 |
# The binary was moved to /usr/bin with 4.21, |
99 |
# symlink for backwards compatibility |
100 |
dosym ../bin/stunnel /usr/sbin/stunnel |
101 |
|
102 |
dodoc AUTHORS BUGS CREDITS PORTS README TODO ChangeLog doc/en/transproxy.txt |
103 |
dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \ |
104 |
tools/importCA.html |
105 |
|
106 |
insinto /etc/stunnel |
107 |
doins "${FILESDIR}"/stunnel.conf |
108 |
newinitd "${FILESDIR}"/stunnel.initd stunnel |
109 |
|
110 |
keepdir /var/run/stunnel |
111 |
fowners stunnel:stunnel /var/run/stunnel |
112 |
} |
113 |
|
114 |
pkg_postinst() { |
115 |
if [ ! -f "${ROOT}"/etc/stunnel/stunnel.key ]; then |
116 |
install_cert /etc/stunnel/stunnel |
117 |
chown stunnel:stunnel "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
118 |
chmod 0640 "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
119 |
fi |
120 |
|
121 |
einfo "If you want to run multiple instances of stunnel, create a new config" |
122 |
einfo "file ending with .conf in /etc/stunnel/. **Make sure** you change " |
123 |
einfo "\'pid= \' with a unique filename." |
124 |
} |