summaryrefslogtreecommitdiff
path: root/net-nds/ypserv
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/ypserv
reinit the tree, so we can have metadata
Diffstat (limited to 'net-nds/ypserv')
-rw-r--r--net-nds/ypserv/Manifest11
-rw-r--r--net-nds/ypserv/files/rpc.yppasswdd-r121
-rw-r--r--net-nds/ypserv/files/rpc.yppasswdd.confd7
-rw-r--r--net-nds/ypserv/files/rpc.ypxfrd-2.2321
-rw-r--r--net-nds/ypserv/files/rpc.ypxfrd.confd3
-rw-r--r--net-nds/ypserv/files/ypserv22
-rw-r--r--net-nds/ypserv/files/ypserv.confd4
-rw-r--r--net-nds/ypserv/metadata.xml5
-rw-r--r--net-nds/ypserv/ypserv-2.26-r1.ebuild78
9 files changed, 172 insertions, 0 deletions
diff --git a/net-nds/ypserv/Manifest b/net-nds/ypserv/Manifest
new file mode 100644
index 000000000000..48931e4b34e8
--- /dev/null
+++ b/net-nds/ypserv/Manifest
@@ -0,0 +1,11 @@
+AUX rpc.yppasswdd-r1 494 SHA256 870931c5a97510aa266b2df3c1b29fb314e7174cd59fd8b0541ce123ec7c24f3 SHA512 b4edaeba991c595718e3a4b79c90ab13fa7147f07be0c09e38450f6b83bb1bbc9612966c84074e919551b0ef2fd9ef729f8cce07621e67f240ce537d277c7af9 WHIRLPOOL 42f583fe0ddd2d5ed34007b954ad33b199608dd6a58d302fdf73c4586bb8963a030abba53242ac21dc2be5f7fe2d60a1528e9f304b1cbccfbb18c628d943a44d
+AUX rpc.yppasswdd.confd 260 SHA256 e46afe737bfc57aa31be1a441615fcc112e1ebf41d631c1929e00b81baca119d SHA512 2a96f5ef2bc38043f3cb02602b1fa61f312af0b30d875f5811aab7d5e2ebe1ce332fd1ef790554f5f799e4d2e398b81272f14b3486b5ac86c5db8ed2f3169ca5 WHIRLPOOL 521dcc0dec3de9da465662bfff3fd9c15954a005759432b6184f62c7d92b1a89ae06e108588e805643cf6f2b81f5cd21e74c7d6840e79ea0178450b2cf74c490
+AUX rpc.ypxfrd-2.23 537 SHA256 a0a1d437d66636ebb186e7249e8a7aacbff909dde544bd95eaf16f9956708ce1 SHA512 b804f338a464c8a88caa9a9c1b7c0b6a0b87a3db7f9b526aa394f43e8345be7e141b5d1181d808e89a57d626f2a8c946e211eb1710fbf1ca48482d9608da70a7 WHIRLPOOL a0a6fe84283a5a9c44e5874c64837074fa908fb513206eecc3abfabbfcbbb08aef9e872f34973903c98a79b85a444d84f07cb3603f3c109210eb9a3e30c0e53d
+AUX rpc.ypxfrd.confd 122 SHA256 bd1f245a362f85319e83965e8b825e66e686a4a0bf185ab8ec51fd335bc873c2 SHA512 b1bca2cec9ad4e6772a549f847af8e09191b7af1b175d7ee45170f207db1d263d061f333ca33b1a69d38a0202cedb3259b45e84b465ee7e5fe48ef8bcb798e1b WHIRLPOOL 6274ba6e661245d27cccdeb3e44163d62ed8bd196403c9753a6ae9c9eb03bf33ac436bdbd1a2fa4d0b5721e6b0fdb043f96fb1d0e47b0077435dcbd1a8eac83b
+AUX ypserv 477 SHA256 24d4bfd2d938b3b89ae89067e1249631f2a05a81a95772c82861700039f69ab4 SHA512 a66b5d786819633dd8b4324432d94f4129c89d02ba475cd9033f7f33a20b12217419e4cf295f52d2527235facbbdbbec7c5f9d3e2e99e88079720f624c6f740b WHIRLPOOL ff0b76e5504c657cc27fdf36efca3b84fb1bd775b3a5e99db4391bddfb2d5634e779f06f5318e257963ce3ce3cbd8082f58b3b37b863f84bfcd60afa4e778b44
+AUX ypserv.confd 95 SHA256 4edd475ca95d31cfcea20a8e6268024f8128423bc7ae67edb535e6811c64668e SHA512 4ad2efbf644bae1b3e749191965e8e8c40ad48576a4d27e4af0fc312d97ba749c5df14fd35abfeb402e2e247a12a4fedfffd0fa0e1ace64624b38bad7aa2f95c WHIRLPOOL 8455dafbedb65808bd18c30a37813c18bfe265d1480553b1c33d580d9d155e4748d0d1dea2697b953bfceaaeedb19fd79e82c17ba89de8597d6530bf391a9b91
+DIST ypserv-2.26.tar.bz2 196037 SHA256 ba71e4fa9659ebc32325eacb3daa0803332e9ca17e0d0779730ba0e2ece298f8 SHA512 03ae9dfc65cfcedab37f7b0945cf87b9c6e2d15d081d9e023ab6f1d7a8bfe9e00971d7ec4d0f6f040515bc9cd21e4a9fc76b1f4d6fecce9ea48c289b84305ad1 WHIRLPOOL 39b291a7bb798fedfa72143ad73d00f19069061d86bba6306b38451bb52e5fefc9644747974f528a488e6e945c0558a7fc902563abd92e388fc2ceb61a051b23
+EBUILD ypserv-2.26-r1.ebuild 2418 SHA256 a761b79c2cb2838bd391bef4d37ac41fd8855c34b1830c9d46b963947f62f2b8 SHA512 005f0aadceb69b33158ddd4e449033ade7c15542e6ad460d1766b22133e3aec733338c7a1f8ea3070c3f963a714a54695358e90faf311436d0f5b0ab8a83ad50 WHIRLPOOL 58cb9318a47484c628c1e78c8e89c9275aaaba82ededa5ec4b10d96a2b25e8dc4455aeca319d55c6765814da6fd97d1a8601b5dd103882a920b3ca54c9555b53
+MISC ChangeLog 3332 SHA256 32da1c7acf408d83d5dacf2b9abe6bbda84e8667861171589ae243469df76d0b SHA512 71d3c36b31395de05784c87e3dd01abf86fcd59e951527098a3a5cda3a842f321074082954c58dce3233218d827d83ab3b1319bd1c39c90801c08d73b2a1b1c5 WHIRLPOOL a03792d86a7642a51a33e5155be49b3b8a7cf2f6aa40435bcafb8b75cb802a8208f0dd545f8a16923f5fbca0ca3e955016093e616e0d175851353a99f0231129
+MISC ChangeLog-2015 8845 SHA256 9c33dad200c4251affd621f984901741e228ed911f46076f393c88ab3843464d SHA512 eaa3aa91bde482b1623d3d39c596878669926e0d0aa1d01fe0109890bde47c8b5046b18aa04bbcdf2fff54b22f08fbe8f8c97a444e8a861a053d8ab78aaa71a0 WHIRLPOOL 5a47b8bdad7bcb47be66bf8c4b05ccf549e9fd82f7e3d0c0026277e3e4391859ec20460d46c54a8b2f0ddc99ce87a091a6627cda3fb4069b7464ca1d75d443e9
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-nds/ypserv/files/rpc.yppasswdd-r1 b/net-nds/ypserv/files/rpc.yppasswdd-r1
new file mode 100644
index 000000000000..9c2c2b416c53
--- /dev/null
+++ b/net-nds/ypserv/files/rpc.yppasswdd-r1
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net portmap ypserv
+}
+
+start() {
+ ebegin "Starting rpc.yppasswdd"
+ YOPTS=""
+ if [ -n "${YPPASSWDD_OPTS}" ]; then YOPTS="-- ${YPPASSWDD_OPTS}"; fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/rpc.yppasswdd ${YOPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rpc.yppasswdd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/rpc.yppasswdd
+ eend $?
+}
diff --git a/net-nds/ypserv/files/rpc.yppasswdd.confd b/net-nds/ypserv/files/rpc.yppasswdd.confd
new file mode 100644
index 000000000000..0d6673630776
--- /dev/null
+++ b/net-nds/ypserv/files/rpc.yppasswdd.confd
@@ -0,0 +1,7 @@
+# -e chsh allows changing shell through ypchsh,
+# -e chfn allows changing GECOS ("finger") information through ypchfn,
+# -D <dir> allows specification of directory with yp/NIS sources
+# if other than /etc.
+#YPPASSWDD_OPTS="-e chsh -e chfn -D /var/yp/source"
+
+
diff --git a/net-nds/ypserv/files/rpc.ypxfrd-2.23 b/net-nds/ypserv/files/rpc.ypxfrd-2.23
new file mode 100644
index 000000000000..d096dbf266a8
--- /dev/null
+++ b/net-nds/ypserv/files/rpc.ypxfrd-2.23
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net portmap ypserv
+}
+
+start() {
+ ebegin "Starting rpc.ypxfrd"
+ YOPTS=""
+ if [ -n "${YPXFRD_OPTS}" ]; then YOPTS="-- ${YPXFRD_OPTS}"; fi
+ start-stop-daemon --start --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd ${YOPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping rpc.ypxfrd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/ypxfrd.pid --exec /usr/sbin/rpc.ypxfrd
+ eend $?
+}
diff --git a/net-nds/ypserv/files/rpc.ypxfrd.confd b/net-nds/ypserv/files/rpc.ypxfrd.confd
new file mode 100644
index 000000000000..73cfc47e7154
--- /dev/null
+++ b/net-nds/ypserv/files/rpc.ypxfrd.confd
@@ -0,0 +1,3 @@
+# Command line options to pass to rpc.ypxfrd
+# eg: you can pass --port <number> to use a non-standard port
+YPXFRD_OPTS=""
diff --git a/net-nds/ypserv/files/ypserv b/net-nds/ypserv/files/ypserv
new file mode 100644
index 000000000000..205c3ef4381b
--- /dev/null
+++ b/net-nds/ypserv/files/ypserv
@@ -0,0 +1,22 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net portmap
+ use domainname
+}
+
+start() {
+ ebegin "Starting NIS Server"
+ YOPTS=""
+ if [ -n "${YPSERV_OPTS}" ]; then YOPTS="-- ${YPSERV_OPTS}"; fi
+ start-stop-daemon --start --quiet --exec /usr/sbin/ypserv ${YOPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping NIS Server"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/ypserv
+ eend $?
+}
diff --git a/net-nds/ypserv/files/ypserv.confd b/net-nds/ypserv/files/ypserv.confd
new file mode 100644
index 000000000000..0ae9756dc81b
--- /dev/null
+++ b/net-nds/ypserv/files/ypserv.confd
@@ -0,0 +1,4 @@
+# Config file for /etc/init.d/ypserv
+
+# Command line options to pass to ypserv:
+YPSERV_OPTS=""
diff --git a/net-nds/ypserv/metadata.xml b/net-nds/ypserv/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-nds/ypserv/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/ypserv/ypserv-2.26-r1.ebuild b/net-nds/ypserv/ypserv-2.26-r1.ebuild
new file mode 100644
index 000000000000..700b169788d2
--- /dev/null
+++ b/net-nds/ypserv/ypserv-2.26-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools
+
+DESCRIPTION="Network Information Service server"
+HOMEPAGE="http://www.linux-nis.org/nis/"
+SRC_URI="mirror://kernel/linux/utils/net/NIS/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="slp"
+
+DEPEND=">=sys-libs/gdbm-1.8.0
+ slp? ( net-libs/openslp )"
+RDEPEND="${DEPEND}
+ || ( net-nds/rpcbind net-nds/portmap )"
+
+src_prepare() {
+ # The configure script does not provide a command-line flag to control usage
+ # of slp. Use a brutal method in case we need to disable it.
+ if ! use slp; then
+ sed -i -e 's/USE_SLP=1/USE_SLP=0/g' configure.in || die
+ eautoreconf
+ fi
+
+ default
+}
+
+src_install() {
+ default
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+
+ insinto /etc
+ doins etc/ypserv.conf etc/netgroup etc/netmasks
+ insinto /var/yp
+ newins etc/securenets securenets.default
+
+ newconfd "${FILESDIR}/ypserv.confd" ypserv
+ newconfd "${FILESDIR}/rpc.yppasswdd.confd" rpc.yppasswdd
+ newconfd "${FILESDIR}/rpc.ypxfrd.confd" rpc.ypxfrd
+
+ newinitd "${FILESDIR}/ypserv" ypserv
+ newinitd "${FILESDIR}/rpc.yppasswdd-r1" rpc.yppasswdd
+ newinitd "${FILESDIR}/rpc.ypxfrd-2.23" rpc.ypxfrd
+
+ echo "CONFIG_PROTECT=\"/var/yp/Makefile\"" > "${T}"/10ypserv
+ doenvd "${T}"/10ypserv
+}
+
+pkg_preinst() {
+ # This ebuilds installs an env file which CONFIG_PROTECTs /var/yp/Makefile,
+ # but if the user is migrating from older ypserv, this won't take effect
+ # immediately. Keep the older setup with Makefile.dist file and ask the user
+ # to migrate.
+ if [ -f "${ROOT}/var/yp/Makefile.dist" ]; then
+ mv "${D}/var/yp/Makefile" "${D}/var/yp/Makefile.dist" \
+ || die "mv failed"
+ cp "${ROOT}/var/yp/Makefile" "${D}/var/yp/Makefile" \
+ || die "cp failed"
+ elog "Please remove ${ROOT}/var/yp/Makefile.dist after making sure that"
+ elog "${ROOT}/var/yp/Makefile looks fine to you. It is now"
+ elog "CONFIG_PROTECTed, so further changes should be managed with"
+ elog "usual config management tools like etc-update or dispatch-conf."
+ fi
+}
+
+pkg_postinst() {
+ einfo "To complete setup, you will need to edit /var/yp/securenets,"
+ einfo "/etc/conf.d/ypserv, /etc/ypserv.conf, /etc/conf.d/rpc.yppasswdd"
+ einfo "and possibly /var/yp/Makefile."
+
+ einfo "To start the services at boot, you need to enable ypserv and optionally"
+ einfo "the rpc.yppasswdd and/or rpc.ypxfrd services"
+}