aboutsummaryrefslogtreecommitdiff
path: root/system/incron
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-11 03:47:01 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-12 13:32:51 +0700
commitd2010f7b96b86520e435beed898ddc05c8263e1a (patch)
treef233e0da367bf342f1344448a6b09f78caa8c170 /system/incron
parent4697c2b69f19bb6d902a5570fbdebb401cf60bf2 (diff)
system/incron: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/incron')
-rw-r--r--system/incron/incron.SlackBuild26
1 files changed, 13 insertions, 13 deletions
diff --git a/system/incron/incron.SlackBuild b/system/incron/incron.SlackBuild
index 60cc35c9272ff..e400422d36bcb 100644
--- a/system/incron/incron.SlackBuild
+++ b/system/incron/incron.SlackBuild
@@ -5,6 +5,7 @@
# Written by Asaf Ohaion asaf@lingnu.com
# Modified by Willy Sudiarto Raharjo <willysr@slackware-id.org>
# Modified 2017 by Marek Srejma <sam_web@yahoo.de>
+# Modified 2022 by B. Watson <yalhcru@gmail.com>, to fix Slack 15.0 build.
cd $(dirname $0) ; CWD=$(pwd)
@@ -22,9 +23,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
@@ -59,26 +57,28 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
sed -i 's|/share/|/|g' Makefile
-make PREFIX=/usr
-make install DESTDIR=$PKG PREFIX=/usr MANPATH=/usr/man
+make \
+ PREFIX=/usr \
+ MANPATH=/usr/man \
+ OPTIMIZE="$SLKCFLAGS -std=gnu++11" \
+ DEBUG="-Wl,-s" \
+ DESTDIR=$PKG \
+ all \
+ install
+
+gzip -9 $PKG/usr/man/man*/*
# Install init script:
mkdir -p $PKG/etc/rc.d
cp $CWD/rc.incrond $PKG/etc/rc.d/rc.incrond.new
chmod 644 $PKG/etc/rc.d/rc.incrond.new
-find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGELOG COPYING README LICENSE-* VERSION $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild