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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Sun Nov 20 03:16:42 2005 UTC (9 years ago) by ramereth
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +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.05.ebuild,v 1.11 2005/02/11 20:58:27 kaiowas 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="x86 ppc sparc alpha arm amd64"
14 IUSE="static selinux"
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}; cd ${S}
23 epatch ${FILESDIR}/${P}-gentoo.diff
24 }
25
26 src_compile() {
27 use static && append-ldflags -all-static
28 econf \
29 `use_enable static` \
30 `use_enable !static shared` \
31 || die
32 emake || die
33 }
34
35 src_install() {
36 insinto /etc/stunnel
37 docert stunnel
38
39 into /usr
40 dosbin src/stunnel
41 dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO
42 dodoc doc/en/transproxy.txt
43 dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html tools/importCA.html
44 doman doc/stunnel.8
45
46 insinto /usr/share/doc/${PVR}
47 doins tools/ca.pl tools/importCA.sh
48
49 exeinto /etc/init.d
50 newexe ${FILESDIR}/stunnel.rc6.${PVR} stunnel
51
52 dolib src/.libs/libstunnel.la
53 use static || newlib.so src/.libs/libstunnel.so libstunnel.so.${PV}
54 use static || dosym /usr/lib/libstunnel.so.${PV} /usr/lib/libstunnel.so
55
56 insinto /etc/stunnel
57 donewins ${FILESDIR}/stunnel.conf.${PVR} stunnel.conf
58 }
59
60 pkg_postinst() {
61 enewuser stunnel
62 enewgroup stunnel
63
64 chown stunnel ${ROOT}/etc/stunnel
65
66 einfo "Starting from version 4 stunnel now uses a configuration file for setting up stunnels."
67 einfo "Stunnel can now also be run as a daemon"
68 }

  ViewVC Help
Powered by ViewVC 1.1.20