Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=53e6d8ba70c1e6950b528193a7e8169682e57c37

commit 53e6d8ba70c1e6950b528193a7e8169682e57c37
Author: crazy <[email protected]>
Date:   Fri Dec 11 03:39:38 2015 +0100

irqbalance-1.1.0-1-x86_64
* Version bump
* removed old not used patch
* removed the old man file , we use the one from upstream now
* updated config and service file
* added systemd support ( eg: enabled build with libsystemd ... )

diff --git a/source/apps/irqbalance/FrugalBuild 
b/source/apps/irqbalance/FrugalBuild
index f2e7393..f3d2e64 100644
--- a/source/apps/irqbalance/FrugalBuild
+++ b/source/apps/irqbalance/FrugalBuild
@@ -2,10 +2,10 @@
# Maintainer: Miklos Vajna <[email protected]>

pkgname=irqbalance
-pkgver=1.0.9
+pkgver=1.1.0
pkgrel=1
pkgdesc="Distributes interrupts over the processors and cores you have."
-depends=('glib2>=2.16.4-2')
+depends=('glib2>=2.16.4-2' 'libsystemd')
backup=(etc/sysconfig/$pkgname)
groups=('apps')
archs=('i686' 'x86_64' 'arm')
@@ -15,20 +15,17 @@ _F_github_tag_v=y
_F_systemd_units=($pkgname=e)
Finclude systemd github
source=(${source[@]} \
-       irqbalance.1 \
$pkgname.sysconfig \
$pkgname.service)
-sha1sums=('f6cc5434ec7f79eb6420ad5b94fc1f525c436856' \
-          '4e7c38138748caf8b8ba06cf0538eb681871b485' \
-          '878fd82f3022cee9fa0ba1f144b3d8a49c1e22c7' \
-          'e8c7543c500aa60cffe22a717364136d38c5faf0')
+sha1sums=('bffafb547dd24a15645dbd1968c440218de6425d' \
+          '9b99f7fba9beb15174bea1446e617836be007898' \
+          '494eef7a72b0cf7be4b74409adfd9aafcf2efff8')

build()
{
-       Fpatchall
-       Fmake
-       Fexerel /usr/sbin/irqbalance
-       Fman irqbalance.1
+       Fcd
+       Fautoreconf
+       Fbuild --with-systemd
Ffile /lib/systemd/system/$pkgname.service
Ffile $pkgname.sysconfig /etc/sysconfig/$pkgname
Fgenscriptlet
diff --git a/source/apps/irqbalance/irqbalance-0.55-noxorg6.patch 
b/source/apps/irqbalance/irqbalance-0.55-noxorg6.patch
deleted file mode 100644
index 14d89b1..0000000
--- a/source/apps/irqbalance/irqbalance-0.55-noxorg6.patch
+++ /dev/null
@@ -1,25 +0,0 @@
---- Makefile.orig      2006-12-16 00:49:34.000000000 -0500
-+++ Makefile   2006-12-16 00:51:56.000000000 -0500
-@@ -1,11 +1,11 @@
--CFLAGS+=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
-+CFLAGS+=-Wall -W `pkg-config --cflags glib-2.0`
-
- all: irqbalance
-
- LIBS=bitmap.o irqbalance.o cputree.o  procinterrupts.o irqlist.o placement.o 
activate.o network.o powermode.o numa.o classify.o
-+LDLIBS=`pkg-config --libs glib-2.0`
-
--irqbalance: .depend $(LIBS)
--      gcc  -g -O2 -D_FORTIFY_SOURCE=2 -Wall  `pkg-config --libs glib-2.0` 
$(LIBS) -o irqbalance
-+irqbalance: $(LIBS)
-
- clean:
-       rm -f irqbalance *~ *.o .depend
-@@ -13,5 +13,5 @@
- # rule for building dependency lists, and writing them to a file
- # named ".depend".
- .depend:
--      rm -f .depend
--      gccmakedep -f- -- $(CFLAGS) -- *.c > .depend
-+      $(CC) $(CFLAGS) -MM *.c > .depend
-+-include .depend
diff --git a/source/apps/irqbalance/irqbalance.1 
b/source/apps/irqbalance/irqbalance.1
deleted file mode 100644
index c26c709..0000000
--- a/source/apps/irqbalance/irqbalance.1
+++ /dev/null
@@ -1,64 +0,0 @@
-.\"Generated by db2man.xsl. Don't modify this, modify the source.
-.de Sh \" Subsection
-.br
-.if t .Sp
-.ne 5
-.PP
-\fB\\$1\fR
-.PP
-..
-.de Sp \" Vertical space (when we can't use .PP)
-.if t .sp .5v
-.if n .sp
-..
-.de Ip \" List item
-.br
-.ie \\n(.$>=3 .ne \\$3
-.el .ne 3
-.IP "\\$1" \\$2
-..
-.TH "IRQBALANCE" 1 "Dec 2006" "Linux" "irqbalance"
-.SH NAME
-irqbalance \- distribute hardware interrupts across processors on a 
multiprocessor system
-.SH "SYNOPSIS"
-
-.nf
-\fBirqbalance\fR
-.fi
-
-.SH "DESCRIPTION"
-
-.PP
-The purpose of \fBirqbalance\fR is distribute hardware interrupts across 
processors on a multiprocessor system in order to increase performance\&.
-
-.SH "OPTIONS"
-
-.TP
-.B --oneshot
-Causes irqbalance to be run once, after which the daemon exits
-.TP
-
-.B --debug
-Causes irqbalance to run in the foreground and extra debug information to be 
printed
-
-.SH "ENVIRONMENT VARIABLES"
-.TP
-.B IRQBALANCE_ONESHOT
-Same as --oneshot
-
-.TP
-.B IRQBALANCE_DEBUG
-Same as --debug
-
-.TP
-.B IRQBALANCE_BANNED_CPUS
-Provides a mask of cpus which irqbalance should ignore and never assign 
interrupts to
-
-.TP
-.B IRQBALANCE_BANNED_INTERRUPTS
-A list of space delimited IRQ numbers that irqbalance should not touch
-
-.SH "Homepage"
-http://www.irqbalance.org
-
-
diff --git a/source/apps/irqbalance/irqbalance.service 
b/source/apps/irqbalance/irqbalance.service
index 4507dab..ac4b1ae 100644
--- a/source/apps/irqbalance/irqbalance.service
+++ b/source/apps/irqbalance/irqbalance.service
@@ -1,10 +1,11 @@
[Unit]
Description=irqbalance daemon
+After=syslog.target

[Service]
EnvironmentFile=/etc/sysconfig/irqbalance
-Type=forking
-ExecStart=/usr/sbin/irqbalance $ONESHOT
+ExecStart=/usr/sbin/irqbalance --foreground $IRQBALANCE_ARGS
+ExecReload=/bin/kill -HUP $MAINPID

[Install]
WantedBy=multi-user.target
diff --git a/source/apps/irqbalance/irqbalance.sysconfig 
b/source/apps/irqbalance/irqbalance.sysconfig
index 0ff3939..2a9f68a 100644
--- a/source/apps/irqbalance/irqbalance.sysconfig
+++ b/source/apps/irqbalance/irqbalance.sysconfig
@@ -1,18 +1,26 @@
# irqbalance is a daemon process that distributes interrupts across
# CPUS on SMP systems.  The default is to rebalance once every 10
-# seconds.  There is one configuration option:
+# seconds.  This is the environment file that is specified to systemd via the
+# EnvironmentFile key in the service unit file (or via whatever method the init
+# system you're using has.
#
# ONESHOT=yes
#    after starting, wait for a minute, then look at the interrupt
#    load and balance it once; after balancing exit and do not change
#    it again.
-ONESHOT=
+#IRQBALANCE_ONESHOT=

#
-# IRQ_AFFINITY_MASK
+# IRQBALANCE_BANNED_CPUS
#    64 bit bitmask which allows you to indicate which cpu's should
#    be skipped when reblancing irqs.  Cpu numbers which have their
-#    corresponding bits set to zero in this mask will not have any
+#    corresponding bits set to one in this mask will not have any
#    irq's assigned to them on rebalance
#
-#IRQ_AFFINITY_MASK=
+#IRQBALANCE_BANNED_CPUS=
+
+#
+# IRQBALANCE_ARGS
+#    append any args here to the irqbalance daemon as documented in the man 
page
+#
+IRQBALANCE_ARGS="-j"
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to