system/rtirq: Updated for version 20210530_acf01e7.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-08-24 03:28:00 -04:00 committed by Willy Sudiarto Raharjo
parent c2e2304deb
commit f187e25e4e
No known key found for this signature in database
GPG key ID: 3F617144D7238786
5 changed files with 64 additions and 17 deletions

View file

@ -3,7 +3,7 @@ rtirq (set priorities on kernel IRQ threads)
The rtirq script is a bash script written by Rui Nuno Capela which works
in conjunction with the IRQ threading facility of the Linux kernel. The
script takes advantage of the fact that the kernel can use threads for
IRQs management, and as such these threads (like any other thread running
IRQ management, and as such these threads (like any other thread running
on your system) can be given maximum priority in an effort to minimize
the latency of audio peripherals.

44
system/rtirq/git2tarxz.sh Normal file
View file

@ -0,0 +1,44 @@
#!/bin/sh
# Create source tarball from git repo, with generated version
# number.
# Note that this script doesn't need to be run as root. It does
# need to be able to write to the current directory it's run from.
# Takes one optional argument, which is the commit or tag to create
# a tarball of. With no arg, HEAD is used.
PRGNAM=rtirq
CLONE_URL=https://github.com/rncbc/rtirq
set -e
GITDIR=$( mktemp -dt $PRGNAM.git.XXXXXX )
rm -rf $GITDIR
git clone $CLONE_URL $GITDIR
CWD="$( pwd )"
cd $GITDIR
if [ "$1" != "" ]; then
git reset --hard "$1" || exit 1
fi
GIT_SHA=$( git rev-parse --short HEAD )
DATE=$( git log --date=format:%Y%m%d --format=%cd | head -1 )
VERSION=${DATE}_${GIT_SHA}
rm -rf .git
find . -name .gitignore -print0 | xargs -0 rm -f
cd "$CWD"
rm -rf $PRGNAM-$VERSION $PRGNAM-$VERSION.tar.xz
mv $GITDIR $PRGNAM-$VERSION
tar cvfJ $PRGNAM-$VERSION.tar.xz $PRGNAM-$VERSION
echo
echo "Created tarball: $PRGNAM-$VERSION.tar.xz"
echo "VERSION=$VERSION"

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="rtirq"
VERSION="20150216"
HOMEPAGE="https://alsa.opensrc.org/Rtirq"
DOWNLOAD="https://slackware.uk/~urchlay/src/rtirq-20150216.tar.gz"
MD5SUM="59e8b012c16b1e879ce8648f537400c5"
VERSION="20210530_acf01e7"
HOMEPAGE="https://github.com/rncbc/rtirq"
DOWNLOAD="https://slackware.uk/~urchlay/src/rtirq-20210530_acf01e7.tar.xz"
MD5SUM="14d9c4b6ec1ba8fe4abd70c4315eea04"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

View file

@ -11,7 +11,7 @@ rtirq:
rtirq: The rtirq script is a bash script written by Rui Nuno Capela which
rtirq: works in conjunction with the IRQ threading facility of the Linux
rtirq: kernel. The script takes advantage of the fact that the kernel can
rtirq: use threads for IRQs management, and as such these threads (like any
rtirq: use threads for IRQ management, and as such these threads (like any
rtirq: other thread running on your system) can be given maximum priority
rtirq: in an effort to minimize the latency of audio peripherals.
rtirq: