#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-logrotate VERSION=3.6.8 ARCH=alpha BUILD=1 mkdir -p $PKG cd $PKG explodepkg $CWD/_logrotate.tar.gz ( cd $TMP rm -rf logrotate-$VERSION tar xzf $CWD/logrotate-$VERSION.tar.gz cd logrotate-$VERSION chown -R root.root . zcat $CWD/logrotate.slackware.diff.gz | patch -p1 zcat $CWD/makefile.diff.gz | patch -p0 make clean make strip logrotate cat logrotate > $PKG/usr/sbin/logrotate cat logrotate.8 | gzip -9c > $PKG/usr/man/man8/logrotate.8.gz mkdir -p $PKG/usr/doc/logrotate-$VERSION cp -a CHANGES COPYING READM* $PKG/usr/doc/logrotate-$VERSION chmod 644 $PKG/usr/doc/logrotate-$VERSION/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/logrotate-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/logrotate.build.log