summaryrefslogtreecommitdiff
path: root/system/xen/xen.SlackBuild
diff options
context:
space:
mode:
authorMario Preksavec <mario@slackware.hr>2016-03-31 22:20:20 +0200
committerRobby Workman <rworkman@slackbuilds.org>2016-04-03 02:33:04 -0500
commit50cf57ce56b4877aca6148cd3de5efb13157cea9 (patch)
treedbd3a9c1c903b266b9ac216cdba631a785ac87ff /system/xen/xen.SlackBuild
parent7859671412ce6e2cbe91dfd00657f675e44dca07 (diff)
downloadslackbuilds-50cf57ce56b4877aca6148cd3de5efb13157cea9.tar.gz
system/xen: Updated for kernel 4.4.6 and fixes.
Signed-off-by: Mario Preksavec <mario@slackware.hr>
Diffstat (limited to 'system/xen/xen.SlackBuild')
-rw-r--r--system/xen/xen.SlackBuild28
1 files changed, 17 insertions, 11 deletions
diff --git a/system/xen/xen.SlackBuild b/system/xen/xen.SlackBuild
index fc7746cb1f..91d44d50c2 100644
--- a/system/xen/xen.SlackBuild
+++ b/system/xen/xen.SlackBuild
@@ -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,18 +69,21 @@ 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
+case "${BUILD_STUBDOM:-no}" in
+ yes) STUBDOM="en" ;;
+ *) STUBDOM="dis" ;;
+esac
+
set -e
rm -rf $PKG
@@ -139,6 +142,7 @@ CXXFLAGS="$SLKCFLAGS" \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-qemu-traditional \
--disable-rombios \
+ --${STUBDOM}able-stubdom \
--build=$ARCH-slackware-linux
make install-xen \
@@ -155,12 +159,14 @@ make install-tools \
MANDIR=/usr/man \
DESTDIR=$PKG
-make install-stubdom \
- docdir=/usr/doc/$PRGNAM-$VERSION \
- DOCDIR=/usr/doc/$PRGNAM-$VERSION \
- mandir=/usr/man \
- MANDIR=/usr/man \
- DESTDIR=$PKG
+if [ "$STUBDOM" = "en" ]; then
+ make install-stubdom \
+ docdir=/usr/doc/$PRGNAM-$VERSION \
+ DOCDIR=/usr/doc/$PRGNAM-$VERSION \
+ mandir=/usr/man \
+ MANDIR=/usr/man \
+ DESTDIR=$PKG
+fi
make install-docs \
docdir=/usr/doc/$PRGNAM-$VERSION \