/[gentoo-x86]/sys-apps/tcp-wrappers/tcp-wrappers-7.6.22.ebuild
Gentoo

Contents of /sys-apps/tcp-wrappers/tcp-wrappers-7.6.22.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Jan 18 03:46:43 2014 UTC (7 months, 4 weeks ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
Add arm64 love.

(Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key D2E96200)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/tcp-wrappers/tcp-wrappers-7.6.22.ebuild,v 1.4 2013/02/17 20:06:54 zmedico Exp $
4
5 EAPI="4"
6
7 inherit eutils toolchain-funcs versionator flag-o-matic
8
9 MY_PV=$(get_version_component_range 1-2)
10 DEB_PV=$(get_version_component_range 3)
11 MY_P="${PN//-/_}_${MY_PV}"
12 DESCRIPTION="TCP Wrappers"
13 HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"
14 SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz
15 mirror://debian/pool/main/t/${PN}/${PN}_${MY_PV}.q-${DEB_PV}.debian.tar.gz"
16
17 LICENSE="tcp_wrappers_license"
18 SLOT="0"
19 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux"
20 IUSE="ipv6 netgroups static-libs"
21
22 S=${WORKDIR}/${MY_P}
23
24 src_prepare() {
25 EPATCH_OPTS="-p1" \
26 epatch $(sed -e 's:^:../debian/patches/:' ../debian/patches/series)
27 epatch "${FILESDIR}"/${PN}-7.6-headers.patch
28 epatch "${FILESDIR}"/${PN}-7.6-redhat-bug11881.patch
29 }
30
31 temake() {
32 emake \
33 REAL_DAEMON_DIR=/usr/sbin \
34 TLI= VSYSLOG= PARANOID= BUGS= \
35 AUTH="-DALWAYS_RFC931" \
36 AUX_OBJ="weak_symbols.o" \
37 DOT="-DAPPEND_DOT" \
38 HOSTNAME="-DALWAYS_HOSTNAME" \
39 NETGROUP=$(usex netgroups -DNETGROUPS "") \
40 STYLE="-DPROCESS_OPTIONS" \
41 LIBS=$(usex netgroups -lnsl "") \
42 LIB=$(usex static-libs libwrap.a "") \
43 AR="$(tc-getAR)" ARFLAGS=rc \
44 CC="$(tc-getCC)" \
45 RANLIB="$(tc-getRANLIB)" \
46 COPTS="${CFLAGS} ${CPPFLAGS}" \
47 LDFLAGS="${LDFLAGS}" \
48 "$@" || die
49 }
50
51 src_configure() {
52 tc-export AR CC RANLIB
53 append-cppflags -DHAVE_WEAKSYMS -DHAVE_STRERROR -DSYS_ERRLIST_DEFINED
54 use ipv6 && append-cppflags -DINET6=1 -Dss_family=__ss_family -Dss_len=__ss_len
55 temake config-check
56 }
57
58 src_compile() {
59 temake all
60 }
61
62 src_install() {
63 dosbin tcpd tcpdchk tcpdmatch safe_finger try-from || die
64
65 doman *.[358]
66 dosym hosts_access.5 /usr/share/man/man5/hosts.allow.5
67 dosym hosts_access.5 /usr/share/man/man5/hosts.deny.5
68
69 insinto /etc
70 newins "${FILESDIR}"/hosts.allow.example hosts.allow
71
72 insinto /usr/include
73 doins tcpd.h
74
75 into /usr
76 use static-libs && dolib.a libwrap.a
77 dolib.so shared/libwrap.so*
78 gen_usr_ldscript -a wrap
79
80 dodoc BLURB CHANGES DISCLAIMER README*
81 }
82
83 pkg_preinst() {
84 # don't clobber people with our default example config
85 [[ -e ${EROOT}/etc/hosts.allow ]] && cp -pP "${EROOT}"/etc/hosts.allow "${ED}"/etc/hosts.allow
86 }

  ViewVC Help
Powered by ViewVC 1.1.20