# $Id$ PNAME="portmap" PVER="6.0" PBUILD="r1" PCATEGORIE="net-nds" STATE="unstable" DESCRIPTION="The portmapper manages RPC connections, which are used by protocols such as NFS and NIS." HOMEPAGE="http://neil.brown.name/portmap/" DEPEND=">= sys-apps/tcp-wrappers-7.6" SRCFILE="${PNAME}_${PVER/5b/5beta}.tgz" SRCDIR="${BUILDDIR}/${PNAME}_${PVER/5b/5beta}" sminclude mtools SRC_URI=( http://neil.brown.name/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://neil.brown.name/portmap/ | lasttarball tgz" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes some compile issues mpatch portmap-5beta-compilation_fixes-3.patch || die mpatch portmap-5beta-glibc-errno-fix.patch || die # force use of our CFLAGS sed -e "s:-O2:${CFLAGS}:" -i Makefile || die } src_compile() { cd ${SRCDIR} local WRAP_DIR="${ROOT}/usr/$(mlibdir)" [[ -f /usr/$(mlibdir)/libwrap.a ]] && WRAP_DIR="/usr/$(mlibdir)" mmake FACILITY=LOG_AUTH \ ZOMBIES='-DIGNORE_SIGCHLD' \ WRAP_DIR="${WRAP_DIR}" \ LIBS="-Wl,-Bstatic -lwrap -lutil -Wl,-Bdynamic -lnsl" \ AUX= || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /sbin || die minstalldir /usr/sbin || die minstalldir /usr/share/man/man8 || die mmake BASEDIR=${BINDIR} install || die minstalldocs BLURB CHANGES README || die }