1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 url = https://w1.fi/wpa_supplicant/
13 summary = WPA/WPA2/IEEE 802.1X Supplicant
16 wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with support
17 for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE 802.1X/WPA
18 component that is used in the client stations. It implements key negotiation
19 with a WPA Authenticator and it controls the roaming and IEEE 802.11
20 authentication/association of the wlan driver.
23 source_dl = https://w1.fi/releases/
36 cp -v %{DIR_APP}/wpa_supplicant/{defconfig,.config}
38 sed -i %{DIR_APP}/wpa_supplicant/.config \
39 -e "s/#CONFIG_READLINE=y/CONFIG_READLINE=y/" \
40 -e "s/#CONFIG_LIBNL32=y/CONFIG_LIBNL32=y/"
43 # Enable 802.11s mesh networking
47 echo "CONFIG_IEEE80211W=y"
48 ) >> %{DIR_APP}/wpa_supplicant/.config
52 # Build wpa_supplicant
53 cd %{DIR_APP}/wpa_supplicant && make %{PARALLELISMFLAGS}
57 mkdir -pv %{BUILDROOT}%{sysconfdir}/wpa_supplicant
58 mkdir -pv %{BUILDROOT}%{sbindir}
59 mkdir -pv %{BUILDROOT}%{unitdir}
62 install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant
65 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}%{sbindir}
66 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}%{sbindir}
67 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}%{sbindir}
69 # Install systemd unit file
70 install -v -m 644 wpa_supplicant/systemd/wpa_supplicant.service \
71 %{BUILDROOT}%{unitdir}
78 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
82 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
86 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
90 package %{name}-debuginfo