#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-pnp SRC=/devel/manpagesrc INFO=/devel/info-pages/usr/info TEX=/devel/texinfo-docs 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/_pnp.tar.gz cd $TMP tar xzvf $CWD/PnP4kernel.tar.gz cd pnp/tools zcat $CWD/PnP4kernel.diff.gz | patch make strip pnpconfig mkdir -p $PKG/sbin cp pnpconfig $PKG/sbin chown root.bin $PKG/sbin/pnpconfig chmod 755 $PKG/sbin/pnpconfig mkdir -p $PKG/etc cp -a pnpdevices $PKG/etc cd .. mkdir -p $PKG/usr/doc/plug-and-play cp -a COPYRIGHT DISCLAIMER INSTALL \ PnP.devs README USE $PKG/usr/doc/plug-and-play # Build the package: cd $PKG tar czvf $TMP/pnp.tgz . # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $PKG rm -rf $TMP/pnp fi