]> git.ipfire.org Git - ipfire-3.x.git/blame - hostapd/hostapd.nm
readline: Update to 8.0
[ipfire-3.x.git] / hostapd / hostapd.nm
CommitLineData
2f3072ad 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
2f3072ad
MT
4###############################################################################
5
802ea3af 6name = hostapd
6efed435 7version = 2.6
902ce593 8release = 2
2f3072ad 9
802ea3af
MT
10groups = Networking/Tools
11url = http://hostap.epitest.fi/hostapd/
12license = GPLv2+
13summary = User space daemon to create Wifi Access points.
2f3072ad 14
802ea3af 15description
2f3072ad
MT
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.
802ea3af
MT
20end
21
b38b522c 22source_dl = http://hostap.epitest.fi/releases/
802ea3af
MT
23
24build
25 requires
902ce593 26 libnl3-devel
802ea3af
MT
27 openssl-devel
28 end
29
30 prepare_cmds
31 cd hostapd
c16b465b
MT
32
33 # Create our custom configuration.
34 cat defconfig > .config
35 sed -i .config \
902ce593
MT
36 -e '/^#CONFIG_ACS=y/s/^#//' \
37 -e '/^#CONFIG_LIBNL32=y/s/^#//' \
38 -e '/^#CONFIG_TAXONOMY=y/s/^#//' \
2ee8dcc4
MT
39 -e '/^#CONFIG_DRIVER_NL80211=y/s/^#//' \
40 -e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
41 -e '/^#CONFIG_DRIVER_WIRED=y/s/^#//' \
902ce593 42 -e '/^#CONFIG_IEEE80211AC=y/s/^#//' \
2ee8dcc4
MT
43 -e '/^#CONFIG_IEEE80211N=y/s/^#//' \
44 -e '/^#CONFIG_RADIUS_SERVER=y/s/^#//'
802ea3af
MT
45 end
46
47 build
48 cd hostapd
49 make %{PARALLELISMFLAGS} CC=gcc
50 end
51
52 install
c16b465b
MT
53 cd hostapd
54
55 # Install binaries.
56 mkdir -pv %{BUILDROOT}%{bindir} %{BUILDROOT}%{sbindir}
57 install -m 755 hostapd %{BUILDROOT}%{sbindir}
58 install -m 755 hostapd_cli %{BUILDROOT}%{bindir}
59
60 # Install manpages.
61 mkdir -pv %{BUILDROOT}%{mandir}/man{1,8}
62 install -m 644 hostapd.8 %{BUILDROOT}%{mandir}/man8
63 install -m 644 hostapd_cli.1 %{BUILDROOT}%{mandir}/man1
802ea3af
MT
64 end
65end
66
67packages
68 package %{name}
c16b465b
MT
69 script postin
70 systemctl daemon-reload >/dev/null 2>&1 || :
71 end
72
73 script postup
74 systemctl daemon-reload >/dev/null 2>&1 || :
75 end
76
77 script postun
78 systemctl daemon-reload >/dev/null 2>&1 || :
79 end
80 end
1f9bc2f0
MT
81
82 package %{name}-debuginfo
83 template DEBUGINFO
84 end
802ea3af 85end