[arch-commits] Commit in fcpcmcia/trunk (PKGBUILD fcpcmcia.install)

Thomas Bächler thomas at archlinux.org
Tue Oct 25 14:46:53 EDT 2011


    Date: Tuesday, October 25, 2011 @ 14:46:52
  Author: thomas
Revision: 141192

upgpkg: fcpcmcia 31107-61

Fix depmod on update

Modified:
  fcpcmcia/trunk/PKGBUILD
  fcpcmcia/trunk/fcpcmcia.install

------------------+
 PKGBUILD         |    4 ++--
 fcpcmcia.install |    8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-10-25 18:45:15 UTC (rev 141191)
+++ PKGBUILD	2011-10-25 18:46:52 UTC (rev 141192)
@@ -3,7 +3,7 @@
 
 pkgname=fcpcmcia
 pkgver=31107
-pkgrel=60
+pkgrel=61
 _extramodules=extramodules-3.1-ARCH
 _kernver="$(cat /lib/modules/${_extramodules}/version)"
 pkgdesc="AVM ISDN driver for FRITZ PCMCIA isdn cards. For stock arch 2.6 kernel"
@@ -131,7 +131,7 @@
   cp $srcdir/fritz/src/fcpcmcia.ko $pkgdir/lib/modules/${_extramodules}/
   cp $srcdir/fritz/src/fcpcmcia_cs.ko $pkgdir/lib/modules/${_extramodules}/
   rm -r $pkgdir/var/lib/fritz
-  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/fcpcmcia.install
+  sed -i -e "s/EXTRAMODULES=.*/EXTRAMODULES=${_extramodules}/g" $startdir/fcpcmcia.install
   # gzip -9 modules
   find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
 }

Modified: fcpcmcia.install
===================================================================
--- fcpcmcia.install	2011-10-25 18:45:15 UTC (rev 141191)
+++ fcpcmcia.install	2011-10-25 18:46:52 UTC (rev 141192)
@@ -9,8 +9,8 @@
   sed -i -e 's/#fcpcmcia	-	-	-	-	-	-/fcpcmcia	-	-	-	-	-	-/g' /etc/capi.conf
     # updating module dependencies
   echo ">>> Updating module dependencies. Please wait ..."
-  KERNEL_VERSION=3.1.0-1-ARCH
-  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  EXTRAMODULES=extramodules-3.1-ARCH
+  depmod -v $(cat /lib/modules/$EXTRAMODULES/version) > /dev/null 2>&1
 }
 
 # arg 1:  the new package version
@@ -24,6 +24,6 @@
   sed -i -e 's/fcpcmcia	-	-	-	-	-	-/#fcpcmcia	-	-	-	-	-	-/g' /etc/capi.conf
     # updating module dependencies
   echo ">>> Updating module dependencies. Please wait ..."
-  KERNEL_VERSION=3.1.0-1-ARCH
-  depmod -v $KERNEL_VERSION > /dev/null 2>&1
+  EXTRAMODULES=extramodules-3.1-ARCH
+  depmod -v $(cat /lib/modules/$EXTRAMODULES/version) > /dev/null 2>&1
 }



More information about the arch-commits mailing list