summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2015-12-08 22:27:46 -0800
committerPalmer Dabbelt <palmer@dabbelt.com>2015-12-08 22:27:46 -0800
commite4304531042bf84aacb60eb896b39ec88db7cd25 (patch)
tree95ef31a8c9e920866fa4075b57b41b6ace9a2bc0
parentInstall base_workspace to ${ED}/usr/lib for bazel (diff)
downloadpalmer-e4304531042bf84aacb60eb896b39ec88db7cd25.tar.gz
palmer-e4304531042bf84aacb60eb896b39ec88db7cd25.tar.bz2
palmer-e4304531042bf84aacb60eb896b39ec88db7cd25.zip
Import yp-tools, with a patch
For some reason this doesn't build any more.
-rw-r--r--net-nds/yp-tools/Manifest5
-rw-r--r--net-nds/yp-tools/files/domainname.service10
-rw-r--r--net-nds/yp-tools/files/domainname.service.conf3
-rw-r--r--net-nds/yp-tools/files/yp-tools-2.12-libc_lock.patch11
-rw-r--r--net-nds/yp-tools/yp-tools-2.12-r1.ebuild46
5 files changed, 75 insertions, 0 deletions
diff --git a/net-nds/yp-tools/Manifest b/net-nds/yp-tools/Manifest
new file mode 100644
index 0000000..4597b62
--- /dev/null
+++ b/net-nds/yp-tools/Manifest
@@ -0,0 +1,5 @@
+AUX domainname.service 165 SHA256 905079200c0ec5fb4585a46ba72c432d2246b0c14cf8792b762d8a95f0ef4e0d SHA512 dc6cc79a1e6636f31706901bec45adc479231c883e149748989c038d4a9e2d3b1e15e3ba45ca7276700c68600cf6489b92bc4ada0c8ba630921a6d8cb8368de6 WHIRLPOOL 74ead6f4f5468fe2843d74f16ac5a567a9e2214348e55d3d6d847f3ae8ccbd197c24127782040348c5245c8ac9626e4ebc4bc771919a28a238aa8927025b45fc
+AUX domainname.service.conf 89 SHA256 424a1fadf7387150a30df3eaa19e057f7162aa1d2564da9fd0273e1b7dc50b76 SHA512 529f85f41e8204cc3dda72eb3c94c81443b8aa9f5af1ce4cab4510cbc42da79a4554d223893f0a968afb4476898b8a74ea061f8e9f40518b3066584ea9c7ad6c WHIRLPOOL 5a3d246b48eaa01ef2379f29c3af6724a3c657af8f14cd5aa47aab728448edb70361f1d72f944140e396f6322228fa8249a6ce3c44a6c4e7dba1950d2bf637ed
+AUX yp-tools-2.12-libc_lock.patch 384 SHA256 c2f9d7f70cf35d8c98683cae33d88fdeaed7c0c397a087af4bb9e861e80b1718 SHA512 377a0cd5fad3560524bf89543372ac9be3a11eb2d17c02602b9159a5e9f1bb0dc211b5aa6dc23de84ecea116d285ed1d51103c7ad1392314c597da913f6273f7 WHIRLPOOL e63cde4fc1525b02be9d878629d972836172fb8d8bd9824e01804d6d6e74b5d0e3b6bf4f08fbec4fe9ad6b29b56976c7238c518ec868aade0b23e809a45b9875
+DIST yp-tools-2.12.tar.bz2 204228 SHA256 6ae8321666eea7837da343eea90ea30273fb74943ad111d5a4befd2afb252063 SHA512 0b62f63d65c7a53e715fb5749c4a7e71cf85e4006fa5e1ec39290e740301d5a8d321007461bb7a6b3bd1aaac283d8b028fa07814e77bd75e13dfd761f74c9218 WHIRLPOOL b4b89857024cc2aa42e6e9dabea25ea81da641d00fbeb3202cd53e81065384d9b1a685e8e0eed547622f4a0649d625cf3ea35217deef7c19536e120813d5b1c4
+EBUILD yp-tools-2.12-r1.ebuild 989 SHA256 b5564bf1343a2e7e301053e6733bacc2f6b15aeec2c18523db76738de21adb1a SHA512 5cbf6d64872bf3f0eab01f03f6728c8bc63c891811ce42fff58e4d373d15c2d740e716da86b1c9f83b868e170f0b7dd7a2860572280a49d61ff1654c2e2177e2 WHIRLPOOL 38469af477726d9909627aed8f29ae357b51d15d9f3a8963add8dd207288dd59d466b32bc647c05dae39dde9d468133c7f6f086285e75d9a822ac5ebe0a6a187
diff --git a/net-nds/yp-tools/files/domainname.service b/net-nds/yp-tools/files/domainname.service
new file mode 100644
index 0000000..8f170ad
--- /dev/null
+++ b/net-nds/yp-tools/files/domainname.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=NIS Domainname
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/nisdomainname $NISDOMAINNAME
+RemainAfterExit=true
+
+[Install]
+WantedBy=multi-user.target
diff --git a/net-nds/yp-tools/files/domainname.service.conf b/net-nds/yp-tools/files/domainname.service.conf
new file mode 100644
index 0000000..592de3b
--- /dev/null
+++ b/net-nds/yp-tools/files/domainname.service.conf
@@ -0,0 +1,3 @@
+# NIS domain to be set by domainname.service
+[Service]
+Environment="NISDOMAINNAME=local"
diff --git a/net-nds/yp-tools/files/yp-tools-2.12-libc_lock.patch b/net-nds/yp-tools/files/yp-tools-2.12-libc_lock.patch
new file mode 100644
index 0000000..a19f84c
--- /dev/null
+++ b/net-nds/yp-tools/files/yp-tools-2.12-libc_lock.patch
@@ -0,0 +1,11 @@
+diff -Nur yp-tools-2.12.orig/src/ypclnt.c yp-tools-2.12/src/ypclnt.c
+--- yp-tools-2.12.orig/src/ypclnt.c 2015-12-08 14:38:44.646551727 -0800
++++ yp-tools-2.12/src/ypclnt.c 2015-12-08 14:38:57.786490599 -0800
+@@ -32,7 +32,6 @@
+ #include <rpcsvc/ypupd.h>
+ #include <sys/socket.h>
+ #include <sys/uio.h>
+-#include <bits/libc-lock.h>
+
+ #define __set_errno(err) errno=err;
+ #define _(S) S
diff --git a/net-nds/yp-tools/yp-tools-2.12-r1.ebuild b/net-nds/yp-tools/yp-tools-2.12-r1.ebuild
new file mode 100644
index 0000000..c5da761
--- /dev/null
+++ b/net-nds/yp-tools/yp-tools-2.12-r1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd
+
+DESCRIPTION="Network Information Service tools"
+HOMEPAGE="http://www.linux-nis.org/nis/"
+SRC_URI="ftp://ftp.kernel.org/pub/linux/utils/net/NIS/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 ~arm hppa ia64 ~mips ppc ppc64 sparc x86"
+IUSE="nls"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-libc_lock.patch"
+}
+
+src_configure() {
+ local myconf="--sysconfdir=/etc/yp"
+ if ! use nls
+ then
+ myconf="${myconf} --disable-nls"
+ mkdir intl
+ touch intl/libintl.h
+ export CPPFLAGS="${CPPFLAGS} -I${S}"
+
+ for i in lib/nicknames.c src/*.c
+ do
+ cp ${i} ${i}.orig
+ sed 's:<libintl.h>:<intl/libintl.h>:' \
+ ${i}.orig > ${i}
+ done
+ fi
+ econf ${myconf}
+}
+
+src_install() {
+ default
+ insinto /etc/yp ; doins etc/nicknames
+ systemd_dounit "${FILESDIR}/domainname.service"
+ systemd_install_serviced "${FILESDIR}"/domainname.service.conf
+}