#!/bin/sh DOCS="CHANGES README TODO" 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 # Explode the package framework: cd $PKG explodepkg $CWD/_checkpassword.tar.gz cd $TMP tar xvfz $CWD/checkpassword-0.90.tar.gz cd checkpassword-0.90 echo "Building checkpassword..." # Make it! make # Man pages for i in 8 ; do find . -name "*.$i" -exec cp -a {} $PKG/usr/man/man$i \; done # Copy the docs mkdir -p $PKG/usr/doc/checkpassword-0.90 cp -a $DOCS $PKG/usr/doc/checkpassword-0.90 # it cat checkpassword > $PKG/bin/checkpassword