diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-nds/portmap |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-nds/portmap')
-rw-r--r-- | net-nds/portmap/Manifest | 9 | ||||
-rw-r--r-- | net-nds/portmap/files/portmap-6.0-tcpd.patch | 18 | ||||
-rw-r--r-- | net-nds/portmap/files/portmap.confd | 5 | ||||
-rw-r--r-- | net-nds/portmap/files/portmap.rc6 | 58 | ||||
-rw-r--r-- | net-nds/portmap/metadata.xml | 8 | ||||
-rw-r--r-- | net-nds/portmap/portmap-6.0.ebuild | 55 | ||||
-rw-r--r-- | net-nds/portmap/portmap-9999.ebuild | 47 |
7 files changed, 200 insertions, 0 deletions
diff --git a/net-nds/portmap/Manifest b/net-nds/portmap/Manifest new file mode 100644 index 000000000000..74334186ee72 --- /dev/null +++ b/net-nds/portmap/Manifest @@ -0,0 +1,9 @@ +AUX portmap-6.0-tcpd.patch 341 SHA256 2534aca162edac7ab976474263bebcd7cbd36348d0c593fd822eb84b8ef8dccb SHA512 95788f1adb385d4f06681e7197b4160771c2d27afab1f031ea894ee12f655f787ed47407c5debea9c360ab2410185d75496ca0b1ad31d827f46dd82ebe832a20 WHIRLPOOL dd8ce3779990d8794ed46c2fd3e41dd34f6fa4f4b65a533111272daeef57eb2699b683c35744f7a22bcc0e942175892bc767baa1ee4cc0904f9748413f19dad8 +AUX portmap.confd 146 SHA256 f4e4bd0ce350ed236cfbe369101b8429f2108a174253daffe783353b416f0120 SHA512 2558dfc74c08f7844cb2388bd98f34afe935b3c395571f3d55838e818ff437aa936ebb42c7b4aa82f4872e0f7ef6b5d23b42439462bd769cb8eef56a2852619c WHIRLPOOL 15566030dd1c46697ebaa707c6b6004c158c6689f515df683a3483e47047a984c7dcfa889eca3d8bd8be4c65038cf6e4b3e844346d808bf0f5c4faf8d26ca137 +AUX portmap.rc6 1181 SHA256 62fdb23a5e328de7528ef853cb3a01d2a2f7ea0ad1f5ad69335bfa8cf12f5be5 SHA512 58e8a5364a134736f6d101e85313afe76abdf086838babae71999b3845365a0484ef363f8fe783833c84c6f2edf68fe89a84aab90a090fe995aa10c44bb58bb9 WHIRLPOOL 549621b56abb00041c5f20200009b1f72d07e2ebb190c2c789fa3f7631aae557079654cc90442d055d015349e9ff3d6d39733c04d5681da0fa746370553c4cba +DIST portmap-6.0.tgz 22251 SHA256 02c820d39f3e6e729d1bea3287a2d8a6c684f1006fb9612f97dcad4a281d41de SHA512 cbcbcff34d7f8c82b8e89464467c313a170d3d1756ae47faab1e90bc01fac8c3b6ff8bc8c35bfe32d9e584aafa8248eb37841d1a54f70db6b54ab54ad7e23665 WHIRLPOOL c9fa81fb02e26fa677cab06f2eb02e365d7408e337514cac384e65f9774a37cde6fd0ef49335cb9af65f0be70a440d4bf63b650cb50f9d5064a43abffa7d517b +EBUILD portmap-6.0.ebuild 1215 SHA256 3e3831b60b5a197776de4304efe27a772b4a4389ff90e06e98a71ea14b9c0d97 SHA512 9cf9c0882c7e78106b32a1f49042e4f208e210e80b50030c3b4cac1dd5c5cde29b0bda54584ebe7046b361de8c19d099ac0a8f89de0d50fc4020163e726fd83c WHIRLPOOL 8077368de1349a6972b884aeb9dd0667b3644f22011d28b7432714466721c526e405c8b1e5bcb060a488e1bf33cb2c0ad78db9d296c1dec3d6fa1e4c31731e4a +EBUILD portmap-9999.ebuild 868 SHA256 0835273dc2ea431124028b9c80a29fbd08f44323ada0914129e05104cdc91d78 SHA512 b6f456348da6facffc18c0859b7acd94af18381a9b93d4bf24bf9204bbe31f3ff168616d70bf9ae946638f1c6f1f4bedf8d4000b8542bb3e47fe055d970484cb WHIRLPOOL dbae5cd79e04455587ab64d1b72ce2d335d6b95ac16b78be1d5673514bb0281971b7128c48ed44a466452ed9b8f9978818df8878e591084c596d479c1d8e88d4 +MISC ChangeLog 2794 SHA256 f754fd9679a67fa1f57c2de3aacf8da90c262fd3cf6be15129150ccada1b64f3 SHA512 07dee1a135d0e9beee67d1eabb7e0a1e48b1cba51201246d90e5dc59ff23d4ef560ca5ace3f07a9b2cd68d75878b0d8b0db383a694cf9aeeae699e1300aa20f0 WHIRLPOOL eadfcd5a7062894a952198e4deca560885aa0ac36011ce2008d1c91b49193f001864b684cb15aaab145ffbc4650e8beaba0200e9dcc21732a8c163b9668842c6 +MISC ChangeLog-2015 6870 SHA256 470b45600ade42c0c9c710ef3081dd9622c820b1f456b0c2207598fec9939b49 SHA512 81f1f71013a292c27da585374a098d8cd9426634e133d2ddfe78f3dff2cc742563227dc59ea7b73461e0115538d4cbecce267d5b21bb67a0ad804da247927510 WHIRLPOOL 4914bcd5ebd8b96695bebdcff7324bf0d85b83316417437c33d847108b5f8d0fbd0a987550d72e35f0c8c30c8c94f0e1497c27a7ac9bac344e18d248dd2cf9bb +MISC metadata.xml 253 SHA256 d82c33ef453113a5c1ebe250dcba373c22934a69b0a86c6ab15a5ca589c25b91 SHA512 54a9069aeb4165d2dff3d473c8001bc51613aac9dff3f7f5e9971a9891a737a31511ffa11cbd523febe581ac1d9de2bdf2f40410f0c4239138f2ccca3ef15555 WHIRLPOOL e5aee23acff864609953a1e4de768f0e4aef704b44c53c021f28573e1ca5c99f1a46d92935ecec2449f7b4419a36d8373127d0ecfa8d7bae72d835e1839eb3f8 diff --git a/net-nds/portmap/files/portmap-6.0-tcpd.patch b/net-nds/portmap/files/portmap-6.0-tcpd.patch new file mode 100644 index 000000000000..c6af8f8c80b4 --- /dev/null +++ b/net-nds/portmap/files/portmap-6.0-tcpd.patch @@ -0,0 +1,18 @@ +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> + diff --git a/net-nds/portmap/files/portmap.confd b/net-nds/portmap/files/portmap.confd new file mode 100644 index 000000000000..c2756c992b4a --- /dev/null +++ b/net-nds/portmap/files/portmap.confd @@ -0,0 +1,5 @@ +# /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" diff --git a/net-nds/portmap/files/portmap.rc6 b/net-nds/portmap/files/portmap.rc6 new file mode 100644 index 000000000000..e123f3df1e6f --- /dev/null +++ b/net-nds/portmap/files/portmap.rc6 @@ -0,0 +1,58 @@ +#!/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 +} diff --git a/net-nds/portmap/metadata.xml b/net-nds/portmap/metadata.xml new file mode 100644 index 000000000000..56c124413057 --- /dev/null +++ b/net-nds/portmap/metadata.xml @@ -0,0 +1,8 @@ +<?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> diff --git a/net-nds/portmap/portmap-6.0.ebuild b/net-nds/portmap/portmap-6.0.ebuild new file mode 100644 index 000000000000..6beb27c6e571 --- /dev/null +++ b/net-nds/portmap/portmap-6.0.ebuild @@ -0,0 +1,55 @@ +# 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 +} diff --git a/net-nds/portmap/portmap-9999.ebuild b/net-nds/portmap/portmap-9999.ebuild new file mode 100644 index 000000000000..76484e3a2d0e --- /dev/null +++ b/net-nds/portmap/portmap-9999.ebuild @@ -0,0 +1,47 @@ +# 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 +} |