]>
Commit | Line | Data |
---|---|---|
75e38195 | 1 | ############################################################################### |
802ea3af MT |
2 | # IPFire.org - An Open Source Firewall Solution # |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
75e38195 MT |
4 | ############################################################################### |
5 | ||
802ea3af | 6 | name = wpa_supplicant |
e7b751db AF |
7 | version = 2.10 |
8 | release = 1 | |
75e38195 | 9 | |
802ea3af | 10 | groups = Sytem/Base |
4432bab5 | 11 | url = https://w1.fi/wpa_supplicant/ |
802ea3af | 12 | license = BSD |
4432bab5 | 13 | summary = WPA/WPA2/IEEE 802.1X Supplicant |
75e38195 | 14 | |
802ea3af MT |
15 | description |
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 | |
75e38195 | 20 | authentication/association of the wlan driver. |
802ea3af MT |
21 | end |
22 | ||
4432bab5 | 23 | source_dl = https://w1.fi/releases/ |
802ea3af MT |
24 | |
25 | build | |
26 | requires | |
4432bab5 | 27 | dbus-devel |
e7b751db | 28 | libnl3-devel >= 3.8.0 |
909e15a8 | 29 | ncurses-devel |
802ea3af MT |
30 | openssl-devel |
31 | pkg-config | |
909e15a8 | 32 | readline-devel |
802ea3af MT |
33 | end |
34 | ||
909e15a8 MT |
35 | prepare_cmds |
36 | cp -v %{DIR_APP}/wpa_supplicant/{defconfig,.config} | |
37 | ||
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/" | |
41 | ||
42 | ( | |
43 | # Enable 802.11s mesh networking | |
44 | echo "CONFIG_MESH=y" | |
45 | echo "CONFIG_SAE=y" | |
46 | ||
47 | echo "CONFIG_IEEE80211W=y" | |
48 | ) >> %{DIR_APP}/wpa_supplicant/.config | |
49 | end | |
802ea3af | 50 | |
909e15a8 | 51 | build |
802ea3af MT |
52 | # Build wpa_supplicant |
53 | cd %{DIR_APP}/wpa_supplicant && make %{PARALLELISMFLAGS} | |
54 | end | |
55 | ||
56 | install | |
53eb9705 MT |
57 | mkdir -pv %{BUILDROOT}%{sysconfdir}/wpa_supplicant |
58 | mkdir -pv %{BUILDROOT}%{sbindir} | |
59 | mkdir -pv %{BUILDROOT}%{unitdir} | |
802ea3af MT |
60 | |
61 | # Install config file | |
62 | install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant | |
63 | ||
64 | # Install binaries | |
53eb9705 MT |
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} | |
68 | ||
69 | # Install systemd unit file | |
70 | install -v -m 644 wpa_supplicant/systemd/wpa_supplicant.service \ | |
71 | %{BUILDROOT}%{unitdir} | |
802ea3af MT |
72 | end |
73 | end | |
74 | ||
75 | packages | |
76 | package %{name} | |
909e15a8 MT |
77 | script postin |
78 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
79 | end | |
80 | ||
81 | script postun | |
82 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
83 | end | |
84 | ||
85 | script postup | |
86 | /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || : | |
87 | end | |
6205da65 | 88 | end |
1f9bc2f0 MT |
89 | |
90 | package %{name}-debuginfo | |
91 | template DEBUGINFO | |
92 | end | |
802ea3af | 93 | end |