summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 928ee954cecb38c5e99abceab508a1000273db92 (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
33
34
pkgname=hostapd-wpe
pkgver=2.9.1
pkgrel=1
pkgdesc="Modified hostapd to facilitate AP impersonation attacks"
arch=('i686' 'x86_64')
url="https://w1.fi/hostapd"
license=("BSD")
depends=("openssl-1.0" "libnl" "sqlite")
makedepends=("git")
provides=("hostapd-wpe")
install=install
source=("hostapd-2.9.tar.gz::https://w1.fi/releases/hostapd-2.9.tar.gz"
        "hostapd-wpe.patch::https://raw.githubusercontent.com/aircrack-ng/aircrack-ng/master/patches/wpe/hostapd-wpe/hostapd-wpe.patch")
md5sums=("f188fc53a495fe7af3b6d77d3c31dee8" "SKIP")

prepare() {
    cd "${srcdir}/hostapd-2.9"
    patch -p1 -i ${srcdir}/hostapd-wpe.patch
}

build() {
    cd "${srcdir}/hostapd-2.9/hostapd"
    make
}

package() {
    # License
    install -Dm644  "${srcdir}/hostapd-2.9/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"

    mkdir -p "${pkgdir}/usr/local/bin/"
    cd "${srcdir}/hostapd-2.9/hostapd"
    make DESTDIR="${pkgdir}" install
    make DESTDIR="${pkgdir}" wpe
}