[arch-commits] Commit in irqbalance/trunk (PKGBUILD config.patch irqbalance.service)
Anatol Pomozov
anatolik at archlinux.org
Mon Dec 18 18:45:07 UTC 2017
Date: Monday, December 18, 2017 @ 18:45:07
Author: anatolik
Revision: 313308
upgpkg: irqbalance 1.3.0-1
Added:
irqbalance/trunk/config.patch
Modified:
irqbalance/trunk/PKGBUILD
Deleted:
irqbalance/trunk/irqbalance.service
--------------------+
PKGBUILD | 25 +++++++++++++++++--------
config.patch | 29 +++++++++++++++++++++++++++++
irqbalance.service | 9 ---------
3 files changed, 46 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-18 16:26:21 UTC (rev 313307)
+++ PKGBUILD 2017-12-18 18:45:07 UTC (rev 313308)
@@ -2,22 +2,29 @@
# Contributor: Martin Striz <ms at poruba.net>
pkgname=irqbalance
-pkgver=1.2.0
+pkgver=1.3.0
pkgrel=1
pkgdesc="IRQ balancing daemon for SMP systems"
arch=('x86_64')
url="https://github.com/Irqbalance/irqbalance"
license=('GPL')
-depends=('glib2' 'numactl' 'libcap-ng')
+backup=('etc/irqbalance.env')
+depends=('glib2' 'numactl' 'libcap-ng' 'libsystemd')
+makedepends=('systemd')
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
- irqbalance.service)
-md5sums=('d1b3f2c31389f2ab955dfa3d02f9f296'
- '767061c257b26cc3e3c4a5e462166579')
+ config.patch)
+sha1sums=('2797747812d65fcfa83d7e3610857e6326df933a'
+ 'f5750dd9b53ef77c3dcb46ea70622c6c4d462888')
+prepare() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -p1 < ../config.patch
+}
+
build() {
cd "$srcdir/$pkgname-$pkgver"
./autogen.sh
- ./configure --prefix=/usr --sbindir=/usr/bin
+ ./configure --prefix=/usr --sbindir=/usr/bin --with-systemd
make
}
@@ -24,6 +31,8 @@
package() {
cd "$srcdir/$pkgname-$pkgver"
make install DESTDIR="$pkgdir"
- install -D -m644 ../irqbalance.service \
- "$pkgdir"/usr/lib/systemd/system/irqbalance.service
+
+ install -D -m644 misc/irqbalance.service "$pkgdir"/usr/lib/systemd/system/irqbalance.service
+ install -D -m644 misc/irqbalance.env "$pkgdir"/etc/irqbalance.env
+ install -D -m644 misc/90-irqbalance.rules "$pkgdir"/usr/lib/udev/rules.d/90-irqbalance.rules
}
Added: config.patch
===================================================================
--- config.patch (rev 0)
+++ config.patch 2017-12-18 18:45:07 UTC (rev 313308)
@@ -0,0 +1,29 @@
+diff --git a/configure.ac b/configure.ac
+index 38a1bee..5e9cc03 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -53,9 +53,6 @@ AC_ARG_WITH([systemd],
+ AS_IF(
+ [test "x$with_systemd" = xyes], [
+ PKG_CHECK_MODULES([SYSTEMD], [libsystemd], [journal_lib=yes], [journal_lib=no])
+- AS_IF([test "x$journal_lib" != "xyes"], [
+- PKG_CHECK_MODULES([SYSTEMD], [libsystemd-journal], [journal_lib=yes])
+- ])
+ AC_DEFINE(HAVE_LIBSYSTEMD, 1, [systemd support])
+ AC_CHECK_LIB([systemd], [sd_journal_print_with_location])
+ AC_CHECK_LIB([systemd], [sd_journal_print])
+diff --git a/misc/irqbalance.service b/misc/irqbalance.service
+index e9a5527..a8451d9 100644
+--- a/misc/irqbalance.service
++++ b/misc/irqbalance.service
+@@ -3,8 +3,8 @@ Description=irqbalance daemon
+ ConditionVirtualization=!container
+
+ [Service]
+-EnvironmentFile=/path/to/irqbalance.env
+-ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
++EnvironmentFile=/etc/irqbalance.env
++ExecStart=/usr/bin/irqbalance --foreground $IRQBALANCE_ARGS
+
+ [Install]
+ WantedBy=multi-user.target
Deleted: irqbalance.service
===================================================================
--- irqbalance.service 2017-12-18 16:26:21 UTC (rev 313307)
+++ irqbalance.service 2017-12-18 18:45:07 UTC (rev 313308)
@@ -1,9 +0,0 @@
-[Unit]
-Description=CPU Interrupt Request Balancer
-
-[Service]
-ExecStart=/usr/bin/irqbalance --foreground
-ExecReload=/bin/kill -HUP $MAINPID
-
-[Install]
-WantedBy=multi-user.target
More information about the arch-commits
mailing list