summaryrefslogtreecommitdiff
path: root/net-nds/ypbind
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-nds/ypbind
reinit the tree, so we can have metadata
Diffstat (limited to 'net-nds/ypbind')
-rw-r--r--net-nds/ypbind/Manifest8
-rw-r--r--net-nds/ypbind/files/ypbind.confd-r14
-rw-r--r--net-nds/ypbind/files/ypbind.initd40
-rw-r--r--net-nds/ypbind/files/ypbind.service11
-rw-r--r--net-nds/ypbind/metadata.xml5
-rw-r--r--net-nds/ypbind/ypbind-1.37.2-r1.ebuild64
6 files changed, 132 insertions, 0 deletions
diff --git a/net-nds/ypbind/Manifest b/net-nds/ypbind/Manifest
new file mode 100644
index 000000000000..0f536c42e9c3
--- /dev/null
+++ b/net-nds/ypbind/Manifest
@@ -0,0 +1,8 @@
+AUX ypbind.confd-r1 112 SHA256 79f6c6ed4875f00fe702f69e9a6180a032d5a47f3e58e892e6ba0e2746b6fec8 SHA512 31fb25657d330960e11d0a8bb80c75d7b91bbb10ff57568cef265b6599cd62d9ea7bcb2dd67a1f2b10757c3b95b4b2045887661611c031854378daa036300df1 WHIRLPOOL dae9ebd8490a535fadcc06e777b520f3c317386ea0f63e33bab200d2d3b31fd6c664e8a4c2e331b5db26afde6b0ddb96dc47e66dcbdac24a47fe4d11537b5a5e
+AUX ypbind.initd 800 SHA256 fad2c4c9927edd6a3b7479dba733f67c5cfef399de133c1b4a69ac0526692dbd SHA512 8fd49154416311fc0d7cf6b164121148730547169817511d6bb527ae76b4a52df6c27091e758635b526808a5deb23124892917e08316a59c66e624f01d7b9419 WHIRLPOOL 9652efbd415651cdff265e98ea71fae6de473bbc02f58e562f848f92857b0fc7e0ea969805ba9f719ec445967e9f593855ed761d27839a3eddd8bcfb0e849132
+AUX ypbind.service 252 SHA256 91be3d88ca57f491e3f508eaef7c6e1d6d751edf6b1acd50dc8b586730ed1bc6 SHA512 7bcf9e3e63d6e00228dfad1a610a0b5941857874278d31e24eba8d9dd251be9b5a8ba5912f87b4ea51718340c87d87e199509e8216e00f5462e4392dbbbc3fbe WHIRLPOOL 0a3e981091905a2f48cef4179f850ee8cfc4b9f5061ce3d70307c2b97cedca81f6deaefee11a011e75d1046c4bceb82e3fd8d625508f5b222857b7a7b723a95c
+DIST ypbind-mt-1.37.2.tar.bz2 197280 SHA256 abe842b7943bcee4685a63fcd7e40954ac8b97fa94b4a470be9520a6ccde063d SHA512 b101a1144b6886ff02d4ac83705313e20dac998aa30239d8ae34a0413a8deb4e786bbe3b549368119408593ceb40a95170b345c119a23b8fdf2461746c70a7be WHIRLPOOL 74bae5da90187e8e99d514ce25309dfeecd4ea93768bc1810ba6fcaa07acc643991893779496cd8faedc022bc26e565770e24cf258061662c105b42b2c02be9b
+EBUILD ypbind-1.37.2-r1.ebuild 1427 SHA256 e7371f74bc54f5680f46bb4d87457d34d19e7c3f8659738de166d842db6608cb SHA512 c75c822741870e5d67ac5f2c81a398d2fee3e8b68349743bde5faa0c64afcb32aec400b2e4d920d07237b9d42fc3d8bd14a96ca27a5d8bf5623683d01386968b WHIRLPOOL 4795c1f05d9216fd1d47f9112a265140f850bec783efc61e6a76d1aab7d978b81c3a16f0eb302f8f9da2981286ca9f48790427bbc8cd0f5ae356d454c24cc944
+MISC ChangeLog 2994 SHA256 295f73456a8273d65afde4442363665e15467faa7cc8e5ed523320d29b861ab9 SHA512 7cde5072705ec568a5f11c154cf0f2e722f9a879e58368ed774cdaac169afe2abe88b04ebfac92080961030cde083c1b5da6799e32fe9eda9bef04c011e31b5f WHIRLPOOL 24b0433eedf02d440e79c09adf2ba237fadd28bb7f9ed8600f411ad209d553439b0bc19c49183a6d5b268320a1e11c1d0ba908268d6388761513d60353605fa7
+MISC ChangeLog-2015 12257 SHA256 10c706124ad8dc1c23ef49664a67cc45e7f2536bc2ccee744c30a7466fab1291 SHA512 816ec2297cb7b77c902b550b9cad0e28d6855279ec72a2b333775ebcf87e11d040ecfcb1cac162a7727e555d611d8b6abeeb25908f12166d923e2d9581396f7c WHIRLPOOL bed01c7ea47874d51c1f46336da4f72915de70e8154634f0ac26018a659a643e5f46f5fa5a6528f421505aeed02ddd2f4b7f99f5407f52edb7d0c99223b4f136
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-nds/ypbind/files/ypbind.confd-r1 b/net-nds/ypbind/files/ypbind.confd-r1
new file mode 100644
index 000000000000..91cdc60c1030
--- /dev/null
+++ b/net-nds/ypbind/files/ypbind.confd-r1
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/ypbind
+
+# Set any command line options you want to pass to ypbind.
+YPBIND_OPTS=""
diff --git a/net-nds/ypbind/files/ypbind.initd b/net-nds/ypbind/files/ypbind.initd
new file mode 100644
index 000000000000..27c907ad21b0
--- /dev/null
+++ b/net-nds/ypbind/files/ypbind.initd
@@ -0,0 +1,40 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net portmap
+ use ypserv domainname
+}
+
+start() {
+ ebegin "Starting ypbind"
+ if [ -n "${YPBIND_OPTS}" ]; then
+ YOPTS="-- ${YPBIND_OPTS}"
+ fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/ypbind ${YOPTS}
+ local ret=$?
+ if [ $ret -eq 0 ] ; then
+ notfound=1
+ for i in 0 1 2 3 4 5 6 7 8 9
+ do
+ ypwhich >/dev/null 2>&1 && { notfound=0; break; }
+ sleep 1
+ done
+ if [ $notfound -eq 1 ] ; then
+ eend 1 "No NIS server found"
+ else
+ eend 0
+ fi
+ else
+ eend $ret
+ fi
+}
+
+stop() {
+ ebegin "Stopping ypbind"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ypbind
+ eend $?
+ # Remove binding files, if ypbind "forgets" it
+ rm -f /var/yp/binding/*
+}
diff --git a/net-nds/ypbind/files/ypbind.service b/net-nds/ypbind/files/ypbind.service
new file mode 100644
index 000000000000..a04ed71fe0d0
--- /dev/null
+++ b/net-nds/ypbind/files/ypbind.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=YP Bind
+Requires=rpcbind.service domainname.service
+After=rpcbind.service domainname.service network.target
+Before=systemd-user-sessions.service
+
+[Service]
+ExecStart=/usr/sbin/ypbind -foreground
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-nds/ypbind/metadata.xml b/net-nds/ypbind/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-nds/ypbind/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/net-nds/ypbind/ypbind-1.37.2-r1.ebuild b/net-nds/ypbind/ypbind-1.37.2-r1.ebuild
new file mode 100644
index 000000000000..e21f9b413783
--- /dev/null
+++ b/net-nds/ypbind/ypbind-1.37.2-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit readme.gentoo systemd
+
+MY_P=${PN}-mt-${PV}
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Multithreaded NIS bind service (ypbind-mt)"
+HOMEPAGE="http://www.linux-nis.org/nis/ypbind-mt/index.html"
+SRC_URI="http://www.linux-nis.org/download/ypbind-mt/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="debug dbus nls slp systemd"
+
+RDEPEND="
+ debug? ( dev-libs/dmalloc )
+ dbus? ( dev-libs/dbus-glib )
+ slp? ( net-libs/openslp )
+ systemd? (
+ net-nds/rpcbind
+ >=net-nds/yp-tools-2.12-r1
+ sys-apps/systemd )
+ !systemd? (
+ net-nds/yp-tools
+ || ( net-nds/portmap net-nds/rpcbind ) )
+"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+"
+
+DOC_CONTENTS="
+ If you are using dhcpcd, be sure to add the -Y option to
+ dhcpcd_eth0 (or eth1, etc.) to keep dhcpcd from clobbering
+ /etc/yp.conf.
+"
+
+src_prepare() {
+ ! use systemd && export ac_cv_header_systemd_sd_daemon_h=no
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ $(use_enable slp) \
+ $(use_with debug dmalloc) \
+ $(use_enable dbus dbus-nm)
+}
+
+src_install() {
+ default
+
+ insinto /etc
+ newins etc/yp.conf yp.conf.example
+
+ newconfd "${FILESDIR}/ypbind.confd-r1" ypbind
+ newinitd "${FILESDIR}/ypbind.initd" ypbind
+ use systemd && systemd_dounit "${FILESDIR}/ypbind.service"
+
+ readme.gentoo_create_doc
+}