#!/bin/sh VERSION=1.4.1 ARCH=arm BUILD=1 source /armedslack/source/armslack-utils/arm-baseenvs.sh source /armedslack/source/armslack-utils/arm-autoconf-envs.sh CWD="$( pwd )" PKG=$TMP/package-sysklogd rm -rf $PKG mkdir -p $PKG # Explode the package framework: cd $PKG explodepkg $CWD/_sysklogd.tar.gz cd $TMP rm -rf sysklogd-* tar xzvf $CWD/sysklogd-$VERSION.tar.gz cd sysklogd-$VERSION chown -R root.root . make CC=arm-linux-gcc make CC=arm-linux-gcc syslog_tst cat klogd > $PKG/usr/sbin/klogd cat syslog_tst > $PKG/usr/sbin/syslog_tst cat syslogd > $PKG/usr/sbin/syslogd for page in klogd.8 sysklogd.8 ; do cat $page | gzip -9c > $PKG/usr/man/man8/$page.gz done cat syslog.conf.5 | gzip -9c > $PKG/usr/man/man5/syslog.conf.5.gz mkdir -p $PKG/usr/doc/sysklogd-$VERSION cp -a ANNOUNCE CHANGES COPYING INSTALL MANIFEST NEWS README.1st \ README.linux $PKG/usr/doc/sysklogd-$VERSION chmod 644 $PKG/usr/doc/sysklogd-$VERSION/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $BUILDSTORE/a//sysklogd-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a/ slackdtxt -t sysklogd-$VERSION-$ARCH-$BUILD.tgz