diff options
author | root <root@rshg054.dnsready.net> | 2012-02-21 23:15:10 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-21 23:15:10 +0000 |
commit | 1f55cedf5ea357497d2a98eb2be78d8dab4a9665 (patch) | |
tree | 5e44ad19f2672ee92283377c9fe6eab3c8a815d7 /community-testing/hostapd/PKGBUILD | |
parent | 11484c032f8c236b2044e715a9a3b28e33f65598 (diff) |
Tue Feb 21 23:15:10 UTC 2012
Diffstat (limited to 'community-testing/hostapd/PKGBUILD')
-rw-r--r-- | community-testing/hostapd/PKGBUILD | 55 |
1 files changed, 23 insertions, 32 deletions
diff --git a/community-testing/hostapd/PKGBUILD b/community-testing/hostapd/PKGBUILD index 8d42df603..651e39976 100644 --- a/community-testing/hostapd/PKGBUILD +++ b/community-testing/hostapd/PKGBUILD @@ -1,10 +1,10 @@ -# $Id: PKGBUILD 64577 2012-02-16 20:40:45Z heftig $ +# $Id: PKGBUILD 65319 2012-02-21 00:00:16Z heftig $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> _madwifiver=0.9.4.4133 pkgname=hostapd pkgver=0.7.3 -pkgrel=6 +pkgrel=7 pkgdesc="daemon for wireless software access points" arch=('i686' 'x86_64') url="http://hostap.epitest.fi/hostapd/" @@ -28,54 +28,45 @@ install=hostapd.install source=(http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz ftp://ftp.archlinux.org/other/madwifi/madwifi-${_madwifiver}.tar.bz2 hostap_allow-linking-with-libnl-3.2.patch - config.bz2 + config hostapd hostapd.conf.d) md5sums=('91a7c8d0f090b7104152d3455a84c112' 'ca3c3504d000e7b3d7063af46271c932' 'e904e62b12c5d64132dd9441e8b45dce' - 'aa86f89f51b39cea75a8c15f7b376a67' + 'bfe5701bc93d5d091e6f1a93f1a32dd6' 'd570327c385f34a4af24d3a0d61cea19' 'f169534b0f59b341f6df1a21e0344511') build() { - cd $srcdir/$pkgname-$pkgver + cd "$srcdir/$pkgname-$pkgver" patch -Np1 -i "$srcdir/hostap_allow-linking-with-libnl-3.2.patch" cd hostapd - cp ../../config ./.config + cp "$srcdir/config" ./.config - sed -i "s|/usr|$srcdir/madwifi|" .config - sed -i "s|/usr/local/bin|$pkgdir/usr/bin|" Makefile - - mkdir -p $pkgdir/usr/bin $pkgdir/etc/hostapd \ - $pkgdir/usr/man/man1 $pkgdir/usr/man/man8 \ - $pkgdir/usr/share/licenses/$pkgname $pkgdir/etc/rc.d + sed -i "s|@@madwifi@@|$srcdir/madwifi|" .config + sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' hostapd.conf make } package() { - cd $srcdir/$pkgname-$pkgver/hostapd - make DESTDIR=$pkg install + cd "$srcdir/$pkgname-$pkgver/hostapd" + + install -D hostapd "$pkgdir/usr/bin/hostapd" + install hostapd_cli "$pkgdir/usr/bin/hostapd_cli" + + install -Dm644 hlr_auc_gw.milenage_db "$pkgdir/etc/hostapd/hlr_auc_gw.milenage_db" + install -m644 -t "$pkgdir/etc/hostapd" \ + hostapd.{accept,conf,deny,eap_user,radius_clients,sim_db,vlan,wpa_psk} \ + wired.conf + + install -Dm644 hostapd.8 "$pkgdir/usr/share/man/man8/hostapd.8" + install -Dm644 hostapd_cli.1 "$pkgdir/usr/share/man/man1/hostapd_cli.1" - cp hlr_auc_gw.milenage_db $pkgdir/etc/hostapd - cp hostapd.accept $pkgdir/etc/hostapd - cp hostapd.conf $pkgdir/etc/hostapd - cp hostapd.deny $pkgdir/etc/hostapd - cp hostapd.eap_user $pkgdir/etc/hostapd - cp hostapd.radius_clients $pkgdir/etc/hostapd - cp hostapd.sim_db $pkgdir/etc/hostapd - cp hostapd.vlan $pkgdir/etc/hostapd - cp hostapd.wpa_psk $pkgdir/etc/hostapd - cp wired.conf $pkgdir/etc/hostapd - cp hostapd.8 $pkgdir/usr/man/man8 - cp hostapd_cli.1 $pkgdir/usr/man/man1 - cp ../COPYING $pkgdir/usr/share/licenses/hostapd - cp ../../hostapd $pkgdir/etc/rc.d - mkdir -p $pkgdir/etc/conf.d - cp ../../hostapd.conf.d $pkgdir/etc/conf.d/hostapd + install -D "$srcdir/hostapd" "$pkgdir/etc/rc.d/hostapd" + install -Dm644 "$srcdir/hostapd.conf.d" "$pkgdir/etc/conf.d/hostapd" - mv $pkgdir/usr/man $pkgdir/usr/share/ - sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' $pkgdir/etc/hostapd/hostapd.conf + install -Dm644 ../COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" } |