wget http://www.gnuwakes.org/depot/1.0/main/sources/wkpkg-1.1.tar.gz tar -xf wkpkg-1.1.tar.gz wget http://www.gnuwakes.org/depot/1.0/main/sources/wkpkg.patch cd wkpkg-1.1 patch -p1 < ../wkpkg.patch cd .. SOURCES_DIR=$PWD/wkpkg-1.1 INSTALL_DIR=$PWD/wkpkg-1.1-install BUILD_DIR=$PWD/wkpkg-1.1-build mkdir $INSTALL_DIR $BUILD_DIR cd $BUILD_DIR # don't create the /var/wkpkg folders here because of the chroot # install that use them already (conflict). Just the bin folder. rsync -a $SOURCES_DIR/ . make -C wkpkg mkdir -v $INSTALL_DIR/bin cp -v wkpkg/wkpkg scripts/* $INSTALL_DIR/bin mkdir -vp $INSTALL_DIR/etc/ssl/certs cp -dv certs/* $INSTALL_DIR/etc/ssl/certs