summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorSebastian Zwierzchowski2015-08-09 17:43:52 +0200
committerSebastian Zwierzchowski2015-08-09 17:43:52 +0200
commit206a1573ebe4d103a8b6333e3acc81d6cb866d72 (patch)
treeefbfa07cb598d0a95265c2c6d3a4b1bc0866b002 /PKGBUILD
downloadaur-206a1573ebe4d103a8b6333e3acc81d6cb866d72.tar.gz
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..be049f45170
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,62 @@
+
+# Maintainer: Sebastian Zwierzchowski
+
+pkgname=hostapd-rtl
+pkgver=2.4
+pkgrel=1
+pkgdesc="IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator"
+arch=('i686' 'x86_64' 'armv7')
+url="http://w1.fi/hostapd/"
+license=('custom')
+depends=('openssl' 'libnl')
+install=hostapd.install
+options=(emptydirs)
+source=(git://github.com/seba-z/hostapd-rtl.git
+ hostapd.service
+ hostapd-2.3-noscan.patch
+ openvswitch.patch)
+md5sums=('SKIP'
+ '7fac28e598e16523777b528b93eab376'
+ 'eaf8e48a9a63b5902fddadff2b8933fa'
+ 'a0802a604ed957078da0e14863df74f0')
+
+prepare() {
+ cd $pkgname
+ patch -p1 -i ../hostapd-2.3-noscan.patch
+ patch -p1 -i ../openvswitch.patch
+}
+
+build() {
+ cd $pkgname/hostapd
+ sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' hostapd.conf
+ export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)"
+ make
+}
+
+package() {
+ # Systemd unit
+ install -Dm644 hostapd.service "$pkgdir/usr/lib/systemd/system/hostapd-rtl.service"
+
+ cd $pkgname
+
+ # License
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+
+ cd hostapd
+
+ # Binaries
+ install -D hostapd "$pkgdir/usr/bin/hostapd-rtl"
+ install hostapd_cli "$pkgdir/usr/bin/hostapd_cli-rtl"
+
+ # Configuration
+ install -d "$pkgdir/etc/hostapd"
+ install -m644 hostapd.conf "$pkgdir/etc/hostapd/${pkgname}.conf"
+ install -d "$pkgdir/usr/share/doc/hostapd-rtl"
+ install -m644 -t "$pkgdir/usr/share/doc/hostapd-rtl" \
+ 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-rlt.8"
+ install -Dm644 hostapd_cli.1 "$pkgdir/usr/share/man/man1/hostapd_cli-rtl.1"
+}