summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/ipw2200-fw
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/ipw2200-fw')
-rw-r--r--abs/core-testing/ipw2200-fw/PKGBUILD34
-rw-r--r--abs/core-testing/ipw2200-fw/ipw2200-fw.install18
2 files changed, 52 insertions, 0 deletions
diff --git a/abs/core-testing/ipw2200-fw/PKGBUILD b/abs/core-testing/ipw2200-fw/PKGBUILD
new file mode 100644
index 0000000..5ff080b
--- /dev/null
+++ b/abs/core-testing/ipw2200-fw/PKGBUILD
@@ -0,0 +1,34 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer : Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=ipw2200-fw
+pkgver=3.0
+pkgrel=2
+pkgdesc="Intel Centrino Drivers firmware for IPW2200"
+arch=(i686 x86_64)
+url="http://ipw2200.sourceforge.net/"
+depends=('wireless_tools')
+source=(http://bughost.org/firmware/$pkgname-$pkgver.tgz)
+install=ipw2200-fw.install
+replaces=ipw2200
+
+build() {
+ #cd $startdir/src/$pkgname-$pkgver
+ #make
+ #Install kernel modules
+ #for i in *.ko
+ #do
+ #install -D -m 644 $i $startdir/pkg/lib/modules/$(uname -r)/kernel/drivers/net/wireless/ipw2200/$i
+ #done
+
+ cd $startdir/src/ipw2200-fw-3.0
+
+ # Install firmware
+ for i in *.fw
+ do
+ install -D -m 644 $i $startdir/pkg/lib/firmware/$i
+ done
+ # Install firmware license
+ install -D -m 644 LICENSE.ipw2200-fw $startdir/pkg/lib/firmware/LICENSE.ipw2200-fw
+ }
+md5sums=('34a5ed3702006f5470ebfd513e04d9eb')
diff --git a/abs/core-testing/ipw2200-fw/ipw2200-fw.install b/abs/core-testing/ipw2200-fw/ipw2200-fw.install
new file mode 100644
index 0000000..4720660
--- /dev/null
+++ b/abs/core-testing/ipw2200-fw/ipw2200-fw.install
@@ -0,0 +1,18 @@
+# arg 1: the new package version
+post_install() {
+cat << EOF
+IMPORTANT
+==> In order to use the firmware you have to agree to Intel's license located in
+==> /lib/firmware/LICENSE.ipw2200-fw else please remove this package.
+EOF
+}
+
+# arg 1: the new package version
+# arg 2: the old package version
+post_upgrade() {
+post_install $1
+}
+
+op=$1
+shift
+$op $*