=================================================================== RCS file: /cvs2/dgamelaunch-openbsd/dgl-create-chroot,v retrieving revision 1.3 retrieving revision 1.4 diff -u -p -r1.3 -r1.4 --- dgamelaunch-openbsd/dgl-create-chroot 2021/03/09 15:39:32 1.3 +++ dgamelaunch-openbsd/dgl-create-chroot 2021/03/16 10:00:11 1.4 @@ -14,7 +14,7 @@ CHROOT="/opt/nethack/nethack.alt.org/" # the user & group from dgamelaunch config file. USRGRP="games:games" # COMPRESS from include/config.h; the compression binary to copy. leave blank to skip. -COMPRESSBIN="/bin/gzip" +COMPRESSBIN="/usr/bin/gzip" # nethack binary to copy into chroot (leave blank to skip) #NETHACKBIN="/home/paxed/hacking/coding/nethacksource/nethack-3.4.3-nao/nh343/nethack.343-nao" # fixed data to copy (leave blank to skip) @@ -78,21 +78,21 @@ fi CURDIR="`pwd`" -if [ ! -e "$CURDIR/dgamelaunch" ]; then - errorexit "Cannot find dgamelaunch in $CURDIR" +if [ ! -e "$CURDIR/dgamelaunch-openbsd" ]; then + errorexit "Cannot find dgamelaunch-openbsd in $CURDIR" fi DGLFILE="dgamelaunch.`date +%Y%m%d`" echo "Setting up chroot in $CHROOT" -LIBS="`findlibs dgamelaunch`" +LIBS="`findlibs dgamelaunch-openbsd`" mkdir -p "$CHROOT" || errorexit "Cannot create chroot" cd "$CHROOT" mkdir dgldir etc lib mail usr bin chown "$USRGRP" dgldir mail -cp "$CURDIR/dgamelaunch" "$DGLFILE" +cp "$CURDIR/dgamelaunch-openbsd" "$DGLFILE" ln -s "$DGLFILE" dgamelaunch mkdir -p "$CHROOT/dgldir/inprogress-nh343"