#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-ppp VERSION=2.4.4 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG echo "+============+" echo "| ppp-$VERSION |" echo "+============+" ( cd $TMP rm -rf ppp-$VERSION tar xjf $CWD/ppp-$VERSION.tar.bz2 cd ppp-$VERSION chown -R root.root . zcat $CWD/ppp.slack.diff.gz | patch -p1 --verbose || exit ./configure \ --prefix=/usr \ $TARGET make || exit make install DESTDIR=$PKG/usr mkdir -p $PKG/etc/ppp cp -a etc.ppp/* $PKG/etc/ppp # Fix what seems like a pointless (and maybe insecure) default setting: chmod 755 $PKG/usr/lib/pppd/*/rp-pppoe.so ( cd $PKG/etc/ppp mv chap-secrets chap-secrets.new mv options options.new mv pap-secrets pap-secrets.new ) zcat $CWD/options.new.gz > $PKG/etc/ppp/options.new mkdir -p $PKG/usr/doc/ppp-$VERSION cp -a FAQ PLUGINS README* SETUP scripts $PKG/usr/doc/ppp-$VERSION ( cd $PKG/usr/share ; mv man ../ ) echo "+===============+" echo "| pppsetup-1.98 |" echo "+===============+" cd $TMP rm -rf pppsetup-1.98 tar xzf $CWD/pppsetup-1.98.tar.gz cd pppsetup-1.98 chown -R root.root . zcat $CWD/pppsetup-1.98.slack.diff.gz | patch -p1 --verbose || exit zcat $CWD/pppsetup-1.98.pppoff.diff.gz | patch -p0 --verbose || exit zcat $CWD/pppsetup-1.98.moredevs.diff.gz | patch -p1 --verbose || exit zcat $CWD/pppsetup-1.98.backupfiles.diff.gz | patch -p1 --verbose || exit chown root.bin ppp-off pppsetup chmod 755 ppp-off pppsetup cp -a ppp-off pppsetup $PKG/usr/sbin mkdir -p $PKG/usr/doc/pppsetup cp -a README.pppsetup ppp-compile.txt pppsetup-1.98.README pppsetup-1.98.lsm $PKG/usr/doc/pppsetup chown -R root.bin $PKG/usr/sbin ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) gzip -9 $PKG/usr/man/man?/*.? chmod 755 $PKG/usr/sbin/* chmod 644 $PKG/usr/man/man?/* 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/ppp-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/ppp.build.log