[arch-commits] CVS update of core/support/atl2 (PKGBUILD atl2.install)
Thomas Baechler
thomas at archlinux.org
Sun Mar 30 09:23:11 UTC 2008
Date: Sunday, March 30, 2008 @ 11:23:11
Author: thomas
Path: /home/cvs-core/core/support/atl2
Added: PKGBUILD (1.1) atl2.install (1.1)
upgpkg: atl2 2.0.4-1
add atl2 driver to core/support
--------------+
PKGBUILD | 21 +++++++++++++++++++++
atl2.install | 26 ++++++++++++++++++++++++++
2 files changed, 47 insertions(+)
Index: core/support/atl2/PKGBUILD
diff -u /dev/null core/support/atl2/PKGBUILD:1.1
--- /dev/null Sun Mar 30 11:23:11 2008
+++ core/support/atl2/PKGBUILD Sun Mar 30 11:23:11 2008
@@ -0,0 +1,21 @@
+# $Id: PKGBUILD,v 1.1 2008/03/30 09:23:11 thomas Exp $
+
+pkgname=atl2
+_kernver=2.6.24-ARCH
+pkgver=2.0.4
+pkgrel=1
+pkgdesc="Drivers for atl2 ethernet card"
+url="http://people.redhat.com/csnook/atl2"
+depends=('kernel26>=2.6.24.4-1' 'kernel26<2.6.25')
+arch=('i686' 'x86_64')
+license=('GPL')
+install=$pkgname.install
+source=(http://people.redhat.com/csnook/atl2/$pkgname-$pkgver.tar.bz2)
+md5sums=('22b22dc9d45b85549b002cf152c8ac27')
+
+build() {
+ cd ${startdir}/src/${pkgname}-${pkgver}
+ make KSRC=/lib/modules/${_kernver}/build || return 1
+ install -D -m644 atl2.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/net/atl2/atl2.ko || return 1
+ sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
+}
Index: core/support/atl2/atl2.install
diff -u /dev/null core/support/atl2/atl2.install:1.1
--- /dev/null Sun Mar 30 11:23:11 2008
+++ core/support/atl2/atl2.install Sun Mar 30 11:23:11 2008
@@ -0,0 +1,26 @@
+# arg 1: the new package version
+post_install()
+{
+ KERNEL_VERSION='2.6.24-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade()
+{
+ KERNEL_VERSION='2.6.24-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+# arg 1: the old package version
+post_remove()
+{
+ KERNEL_VERSION='2.6.24-ARCH'
+ depmod -v $KERNEL_VERSION > /dev/null 2>&1
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list