diff options
author | Marek Srejma <sam_web@yahoo.de> | 2017-04-30 21:36:22 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-30 21:36:22 +0700 |
commit | 7000ec52a66a66af713a3b53638c312b4a2def5e (patch) | |
tree | 9a4eb6231c2baeef4515e0dbf1b8c322d9584071 /system/incron/incron.SlackBuild | |
parent | ad1a1d82ce65a9a1b79ac9c2bd73cabd867e1a35 (diff) | |
download | slackbuilds-7000ec52a66a66af713a3b53638c312b4a2def5e.tar.gz |
system/incron: Updated for version 0.6.0 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/incron/incron.SlackBuild')
-rw-r--r-- | system/incron/incron.SlackBuild | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/system/incron/incron.SlackBuild b/system/incron/incron.SlackBuild index aa4573bea6..01dd2dfd36 100644 --- a/system/incron/incron.SlackBuild +++ b/system/incron/incron.SlackBuild @@ -4,15 +4,16 @@ # 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> PRGNAM=incron -VERSION=${VERSION:-0.5.10} +VERSION=${VERSION:-0.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -23,8 +24,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -43,22 +44,25 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* 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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; -sed -i '1,1i#include <unistd.h>' inotify-cxx.cpp icd-main.cpp -sed -i '1,1i#include <stdio.h>' icd-main.cpp inotify-cxx.cpp usertable.cpp appargs.cpp -sed -i 's|strchr(s,|(char*)strchr(s,|' incroncfg.cpp +sed -i 's|/share/|/|g' Makefile make PREFIX=/usr make install DESTDIR=$PKG PREFIX=/usr MANPATH=/usr/man +# Install init script: +mkdir -p $PKG/etc/rc.d +cp -a $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 @@ -66,12 +70,11 @@ 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 \ - doc/html CHANGELOG COPYING README LICENSE-* TODO VERSION \ - $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 mkdir -p $PKG/install +cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG |