Last active
October 30, 2019 16:18
-
-
Save PedroHLC/40a1a09627f3e8e5b56db829d9167df0 to your computer and use it in GitHub Desktop.
hostapd-wpe 2.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_pkgname=hostapd | |
pkgname="${_pkgname}-wpe" | |
pkgver=2.8 | |
pkgrel=0 | |
pkgdesc="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator (with hostapd-wpe patch)" | |
arch=('x86_64' 'aarch64') | |
url="https://w1.fi/hostapd/" | |
license=(GPL) | |
depends=('openssl' 'libnl') | |
options=(emptydirs) | |
source=("https://w1.fi/releases/$_pkgname-$pkgver.tar.gz" | |
'hostapd-noscan.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/hostapd-noscan.patch?h=packages/hostapd' | |
'openvswitch.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/openvswitch.patch?h=packages/hostapd' | |
'hostapd-wpe.patch::https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-wpe.patch') | |
sha256sums=('929f522be6eeec38c53147e7bc084df028f65f148a3f7e4fa6c4c3f955cee4b0' | |
'5ad1aadcd7682e517cab6afb474df6b9abad1a08dbe2bb40571a1b91c33f6f09' | |
'64c06b5f6f58923446fd9351c596c759dec130997677f8b9f013c8ce360fbd98' | |
'SKIP') | |
prepare() { | |
cd "${_pkgname}-$pkgver" | |
patch -p1 < ../hostapd-noscan.patch | |
patch -p1 < ../openvswitch.patch | |
patch -p1 < ../hostapd-wpe.patch | |
} | |
build() { | |
cd "${_pkgname}-$pkgver/hostapd" | |
export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)" | |
make | |
cd certs | |
make | |
} | |
package() { | |
cd "${_pkgname}-$pkgver" | |
# License | |
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" | |
cd hostapd | |
# Binaries | |
install -d "$pkgdir/usr/bin" | |
install -t "$pkgdir/usr/bin" hostapd-wpe hostapd-wpe_cli | |
# Configuration | |
install -d "$pkgdir/etc/hostapd-wpe" | |
install -m644 -t "$pkgdir/etc/hostapd-wpe" \ | |
hostapd-wpe.{conf,eap_user} | |
install -d "$pkgdir/usr/share/doc/hostapd-wpe" | |
install -m644 -t "$pkgdir/usr/share/doc/hostapd-wpe" \ | |
hostapd.{accept,conf,deny,eap_user,radius_clients,sim_db,vlan,wpa_psk} \ | |
wired.conf hlr_auc_gw.milenage_db | |
# Man pages | |
install -Dm644 hostapd.8 "$pkgdir/usr/share/man/man8/hostapd-wpe.8" | |
install -Dm644 hostapd_cli.1 "$pkgdir/usr/share/man/man1/hostapd-wpe_cli.1" | |
# Certs | |
cd certs | |
install -m644 -t "$pkgdir/etc/hostapd-wpe" \ | |
dh ca.pem server.{pem,key} | |
} |
Update:
12,13c12,13
< 'hostapd-noscan.patch::https://aur.archlinux.org/cgit/aur.git/plain/hostapd-noscan.patch?h=hostapd-rtl871xdrv'
< 'openvswitch.patch::https://aur.archlinux.org/cgit/aur.git/plain/openvswitch.patch?h=hostapd-rtl871xdrv'
---
> 'hostapd-noscan.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/hostapd-noscan.patch?h=packages/hostapd'
> 'openvswitch.patch::https://git.archlinux.org/svntogit/community.git/plain/trunk/openvswitch.patch?h=packages/hostapd'
There's need to update the checksums too.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I like to use it this way: