#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-popa3d VERSION=0.6.4.1 ARCH=alpha BUILD=1 mkdir -p $PKG ( cd $TMP rm -rf popa3d-$VERSION tar xzf $CWD/popa3d-$VERSION.tar.gz cd popa3d-$VERSION chown -R root.root . zcat $CWD/popa3d.diff.gz | patch -p1 zcat $CWD/popa3d-1.diff.gz | patch -p1 make mkdir -p $PKG/usr/sbin cat popa3d > $PKG/usr/sbin/popa3d chmod 755 $PKG/usr/sbin/popa3d chown -R root.bin $PKG/usr/sbin mkdir -p $PKG/usr/man/man8 cat popa3d.8 | gzip -9c > $PKG/usr/man/man8/popa3d.8.gz mkdir -p $PKG/var/spool/pop mkdir -p $PKG/usr/doc/popa3d-$VERSION cp -a CHANGES CONTACT DESIGN INSTALL LICENSE VIRTUAL $PKG/usr/doc/popa3d-$VERSION chmod 644 $PKG/usr/doc/popa3d-$VERSION/* mkdir -p $PKG/install zcat $CWD/doinst.sh.gz > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/popa3d-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/popa3d.build.log