summaryrefslogtreecommitdiffstats
path: root/source/a/syslinux/syslinux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/syslinux/syslinux.SlackBuild')
-rwxr-xr-xsource/a/syslinux/syslinux.SlackBuild22
1 files changed, 13 insertions, 9 deletions
diff --git a/source/a/syslinux/syslinux.SlackBuild b/source/a/syslinux/syslinux.SlackBuild
index e879b9910..e01d13b45 100755
--- a/source/a/syslinux/syslinux.SlackBuild
+++ b/source/a/syslinux/syslinux.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2006, 2007, 2008, 2009, 2010, 2012 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2006, 2007, 2008, 2009, 2010, 2012, 2016 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,13 +22,13 @@
PKGNAM=syslinux
-VERSION=${VERSION:-4.06}
+VERSION=${VERSION:-4.07}
BUILD=${BUILD:-1}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
+ i?86) export ARCH=i586 ;;
arm*) export ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) export ARCH=$( uname -m ) ;;
@@ -49,16 +49,20 @@ cd ${PKGNAM}-$VERSION
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
- \( -perm 2777 -o -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ \( -perm 2777 -o -perm 2775 -o -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+find . -type d -exec chmod u-s,g-s {} \;
-# Build:
-make -j4 || exit 1
+# Clean, then build only the installer programs using the supplied assembled
+# ldlinux.asm:
+# See: http://www.syslinux.org/wiki/index.php?title=Doc/distrib
+make clean || exit 1
+make -j2 installer || exit 1
-# Without -i, the following fails trying to install w32 junk:
-make -i install INSTALLROOT=/tmp/package-syslinux
+# Install:
+make install INSTALLROOT=/tmp/package-syslinux || exit 1
cp -a linux/syslinux-nomtools $PKG/usr/bin
chmod 755 $PKG/usr/bin/*
@@ -83,7 +87,7 @@ fi
# Add a documentation directory:
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION/{cmenu,com32}
cp -a \
- BUGS COPYING NEWS README* TODO \
+ BUGS COPYING* NEWS README* TODO \
doc \
$PKG/usr/doc/${PKGNAM}-$VERSION
cp -a com32/LICENCE $PKG/usr/doc/${PKGNAM}-$VERSION/com32