+++ /dev/null
-DIST portmap-6.0.tgz 22251 BLAKE2B 55b222ab6987db4fe843dba0087fb802b9272c6607a8504135eaa0a41b49bc8e04c875690c1cdf547b6f6b39f273e0f261549c2b9e7639b0689c1f35d33affe5 SHA512 cbcbcff34d7f8c82b8e89464467c313a170d3d1756ae47faab1e90bc01fac8c3b6ff8bc8c35bfe32d9e584aafa8248eb37841d1a54f70db6b54ab54ad7e23665
+++ /dev/null
-Enable compile without tcp-wrappers
-
-Patch by Timothy Redaelli <drizzt@gentoo.org>
-
-http://bugs.gentoo.org/178242
-
---- portmap_6.0/pmap_check.c
-+++ portmap_6.0/pmap_check.c
-@@ -44,7 +44,9 @@
- #include <netinet/in.h>
- #include <rpc/rpcent.h>
- #endif
-+#ifdef HOSTS_ACCESS
- #include <tcpd.h>
-+#endif
- #include <arpa/inet.h>
- #include <grp.h>
-
+++ /dev/null
-# /etc/conf.d/portmap: config file for /etc/init.d/portmap
-
-# Options for `portmap`.
-# For a full list, just run `portmap -h`.
-#PORTMAP_OPTS="-l"
+++ /dev/null
-#!/sbin/openrc-run
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- use net
- before inetd
- before xinetd
-}
-
-checkconfig() {
- if [ -e /proc/config.gz ] ; then
- if zcat /proc/config.gz | grep -s SUNRPC_REGISTER_V4=y ; then
- eerror "portmap does not work with SUNRPC_REGISTER_V4=y;"
- eerror "disable it or use the net-nds/rpcbind package."
- return 1
- fi
- fi
- return 0
-}
-
-start() {
- checkconfig || return 1
-
- ebegin "Starting portmap"
- start-stop-daemon --start --quiet --exec /sbin/portmap -- ${PORTMAP_OPTS}
- local ret=$?
- eend ${ret}
- # without, if a service depending on portmap is started too fast,
- # connecting to portmap will fail -- azarah
- sleep 1
- return ${ret}
-}
-
-stop() {
- ebegin "Stopping portmap"
- start-stop-daemon --stop --quiet --exec /sbin/portmap
- eend $?
-}
-
-restart() {
- # Dump the portmapper's table before stopping
- ebegin "Saving portmap table"
- local pmap=$(pmap_dump)
- eend $?
-
- # Stop and restart portmapper
- svc_stop
- sleep 1
- svc_start
-
- # Reload the portmapper's table
- if [ -n "${pmap}" ] ; then
- ebegin "Reloading portmap table"
- echo "${pmap}" | pmap_set
- eend $?
- fi
-}
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="project">
- <email>base-system@gentoo.org</email>
- <name>Gentoo Base System</name>
-</maintainer>
-</pkgmetadata>
+++ /dev/null
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-inherit eutils toolchain-funcs user
-
-DESCRIPTION="daemon for implementing remote procedure calls between computer programs"
-HOMEPAGE="http://neil.brown.name/portmap/"
-SRC_URI="http://neil.brown.name/portmap/${P}.tgz"
-
-LICENSE="BSD GPL-2" # GPL-2 only for init script
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
-IUSE="selinux tcpd"
-
-DEPEND="
- tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )
-"
-
-RDEPEND="
- selinux? ( sec-policy/selinux-portmap )
-"
-
-S=${WORKDIR}/${PN}_${PV}
-
-pkg_setup() {
- enewgroup rpc 111
- enewuser rpc 111 -1 /dev/null rpc
-}
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-tcpd.patch #178242
-
- # Once HPPA gets PIE's fixed, this can go away
- use hppa && sed -e '/LDFLAGS/s/^/#/' -i "${S}/Makefile" #190458
-}
-
-src_compile() {
- tc-export CC
- emake NO_TCP_WRAPPER="$(use tcpd || echo NO)" || die
-}
-
-src_install() {
- into /
- dosbin portmap || die "portmap"
- into /usr
- dosbin pmap_dump pmap_set || die "pmap"
-
- doman *.8
- dodoc BLURBv5 CHANGES README*
-
- newinitd "${FILESDIR}"/portmap.rc6 portmap
- newconfd "${FILESDIR}"/portmap.confd portmap
-}
+++ /dev/null
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-EGIT_REPO_URI="git://neil.brown.name/portmap"
-inherit toolchain-funcs user git-r3
-
-DESCRIPTION="Netkit - portmapper"
-HOMEPAGE="ftp://ftp.porcupine.org/pub/security/index.html"
-SRC_URI=""
-
-LICENSE="BSD GPL-2" # GPL-2 only for init script
-SLOT="0"
-KEYWORDS=""
-IUSE="selinux tcpd"
-
-DEPEND="
- tcpd? ( >=sys-apps/tcp-wrappers-7.6-r7 )
-"
-
-RDEPEND="
- selinux? ( sec-policy/selinux-portmap )
-"
-
-pkg_setup() {
- enewgroup rpc 111
- enewuser rpc 111 -1 /dev/null rpc
-}
-
-src_compile() {
- tc-export CC
- emake NO_TCP_WRAPPER="$(use tcpd || echo NO)"
-}
-
-src_install() {
- into /
- dosbin portmap
- into /usr
- dosbin pmap_dump pmap_set
-
- doman *.8
- dodoc BLURBv5 CHANGES README*
-
- newinitd "${FILESDIR}"/portmap.rc6 portmap
- newconfd "${FILESDIR}"/portmap.confd portmap
-}