Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.44-r1.ebuild,v 1.1 2012/05/13 21:08:13 ramereth Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/net-misc/stunnel/stunnel-4.44-r1.ebuild,v 1.1 2012/05/13 21:08:13 ramereth Exp $ |
4 |
|
4 |
|
5 |
EAPI="2" |
5 |
EAPI="4" |
6 |
|
6 |
|
7 |
inherit autotools ssl-cert eutils |
7 |
inherit autotools ssl-cert eutils user |
8 |
|
8 |
|
9 |
DESCRIPTION="TLS/SSL - Port Wrapper" |
9 |
DESCRIPTION="TLS/SSL - Port Wrapper" |
10 |
HOMEPAGE="http://stunnel.mirt.net/" |
10 |
HOMEPAGE="http://stunnel.mirt.net/" |
Lines 12-18
Link Here
|
12 |
|
12 |
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
15 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
16 |
IUSE="ipv6 selinux tcpd xforward listen-queue" |
16 |
IUSE="ipv6 selinux tcpd xforward listen-queue" |
17 |
|
17 |
|
18 |
DEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
18 |
DEPEND="tcpd? ( sys-apps/tcp-wrappers ) |
Lines 37-50
Link Here
|
37 |
|
37 |
|
38 |
src_configure() { |
38 |
src_configure() { |
39 |
econf $(use_enable ipv6) \ |
39 |
econf $(use_enable ipv6) \ |
40 |
$(use_enable tcpd libwrap) || die "econf died" |
40 |
--with-ssl="${EPREFIX}"/usr \ |
|
|
41 |
$(use_enable tcpd libwrap) |
41 |
} |
42 |
} |
42 |
|
43 |
|
43 |
src_install() { |
44 |
src_install() { |
44 |
emake DESTDIR="${D}" install || die "emake install failed" |
45 |
emake DESTDIR="${D}" install |
45 |
rm -rf "${D}"/usr/share/doc/${PN} |
46 |
rm -rf "${ED}"/usr/share/doc/${PN} |
46 |
rm -f "${D}"/etc/stunnel/stunnel.conf-sample "${D}"/usr/bin/stunnel3 \ |
47 |
rm -f "${ED}"/etc/stunnel/stunnel.conf-sample "${ED}"/usr/bin/stunnel3 \ |
47 |
"${D}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
48 |
"${ED}"/usr/share/man/man8/stunnel.{fr,pl}.8 |
48 |
|
49 |
|
49 |
# The binary was moved to /usr/bin with 4.21, |
50 |
# The binary was moved to /usr/bin with 4.21, |
50 |
# symlink for backwards compatibility |
51 |
# symlink for backwards compatibility |
Lines 63-72
Link Here
|
63 |
} |
64 |
} |
64 |
|
65 |
|
65 |
pkg_postinst() { |
66 |
pkg_postinst() { |
66 |
if [ ! -f "${ROOT}"/etc/stunnel/stunnel.key ]; then |
67 |
if [ ! -f "${EROOT}"/etc/stunnel/stunnel.key ]; then |
67 |
install_cert /etc/stunnel/stunnel |
68 |
install_cert /etc/stunnel/stunnel |
68 |
chown stunnel:stunnel "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
69 |
chown stunnel:stunnel "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
69 |
chmod 0640 "${ROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
70 |
chmod 0640 "${EROOT}"/etc/stunnel/stunnel.{crt,csr,key,pem} |
70 |
fi |
71 |
fi |
71 |
|
72 |
|
72 |
einfo "If you want to run multiple instances of stunnel, create a new config" |
73 |
einfo "If you want to run multiple instances of stunnel, create a new config" |