diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2004-04-24 18:45:55 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2004-04-24 18:45:55 +0000 |
commit | 2a807702e05e8971505aa989e848fd78d57d508d (patch) | |
tree | 0c8bf8db6e477fa08a37d8e9af2536b534833364 /net-nds/portmap/portmap-5b-r9.ebuild | |
parent | -fPIC change for amd64, ~amd64 (Manifest recommit) (diff) | |
download | gentoo-2-2a807702e05e8971505aa989e848fd78d57d508d.tar.gz gentoo-2-2a807702e05e8971505aa989e848fd78d57d508d.tar.bz2 gentoo-2-2a807702e05e8971505aa989e848fd78d57d508d.zip |
add new version supporting leaving out tcp-wrappers via USE flag.
Diffstat (limited to 'net-nds/portmap/portmap-5b-r9.ebuild')
-rw-r--r-- | net-nds/portmap/portmap-5b-r9.ebuild | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/net-nds/portmap/portmap-5b-r9.ebuild b/net-nds/portmap/portmap-5b-r9.ebuild new file mode 100644 index 000000000000..531a7e626d04 --- /dev/null +++ b/net-nds/portmap/portmap-5b-r9.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-nds/portmap/portmap-5b-r9.ebuild,v 1.1 2004/04/24 18:45:55 robbat2 Exp $ + +inherit eutils + +MY_P="${PN}_${PV}eta" +S="${WORKDIR}/${MY_P}" +DESCRIPTION="Netkit - portmapper" +SRC_URI="ftp://ftp.porcupine.org/pub/security/${MY_P}.tar.gz" +HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html" + +SLOT="0" +LICENSE="as-is" +KEYWORDS="-*" +#KEYWORDS="~x86 ~ppc ~sparc ~mips ~alpha ~hppa ~amd64 ~ia64 ~ppc64" + +DEPEND="virtual/glibc + tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )" +RDEPEND="selinux? ( sec-policy/selinux-portmap )" +IUSE="tcpd selinux" + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/${PN}_5beta.dif + + # Redhat patches + epatch ${FILESDIR}/${PN}-4.0-malloc.patch + epatch ${FILESDIR}/${PN}-4.0-cleanup.patch + epatch ${FILESDIR}/${PN}-4.0-rpc_user.patch + epatch ${FILESDIR}/${PN}-4.0-sigpipe.patch + + # Should include errno.h, and not define as external. Fix + # relocation error and build problem with glibc-2.3.2 cvs ... + # <azarah@gentoo.org> (31 Dec 2002). + epatch ${FILESDIR}/${P}-include-errno_h.patch + + # Get portmap to use our CFLAGS ... + sed -e "s:-O2:${CFLAGS}:" -i Makefile || die +} + +src_compile() { + local LIBS + local WRAP_DIR + local HOSTS_ACCESS + # libutil static as per -r8 + #LIBS="-Wl,-Bstatic -lutil -Wl,-Bdynamic -lnsl" + # libutil dynamic + LIBS="-Wl,-Bdynamic -lutil -Wl,-Bdynamic -lnsl" + WRAP_DIR="" + HOSTS_ACCESS="" + if use tcpd; then + WRAP_DIR="${ROOT}/usr/lib" + [ -f "${ROOT}/lib/libwrap.a" ] && WRAP_DIR="${ROOT}/lib" + # static libwrap as per -r8 + #LIBS="-Wl,-Bstatic -lwrap ${LIBS}" + # libwrap dynamic + LIBS="-Wl,-Bdynamic -lwrap ${LIBS}" + HOSTS_ACCESS="-DHOSTS_ACCESS" + else + sed -i -e "s:^WRAP_LIB:\#WRAP_LIB:" \ + -e "s:^HOSTS_ACCESS:\#HOSTS_ACCESS:" \ + -e 's:$(WRAP_DIR)/libwrap.a::g' \ + Makefile + fi + + make FACILITY=LOG_AUTH \ + ZOMBIES='-DIGNORE_SIGCHLD' \ + HOSTS_ACCESS="${HOSTS_ACCESS}" \ + WRAP_DIR="${WRAP_DIR}" \ + LIBS="${LIBS}" \ + AUX= || die +} + +src_install() { + into / ; dosbin portmap + into /usr ; dosbin pmap_dump pmap_set + doman portmap.8 pmap_dump.8 pmap_set.8 + + exeinto /etc/init.d + newexe ${FILESDIR}/portmap.rc6 portmap + + # Is this really the sort of thing we wanna be doing? :) + # ln -s ../../init.d/portmap ${D}/etc/runlevels/default/portmap + + dodoc BLURB CHANGES README +} + |