blob: 3e9ae6d61f9cb0e444096696a1bb05eb2a6d58e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.05.ebuild,v 1.7 2004/08/18 23:10:03 aliz Exp $
inherit ssl-cert eutils flag-o-matic
DESCRIPTION="TLS/SSL - Port Wrapper"
HOMEPAGE="http://stunnel.mirt.net/"
SRC_URI="http://www.stunnel.org/download/stunnel/src/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc ~alpha arm amd64"
IUSE="static"
DEPEND="virtual/libc
>=dev-libs/openssl-0.9.6j"
RDEPEND=">=dev-libs/openssl-0.9.6j"
src_unpack() {
unpack ${A}; cd ${S}
epatch ${FILESDIR}/${P}-gentoo.diff
}
src_compile() {
use static && append-ldflags -all-static
econf \
`use_enable static` \
`use_enable !static shared` \
|| die
emake || die
}
src_install() {
insinto /etc/stunnel
docert stunnel
into /usr
dosbin src/stunnel
dodoc AUTHORS BUGS CREDITS INSTALL NEWS PORTS README TODO
dodoc doc/en/transproxy.txt
dohtml doc/stunnel.html doc/en/VNC_StunnelHOWTO.html tools/ca.html tools/importCA.html
doman doc/stunnel.8
insinto /usr/share/doc/${PVR}
doins tools/ca.pl tools/importCA.sh
exeinto /etc/init.d
newexe ${FILESDIR}/stunnel.rc6.${PVR} stunnel
dolib src/.libs/libstunnel.la
use static || newlib.so src/.libs/libstunnel.so libstunnel.so.${PV}
use static || dosym /usr/lib/libstunnel.so.${PV} /usr/lib/libstunnel.so
insinto /etc/stunnel
donewins ${FILESDIR}/stunnel.conf.${PVR} stunnel.conf
}
pkg_postinst() {
enewuser stunnel
enewgroup stunnel
chown stunnel ${ROOT}/etc/stunnel
einfo "Starting from version 4 stunnel now uses a configuration file for setting up stunnels."
einfo "Stunnel can now also be run as a daemon"
}
|