#!/bin/sh VERSION=$1 cd $TMP rm -rf dcron-* tar xzf $ORIGPATH/dcron-$VERSION.tar.gz cd dcron-* zcat $ORIGPATH/dcron-$VERSION.diff.gz | patch -p1 -E --verbose --backup zcat $ORIGPATH/dcron-$VERSION.diff2.gz | patch -p1 -E --verbose --backup zcat $ORIGPATH/dcron-$VERSION.diff3.gz | patch -p1 -E --verbose --backup zcat $ORIGPATH/dcron-$VERSION.crontab.diff4.gz | patch -p1 -E --verbose --backup zcat $ORIGPATH/dcron-$VERSION.version.diff.gz | patch -p1 # hack to avoid strip stripping and breaking the binaries. ln -s "$( which arm-linux-strip )" strip export PATH=.:$PATH make clean make -e mv crond /usr/sbin/ mv crontab /usr/bin/ install -m644 crontab.1 /usr/man/man1/ install -m644 crond.8 /usr/man/man8/ mkdir /usr/doc/dcron-$VERSION install -m644 CHANGES README dcron-$VERSION.lsm /usr/doc/dcron-$VERSION mkdir /install install -m644 $ORIGPATH/slack-desc /install/ #EOF