summaryrefslogtreecommitdiff
path: root/iputils
diff options
context:
space:
mode:
authorMatt Housh <jaeger@crux.nu>2007-02-20 16:24:19 -0600
committerMatt Housh <jaeger@crux.nu>2007-02-20 16:24:19 -0600
commit838714541f1fbbfbb87e14c7e8fd921ae11914a2 (patch)
treebc4265ade4ad5f258fca9a4b3de11ee5fc460664 /iputils
parent7d8633e497d5fb8dbaa2becb1480b62263ac5412 (diff)
downloadcore-838714541f1fbbfbb87e14c7e8fd921ae11914a2.tar.gz
core-838714541f1fbbfbb87e14c7e8fd921ae11914a2.tar.xz
iputils: initial import, version ss021109-try
Diffstat (limited to 'iputils')
-rw-r--r--iputils/.footprint27
-rw-r--r--iputils/.md5sum2
-rw-r--r--iputils/Pkgfile30
-rw-r--r--iputils/iputils-ipg-linux26.patch41
4 files changed, 100 insertions, 0 deletions
diff --git a/iputils/.footprint b/iputils/.footprint
new file mode 100644
index 00000000..45801e4c
--- /dev/null
+++ b/iputils/.footprint
@@ -0,0 +1,27 @@
+drwxr-xr-x root/root bin/
+-rwsr-xr-x root/root bin/ping
+-rwsr-xr-x root/root bin/ping6
+drwxr-xr-x root/root sbin/
+-rwxr-xr-x root/root sbin/arping
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man8/
+-rwxr-xr-x root/root usr/man/man8/arping.8.gz
+-rwxr-xr-x root/root usr/man/man8/clockdiff.8.gz
+-rwxr-xr-x root/root usr/man/man8/pg3.8.gz
+-rwxr-xr-x root/root usr/man/man8/ping.8.gz
+lrwxrwxrwx root/root usr/man/man8/ping6.8.gz -> ping.8.gz
+-rwxr-xr-x root/root usr/man/man8/rarpd.8.gz
+-rwxr-xr-x root/root usr/man/man8/rdisc.8.gz
+-rwxr-xr-x root/root usr/man/man8/tftpd.8.gz
+-rwxr-xr-x root/root usr/man/man8/tracepath.8.gz
+-rwxr-xr-x root/root usr/man/man8/traceroute6.8.gz
+drwxr-xr-x root/root usr/sbin/
+-rwxr-xr-x root/root usr/sbin/clockdiff
+-rwxr-xr-x root/root usr/sbin/ipg
+-rwxr-xr-x root/root usr/sbin/rarpd
+-rwxr-xr-x root/root usr/sbin/rdisc
+-rwxr-xr-x root/root usr/sbin/tftpd
+-rwxr-xr-x root/root usr/sbin/tracepath
+-rwxr-xr-x root/root usr/sbin/tracepath6
+-rwsr-xr-x root/root usr/sbin/traceroute6
diff --git a/iputils/.md5sum b/iputils/.md5sum
new file mode 100644
index 00000000..2c6f36a7
--- /dev/null
+++ b/iputils/.md5sum
@@ -0,0 +1,2 @@
+ef1e642cbeba37c8ce62770175d9809d iputils-ipg-linux26.patch
+dd10ef3d76480990a2174d2bb0daddaf iputils-ss021109-try.tar.bz2
diff --git a/iputils/Pkgfile b/iputils/Pkgfile
new file mode 100644
index 00000000..8f650402
--- /dev/null
+++ b/iputils/Pkgfile
@@ -0,0 +1,30 @@
+# Description: Basic networking applet
+# URL: http://linux-net.osdl.org/index.php/Iputils
+# Maintainer: Matt Housh, jaeger at morpheus dot net
+
+name=iputils
+version=ss021109-try
+release=3
+source=(ftp://ftp.inr.ac.ru/ip-routing/$name-$version.tar.bz2 \
+ $name-ipg-linux26.patch)
+
+build() {
+ cd $name
+ patch -i $SRC/$name-ipg-linux26.patch ipg
+ sed -i -e "/^CCOPT=/s|-O2|$CFLAGS|" \
+ -e '/^CCOPT=/s| -g$||' \
+ -e 's/^\(all:\) check-kernel/\1/' \
+ Makefile
+ make
+ make man
+
+ mkdir -p $PKG/{{s,}bin,usr/{man/man8,sbin}}
+ install ping{,6} $PKG/bin/
+ install arping $PKG/sbin/
+ install tracepath{,6} traceroute6 clockdiff rarpd rdisc \
+ ipg tftpd $PKG/usr/sbin/
+ install doc/*.8 $PKG/usr/man/man8
+ rm -f $PKG/usr/man/man8/setkey*
+ ln -s ping.8 $PKG/usr/man/man8/ping6.8
+ chmod u+s $PKG/bin/ping{,6} $PKG/usr/sbin/traceroute6
+}
diff --git a/iputils/iputils-ipg-linux26.patch b/iputils/iputils-ipg-linux26.patch
new file mode 100644
index 00000000..a87b3408
--- /dev/null
+++ b/iputils/iputils-ipg-linux26.patch
@@ -0,0 +1,41 @@
+--- iputils/ipg.orig 2005-01-03 22:47:26.314393976 -0500
++++ iputils/ipg 2005-01-03 22:49:09.686679000 -0500
+@@ -1,21 +1,31 @@
+-#! /bin/bash
++#!/bin/bash
+
+-modprobe pg3
++modprobe pg3 >& /dev/null
++modprobe pktgen >& /dev/null
++
++PGDEV=/proc/net/pg
++if [[ ! -e ${PGDEV} ]] ; then
++ PGDEV=/proc/net/pktgen/pg0
++ if [[ ! -e ${PGDEV} ]] ; then
++ echo "Couldn't locate pg in /proc/net!"
++ exit 1
++ fi
++fi
+
+ function pgset() {
+ local result
+
+- echo $1 > /proc/net/pg
++ echo $1 > ${PGDEV}
+
+- result=`cat /proc/net/pg | fgrep "Result: OK:"`
++ result=`cat ${PGDEV} | fgrep "Result: OK:"`
+ if [ "$result" = "" ]; then
+- cat /proc/net/pg | fgrep Result:
++ cat ${PGDEV} | fgrep Result:
+ fi
+ }
+
+ function pg() {
+- echo inject > /proc/net/pg
+- cat /proc/net/pg
++ echo inject > ${PGDEV}
++ cat ${PGDEV}
+ }
+
+ pgset "odev eth0"

Generated by cgit