]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - hostapd/hostapd.nm
hostapd: update to 2.10
[people/pmueller/ipfire-3.x.git] / hostapd / hostapd.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = hostapd
7 version = 2.10
8 release = 1
9
10 groups = Networking/Tools
11 url = https://w1.fi/hostapd/
12 license = GPLv2+
13 summary = User space daemon to create Wifi Access points.
14
15 description
16 Hostapd is a user space daemon for access point and authentication \
17 servers. It implements IEEE 802.11 access point management, IEEE \
18 802.1X/WPA/WPA2/EAP Authenticators, RADIUS client, EAP server, and \
19 RADIUS authentication server.
20 end
21
22 source_dl = https://w1.fi/releases/
23
24 build
25 requires
26 libnl3-devel
27 openssl-devel >= 1.1.1
28 end
29
30 prepare_cmds
31 cd hostapd
32
33 # Create our custom configuration.
34 cat defconfig > .config
35 sed -i .config \
36 -e '/^#CONFIG_GETRANDOM=y/s/^#//' \
37 -e '/^#CONFIG_ACS=y/s/^#//' \
38 -e '/^#CONFIG_LIBNL32=y/s/^#//' \
39 -e '/^#CONFIG_TAXONOMY=y/s/^#//' \
40 -e '/^#CONFIG_DRIVER_NL80211=y/s/^#//' \
41 -e '/^#CONFIG_DRIVER_NL80211_QCA=y/s/^#//' \
42 -e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
43 -e '/^#CONFIG_DRIVER_WIRED=y/s/^#//' \
44 -e '/^#CONFIG_IEEE80211AC=y/s/^#//' \
45 -e '/^#CONFIG_IEEE80211AX=y/s/^#//' \
46 -e '/^#CONFIG_IEEE80211N=y/s/^#//' \
47 -e '/^#CONFIG_RADIUS_SERVER=y/s/^#//'
48 end
49
50 build
51 cd hostapd
52 make %{PARALLELISMFLAGS} CC=gcc \
53 CONFIG_SAE=y
54 end
55
56 install
57 cd hostapd
58
59 # Install binaries.
60 mkdir -pv %{BUILDROOT}%{bindir} %{BUILDROOT}%{sbindir}
61 install -m 755 hostapd %{BUILDROOT}%{sbindir}
62 install -m 755 hostapd_cli %{BUILDROOT}%{bindir}
63
64 # Install manpages.
65 mkdir -pv %{BUILDROOT}%{mandir}/man{1,8}
66 install -m 644 hostapd.8 %{BUILDROOT}%{mandir}/man8
67 install -m 644 hostapd_cli.1 %{BUILDROOT}%{mandir}/man1
68 end
69 end
70
71 packages
72 package %{name}
73 script postin
74 systemctl daemon-reload >/dev/null 2>&1 || :
75 end
76
77 script postup
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80
81 script postun
82 systemctl daemon-reload >/dev/null 2>&1 || :
83 end
84 end
85
86 package %{name}-debuginfo
87 template DEBUGINFO
88 end
89 end