diff options
author | LukenShiro <lukenshiro@ngi.it> | 2012-12-28 23:18:15 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-28 23:18:43 +0100 |
commit | 677bbed322dfab0b3f26e8c6894f9905911251dc (patch) | |
tree | b4d06223ccfbb7b4b51e4334d9a7fbdfb306f4fb /system/irqbalance/irqbalance.SlackBuild | |
parent | 2652e7514b336e07869fb1ac0066bd8b22338f4c (diff) | |
download | slackbuilds-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/irqbalance/irqbalance.SlackBuild')
-rw-r--r-- | system/irqbalance/irqbalance.SlackBuild | 35 |
1 files changed, 24 insertions, 11 deletions
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 |