blob: e7ac81e1d363203a62dcbd45b2b6032c6df44f84 (
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
68
69
70
71
72
73
74
75
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/tcp-wrappers/tcp-wrappers-7.6-r6.ebuild,v 1.10 2004/01/10 18:50:33 agriffis Exp $
inherit eutils
MY_P=${P//-/_}
S=${WORKDIR}/${MY_P}
DESCRIPTION="TCP Wrappers"
SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz
mirror://gentoo/${PF}-patches.tar"
HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"
IUSE="ipv6 static"
SLOT="0"
LICENSE="freedist"
KEYWORDS="x86 amd64 ppc sparc alpha mips hppa ~arm ia64 ppc64"
DEPEND="virtual/glibc
>=sys-apps/sed-4"
RDEPEND="virtual/glibc"
src_unpack() {
unpack ${A} ; cd ${S}
chmod ug+w Makefile
sed -i -e "s:-O:${CFLAGS}:" \
-e "s:AUX_OBJ=.*:AUX_OBJ= \\\:" \
Makefile
PATCHDIR=${WORKDIR}/${PV}-patches
epatch ${PATCHDIR}/${P}-makefile.patch.bz2
epatch ${PATCHDIR}/generic
use static || epatch ${PATCHDIR}/${P}-shared.patch.bz2
use ipv6 && epatch ${PATCHDIR}/${P}-ipv6-1.14.diff.bz2
}
src_compile() {
local myconf=""
use static || myconf="${myconf} -DHAVE_WEAKSYMS"
use ipv6 && myconf="${myconf} -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len"
make ${MAKEOPTS} \
REAL_DAEMON_DIR=/usr/sbin \
GENTOO_OPT="${myconf}" \
MAJOR=0 MINOR=${PV:0:1} REL=${PV:2:3} \
config-check || die
make ${MAKEOPTS} \
REAL_DAEMON_DIR=/usr/sbin \
GENTOO_OPT="${myconf}" \
MAJOR=0 MINOR=${PV:0:1} REL=${PV:2:3} \
linux || die
}
src_install() {
dosbin tcpd tcpdchk tcpdmatch safe_finger try-from
doman *.[358]
dosym hosts_access.5.gz /usr/share/man/man5/hosts.allow.5.gz
dosym hosts_access.5.gz /usr/share/man/man5/hosts.deny.5.gz
dolib.a libwrap.a
if [ -z `use static` ]; then
newlib.so libwrap.so libwrap.so.0.${PV}
dosym /usr/lib/libwrap.so.0.${PV} /usr/lib/libwrap.so.0
dosym /usr/lib/libwrap.so.0 /usr/lib/libwrap.so
fi
insinto /usr/include
doins tcpd.h
dodoc BLURB CHANGES DISCLAIMER README*
}
|