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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Mon Feb 7 19:46:40 2005 UTC (9 years, 5 months ago) by corsair
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
Stable on ppc64; -r8 no longer needed -> removed
(Portage version: 2.0.51-r15)

1 # Copyright 1999-2005 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-r8.ebuild,v 1.18 2005/01/19 13:05:36 kumba Exp $
4
5 inherit eutils
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 sparc x86"
16 IUSE="selinux"
17
18 DEPEND="virtual/libc
19 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )
20 >=sys-apps/portage-2.0.51"
21 RDEPEND="selinux? ( sec-policy/selinux-portmap )"
22
23 pkg_setup() {
24 enewgroup rpc 111
25 enewuser rpc 111 /bin/false /dev/null rpc
26 }
27
28 src_unpack() {
29 unpack ${A}
30
31 cd ${S}
32 epatch ${FILESDIR}/${PN}_5beta.dif
33
34 # Redhat patches
35 epatch ${FILESDIR}/${PN}-4.0-malloc.patch
36 epatch ${FILESDIR}/${PN}-4.0-cleanup.patch
37 epatch ${FILESDIR}/${PN}-4.0-rpc_user.patch
38 epatch ${FILESDIR}/${PN}-4.0-sigpipe.patch
39
40 # Should include errno.h, and not define as external. Fix
41 # relocation error and build problem with glibc-2.3.2 cvs ...
42 # <azarah@gentoo.org> (31 Dec 2002).
43 epatch ${FILESDIR}/${P}-include-errno_h.patch
44
45 # Get portmap to use our CFLAGS ...
46 sed -e "s:-O2:${CFLAGS}:" -i Makefile || die
47 }
48
49 src_compile() {
50 local WRAP_DIR="${ROOT}/usr/lib"
51
52 [ -f "${ROOT}/lib/libwrap.a" ] && WRAP_DIR="${ROOT}/lib"
53
54 make FACILITY=LOG_AUTH \
55 ZOMBIES='-DIGNORE_SIGCHLD' \
56 WRAP_DIR="${WRAP_DIR}" \
57 LIBS="-Wl,-Bstatic -lwrap -lutil -Wl,-Bdynamic -lnsl" \
58 AUX= || die
59 }
60
61 src_install() {
62 into /
63 dosbin portmap || die "portmap"
64 into /usr
65 dosbin pmap_dump pmap_set || die "pmap"
66
67 doman portmap.8 pmap_dump.8 pmap_set.8
68 dodoc BLURB CHANGES README
69 newinitd ${FILESDIR}/portmap.rc6 portmap
70 }

  ViewVC Help
Powered by ViewVC 1.1.20