mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
54 lines
2 KiB
Bash
54 lines
2 KiB
Bash
_madwifiver=0.9.4.3844
|
|
pkgname=hostapd
|
|
pkgver=0.6.9
|
|
pkgrel=1
|
|
pkgdesc="daemon for wireless software access points"
|
|
arch=('i686' 'x86_64')
|
|
url="http://hostap.epitest.fi/hostapd/"
|
|
license=('custom')
|
|
depends=('openssl')
|
|
makedepends=('svn')
|
|
provides=('hostapd')
|
|
conflicts=('hostapd')
|
|
install=hostapd.install
|
|
source=(http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz
|
|
ftp://ftp.archlinux.org/other/madwifi/madwifi-$_madwifiver.tar.bz2
|
|
config.bz2
|
|
hostapd)
|
|
md5sums=('83630d11fa66ade9091f1b304fccd74c'
|
|
'fc8b627774a91a5f0d6bd4e0d0b206fd'
|
|
'7389c53b18cc9e907f7c543980e518bd'
|
|
'cbc54751c16a53221f2c8ab7170aad78')
|
|
|
|
build() {
|
|
cd $startdir/src/$pkgname-$pkgver/hostapd || return 1
|
|
|
|
cp ../../config ./.config || return 1
|
|
|
|
sed -i "s|/usr|$startdir/src/madwifi|" .config || return 1
|
|
sed -i "s|/usr/local/bin|$startdir/pkg/usr/bin|" Makefile || return 1
|
|
|
|
mkdir -p $startdir/pkg/usr/bin $startdir/pkg/etc/hostapd \
|
|
$startdir/pkg/usr/man/man1 $startdir/pkg/usr/man/man8 \
|
|
$startdir/pkg/usr/share/licenses/$pkgname $startdir/pkg/etc/rc.d || return 1
|
|
|
|
make || return 1
|
|
make DESTDIR=$pkg install || return 1
|
|
|
|
cp ../src/hlr_auc_gw/hlr_auc_gw.milenage_db $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.accept $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.conf $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.deny $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.eap_user $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.radius_clients $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.sim_db $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.vlan $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.wpa_psk $startdir/pkg/etc/hostapd || return 1
|
|
cp wired.conf $startdir/pkg/etc/hostapd || return 1
|
|
cp hostapd.8 $startdir/pkg/usr/man/man8 || return 1
|
|
cp hostapd_cli.1 $startdir/pkg/usr/man/man1 || return 1
|
|
cp ../COPYING $startdir/pkg/usr/share/licenses/hostapd || return 1
|
|
cp ../../hostapd $startdir/pkg/etc/rc.d || return 1
|
|
|
|
mv $pkgdir/usr/man $pkgdir/usr/share/
|
|
}
|