diff options
author | B. Watson <yalhcru@gmail.com> | 2021-08-24 03:28:00 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-10-13 00:51:37 +0700 |
commit | f187e25e4efbc437055951110364d22546ec95f0 (patch) | |
tree | 6c05f82b86c819b1660a29206baeda98092f0544 /system/rtirq/rtirq.SlackBuild | |
parent | c2e2304deba1be1b2904c36fc940490223688abd (diff) |
system/rtirq: Updated for version 20210530_acf01e7.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/rtirq/rtirq.SlackBuild')
-rw-r--r-- | system/rtirq/rtirq.SlackBuild | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/system/rtirq/rtirq.SlackBuild b/system/rtirq/rtirq.SlackBuild index 0af1882687279..99d195e336f12 100644 --- a/system/rtirq/rtirq.SlackBuild +++ b/system/rtirq/rtirq.SlackBuild @@ -6,6 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210824 bkw: +# - updated for version 20210530_acf01e7 (add git hash to VERSION) +# - use github homepage +# - fix minor typo in README and slack-desc + # 20150512 bkw: # - updated for version 20150216 @@ -16,16 +21,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rtirq -VERSION=${VERSION:-20150216} +VERSION=${VERSION:-20210530_acf01e7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -# 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 @@ -41,25 +43,26 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +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 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 {} \+ mkdir -p $PKG/etc/rc.d install -m0644 $PRGNAM.conf $PKG/etc/$PRGNAM.conf.new install -m0755 $PRGNAM.sh $PKG/etc/rc.d/rc.$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +if [ -e README.md ]; then + sed -i 's,do sp ,do so ,' README.md + cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION +fi # get rid of DOS line endings on LICENSE sed 's/\r//' LICENSE > $PKG/usr/doc/$PRGNAM-$VERSION/LICENSE -cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README +cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README_SBo.txt cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |