[arch-commits] CVS update of extra/network/fcpci (PKGBUILD)

Tobias Powalowski tpowa at archlinux.org
Sat Jan 26 15:48:01 UTC 2008


    Date: Saturday, January 26, 2008 @ 10:48:01
  Author: tpowa
    Path: /home/cvs-extra/extra/network/fcpci

Modified: PKGBUILD (1.39 -> 1.40)

upgpkg: update to new timer stats kernel


----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++----------
 1 file changed, 35 insertions(+), 10 deletions(-)


Index: extra/network/fcpci/PKGBUILD
diff -u extra/network/fcpci/PKGBUILD:1.39 extra/network/fcpci/PKGBUILD:1.40
--- extra/network/fcpci/PKGBUILD:1.39	Fri Jan 25 12:42:57 2008
+++ extra/network/fcpci/PKGBUILD	Sat Jan 26 10:48:01 2008
@@ -1,22 +1,34 @@
-# $Id: PKGBUILD,v 1.39 2008/01/25 17:42:57 tpowa Exp $
+# $Id: PKGBUILD,v 1.40 2008/01/26 15:48:01 tpowa Exp $
 #Maintainer: Tobias Powalowski <tpowa at archlinux.org>
 
 pkgname=fcpci
 pkgver=31107
-pkgrel=39
+pkgrel=40
 _kernver=2.6.24-ARCH
 pkgdesc="AVM ISDN driver for FRITZ PCI isdn cards. For stock arch 2.6 kernel."
 arch=(i686 x86_64)
 license=('custom:"AVM"' 'LGPL')
 url="http://www.avm.de"
-depends=('capi4k-utils' 'kernel26>=2.6.24-1' 'kernel26<=2.6.25-0')
+depends=('capi4k-utils' 'kernel26>=2.6.24-2' 'kernel26<=2.6.25-0')
 if [ "$CARCH" = "i686" ]; then
   source=(ftp://ftp.avm.de/cardware/fritzcrd.pci/linux/suse.93/fcpci-suse93-3.11-07.tar.gz \
-	kernel-2.6.19.patch atomic.patch kernel-2.6.20.patch kernel-2.6.22.patch kernel-2.6.24.patch string.h)
+	kernel-2.6.19.patch atomic.patch kernel-2.6.20.patch kernel-2.6.22.patch kernel-2.6.24.patch)
+  md5sums=('3ee301b5d0e8df9e4b915af58b725556'
+         '5c63dc9df0810bb1ba85f3425abaa0ed'
+         '258b13bb2ac46960b9c91635f02cd080'
+         '890ec6e1219a3a4bae77f5815c3ed40d'
+         '4f4f03630ed994b16b4cd167f090a116'
+ 	 '21bfa466b1fb94663ed1f265948dba5e')
 fi
 if [ "$CARCH" = "x86_64" ]; then
   source=(ftp://ftp.avm.de/cardware/fritzcrd.pci/linux_64bit/suse.10.0/fcpci-suse10.0-64bit-3.11-07.tar.gz \
-	kernel-2.6.19.patch atomic.patch kernel-2.6.20.patch kernel-2.6.22.patch kernel-2.6.24.patch string64.h)
+	kernel-2.6.19.patch atomic.patch kernel-2.6.20.patch kernel-2.6.22.patch kernel-2.6.24.patch)
+  md5sums=('c5595478515d19436ab20b42e1549de0'
+         '5c63dc9df0810bb1ba85f3425abaa0ed'
+         '258b13bb2ac46960b9c91635f02cd080'
+         '890ec6e1219a3a4bae77f5815c3ed40d'
+         '4f4f03630ed994b16b4cd167f090a116'
+ 	 '21bfa466b1fb94663ed1f265948dba5e')
 fi
 install=fcpci.install
 
@@ -27,11 +39,25 @@
   patch -Np0 -i ../../kernel-2.6.20.patch || return 1
   patch -Np0 -i ../../kernel-2.6.22.patch || return 1
   patch -Np0 -i ../../kernel-2.6.24.patch || return 1
-  [ "$CARCH" = "i686" ] && cp $startdir/src/string.h .
-  [ "$CARCH" = "x86_64" ] && cp $startdir/src/string64.h string.h
-  sed -i 's#<linux/string.h>#"string.h"#' driver.c main.c tools.c fcpcmcia_cs.c
-  sed -i 's#tools.h#tools.h string.h#' Makefile
   cd ..
+  # fix from Karsten Keil <kkeil at suse.de>
+  # in refernece to bug: http://bugs.archlinux.org/task/8511
+  OBJ=$(find . -name '*lib.o')
+  for i in $OBJ; do
+    mv $i $i.old
+    objcopy -L memcmp \
+            -L memcpy \
+            -L memmove \
+            -L memset \
+            -L strcat \
+            -L strcmp \
+            -L strcpy \
+            -L strlen \
+            -L strncmp \
+            -L strncpy \
+    $i.old $i
+  done
+
   make LIBDIR=$startdir/pkg/var/lib/fritz KDIR=/lib/modules/${_kernver}/build all || return 1
   mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/isdn/hardware/avm/
   cp $startdir/src/fritz/src/fcpci.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/isdn/hardware/avm/
@@ -39,4 +65,3 @@
   # build module dependencies
   sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/fcpci.install
 }
-




More information about the arch-commits mailing list