summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d7d4f28b72c99feaf0c67c6eeaf46ac777417454 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Maintainer: Nemanja <nemanjan00@gmail.com>

pkgname=hostapd-mana-git
pkgver=20210920.1302a72
pkgrel=1
pkgdesc='IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator with Mana patches'
url='http://w1.fi/hostapd/'
arch=('i686' 'x86_64' 'aarch64' 'armv7l')
license=('custom')
makedepends=('git')
depends=('openssl' 'libnl')
source=('git+https://github.com/sensepost/hostapd-mana.git'
         'service')
sha256sums=('SKIP'
         '989bc6855f44c0b360e3d4cd4a146c35b7c12f8a0ced627b4b033f58edcade8e')

options=('emptydirs')

conflicts=('hostapd')
provides=('hostapd')

pkgver() {
	cd "${srcdir}/hostapd-mana"
	git log -1 --format='%cd.%h' --date=short | tr -d -
}

build() {
	cd "${srcdir}/hostapd-mana/hostapd"
	sed -i 's:/etc/hostapd:/etc/hostapd/hostapd:' hostapd.conf
	cd ..
	make -C hostapd
}

package() {
	cd "${srcdir}/hostapd-mana/hostapd"

	install -d "${pkgdir}"/usr/bin
	install -t "${pkgdir}"/usr/bin hostapd hostapd_cli

	install -d "${pkgdir}"/usr/share/doc/hostapd
	install -t "${pkgdir}"/usr/share/doc/hostapd -m644 hostapd.[a-z]* wired.conf hlr_auc_gw.milenage_db

	install -d "${pkgdir}"/etc/hostapd
	install -Dm644 hostapd.8 "${pkgdir}"/usr/share/man/man8/hostapd.8
	install -Dm644 hostapd_cli.1 "${pkgdir}"/usr/share/man/man1/hostapd_cli.1
	install -Dm644 ../COPYING "${pkgdir}"/usr/share/licenses/hostapd/COPYING
	install -Dm644 ../../service "${pkgdir}"/usr/lib/systemd/system/hostapd.service
}