netkit: Imported from old-contrib. Applied Debian patch

This commit is contained in:
James Mills 2007-01-26 07:03:57 +10:00
parent 41b87ceba0
commit 4eb9314962
5 changed files with 1347 additions and 0 deletions

18
netkit-rwho/.footprint Normal file
View File

@ -0,0 +1,18 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/rc.d/
-rwxr-xr-x root/root etc/rc.d/rwhod
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/ruptime
-rwxr-xr-x root/root usr/bin/rwho
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/ruptime.1.gz
-rw-r--r-- root/root usr/man/man1/rwho.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/rwhod.8.gz
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/rwhod
drwxr-xr-x root/root var/
drwxr-xr-x root/root var/spool/
drwxr-xr-x root/root var/spool/rwho/

3
netkit-rwho/.md5sum Normal file
View File

@ -0,0 +1,3 @@
0fedab917adbcde9a3a695a970d3ea4a netkit-rwho-0.17.diff
0f71620d45d472f89134ba0d74242e75 netkit-rwho-0.17.tar.gz
1c3f4bd14074b3214d265ee35867fd5c rwhod.rc

32
netkit-rwho/Pkgfile Normal file
View File

@ -0,0 +1,32 @@
# Description: System status server (rwho, rwhod).
# URL: http://www.hcs.harvard.edu/~dholland/computers/old-netkit.html
# Packager: James Mills <prologic@shortcircuit.net.au>
# Maintainer: James Mills <prologic@shortcircuit.net.au>
#
# Depends on:
name=netkit-rwho
version=0.17
release=2
source=(ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/$name-$version.tar.gz
$name-$version.diff
rwhod.rc)
build() {
cd $name-$version
patch -p1 < $SRC/$name-$version.diff
./configure --prefix=$PKG/usr
sed -i "/^CFLAGS/s/-O2 -pipe/$CFLAGS/" Makefile
install -d \
$PKG/usr/{bin,man/man1,man/man8,sbin} \
$PKG/var/spool/rwho
make && make prefix=$PKG/usr install
install -D -m755 $SRC/rwhod.rc $PKG/etc/rc.d/rwhod
chmod +x $PKG/etc/rc.d/rwhod
chown -R root:root $PKG
}

File diff suppressed because it is too large Load Diff

23
netkit-rwho/rwhod.rc Executable file
View File

@ -0,0 +1,23 @@
#!/bin/sh
#
# /etc/rc.d/rwhod: start/stop rwho daemon
#
case $1 in
start)
/usr/sbin/rwhod
;;
stop)
killall -q /usr/sbin/rwhod
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart]"
;;
esac
# End of file