#!/bin/sh ############################# ## Build script for: ipcalc ## Creator: jmedina@tuxjm.net ## Date: 02 Apr 05 ## Builds package: Yes ## Source location: http://jodies.de/ipcalc ## Build script version: 1 ## Requirements: None ## ## Notes: Any special notes the person may need to edit this file. ## # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-ipcacl NAME=ipcalc VERSION=0.38 ARCH=noarch BUILD=1jm if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG cd $TMP rm -rf $NAME-$VERSION tar -zxvf $CWD/$NAME-$VERSION.tar.gz cd $NAME-$VERSION mkdir -p $PKG/usr/bin install -m0755 ipcalc $PKG/usr/bin/ipcalc chown -R root.bin $PKG/usr/bin mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a changelog \ $PKG/usr/doc/$NAME-$VERSION chmod 644 $PKG/usr/doc/$NAME-$VERSION/* chown -R root.root $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/$NAME-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/$NAME-$VERSION rm -rf $PKG fi