]> git.ipfire.org Git - ipfire-3.x.git/blob - wpa_supplicant/wpa_supplicant.nm
nettle: Update to 3.4.1
[ipfire-3.x.git] / wpa_supplicant / wpa_supplicant.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = wpa_supplicant
7 version = 2.6
8 release = 2
9
10 groups = Sytem/Base
11 url = http://hostap.epitest.fi/releases/
12 license = BSD
13 summary = WPA/WPA2/IEEE 802.1X Supplicant.
14
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
20 authentication/association of the wlan driver.
21 end
22
23 source_dl = http://hostap.epitest.fi/releases/
24
25 build
26 requires
27 libnl3-devel
28 ncurses-devel
29 openssl-devel
30 pkg-config
31 readline-devel
32 end
33
34 prepare_cmds
35 cp -v %{DIR_APP}/wpa_supplicant/{defconfig,.config}
36
37 sed -i %{DIR_APP}/wpa_supplicant/.config \
38 -e "s/#CONFIG_READLINE=y/CONFIG_READLINE=y/" \
39 -e "s/#CONFIG_LIBNL32=y/CONFIG_LIBNL32=y/"
40
41 (
42 # Enable 802.11s mesh networking
43 echo "CONFIG_MESH=y"
44 echo "CONFIG_SAE=y"
45
46 echo "CONFIG_IEEE80211W=y"
47 ) >> %{DIR_APP}/wpa_supplicant/.config
48 end
49
50 build
51 # Build wpa_supplicant
52 cd %{DIR_APP}/wpa_supplicant && make %{PARALLELISMFLAGS}
53 end
54
55 install
56 mkdir -pv %{BUILDROOT}/etc/wpa_supplicant
57 mkdir -pv %{BUILDROOT}/usr/sbin
58
59 # Install config file
60 install -D -m 0600 %{DIR_SOURCE}/wpa_supplicant.conf %{BUILDROOT}/etc/wpa_supplicant
61
62 # Install binaries
63 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_passphrase %{BUILDROOT}/usr/sbin
64 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_cli %{BUILDROOT}/usr/sbin
65 install -m 0755 %{DIR_APP}/wpa_supplicant/wpa_supplicant %{BUILDROOT}/usr/sbin
66 end
67 end
68
69 packages
70 package %{name}
71 requires += network >= 1:005
72
73 script postin
74 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
75 end
76
77 script postun
78 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80
81 script postup
82 /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
83 end
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89 end