#!/bin/sh # Source the cross compile ARM environment variables source /armedslack/source/armslack-utils/arm-cross-envs.sh rm -rf $TMP CWD=`pwd` PKG=$TMP/package-logrotate rm -rf $PKG mkdir -p $PKG VERSION=3.6.3 ARCH=arm BUILD=1 # Explode the package framework: cd $PKG explodepkg $CWD/_logrotate.tar.gz echo "+=============+" echo "| logrotate-$VERSION |" echo "+=============+" cd $TMP rm -rf logrotate* tar xzvf $CWD/logrotate-$VERSION.tar.gz cd logrotate-$VERSION zcat $CWD/logrotate.slackware.diff.gz | patch -p1 make clean # Come on someone, fix this for me :-) # I think it's something to do with the LDFLAGS and stuff I've set # I'll look at it later. make CFLAGS=-I${ARMSLACKBINHOME}/usr/include make -e CFLAGS=-I${ARMSLACKBINHOME}/usr/include arm-linux-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 README.HPUX \ $PKG/usr/doc/logrotate-$VERSION chmod 644 $PKG/usr/doc/logrotate-$VERSION/* chown -R root.root $PKG/usr/doc/logrotate-$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/logrotate-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a/ slackdtxt -t logrotate-$VERSION-$ARCH-$BUILD.tgz #EOF