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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 25 00:45:38 2005 UTC (9 years, 2 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
added patch from #96896 and restored 3.26 for missing deps
(Portage version: 2.0.51.19)

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.ebuild,v 1.1 2005/06/22 04:28:25 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 }
26
27 src_compile() {
28 econf \
29 `use_enable ipv6`\
30 `use_with tcpd tcp-wrappers` \
31 || die "econf died"
32 emake || die "emake died"
33 }
34
35 src_install() {
36 make DESTDIR=${D} install || die "make install failed"
37 rm -rf ${D}/usr/share/doc/${PN}
38 rm -f ${D}/{etc/stunnel/stunnel.conf-sample,usr/sbin/stunnel3}
39 rm -f ${D}/usr/share/man/man8/{stunnel.fr.8,stunnel.pl.8}
40
41 dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO ChangeLog \
42 doc/en/transproxy.txt
43 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html \
44 tools/importCA.html
45
46 insinto /etc/stunnel
47 donewins ${FILESDIR}/stunnel.conf stunnel.conf
48 newinitd ${FILESDIR}/stunnel.rc6 stunnel
49 # Check if there's currently an cert already there
50 if [ ! -f /etc/stunnel/stunnel.key ]; then
51 docert stunnel
52 fi
53
54 keepdir /var/run/stunnel
55 }
56
57 pkg_postinst() {
58 enewgroup stunnel
59 enewuser stunnel -1 -1 -1 stunnel
60
61 chown stunnel:stunnel ${ROOT}/var/run/stunnel
62 chown stunnel:stunnel ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
63 chmod 0640 ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
64
65 if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' \
66 ${ROOT}/etc/stunnel/stunnel.conf )" ] ; then
67
68 ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
69 ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
70 ewarn "the update takes place"
71 ewarn ""
72 ewarn "The new location will be /var/run/stunnel/stunnel.pid"
73 ebeep 3
74 epause 3
75 fi
76 }

  ViewVC Help
Powered by ViewVC 1.1.20