summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorLukenShiro <lukenshiro@ngi.it>2012-12-28 23:18:15 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-28 23:18:43 +0100
commit677bbed322dfab0b3f26e8c6894f9905911251dc (patch)
treeb4d06223ccfbb7b4b51e4334d9a7fbdfb306f4fb /system
parent2652e7514b336e07869fb1ac0066bd8b22338f4c (diff)
downloadslackbuilds-677bbed322dfab0b3f26e8c6894f9905911251dc.tar.gz
system/irqbalance: Updated for version 1.0.5
Revised build system, cleanups. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/irqbalance/README20
-rw-r--r--system/irqbalance/irqbalance.SlackBuild35
-rw-r--r--system/irqbalance/irqbalance.info12
-rw-r--r--system/irqbalance/slack-desc16
4 files changed, 53 insertions, 30 deletions
diff --git a/system/irqbalance/README b/system/irqbalance/README
index f20b6203f8..085188ba4f 100644
--- a/system/irqbalance/README
+++ b/system/irqbalance/README
@@ -1,6 +1,16 @@
-irqbalance is a Linux daemon that distributes interrupts over the
-processors and cores you have in your computer system. The design goal
-of irqbalance is to do find a balance between power savings and optimal
-performance. To a large degree, the work irqbalance does is invisible
-to you; if irqbalance performs its job correctly, nobody will ever notice
+irqbalance is a Linux daemon that distributes interrupts over the
+processors and cores you have in your computer system. The design goal
+of irqbalance is to find a balance between power savings and optimal
+performance. To a large degree, the work irqbalance does is invisible
+to you; if irqbalance performs its job correctly, nobody will ever notice
it's there or want to turn it off.
+
+It is recommended to run irqbalance from the system boot-scripts. For
+example, add the following lines to /etc/rc.d/rc.local:
+if [ -x /usr/sbin/irqbalance ]; then
+ /usr/sbin/irqbalance
+fi
+
+Options that you can pass to the command are described in the man page.
+
+libcap-ng is an optional dependency.
diff --git a/system/irqbalance/irqbalance.SlackBuild b/system/irqbalance/irqbalance.SlackBuild
index 87a3d98c77..e7a413a992 100644
--- a/system/irqbalance/irqbalance.SlackBuild
+++ b/system/irqbalance/irqbalance.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for irqbalance
# Written in 2006 by Yalla-One <yallaone@gmail.com>
+# Heavily modified (2013) by LukenShiro, Italy
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,16 +24,14 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=irqbalance
-VERSION=0.55
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.0.5}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -42,6 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=${TMP}/package-${PRGNAM}
OUTPUT=${OUTPUT:-/tmp}
+DOCFILES="AUTHORS COPYING"
+
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -65,19 +66,31 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root.root .
-chmod -R u+w,go+r-w,a-s .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-make || exit 1
+./configure \
+ --prefix=/usr \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+make
+make install DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/usr/sbin
-cp $PRGNAM $PKG/usr/sbin
-strip --strip-unneeded ${PKG}/usr/sbin/$PRGNAM
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp $CWD/README \
- $PKG/usr/doc/$PRGNAM-$VERSION/
+cp $DOCFILES $PKG/usr/doc/$PRGNAM-$VERSION/
+cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/irqbalance/irqbalance.info b/system/irqbalance/irqbalance.info
index ef47c5858d..1755642a8c 100644
--- a/system/irqbalance/irqbalance.info
+++ b/system/irqbalance/irqbalance.info
@@ -1,10 +1,10 @@
PRGNAM="irqbalance"
-VERSION="0.55"
-HOMEPAGE="http://www.irqbalance.org/"
-DOWNLOAD="http://irqbalance.org/releases/irqbalance-0.55.tar.gz"
-MD5SUM="9f6b314ff1fdc14173abeb40592d4edf"
+VERSION="1.0.5"
+HOMEPAGE="http://code.google.com/p/irqbalance"
+DOWNLOAD="https://irqbalance.googlecode.com/files/irqbalance-1.0.5.tar.gz"
+MD5SUM="b6403fa067c96adce448a48c9993654d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Yalla-One"
-EMAIL="yallaone@gmail.com"
+MAINTAINER="LukenShiro"
+EMAIL="lukenshiro@ngi.it"
diff --git a/system/irqbalance/slack-desc b/system/irqbalance/slack-desc
index 0538d6de73..212103d710 100644
--- a/system/irqbalance/slack-desc
+++ b/system/irqbalance/slack-desc
@@ -7,12 +7,12 @@
|-----handy-ruler------------------------------------------------------|
irqbalance: IRQBalance (IRQ balancing daemon)
irqbalance:
-irqbalance: irqbalance is a Linux* daemon that distributes
-irqbalance: interrupts over the processors and cores you have in
-irqbalance: your computer system. The design goal of irqbalance is
-irqbalance: to do find a balance between power savings and optimal
-irqbalance: performance. To a large degree, the work irqbalance
-irqbalance: does is invisible to you; if irqbalance performs its
-irqbalance: job correctly, nobody will ever notice it's there or
-irqbalance: want to turn it off.
+irqbalance: irqbalance is a Linux daemon that distributes interrupts over the
+irqbalance: processors and cores you have in your computer system. The design goal
+irqbalance: of irqbalance is to find a balance between power savings and optimal
+irqbalance: performance. To a large degree, the work irqbalance does is invisible
+irqbalance: to you; if irqbalance performs its job correctly, nobody will ever notice
+irqbalance: it's there or want to turn it off.
+irqbalance:
+irqbalance: homepage: http://code.google.com/p/irqbalance
irqbalance: