/[gentoo-x86]/net-nds/portmap/portmap-6.0.ebuild
Gentoo

Contents of /net-nds/portmap/portmap-6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Sun Dec 9 12:34:07 2012 UTC (23 months, 2 weeks ago) by ulm
Branch: MAIN
Changes since 1.16: +2 -2 lines
Fix LICENSE, bugs 446590 and 426102.

(Portage version: 2.1.11.34/cvs/Linux x86_64, signed Manifest commit with key E7BE08CA7DC6EA25)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/portmap-6.0.ebuild,v 1.16 2012/06/01 04:05:38 zmedico Exp $
4
5 inherit eutils toolchain-funcs user
6
7 DESCRIPTION="daemon for implementing remote procedure calls between computer programs"
8 HOMEPAGE="http://neil.brown.name/portmap/"
9 SRC_URI="http://neil.brown.name/portmap/${P}.tgz"
10
11 LICENSE="BSD GPL-2" # GPL-2 only for init script
12 SLOT="0"
13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
14 IUSE="selinux tcpd"
15
16 DEPEND="selinux? ( sec-policy/selinux-portmap )
17 tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )"
18
19 S=${WORKDIR}/${PN}_${PV}
20
21 pkg_setup() {
22 enewgroup rpc 111
23 enewuser rpc 111 -1 /dev/null rpc
24 }
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 epatch "${FILESDIR}"/${P}-tcpd.patch #178242
30
31 # Once HPPA gets PIE's fixed, this can go away
32 use hppa && sed -e '/LDFLAGS/s/^/#/' -i "${S}/Makefile" #190458
33 }
34
35 src_compile() {
36 tc-export CC
37 emake NO_TCP_WRAPPER="$(use tcpd || echo NO)" || die
38 }
39
40 src_install() {
41 into /
42 dosbin portmap || die "portmap"
43 into /usr
44 dosbin pmap_dump pmap_set || die "pmap"
45
46 doman *.8
47 dodoc BLURBv5 CHANGES README*
48
49 newinitd "${FILESDIR}"/portmap.rc6 portmap
50 newconfd "${FILESDIR}"/portmap.confd portmap
51 }

  ViewVC Help
Powered by ViewVC 1.1.20