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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Jun 22 04:28:25 2005 UTC (9 years, 6 months ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +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-r2.ebuild,v 1.6 2005/02/11 20:58:27 kaiowas Exp $
4
5 inherit 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"
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 into /usr
32 dosbin src/stunnel
33 dodoc AUTHORS BUGS COPYING COPYRIGHT.GPL CREDITS INSTALL NEWS PORTS README TODO
34 dodoc doc/en/transproxy.txt
35 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html tools/importCA.html
36 doman doc/stunnel.8
37
38 insinto /usr/share/doc/${PF}
39 doins tools/ca.pl tools/importCA.sh
40
41 exeinto /etc/init.d
42 newexe ${FILESDIR}/stunnel.rc6.${PF} stunnel
43
44 dolib src/.libs/libstunnel.la
45 use static || newlib.so src/.libs/libstunnel.so libstunnel.so.${PV}
46 use static || dosym /usr/lib/libstunnel.so.${PV} /usr/lib/libstunnel.so
47
48 insinto /etc/stunnel
49 donewins ${FILESDIR}/stunnel.conf.${PF} stunnel.conf
50
51 dosed "s:/usr/etc/stunnel:/etc/stunnel:" /etc/stunnel/stunnel.conf
52
53 dodir /etc/stunnel
54
55 }
56
57 pkg_postinst() {
58 enewuser stunnel
59 enewgroup 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