diff options
Diffstat (limited to 'system/xen/xen.SlackBuild')
-rw-r--r-- | system/xen/xen.SlackBuild | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/system/xen/xen.SlackBuild b/system/xen/xen.SlackBuild index 38d3ecbfdd..a7aae6fdf6 100644 --- a/system/xen/xen.SlackBuild +++ b/system/xen/xen.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for xen -# Copyright 2010, 2011, 2013, 2014, 2015 Mario Preksavec, Zagreb, Croatia +# Copyright 2010, 2011, 2013, 2014, 2015, 2016 Mario Preksavec, Zagreb, Croatia # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=xen -VERSION=${VERSION:-4.5.2} +VERSION=${VERSION:-4.5.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -40,7 +40,7 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ $ARCH == "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then +if [ "$ARCH" = "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then cat << EOF For a 32bit guest support 32bit libs are required to build the @@ -69,14 +69,12 @@ else LIBDIRSUFFIX="" fi -USE_LIBSSH2=${USE_LIBSSH2:-no} -case "$LIBSSH2" in +case "${USE_LIBSSH2:-no}" in yes) LIBSSH2="en" ;; *) LIBSSH2="dis" ;; esac -USE_BLUEZ=${USE_BLUEZ:-no} -case "$BLUEZ" in +case "${USE_BLUEZ:-no}" in yes) BLUEZ="en" ;; *) BLUEZ="dis" ;; esac @@ -100,7 +98,7 @@ find -L . \ for i in $CWD/patches/xsa* ; do case $i in *qemut*.patch) patch -d tools/qemu-xen-traditional -p1 <$i ;; - *qemuu*.patch) patch -d tools/qemu-xen -p1 <$i ;; + *qemu*.patch) patch -d tools/qemu-xen -p1 <$i ;; *.patch) patch -p1 <$i ;; esac done @@ -170,9 +168,7 @@ make install-docs \ find $PKG/boot/ -type l -a -name "xen-*" -exec rm -f {} \; 2>/dev/null || true # Move from SYSV to BSD init scripts -mv $PKG/etc/rc.d/init.d/xen-watchdog $PKG/etc/rc.d/rc.xen-watchdog.new -mv $PKG/etc/rc.d/init.d/xencommons $PKG/etc/rc.d/rc.xencommons.new -mv $PKG/etc/rc.d/init.d/xendomains $PKG/etc/rc.d/rc.xendomains.new +( cd $PKG/etc/rc.d/init.d && for i in * ; do mv $i ../rc.$i.new ; done ) # Put udev rules files in the right place mkdir -p $PKG/lib/udev/rules.d @@ -182,10 +178,7 @@ mv $PKG/etc/udev/rules.d/xen*.rules $PKG/lib/udev/rules.d/ rmdir $PKG/etc/{rc.d/init.d,udev/rules.d,udev} # Append .new to config files -for i in $PKG/etc/xen/*.conf ; do mv $i $i.new ; done -mv $PKG/etc/qemu/target-x86_64.conf $PKG/etc/qemu/target-x86_64.conf.new -mv $PKG/etc/default/xencommons $PKG/etc/default/xencommons.new -mv $PKG/etc/default/xendomains $PKG/etc/default/xendomains.new +for i in $PKG/etc/{default/*,{qemu,xen}/*.conf} ; do mv $i $i.new ; done find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |