/[gentoo-x86]/net-misc/stunnel/stunnel-4.10-r1.ebuild
Gentoo

Contents of /net-misc/stunnel/stunnel-4.10-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 20 03:16:42 2005 UTC (9 years, 1 month ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
version bump, stable on x86, removed old ebuilds
(Portage version: 2.0.51.22-r3)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.10-r1.ebuild,v 1.1 2005/06/25 00:45:38 ramereth Exp $
4
5 inherit ssl-cert eutils flag-o-matic
6
7 DESCRIPTION="TLS/SSL - Port Wrapper"
8 HOMEPAGE="http://stunnel.mirt.net/"
9 SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~sparc ~x86"
14 IUSE="ipv6 selinux tcpd"
15
16 DEPEND="virtual/libc
17 >=dev-libs/openssl-0.9.6j"
18 RDEPEND=">=dev-libs/openssl-0.9.6j
19 selinux? ( sec-policy/selinux-stunnel )"
20
21 src_unpack() {
22 unpack ${A}
23 # Hack away generation of certificate
24 sed -i s/^install-data-local:/do-not-run-this:/ "${S}"/tools/Makefile.in
25 epatch ${FILESDIR}/stunnel-4.10-inetd.patch
26 }
27
28 src_compile() {
29 econf \
30 `use_enable ipv6`\
31 `use_with tcpd tcp-wrappers` \
32 || die "econf died"
33 emake || die "emake died"
34 }
35
36 src_install() {
37 make DESTDIR=${D} install || die "make install failed"
38 rm -rf ${D}/usr/share/doc/${PN}
39 rm -f ${D}/{etc/stunnel/stunnel.conf-sample,usr/sbin/stunnel3}
40 rm -f ${D}/usr/share/man/man8/{stunnel.fr.8,stunnel.pl.8}
41
42 dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO ChangeLog \
43 doc/en/transproxy.txt
44 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
45 tools/importCA.html
46
47 insinto /etc/stunnel
48 donewins ${FILESDIR}/stunnel.conf stunnel.conf
49 newinitd ${FILESDIR}/stunnel.rc6 stunnel
50 # Check if there's currently an cert already there
51 if [ ! -f /etc/stunnel/stunnel.key ]; then
52 docert stunnel
53 fi
54
55 keepdir /var/run/stunnel
56 }
57
58 pkg_postinst() {
59 enewgroup stunnel
60 enewuser stunnel -1 -1 -1 stunnel
61
62 chown stunnel:stunnel ${ROOT}/var/run/stunnel
63 chown stunnel:stunnel ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
64 chmod 0640 ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
65
66 if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' \
67 ${ROOT}/etc/stunnel/stunnel.conf )" ] ; then
68
69 ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
70 ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
71 ewarn "the update takes place"
72 ewarn ""
73 ewarn "The new location will be /var/run/stunnel/stunnel.pid"
74 ebeep 3
75 epause 3
76 fi
77 }

  ViewVC Help
Powered by ViewVC 1.1.20