summaryrefslogtreecommitdiff
path: root/net-misc/netkit-bootparamd
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-misc/netkit-bootparamd
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-bootparamd')
-rw-r--r--net-misc/netkit-bootparamd/Manifest11
-rw-r--r--net-misc/netkit-bootparamd/files/0.17-jumpstart.patch25
-rw-r--r--net-misc/netkit-bootparamd/files/0.17-libtirpc.patch15
-rw-r--r--net-misc/netkit-bootparamd/files/bootparamd.confd3
-rw-r--r--net-misc/netkit-bootparamd/files/bootparamd.initd25
-rw-r--r--net-misc/netkit-bootparamd/metadata.xml11
-rw-r--r--net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r2.ebuild38
-rw-r--r--net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r3.ebuild44
-rw-r--r--net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r4.ebuild56
9 files changed, 228 insertions, 0 deletions
diff --git a/net-misc/netkit-bootparamd/Manifest b/net-misc/netkit-bootparamd/Manifest
new file mode 100644
index 000000000000..be027dcfba1a
--- /dev/null
+++ b/net-misc/netkit-bootparamd/Manifest
@@ -0,0 +1,11 @@
+AUX 0.17-jumpstart.patch 1163 SHA256 99a6ca055bf905fc12f53dbef031b754225579087ba0fa072b21070399aef562 SHA512 ac359816aeeae110af0fef69692cc1d3d6f9a72f3ef58dcb2a84a5c4462aea7a214561032ba4683481d8e2a08bc62c0d67af09205f2ebee62c340aea434a6bf8 WHIRLPOOL 7e2634af700dd0b33a11bc7e041a910ad840c837659f8ced9ea81ceb774f9fdf77db480282c67ed777b9338edb5422daaa86d99847a306924a50c254141a3edd
+AUX 0.17-libtirpc.patch 455 SHA256 f9cc3b6a198c319f6b0d34067f8d145e6b770115eb3dfa1c944114fc79063c9b SHA512 d7c378e2b65019fdd04fb0ff076c2a8c81fac6bba19a707bc43d47ba161dabb0ac0ffe10b9912820a761eb364b0e977349b9544fb6a64ba0bd6aecf9b352847b WHIRLPOOL e36a3b000c3e4ed462cf06f94d8020b39033b3698fd48e9069a6551035ea383002b607644e9492b70bbc42cd9ac3254d78286a9f0bd2aec6679af6bba158197b
+AUX bootparamd.confd 29 SHA256 92110747111cfb4a9a375fa7be116c4417471eef70eea937f03b2d6e4a9e656e SHA512 4f2e6cfef21053bc3a37fada11e77338de57a9e034963c9e91bdc8d6829df29e6b5d69eda3531e67ea3c03599f22da28bb3f7f64a282cc6a2e63927236c1765e WHIRLPOOL 32e25e9648ca15e57f0b608309aeadc2061f05451580106f94c6f9fd29691cadbb4568dfa6f5d101e297b36db7cd46eea4ddb1f0455291147570ec57cf23732b
+AUX bootparamd.initd 502 SHA256 8c55fb5e59bf5458543d303c0f881555726c9c202dfaf374870a296fabfe7c12 SHA512 9326e3a3dfca43cd7233a289b1f58c22db22aabc2136cba2d61a4bdab17652f9d031e4eddc877126aa09e08e048e63ba9fcf4219f9dbbf55d6787e03d5ee2548 WHIRLPOOL 34bfea5a11d77682e0e7f344736a21e5423190e7ddbf282c9094fc17625041d6b16d39cc41f75552ff24445dc28b17eaf07d058f3a76b2142b5f89f2858ff5d8
+DIST netkit-bootparamd_0.17.orig.tar.gz 13934 SHA256 7fd44b14f7ee5bf930bdd03b0c3a15bdb6efb60a862af47269b05361c4ed395c SHA512 fc237c72efd0c7a671c179ee4596f64e13a7a637441d32c9e82e81f4133d987f468c98b00611fbada1f7d6e5fa791c9b513978bfc7a58efe7d93102a2d3b4dca WHIRLPOOL ba83ea8fee7558047ea2320c2ab83adae23fa15c92069b6e3e42bde9aa1f2fd2a7ff2b7ac3b22540961845000e86a1c34fe80b76d0ca507e268555f98651d817
+EBUILD netkit-bootparamd-0.17-r2.ebuild 980 SHA256 8adca9a8716682eab9ab3dc63e4caaa9988bd51bb6b7c4af13535d5be299b121 SHA512 462e64f42f5319d16c1a46a615ea46f8dd0b75177953ecfb593ed9fc7d563b94441889e58bbe7f88f9cac445b59b72435ed5390df14b55cdbe2ba1b83401733e WHIRLPOOL 09fdeaa809f82efefde093b09abb316efd3db5a332273cce8bc352f5b74707b00436348f2fa3d261afe315c9b8a934f73b799fac943cf8fad9d11aea7039c598
+EBUILD netkit-bootparamd-0.17-r3.ebuild 1197 SHA256 a9d64b29439e5657282c6cd6fa6b52036f48d045633e9f35edfd0b379f6c8eb0 SHA512 b2841f185d425053b8483b25b8a03f0a1a30b02f007640d3c70b9283ac6e7e271701e00b2eb7d114b1260ee93b815154286ef1f9de139cd7a25470e521adb713 WHIRLPOOL 13d2a4a183133c99e8d6a9990e451942c0b229c3a58d40e8ec6d25c55be41b7e3d8da899c802327ed448bbc8b49d91200de42e25c34b32579fd89d14e5aefc4c
+EBUILD netkit-bootparamd-0.17-r4.ebuild 1456 SHA256 55a150ea2a2919ec210fe3468b3ba01646a909e641fbad5e279e1b74dd7400f5 SHA512 cb9fa0168a3d8dc83fcd67a37a6f2e67ffe087b8f34bf0624c5de15fc92280561db3782f77e81c610302517c5f94fc6935fd58954e5cb56ed99c6505d36e89bd WHIRLPOOL f502eaefd673d383f216eb25a506a829623b0c73f80b75dd0e471065924d72a2948823de07a19fc0c2271746a3d124762a2c19a344e1ae3ca31dccd6a1d8de28
+MISC ChangeLog 2502 SHA256 f1bd4943af21bb728ef5bc150a83756b506f2c070b6f1382c3ac257a9f583722 SHA512 738ebb26c934b6920355f7e99b159042918e72fe12bc4e0fd397c76f892a13374613b62a0bf4e9c818cd1cbdab6296ff645da6c73e7b4ae1f01e357a5153378b WHIRLPOOL 7ae738b0d5bc7a2110162d7ca7b3f4fe921959c5b53ee53d1c730423ba82b3f9b817ca2ed3637bb53697e88b36a37ae6c9b8729abf86289dc3eefdf6f67c5d81
+MISC ChangeLog-2015 2008 SHA256 255ff5e692c1058876b577359d68b80fff16ca00c2b36963d562c61bda5ef419 SHA512 ac1a3f3e638694b810bf68db5d63818f5979171991b00c247dca1affe9582f5c5995dbe1e6f73929c946a446c1917630b164003efde2d0305bfe6fdff3d11599 WHIRLPOOL 251a083e1f9712cf16f5f965b371b0a8535db959ec14c76b2b6f707965811140f5696a4d02265730d1c530e3b1295ea2f4cc0953e58c9d766274ce6fd9b972c6
+MISC metadata.xml 338 SHA256 0de2de5bd04e750cd0d9fabc3d07dfc624180d567c5cf01a4111a54f06415fef SHA512 d054668c4f93e1bb54cdb4bf6557feb53c07416435ca091498173a33cdc148e5292b2a8126b15fd9a57a993db536cee43ee0fecea0879adcdd83247017573dcf WHIRLPOOL 1dc0be6ecec7a9ff74e9702b6ec752b6ada6838b5428e8dd7fde3fb791d24497653b6f5857f4ef7938a4eb590e93f07e2c0eee3c71bb73342690ffe078c61203
diff --git a/net-misc/netkit-bootparamd/files/0.17-jumpstart.patch b/net-misc/netkit-bootparamd/files/0.17-jumpstart.patch
new file mode 100644
index 000000000000..41b471b5075f
--- /dev/null
+++ b/net-misc/netkit-bootparamd/files/0.17-jumpstart.patch
@@ -0,0 +1,25 @@
+diff -urN netkit-bootparamd-0.17.old/rpc.bootparamd/rpc.bootparamd.c netkit-bootparamd-0.17/rpc.bootparamd/rpc.bootparamd.c
+--- netkit-bootparamd-0.17.old/rpc.bootparamd/rpc.bootparamd.c 2000-07-22 12:23:56.000000000 -0400
++++ netkit-bootparamd-0.17/rpc.bootparamd/rpc.bootparamd.c 2004-09-13 17:42:43.000000000 -0400
+@@ -136,11 +136,16 @@
+ strncpy(path, where, sizeof(path));
+ path[sizeof(path)-1] = 0;
+ he = gethostbyname(hostname);
+- if (!he) goto failed;
+- bcopy( he->h_addr, &res.server_address.bp_address_u.ip_addr, 4);
+- res.server_name = hostname;
+- res.server_path = path;
+- res.server_address.address_type = IP_ADDR_TYPE;
++ if (!he) { /* jumpstart parameters are not valid hosts */
++ res.server_name = hostname;
++ res.server_path = path;
++ bzero(&res.server_address.bp_address_u.ip_addr,4);
++ } else {
++ bcopy( he->h_addr, &res.server_address.bp_address_u.ip_addr, 4);
++ res.server_name = hostname;
++ res.server_path = path;
++ res.server_address.address_type = IP_ADDR_TYPE;
++ }
+ }
+ else { /* special for dump, answer with null strings */
+ if (!strcmp(getfile->file_id, "dump")) {
diff --git a/net-misc/netkit-bootparamd/files/0.17-libtirpc.patch b/net-misc/netkit-bootparamd/files/0.17-libtirpc.patch
new file mode 100644
index 000000000000..1cdf263efb25
--- /dev/null
+++ b/net-misc/netkit-bootparamd/files/0.17-libtirpc.patch
@@ -0,0 +1,15 @@
+diff -ruN netkit-bootparamd-0.17.orig/rpc.bootparamd/main.c netkit-bootparamd-0.17/rpc.bootparamd/main.c
+--- netkit-bootparamd-0.17.orig/rpc.bootparamd/main.c 2000-07-22 16:23:56.000000000 -0000
++++ netkit-bootparamd-0.17/rpc.bootparamd/main.c 2017-10-04 14:17:49.887552574 -0000
+@@ -17,9 +17,11 @@
+
+
+ #ifdef __GLIBC__
++#ifndef _TIRPC_RPC_H
+ /* quick fix */
+ void get_myaddress(struct sockaddr_in *);
+ #endif
++#endif
+
+ int debug = 0;
+ int dolog = 0;
diff --git a/net-misc/netkit-bootparamd/files/bootparamd.confd b/net-misc/netkit-bootparamd/files/bootparamd.confd
new file mode 100644
index 000000000000..f7e233a46de3
--- /dev/null
+++ b/net-misc/netkit-bootparamd/files/bootparamd.confd
@@ -0,0 +1,3 @@
+#
+
+OPTS_RPC_BOOTPARAMD="-s"
diff --git a/net-misc/netkit-bootparamd/files/bootparamd.initd b/net-misc/netkit-bootparamd/files/bootparamd.initd
new file mode 100644
index 000000000000..251e8994969a
--- /dev/null
+++ b/net-misc/netkit-bootparamd/files/bootparamd.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+[ -e /etc/conf.d/bootparamd ] && . /etc/conf.d/bootparamd
+
+rpc_bin=/usr/sbin/rpc.bootparamd
+
+depend() {
+ use ypbind net
+ need portmap
+ after quota
+}
+
+start() {
+ ebegin "Starting bootparamd"
+ ${rpc_bin} ${OPTS_RPC_BOOTPARAMD}
+ eend $? "make sure DNOTIFY support is enabled ..."
+}
+
+stop() {
+ ebegin "Stopping bootparamd"
+ start-stop-daemon --stop --exec ${rpc_bin}
+ eend $?
+}
diff --git a/net-misc/netkit-bootparamd/metadata.xml b/net-misc/netkit-bootparamd/metadata.xml
new file mode 100644
index 000000000000..dde8ad441958
--- /dev/null
+++ b/net-misc/netkit-bootparamd/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+<email>xmw@gentoo.org</email>
+<name>Michael Weber</name>
+</maintainer>
+<use>
+<flag name="libtirpc">Build against <pkg>net-libs/libtirpc</pkg> for RPC support</flag>
+</use>
+</pkgmetadata>
diff --git a/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r2.ebuild b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r2.ebuild
new file mode 100644
index 000000000000..325766a3fe1a
--- /dev/null
+++ b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Netkit - bootparamd"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/n/netkit-bootparamd/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~hppa ~mips ppc sparc x86"
+IUSE=""
+
+DEPEND="!<=net-misc/netkit-bootpd-0.17-r2"
+RDEPEND=${DEPEND}
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/0.17-jumpstart.patch
+}
+
+src_compile() {
+ # Note this is not an autoconf configure
+ ./configure || die "configure failed"
+ emake || die "make failed"
+}
+
+src_install() {
+ into /usr
+ dosbin rpc.bootparamd/bootparamd || die "installing binary failed"
+ dosym bootparamd /usr/sbin/rpc.bootparamd
+ doman rpc.bootparamd/bootparamd.8
+ dosym bootparamd.8.gz /usr/share/man/man8/rpc.bootparamd.8.gz
+ doman rpc.bootparamd/bootparams.5
+ dodoc README ChangeLog
+ newdoc rpc.bootparamd/README README.bootparamd
+}
diff --git a/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r3.ebuild b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r3.ebuild
new file mode 100644
index 000000000000..f0ac67f05819
--- /dev/null
+++ b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r3.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Netkit - bootparamd"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~hppa ~mips ppc sparc x86"
+IUSE=""
+
+DEPEND="!<=net-misc/netkit-bootpd-0.17-r2"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ epatch "${FILESDIR}"/0.17-jumpstart.patch
+
+ # don't reset LDFLAGS (bug #335457), manpages into /usr/share/man
+ sed -i -e '/^LDFLAGS=/d ; /MANDIR=/s:man:share/man:' configure || die
+
+ sed -i -e 's:install -s:install:' rpc.bootparamd/Makefile || die
+}
+
+src_configure() {
+ # Note this is not an autoconf configure
+ CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" ./configure || die
+}
+
+src_install() {
+ dodir usr/bin usr/sbin usr/share/man/man8 || die
+ emake INSTALLROOT="${D}" install || die
+
+ newconfd "${FILESDIR}"/bootparamd.confd bootparamd || die
+ newinitd "${FILESDIR}"/bootparamd.initd bootparamd || die
+
+ doman rpc.bootparamd/bootparams.5 || die
+ dodoc README ChangeLog || die
+ newdoc rpc.bootparamd/README README.bootparamd || die
+}
diff --git a/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r4.ebuild b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r4.ebuild
new file mode 100644
index 000000000000..b52721ceadcf
--- /dev/null
+++ b/net-misc/netkit-bootparamd/netkit-bootparamd-0.17-r4.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs flag-o-matic
+
+DESCRIPTION="Netkit - bootparamd"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/n/${PN}/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~mips ~ppc ~sparc ~x86"
+IUSE="+libtirpc"
+
+DEPEND="
+ !<=net-misc/netkit-bootpd-0.17-r2
+ libtirpc? ( net-libs/rpcsvc-proto net-libs/libtirpc )
+ !libtirpc? ( sys-libs/glibc[rpc(-)] )
+"
+RDEPEND=${DEPEND}
+
+src_prepare() {
+ eapply "${FILESDIR}"/0.17-jumpstart.patch
+ eapply "${FILESDIR}"/0.17-libtirpc.patch
+
+ # don't reset LDFLAGS (bug #335457), manpages into /usr/share/man
+ sed -i -e '/^LDFLAGS=/d ; /MANDIR=/s:man:share/man:' configure || die
+
+ sed -i -e 's:install -s:install:' rpc.bootparamd/Makefile || die
+
+ default
+}
+
+src_configure() {
+ if use libtirpc ; then
+ append-cflags -I/usr/include/tirpc
+ sed -i -e 's:^LIBS=$:LIBS=-ltirpc:' configure || die
+ fi
+
+ # Note this is not an autoconf configure
+ CC="$(tc-getCC)" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}" ./configure || die
+}
+
+src_install() {
+ dodir usr/bin usr/sbin usr/share/man/man8
+ emake INSTALLROOT="${D}" install
+
+ newconfd "${FILESDIR}"/bootparamd.confd bootparamd
+ newinitd "${FILESDIR}"/bootparamd.initd bootparamd
+
+ doman rpc.bootparamd/bootparams.5
+ dodoc README ChangeLog
+ newdoc rpc.bootparamd/README README.bootparamd
+}