[arch-commits] Commit in irqbalance/trunk (PKGBUILD config.patch)

David Runge dvzrv at archlinux.org
Thu May 16 20:42:55 UTC 2019


    Date: Thursday, May 16, 2019 @ 20:42:55
  Author: dvzrv
Revision: 353504

upgpkg: irqbalance 1.5.0-2

Updating maintainer. Removing unrequired patch (using sed instead). Switching to correct license (GPL2).
Running autoreconf in prepare() instaead of autogen.sh in build(). Installing docs. Minor cleanups.

Modified:
  irqbalance/trunk/PKGBUILD
Deleted:
  irqbalance/trunk/config.patch

--------------+
 PKGBUILD     |   38 +++++++++++++++++++-------------------
 config.patch |   14 --------------
 2 files changed, 19 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-16 20:24:02 UTC (rev 353503)
+++ PKGBUILD	2019-05-16 20:42:55 UTC (rev 353504)
@@ -1,40 +1,40 @@
-# Maintainer: Dan McGee <dan at archlinux.org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Dan McGee <dan at archlinux.org>
 # Contributor: Martin Striz <ms at poruba.net>
 
 pkgname=irqbalance
 pkgver=1.5.0
-pkgrel=1
+pkgrel=2
 pkgdesc="IRQ balancing daemon for SMP systems"
 arch=('x86_64')
-url="https://github.com/Irqbalance/irqbalance"
-license=('GPL')
+url="https://github.com/irqbalance/irqbalance"
+license=('GPL2')
 backup=('etc/irqbalance.env')
 depends=('glib2' 'numactl' 'libcap-ng' 'systemd-libs')
 makedepends=('systemd')
-source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz
-        config.patch)
-sha1sums=('bb8c786b1aae73679016ae0bbbb7c7dbc488be64'
-          '32e5650f37c64531e69f477959b0c3598acc2825')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/${pkgname}/${pkgname}/archive/v$pkgver.tar.gz")
+sha512sums=('343421fd533d7d161fd05a0edfadaddf1da6ced854a19e9f10ea6c12b97b2ef1629aad855214d9700d31d056bb816bf3ec90cdf7c643a1b6e8af1de5befa64f5')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-  patch -p1 < ../config.patch
+  cd "$pkgname-$pkgver"
+  # fix location of configuration and binary in service
+  sed -e 's|/path/to/|/etc/|g' \
+      -e 's|/usr/sbin|/usr/bin|g' \
+      -i "misc/${pkgname}.service"
+  autoreconf -vfi
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  ./autogen.sh
+  cd "$pkgname-$pkgver"
   ./configure --prefix=/usr --sbindir=/usr/bin --with-systemd
   make
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
   make install DESTDIR="$pkgdir"
-
-  install -D -m644 misc/irqbalance.service "$pkgdir"/usr/lib/systemd/system/irqbalance.service
-  install -D -m644 misc/irqbalance.env "$pkgdir"/etc/irqbalance.env
-
-  # Disable udev rule until we clarify it FS#56785
-  # install -D -m644 misc/90-irqbalance.rules "$pkgdir"/usr/lib/udev/rules.d/90-irqbalance.rules
+  install -vDm 644 misc/irqbalance.service \
+    -t "${pkgdir}/usr/lib/systemd/system/"
+  install -vDm 644 misc/irqbalance.env -t "${pkgdir}/etc/"
+  install -vDm 644 {AUTHORS,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
 }

Deleted: config.patch
===================================================================
--- config.patch	2019-05-16 20:24:02 UTC (rev 353503)
+++ config.patch	2019-05-16 20:42:55 UTC (rev 353504)
@@ -1,14 +0,0 @@
-diff -aur irqbalance-1.5.0/misc/irqbalance.service irqbalance-1.5.0.new/misc/irqbalance.service
---- irqbalance-1.5.0/misc/irqbalance.service	2018-10-27 11:36:59.000000000 +0200
-+++ irqbalance-1.5.0.new/misc/irqbalance.service	2019-02-19 21:49:12.093453013 +0100
-@@ -5,8 +5,8 @@
- 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
- CapabilityBoundingSet=
- NoNewPrivileges=yes
- ReadOnlyPaths=/


More information about the arch-commits mailing list