summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/wlan-ng26-utils-svn/PKGBUILD
blob: ecd8f14079654eb276e6eeb0cadc6a0d8755f366 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 7972 2008-08-05 11:03:19Z tpowa $
# Maintainer: Tom Killian <tom@archlinux.org>

pkgname=wlan-ng26-utils-svn
pkgver=r1870
pkgrel=1
pkgdesc="Wireless Lan userspace tools."
depends=('glibc' 'bash')
makedepends=('kernel26')
source=(ftp://ftp.knoppmyth.net/R6/sources/wlan-ng26-svn-$pkgver.tar.bz2 \
	wlan-ng.patch wlan kernel-2.6.26.patch)
url="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/"
backup=(etc/wlan/wlan.conf)
arch=('i686' 'x86_64')
license=('MPL')

build() {
   cd $startdir/src/trunk
#   patch -Np0 -i ../kernel-2.6.26.patch || return 1
   sed -i "s#TARGET_ROOT_ON_HOST=#TARGET_ROOT_ON_HOST=$startdir/pkg#;s#PRISM2_PLX=y#PRISM2_PLX=n#;s#PRISM2_PCI=y#PRISM2_PCI=n#;s#PRISM2_USB=n#PRISM2_USB=y#;s#PRISM2_PCMCIA=y#PRISM2_PCMCIA=n#" config.in
   patch -p1 < ../wlan-ng.patch
   make auto_config
   make all || return 1
   make install
   mkdir -p $startdir/pkg/etc/rc.d
   rm -r $startdir/pkg/{init.d,lib,etc/pcmcia}
   install -m 755 $startdir/src/wlan $startdir/pkg/etc/rc.d/wlan
}
md5sums=('86af583059976c2f340e27911af49059'
         '706464f9e6e127558aed25b9f454f905'
         '1056365bdbe7102b1a668c84926ecb17'
         '6ed5a5fefc2c149e0e0a98de211ba147')