/[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.16 - (show annotations) (download)
Fri Jun 1 04:05:38 2012 UTC (22 months, 2 weeks ago) by zmedico
Branch: MAIN
Changes since 1.15: +3 -3 lines
inherit user for enewgroup and enewuser

(Portage version: 2.2.0_alpha108_p12/cvs/Linux i686)

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.15 2011/02/06 10:26:21 leio 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="as-is"
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