name: hostapd
summary: HostAP Daemon
icon: icon.png
description: >
User space IEEE 802.11 AP and IEEE 802.1X/WPA/WPA2/EAP Authenticator
version: 1
vendor: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>
parts:
hostapd:
plugin: custom
source: https://w1.fi/releases/hostapd-2.4.tar.gz
source-type: tar
custom-cmds:
- cp hostapd/defconfig hostapd/.config
- sed -i -e 's/#CONFIG_LIBNL32=y/CONFIG_LIBNL32=y/g' hostapd/.config
- make -C hostapd
- make -C hostapd install BINDIR=/usr/bin DESTDIR=$SNAPCRAFT_PART_INSTALL_DIR
binaries:
- name: hostapd
security-template: unconfined
- name: hostapd_cli
security-template: unconfined