#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-netkit-ftp VERSION=0.17 ARCH=alpha BUILD=1 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf netkit-ftp-$VERSION tar xzf $CWD/netkit-ftp-$VERSION.tar.gz cd netkit-ftp-$VERSION chown -R root:root . ./configure \ --prefix=/usr make || exit 1 cd ftp strip ftp mkdir -p $PKG/bin cat ftp > $PKG/bin/ftp chmod 755 $PKG/bin/ftp mkdir -p $PKG/usr/man/man{1,5} cat ftp.1 | gzip -9c > $PKG/usr/man/man1/ftp.1.gz cat netrc.5 | gzip -9c > $PKG/usr/man/man5/netrc.5.gz cd .. mkdir -p $PKG/usr/doc/netkit-ftp-$VERSION cp -a README $PKG/usr/doc/netkit-ftp-$VERSION chown root:root $PKG/usr/doc/netkit-ftp-$VERSION/* chmod 644 $PKG/usr/doc/netkit-ftp-$VERSION/* # Finish up the package: mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/netkit-ftp-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/netkit-ftp.build.log