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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Mon Jun 5 02:52:37 2006 UTC (8 years, 2 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
stable on x86, files/ebuild cleanup
(Portage version: 2.0.54-r2)

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.09.ebuild,v 1.7 2005/06/18 21:58:44 ferdy 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.${PVR} stunnel.conf
48 docert stunnel
49 newinitd ${FILESDIR}/stunnel.rc6.${PVR} stunnel
50
51 keepdir /var/run/stunnel
52 }
53
54 pkg_postinst() {
55 enewgroup stunnel
56 enewuser stunnel -1 -1 -1 stunnel
57
58 chown stunnel:stunnel ${ROOT}/var/run/stunnel
59 chown stunnel:stunnel ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
60 chmod 0640 ${ROOT}/etc/stunnel/stunnel.{conf,crt,csr,key,pem}
61
62 if [ ! -z "$(egrep '/etc/stunnel/stunnel.pid' \
63 ${ROOT}/etc/stunnel/stunnel.conf )" ] ; then
64
65 ewarn "As of stunnel-4.09, the pid file will be located in /var/run/stunnel."
66 ewarn "Please stop stunnel, etc-update, and start stunnel back up to ensure"
67 ewarn "the update takes place"
68 ewarn ""
69 ewarn "The new location will be /var/run/stunnel/stunnel.pid"
70 ebeep 3
71 epause 3
72 fi
73 }

  ViewVC Help
Powered by ViewVC 1.1.20