#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-ksymoops VERSION=2.4.11 ARCH=alpha BUILD=2 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf ksymoops-$VERSION tar xjf $CWD/ksymoops-$VERSION.tar.bz2 cd ksymoops-$VERSION zcat $CWD/ksymoops.dynamic.bfd.diff.gz | patch -p1 --verbose || exit chown -R root:root . find . -perm 777 -exec chmod 755 {} \; find . -perm 664 -exec chmod 644 {} \; make || exit mkdir -p $PKG/usr/bin cat ksymoops > $PKG/usr/bin/ksymoops chown root:bin $PKG/usr/bin/ksymoops chmod 755 $PKG/usr/bin/ksymoops mkdir -p $PKG/usr/man/man8 cat ksymoops.8 | gzip -9c > $PKG/usr/man/man8/ksymoops.8.gz mkdir -p $PKG/usr/doc/ksymoops-$VERSION cp -a COPYING Changelog INSTALL README* $PKG/usr/doc/ksymoops-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/ksymoops-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/ksymoops.build.log