summaryrefslogtreecommitdiff
path: root/network/irda-utils
diff options
context:
space:
mode:
authorMichael Wagner <lapinours@web.de>2010-05-13 00:36:49 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-13 00:36:49 +0200
commit403abc707239f3b18d9f65225cab4106c7840944 (patch)
tree94867b27c043f7950e0c712f3c4a86f82a25f31a /network/irda-utils
parent211924047cfb05cbf4c07e882dabc30023e3373b (diff)
downloadslackbuilds-403abc707239f3b18d9f65225cab4106c7840944.tar.gz
network/irda-utils: Updated for version 0.9.18
Diffstat (limited to 'network/irda-utils')
-rw-r--r--network/irda-utils/doinst.sh4
-rw-r--r--network/irda-utils/irda-utils.SlackBuild45
-rw-r--r--network/irda-utils/irda-utils.info2
-rw-r--r--network/irda-utils/patches/Makefile.irnetd.diff (renamed from network/irda-utils/Makefile.irnetd.diff)0
-rw-r--r--network/irda-utils/patches/Makefile.smcinit.diff (renamed from network/irda-utils/Makefile.smcinit.diff)0
-rw-r--r--network/irda-utils/patches/irda-utils-0.9.18-fixup_io.c_include.diff36
6 files changed, 69 insertions, 18 deletions
diff --git a/network/irda-utils/doinst.sh b/network/irda-utils/doinst.sh
index 871edf1d6f..6487cd302a 100644
--- a/network/irda-utils/doinst.sh
+++ b/network/irda-utils/doinst.sh
@@ -1,10 +1,10 @@
config() {
NEW="$1"
- OLD="`dirname $NEW`/`basename $NEW .new`"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
- elif [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
diff --git a/network/irda-utils/irda-utils.SlackBuild b/network/irda-utils/irda-utils.SlackBuild
index 8df11c56c5..2c7db59756 100644
--- a/network/irda-utils/irda-utils.SlackBuild
+++ b/network/irda-utils/irda-utils.SlackBuild
@@ -1,5 +1,5 @@
#!/bin/sh
-#
+
# Slackware build script for irda-utils
# (C) 2007 Michael Wagner <lapinours@web.de>
# All rights reserved.
@@ -24,8 +24,9 @@
PRGNAM=irda-utils
VERSION=0.9.18
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -36,24 +37,34 @@ OUTPUT=${OUTPUT:-/tmp}
# like -fno-strict-aliasing
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
# Patch irnetd's Makefile to recognize $ROOT
-patch -p0 < $CWD/Makefile.irnetd.diff || exit 1
+patch -p0 < $CWD/patches/Makefile.irnetd.diff
# Patch smcinit's Makefile to link libz
-patch -p0 < $CWD/Makefile.smcinit.diff || exit 1
+patch -p0 < $CWD/patches/Makefile.smcinit.diff
+
+# io.h has moved in newer kernel includes
+patch -p1 < $CWD/patches/irda-utils-0.9.18-fixup_io.c_include.diff
# Now that we have declared $SLKCFLAGS, lets use it
find . -name Makefile | \
@@ -65,14 +76,20 @@ while read i; do
done
mkdir -p $PKG/usr/bin $PKG/usr/sbin $PKG/usr/man
-make || exit 1
-make install ROOT=$PKG MANDIR=$PKG/usr/man || exit 1
+make
+make install ROOT=$PKG MANDIR=$PKG/usr/man
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
)
+# Use a BSD-style init script (emphasise is put on "style" ;) )
+mkdir -p $PKG/etc/rc.d && rm -rf $PKG/etc/rc.d/init.d
+cat $CWD/rc.irda.new > $PKG/etc/rc.d/rc.irda.new
+
# Documentation is spread all over the source package; just include the README files
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
find . -name README | \
@@ -81,13 +98,9 @@ while read i; do
done
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-# Use a BSD-style init script (emphasise is put on "style" ;) )
-mkdir -p $PKG/etc/rc.d && rm -rf $PKG/etc/rc.d/init.d
-cat $CWD/rc.irda.new > $PKG/etc/rc.d/rc.irda.new
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/network/irda-utils/irda-utils.info b/network/irda-utils/irda-utils.info
index c17dae69e2..855dad088c 100644
--- a/network/irda-utils/irda-utils.info
+++ b/network/irda-utils/irda-utils.info
@@ -3,6 +3,8 @@ VERSION="0.9.18"
HOMEPAGE="http://irda.sourceforge.net"
DOWNLOAD="http://downloads.sourceforge.net/irda/irda-utils-0.9.18.tar.gz"
MD5SUM="84dc12aa4c3f61fccb8d8919bf4079bb"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
MAINTAINER="Michael Wagner"
EMAIL="lapinours@web.de"
APPROVED="rworkman"
diff --git a/network/irda-utils/Makefile.irnetd.diff b/network/irda-utils/patches/Makefile.irnetd.diff
index eca8c55428..eca8c55428 100644
--- a/network/irda-utils/Makefile.irnetd.diff
+++ b/network/irda-utils/patches/Makefile.irnetd.diff
diff --git a/network/irda-utils/Makefile.smcinit.diff b/network/irda-utils/patches/Makefile.smcinit.diff
index fc2e6182ee..fc2e6182ee 100644
--- a/network/irda-utils/Makefile.smcinit.diff
+++ b/network/irda-utils/patches/Makefile.smcinit.diff
diff --git a/network/irda-utils/patches/irda-utils-0.9.18-fixup_io.c_include.diff b/network/irda-utils/patches/irda-utils-0.9.18-fixup_io.c_include.diff
new file mode 100644
index 0000000000..3f82bc3a5b
--- /dev/null
+++ b/network/irda-utils/patches/irda-utils-0.9.18-fixup_io.c_include.diff
@@ -0,0 +1,36 @@
+diff -Nur irda-utils-0.9.18.orig/findchip/nsc.c irda-utils-0.9.18/findchip/nsc.c
+--- irda-utils-0.9.18.orig/findchip/nsc.c 2006-07-11 01:16:06.000000000 -0500
++++ irda-utils-0.9.18/findchip/nsc.c 2009-10-14 00:22:39.372013759 -0500
+@@ -33,7 +33,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-#include <asm/io.h>
++#include <sys/io.h>
+
+ #include "findchip.h"
+
+diff -Nur irda-utils-0.9.18.orig/findchip/smc.c irda-utils-0.9.18/findchip/smc.c
+--- irda-utils-0.9.18.orig/findchip/smc.c 2006-07-11 01:16:06.000000000 -0500
++++ irda-utils-0.9.18/findchip/smc.c 2009-10-14 00:22:42.770014109 -0500
+@@ -32,7 +32,7 @@
+ #include <string.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-#include <asm/io.h>
++#include <sys/io.h>
+
+ #include "findchip.h"
+
+diff -Nur irda-utils-0.9.18.orig/findchip/winbond.c irda-utils-0.9.18/findchip/winbond.c
+--- irda-utils-0.9.18.orig/findchip/winbond.c 2006-07-11 01:16:06.000000000 -0500
++++ irda-utils-0.9.18/findchip/winbond.c 2009-10-14 00:22:45.938995740 -0500
+@@ -32,7 +32,7 @@
+ #include <stdio.h>
+ #include <unistd.h>
+ #include <fcntl.h>
+-#include <asm/io.h>
++#include <sys/io.h>
+
+ #include "findchip.h"
+