#!/bin/sh EXECS="addcr argv0 date@ delcr finger@ fixcrio http@ mconnect mconnect-io \ rblsmtpd recordio tcpcat tcpclient tcprules tcprulescheck tcpserver who@" 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/_ucspi-tcp.tar.gz cd $TMP tar xvfz $CWD/ucspi-tcp-0.88.tar.gz cd ucspi-tcp-0.88 echo "Building ucspi-tcp..." # Make it! make # Copy executables for i in $EXECS ; do chmod 755 $i strip $i cp -fa $i $PKG/usr/bin done # Copy the docs mkdir -p $PKG/usr/doc/ucspi-tcp-0.88 cp -a $DOCS $PKG/usr/doc/ucspi-tcp-0.88