diff options
Diffstat (limited to 'system/kmscon/kmscon.SlackBuild')
-rw-r--r-- | system/kmscon/kmscon.SlackBuild | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/system/kmscon/kmscon.SlackBuild b/system/kmscon/kmscon.SlackBuild index a8aafaaa030b..f7a936ff7f65 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 |