/[gentoo-x86]/net-nds/portmap/portmap-5b-r9.ebuild
Gentoo

Contents of /net-nds/portmap/portmap-5b-r9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Tue Feb 12 04:27:27 2008 UTC (6 years, 6 months ago) by vapier
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -1 lines
FILE REMOVED
old

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/portmap-5b-r9.ebuild,v 1.16 2007/03/26 08:03:27 antarus Exp $
4
5 inherit eutils flag-o-matic toolchain-funcs
6
7 MY_P="${PN}_${PV}eta"
8 S="${WORKDIR}/${MY_P}"
9 DESCRIPTION="Netkit - portmapper"
10 HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"
11 SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz"
12
13 LICENSE="as-is"
14 SLOT="0"
15 KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 s390 sh sparc x86"
16 IUSE="selinux tcpd"
17
18 RDEPEND="selinux? ( sec-policy/selinux-portmap )
19 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )"
20 DEPEND="${RDEPEND}"
21
22 pkg_setup() {
23 enewgroup rpc 111
24 enewuser rpc 111 -1 /dev/null rpc
25 }
26
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30 epatch "${FILESDIR}"/${PN}_5beta.dif
31
32 # Redhat patches
33 epatch "${FILESDIR}"/${PN}-4.0-malloc.patch
34 epatch "${FILESDIR}"/${PN}-4.0-cleanup.patch
35 epatch "${FILESDIR}"/${PN}-4.0-rpc_user.patch
36 epatch "${FILESDIR}"/${PN}-4.0-sigpipe.patch
37
38 # Should include errno.h, and not define as external. Fix
39 # relocation error and build problem with glibc-2.3.2 cvs ...
40 # <azarah@gentoo.org> (31 Dec 2002).
41 epatch "${FILESDIR}"/${P}-include-errno_h.patch
42
43 # Patch to listen on loopback only #65199
44 epatch "${FILESDIR}"/${P}-loopback-only.patch
45
46 # Make tcp wrapper checks easier
47 epatch "${FILESDIR}"/${P}-optional-tcpd.patch
48
49 # Remove useless make variable #83000
50 epatch "${FILESDIR}"/${P}-no-SYS.patch
51 }
52
53 src_compile() {
54 local tcpd=""
55 use tcpd \
56 && tcpd="-lwrap" \
57 && append-flags -DHOSTS_ACCESS
58
59 emake \
60 CC="$(tc-getCC)" \
61 O="${CFLAGS}" \
62 WRAP_LIB="${tcpd}" \
63 || die
64 }
65
66 src_install() {
67 into /
68 dosbin portmap || die "portmap"
69 into /usr
70 dosbin pmap_dump pmap_set || die "pmap"
71
72 doman portmap.8 pmap_dump.8 pmap_set.8
73 dodoc BLURB CHANGES README
74
75 newinitd ${FILESDIR}/portmap.rc6 portmap
76 newconfd ${FILESDIR}/portmap.confd portmap
77 }

  ViewVC Help
Powered by ViewVC 1.1.20