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

Contents of /net-misc/stunnel/stunnel-4.04-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Wed Jun 22 04:28:25 2005 UTC (9 years, 3 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
cleaning out old stuff, adding 4.10 for testing
(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.04-r3.ebuild,v 1.8 2005/02/11 20:58:27 kaiowas Exp $
4
5 inherit ssl-cert eutils
6
7 IUSE="static selinux"
8 DESCRIPTION="TLS/SSL - Port Wrapper"
9 SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
10 HOMEPAGE="http://stunnel.mirt.net"
11 DEPEND="virtual/libc >=dev-libs/openssl-0.9.6j"
12 RDEPEND=">=dev-libs/openssl-0.9.6j
13 selinux? ( sec-policy/selinux-stunnel )"
14 KEYWORDS="~x86 ~sparc alpha amd64"
15 LICENSE="GPL-2"
16 SLOT="0"
17
18 src_unpack() {
19 unpack ${A}; cd ${S}
20 epatch ${FILESDIR}/${P}-gentoo.diff
21 }
22
23 src_compile() {
24 use static && myconf="${myconf} --disable-shared --enable-static"
25 use static && LDADD="${LDADD} -all-static" && export LDADD
26 econf ${myconf} || die
27 emake || die
28 }
29
30 src_install() {
31 insinto /etc/stunnel
32 docert stunnel
33
34 into /usr
35 dosbin src/stunnel
36 dodoc AUTHORS BUGS COPYING COPYRIGHT.GPL CREDITS INSTALL NEWS PORTS README TODO
37 dodoc doc/en/transproxy.txt
38 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html tools/importCA.html
39 doman doc/stunnel.8
40
41 insinto /usr/share/doc/${PVR}
42 doins tools/ca.pl tools/importCA.sh
43
44 exeinto /etc/init.d
45 newexe ${FILESDIR}/stunnel.rc6.${PVR} stunnel
46
47 dolib src/.libs/libstunnel.la
48 use static || newlib.so src/.libs/libstunnel.so libstunnel.so.${PV}
49 use static || dosym /usr/lib/libstunnel.so.${PV} /usr/lib/libstunnel.so
50
51 insinto /etc/stunnel
52 donewins ${FILESDIR}/stunnel.conf.${PVR} stunnel.conf
53 }
54
55 pkg_postinst() {
56 enewuser stunnel
57 enewgroup stunnel
58
59 chown stunnel /etc/stunnel
60
61 einfo "Starting from version 4 stunnel now uses a configuration file for setting up stunnels."
62 einfo "Stunnel can now also be run as a daemon"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20