summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-22 05:05:57 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-03-22 05:05:57 -0300
commit702559018be7e74df3053c9232a04e0e85e7b427 (patch)
tree8e6bdc076c000b0ed109dfe1c1925a30adf2d9f7
parent42e4d800a8eb2bcf22251468f06391863b785630 (diff)
downloadabslibre-702559018be7e74df3053c9232a04e0e85e7b427.tar.gz
abslibre-702559018be7e74df3053c9232a04e0e85e7b427.tar.bz2
abslibre-702559018be7e74df3053c9232a04e0e85e7b427.zip
rtirq: add new package to [pcr]
-rw-r--r--pcr/rtirq/PKGBUILD25
-rw-r--r--pcr/rtirq/rtirq.install33
2 files changed, 58 insertions, 0 deletions
diff --git a/pcr/rtirq/PKGBUILD b/pcr/rtirq/PKGBUILD
new file mode 100644
index 000000000..66f2710f6
--- /dev/null
+++ b/pcr/rtirq/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer (Arch): Corey Mwamba <contact.me@coreymwamba.co.uk>
+pkgname=rtirq
+pkgver=20150216
+pkgrel=1
+pkgdesc="Realtime IRQ thread system tuning."
+arch=('any')
+url="http://www.rncbc.org/jack/"
+license=('GPL')
+groups=('multimedia')
+depends=('bash')
+backup=('etc/conf.d/rtirq' 'usr/lib/systemd/system/rtirq.service')
+install=rtirq.install
+source=(http://www.rncbc.org/jack/$pkgname-$pkgver.tar.gz)
+md5sums=('59e8b012c16b1e879ce8648f537400c5')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+sed -e "s|etc/sysconfig/rtirq|etc/conf.d/rtirq|" -i rtirq.sh
+sed -e "s|IRQ\.|irq/|" -i rtirq.sh
+sed -e "s|etc/init.d|usr/bin|" -i rtirq.service
+install -vD rtirq.sh -m 0755 $pkgdir/usr/bin/rtirq
+install -vD rtirq.conf -m 0644 $pkgdir/etc/conf.d/rtirq
+install -vD rtirq.service -m 0644 $pkgdir/usr/lib/systemd/system/rtirq.service
+}
+
diff --git a/pcr/rtirq/rtirq.install b/pcr/rtirq/rtirq.install
new file mode 100644
index 000000000..d4488c287
--- /dev/null
+++ b/pcr/rtirq/rtirq.install
@@ -0,0 +1,33 @@
+# arg 1: the new package version
+post_install() {
+ cat << EOF
+
+==> This script works in conjunction with a realtime kernel.
+==> To enable rtirq from start-up:
+==> #systemctl enable rtirq
+==> To start it manually:
+==> # systemctl start rtirq
+==> Configuration takes place in /etc/conf.d/rtirq
+
+EOF
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+ cat << EOF
+
+==> This script works in conjunction with a realtime kernel.
+==> To enable rtirq from start-up:
+==> #systemctl enable rtirq
+==> To start it manually:
+==> # systemctl start rtirq
+==> Configuration takes place in /etc/conf.d/rtirq
+
+
+EOF
+}
+
+op=$1
+shift
+$op $*