summaryrefslogtreecommitdiff
path: root/net-misc/netkit-routed
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-routed
reinit the tree, so we can have metadata
Diffstat (limited to 'net-misc/netkit-routed')
-rw-r--r--net-misc/netkit-routed/Manifest9
-rw-r--r--net-misc/netkit-routed/files/netkit-routed-0.17-printf.patch20
-rw-r--r--net-misc/netkit-routed/files/netkit-routed-0.17-time.patch20
-rw-r--r--net-misc/netkit-routed/files/routed.confd16
-rw-r--r--net-misc/netkit-routed/files/routed.initd20
-rw-r--r--net-misc/netkit-routed/metadata.xml5
-rw-r--r--net-misc/netkit-routed/netkit-routed-0.17-r5.ebuild46
7 files changed, 136 insertions, 0 deletions
diff --git a/net-misc/netkit-routed/Manifest b/net-misc/netkit-routed/Manifest
new file mode 100644
index 000000000000..0738c6311993
--- /dev/null
+++ b/net-misc/netkit-routed/Manifest
@@ -0,0 +1,9 @@
+AUX netkit-routed-0.17-printf.patch 460 SHA256 5b7ee6027ad2264baedf0ae173b1e466abe52001c84c9a12af87f443e0b0e4d9 SHA512 b96f6826b18dc2bb2ce5395a18582e339d941a20c0613bc9bd4582756de07264679e2bb8b0c5ff979ab87ccbaaa1152ddf983598ae05a5960d2fc586c3381d0c WHIRLPOOL 6322a4d86a45c1117d55f84f945c5aeabc2767e829d5f587bebeb330ad3790a66d8fa1f42f29fd56668b5af0187d7b09c29e49583a0671fbecb171208e7e02c7
+AUX netkit-routed-0.17-time.patch 568 SHA256 513a784dfe842bfba17ccd1f582b2fb566859a66fc527c7bc221c194fbe6c429 SHA512 ba39437103ddfd6fc0a875de726f181aaaca4014cb0c641129c42bc68c09d18f09368de5c4780f2b11b738a7c75bddafc74560c7e7829e9200eb436735d7ac81 WHIRLPOOL 52eb562833cd054c1de9f800ea9f06fbb4c74dbca0ddc720b471ed8c4852646ea1cd239ace5d83fcecee5a44eecb77225241bd2a5e3e3834b7da22539732b342
+AUX routed.confd 589 SHA256 609f2210f57ce8f76ecd6b5335dc73dc0d34fc2807d257b880ec334af90f919a SHA512 ce7d67dbf1fd7c18bdd8154eaa4ae46ccdbf178224383a3209577cbe7292f4442b294af40e5e9e9b3d6c801982f719943a988cf19f26176a06cd7fc1444942f3 WHIRLPOOL 8f0b8f8c27500580568da99b710b0e1ca5a3f4955e02822c6008a8972a35c5f83f05582b6f544d74af42f4a929631d201b38db8ceb7399e4ad8ccdcd61689f5c
+AUX routed.initd 396 SHA256 bb34ba5715377c72704c41e7e53cd22e7119e2e9da5c72bc3045c7aaf2ea947c SHA512 62cb5ae462bb9baeeb383a1ab2afd3e24407403592ea613854bc8f48def576b7fb3d4c211f138b49b3c1d3cc818fb7c08be12fb2b5b973dcb9b669c9c01800ca WHIRLPOOL e21dfaed21f1e693dde029d7c68bdae1f7e6c34049d4f19b1ed2ff4c2c3c3c328db8d9c3c79558d176a92f99f6b8533143c3724c74b0914d19120149a58e0375
+DIST netkit-routed_0.17.orig.tar.gz 36435 SHA256 0d6e7eb31e2ece9eccca1e0cbf01425b8a749bf08b83fbacad4164cc67784824 SHA512 9dea1048af22d5bbcec0aa9722a518e81d4415c7cc3219ae13d38450b0960fb30e0b082648717336c5870fa65f921a3830aadca23d0595ca719f89f4615afbc9 WHIRLPOOL 7a5ab21cf9faf11361f70b2efcaf6a6be04534b6f7696ce61ff462734e93043d764ed1a88dff8f52eeb016883848b51607d87a3112777bd06ee64d08cc7f4bf1
+EBUILD netkit-routed-0.17-r5.ebuild 1063 SHA256 646d58e70aecaa24be8942f5523d4402b893b8d11b2bb76b644a2ec299157efe SHA512 4687f384dfda7d661726e498307b57a4f4279a659cc523db905522709f90758d2a61541ecf71b63541dd30b26a1466f5b70c775a2538486e098353d332ad2b77 WHIRLPOOL b08cbef2b899944a078dbd8600d8368a8627a9e335f6bebf24297e960b18d61bc6f3c0454bc82cbe8021271880465c2ba0d3d0a773af90ac7e483f6b4b3ab5a5
+MISC ChangeLog 3093 SHA256 fe3171186ee60c3a6b9a69d120f38b21234fe50dcfe75652cbfd89f5eb9a10c5 SHA512 7ab2ef2ea512ad7d5f4ca0fe0e1ae858b3d4ae6917ec7808f143f55510afb093bda998152b48fc57620bb88366686c9c19f2933c9aeaf44ca2111ebf785a7ffe WHIRLPOOL a4d8151ae5a7ee203cf10de7a95e78f9092fede72e5dd3b09f9086c61d7b1e6b1e3143ee5d9e53c1793368e588da8773027b15176983f8118871d3525f26febc
+MISC ChangeLog-2015 3212 SHA256 7adefe474211ab80413bf8292ee95316172f642f9a0544cd951f613920b930d6 SHA512 e5a769d4eba86117097d29b942bf253b079eba9602706746626548532887e606ad45564dfe276fcc9a5e09049ba0414137830f76ff697dc0313240ed4ad47a13 WHIRLPOOL b8d8a4411f464d035f3a65a3342e2104926906c3c5ccac4ff0aa1480a248f9c44cacfa2cc6cad43453e6f1936f504e37e617a4c59beb6b99e0f8076fd8dce723
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/net-misc/netkit-routed/files/netkit-routed-0.17-printf.patch b/net-misc/netkit-routed/files/netkit-routed-0.17-printf.patch
new file mode 100644
index 000000000000..16607a22b9b1
--- /dev/null
+++ b/net-misc/netkit-routed/files/netkit-routed-0.17-printf.patch
@@ -0,0 +1,20 @@
+echo -n isn't supported by all shells, use printf instead, which is portable.
+
+Patch by Andrew Miller.
+
+https://bugs.gentoo.org/529992
+
+--- a/configure
++++ b/configure
+@@ -235,10 +235,7 @@
+
+ echo 'Generating MCONFIG...'
+ (
+- echo -n '# Generated by configure (confgen version 2) on '
+- date
+- echo '#'
+- echo
++ printf "#\n# Generated by configure (confgen version 2) on $(date)\n#\n\n"
+
+ echo "SBINDIR=$SBINDIR"
+ echo "MANDIR=$MANDIR"
diff --git a/net-misc/netkit-routed/files/netkit-routed-0.17-time.patch b/net-misc/netkit-routed/files/netkit-routed-0.17-time.patch
new file mode 100644
index 000000000000..9aa866d48367
--- /dev/null
+++ b/net-misc/netkit-routed/files/netkit-routed-0.17-time.patch
@@ -0,0 +1,20 @@
+--- a/routed/main.c 2000-01-06 00:16:12.000000000 +0100
++++ b/routed/main.c 2010-08-26 23:04:56.000000000 +0200
+@@ -57,6 +57,7 @@
+ #include <syslog.h>
+ #include <assert.h>
+ #include <sys/utsname.h>
++#include <time.h>
+
+ #define BUFSPACE (127*1024) /* max. input buffer size to request */
+
+--- a/routed/trace.c 2000-07-23 01:25:11.000000000 +0200
++++ b/routed/trace.c 2010-08-26 23:05:17.000000000 +0200
+@@ -50,6 +50,7 @@
+ #include <syslog.h>
+ #include <errno.h>
+ #include "pathnames.h"
++#include <time.h>
+
+ #define NRECORDS 50 /* size of circular trace buffer */
+
diff --git a/net-misc/netkit-routed/files/routed.confd b/net-misc/netkit-routed/files/routed.confd
new file mode 100644
index 000000000000..1b27653ec59d
--- /dev/null
+++ b/net-misc/netkit-routed/files/routed.confd
@@ -0,0 +1,16 @@
+# /etc/conf.d/routed
+
+# Normally routed is simply run as "/usr/sbin/routed". Set this
+# option to run routed with additional parameters, for example:
+#
+# -d Enable additional debugging information
+# -s Force routed to supply routing information
+# -q Opposite of the -s option
+#
+# Additional options are listed in the routed(8) manual page.
+#
+# Our default configuration is to run quietly, i.e. don't publish
+# routes. This is to keep from catching users unaware since routed
+# will publish routes if there's more than one interface configured on
+# the machine.
+ROUTED_OPTS="-q"
diff --git a/net-misc/netkit-routed/files/routed.initd b/net-misc/netkit-routed/files/routed.initd
new file mode 100644
index 000000000000..3b022fb54586
--- /dev/null
+++ b/net-misc/netkit-routed/files/routed.initd
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting routed"
+ /sbin/start-stop-daemon --start --quiet \
+ --exec /usr/sbin/routed -- ${ROUTED_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping routed"
+ /sbin/start-stop-daemon --stop --quiet --exec /usr/sbin/routed
+ eend $?
+}
diff --git a/net-misc/netkit-routed/metadata.xml b/net-misc/netkit-routed/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /dev/null
+++ b/net-misc/netkit-routed/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-misc/netkit-routed/netkit-routed-0.17-r5.ebuild b/net-misc/netkit-routed/netkit-routed-0.17-r5.ebuild
new file mode 100644
index 000000000000..01bd8c91915a
--- /dev/null
+++ b/net-misc/netkit-routed/netkit-routed-0.17-r5.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Netkit - routed"
+HOMEPAGE="ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/"
+SRC_URI="mirror://debian/pool/main/n/netkit-routed/${PN}_${PV}.orig.tar.gz"
+
+LICENSE="BSD GPL-2"
+SLOT="0"
+KEYWORDS="alpha ~amd64 ~mips ppc sparc x86"
+IUSE=""
+
+src_prepare() {
+ sed -i configure -e '/^LDFLAGS=/d' || die
+ epatch "${FILESDIR}"/${P}-time.patch
+ epatch "${FILESDIR}"/${P}-printf.patch #529992
+}
+
+src_configure() {
+ # Not an autotools generated configure script
+ ./configure --with-c-compiler=$(tc-getCC) || die
+}
+
+src_install() {
+ # ripquery
+ dosbin ripquery/ripquery
+ doman ripquery/ripquery.8
+
+ # routed
+ dosbin routed/routed
+ dosym routed /usr/sbin/in.routed
+ doman routed/routed.8
+ dosym routed.8 /usr/share/man/man8/in.routed.8
+
+ # docs
+ dodoc README ChangeLog
+ newdoc routed/README README.routed
+
+ # init scripts
+ newconfd "${FILESDIR}"/routed.confd routed
+ newinitd "${FILESDIR}"/routed.initd routed
+}