#!/bin/sh # Note, This package fails to build agains 2.4.22's or 2.6's includes. # I'll fix it later... perhaps. Fede2 CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-iproute2 VERSION=2.4.7_now_ss020116_try ARCH=sparc BUILD=1 cd $TMP tar xzvf $CWD/iproute2-$VERSION.tar.gz cd iproute2 tar xzf $CWD/htb3.6-020525.tar.gz htb3.6_tc.diff chown -R root.root . cat htb3.6_tc.diff | patch -p1 make make install DESTDIR=$PKG mv $PKG/usr/doc/iproute2 $PKG/usr/doc/iproute2-$VERSION cp -a RE* \ $PKG/usr/doc/iproute2-$VERSION mkdir -p $PKG/var/lib/arpd mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/iproute2-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/iproute2-$VERSION rm -rf $PKG fi