summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-misc/netkit-routed
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-misc/netkit-routed')
-rw-r--r--net-misc/netkit-routed/Manifest1
-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.initd21
-rw-r--r--net-misc/netkit-routed/metadata.xml7
-rw-r--r--net-misc/netkit-routed/netkit-routed-0.17-r4.ebuild47
7 files changed, 132 insertions, 0 deletions
diff --git a/net-misc/netkit-routed/Manifest b/net-misc/netkit-routed/Manifest
new file mode 100644
index 000000000000..c80f3823d840
--- /dev/null
+++ b/net-misc/netkit-routed/Manifest
@@ -0,0 +1 @@
+DIST netkit-routed_0.17.orig.tar.gz 36435 SHA256 0d6e7eb31e2ece9eccca1e0cbf01425b8a749bf08b83fbacad4164cc67784824 SHA512 9dea1048af22d5bbcec0aa9722a518e81d4415c7cc3219ae13d38450b0960fb30e0b082648717336c5870fa65f921a3830aadca23d0595ca719f89f4615afbc9 WHIRLPOOL 7a5ab21cf9faf11361f70b2efcaf6a6be04534b6f7696ce61ff462734e93043d764ed1a88dff8f52eeb016883848b51607d87a3112777bd06ee64d08cc7f4bf1
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..562af6f10adb
--- /dev/null
+++ b/net-misc/netkit-routed/files/routed.initd
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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..91f4e72fb544
--- /dev/null
+++ b/net-misc/netkit-routed/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-misc/netkit-routed/netkit-routed-0.17-r4.ebuild b/net-misc/netkit-routed/netkit-routed-0.17-r4.ebuild
new file mode 100644
index 000000000000..8910c4453c6d
--- /dev/null
+++ b/net-misc/netkit-routed/netkit-routed-0.17-r4.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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
+}