#!/bin/sh CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-qmail if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built fi sh SlackBuild.qmail sh SlackBuild.checkpassword sh SlackBuild.ucspi-tcp # compress man pages for i in 1 5 7 8 ; do gzip -9 $PKG/usr/man/man$i/* done # Build the package: cd $PKG echo "n n" | makepkg $TMP/qmail.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/checkpassword-0.90 rm -rf $TMP/qmail-1.03 rm -rf $TMP/ucspi-tcp-0.88 rm -rf $PKG fi