summaryrefslogtreecommitdiff
path: root/system/kmscon/kmscon.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-25 02:31:43 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:41 +0700
commitf308b784eade50b815dc9bfec44ae4c51edb4c02 (patch)
treea3b8ed614fe916836e797f0da04254b7261502d5 /system/kmscon/kmscon.SlackBuild
parent12378c30376d8588e1e3f1f283000145b4e0e4c4 (diff)
downloadslackbuilds-f308b784eade50b815dc9bfec44ae4c51edb4c02.tar.gz
system/kmscon: Updated for version 8+20140708_0b34527.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/kmscon/kmscon.SlackBuild')
-rw-r--r--system/kmscon/kmscon.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/system/kmscon/kmscon.SlackBuild b/system/kmscon/kmscon.SlackBuild
index a8aafaaa03..f7a936ff7f 100644
--- a/system/kmscon/kmscon.SlackBuild
+++ b/system/kmscon/kmscon.SlackBuild
@@ -6,10 +6,13 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210825 bkw: update to the last git commit, post v8 release. It's from
+# 2014, so I doubt there will be more version updates.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=kmscon
-VERSION=${VERSION:-8}
+VERSION=${VERSION:-8+20140708_0b34527}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +25,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -57,11 +57,14 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
-find -L . \
- \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+# Fix build on -current: add #include <sys/sysmacros.h> to files that
+# use major() and minor()
+patch -p1 < $CWD/sysmacros.diff
+
+[ -x configure ] || autoreconf -if
SLKCFLAGS="$SLKCFLAGS -DSIGUNUSED=SIGSYS"
CFLAGS="$SLKCFLAGS" \
@@ -82,6 +85,9 @@ make install-strip DESTDIR=$PKG
gzip $PKG/usr/man/man1/$PRGNAM.1
+# we don't seem to need the .la files
+rm -f $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/*.la
+
mkdir -p $PKG/etc/$PRGNAM
cat $CWD/$PRGNAM.conf > $PKG/etc/$PRGNAM/$PRGNAM.conf.new