diff options
Diffstat (limited to '')
-rwxr-xr-x | dosemu/build/dosemu.SlackBuild | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/dosemu/build/dosemu.SlackBuild b/dosemu/build/dosemu.SlackBuild index 385b8ebe..1645b704 100755 --- a/dosemu/build/dosemu.SlackBuild +++ b/dosemu/build/dosemu.SlackBuild @@ -35,6 +35,8 @@ # * Update. # 1.4.0-1: 14/oct/2007 by Eric Hameleers <alien@slackware.com> # * Update. +# 1.4.0-2: 16/dec/2007 by Eric Hameleers <alien@slackware.com> +# * Fix permissions on the freedos binaries. # # Run 'sh dosemu.SlackBuild --cleanup' to build a Slackware package. # The package (.tgz) plus descriptive .txt file are created in /tmp . @@ -48,7 +50,7 @@ PRGNAM=dosemu VERSION=${VERSION:-"1.4.0"} FDVERSION=${FDVERSION:-"1.0"} ARCH=${ARCH:-"i486"} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} DOCS="BUGS COPYING* ChangeLog* INSTALL NEWS QuickStart README* THANKS VERSION" @@ -64,16 +66,16 @@ OUTPUT=${OUTPUT:-"/tmp"} # Input URL: http://dl.sourceforge.net/dosemu/dosemu-1.3.4.tgz SOURCE[0]="$SRCDIR/${PRGNAM}-${VERSION}.tgz" -SRCURL[0]="http://dl.sourceforge.net/${PRGNAM}/${PRGNAM}-${VERSION}.tgz" +SRCURL[0]="http://downloads.sourceforge.net/${PRGNAM}/${PRGNAM}-${VERSION}.tgz" # This is the binary freedos package needed by dosemu: SOURCE[1]="$SRCDIR/${PRGNAM}-freedos-${FDVERSION}-bin.tgz" -SRCURL[1]="http://dl.sourceforge.net/${PRGNAM}/${PRGNAM}-freedos-${FDVERSION}-bin.tgz" +SRCURL[1]="http://downloads.sourceforge.net/${PRGNAM}/${PRGNAM}-freedos-${FDVERSION}-bin.tgz" # For completeness sake, the sources for the freedos-bin package (even though # we will not use them: SOURCE[2]="$SRCDIR/${PRGNAM}-freedos-${FDVERSION}-sources.tgz" -SRCURL[2]="http://dl.sourceforge.net/${PRGNAM}/${PRGNAM}-freedos-${FDVERSION}-sources.tgz" +SRCURL[2]="http://downloads.sourceforge.net/${PRGNAM}/${PRGNAM}-freedos-${FDVERSION}-sources.tgz" ## ## --- with a little luck, you won't have to edit below this point --- ## @@ -129,7 +131,7 @@ for (( i = 0; i < ${#SOURCE[*]}; i++ )) ; do [ -w "$SRCDIR" ] || SOURCE[$i]="$OUTPUT/`basename ${SOURCE[$i]}`" echo "Source '`basename ${SOURCE[$i]}`' not available yet..." echo "Will download file to `dirname $SOURCE[$i]`" - wget -nv --connect-timeout=20 -O "${SOURCE[$i]}" "${SRCURL[$i]}" || true + wget -nv -T 20 -O "${SOURCE[$i]}" "${SRCURL[$i]}" || true if [ $? -ne 0 -o ! -s "${SOURCE[$i]}" ]; then echo "Downloading '`basename ${SOURCE[$i]}`' failed.. aborting the build." mv -f "${SOURCE[$i]}" "${SOURCE[$i]}".FAIL @@ -192,6 +194,10 @@ else make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log fi +# Fix permissions of the binaries extracted from the freedos package: +chown -R root:root $PKG/usr/share/dosemu +chmod -R u+w,go+r-w,a-s $PKG/usr/share/dosemu + # Create the 'HDIMAGE_DIR' where dosemu looks for disk images (amongst others) mkdir -p $PKG/var/lib/dosemu |