]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - hostapd/hostapd.nm
systemd: Fix conflict with nss-myhostname.
[people/ms/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 = 1.0
8 release = 2
9
10 groups = Networking/Tools
11 url = http://hostap.epitest.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 = http://hostap.epitest.fi/releases/
23
24 build
25 requires
26 libnl-devel
27 openssl-devel
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_IEEE80211N=y/s/^#//" \
37 -e "/^#CONFIG_RADIUS_SERVER=y/s/^#//"
38 end
39
40 build
41 cd hostapd
42 make %{PARALLELISMFLAGS} CC=gcc
43 end
44
45 install
46 cd hostapd
47
48 # Install binaries.
49 mkdir -pv %{BUILDROOT}%{bindir} %{BUILDROOT}%{sbindir}
50 install -m 755 hostapd %{BUILDROOT}%{sbindir}
51 install -m 755 hostapd_cli %{BUILDROOT}%{bindir}
52
53 # Install manpages.
54 mkdir -pv %{BUILDROOT}%{mandir}/man{1,8}
55 install -m 644 hostapd.8 %{BUILDROOT}%{mandir}/man8
56 install -m 644 hostapd_cli.1 %{BUILDROOT}%{mandir}/man1
57 end
58 end
59
60 packages
61 package %{name}
62 script postin
63 systemctl daemon-reload >/dev/null 2>&1 || :
64 end
65
66 script postup
67 systemctl daemon-reload >/dev/null 2>&1 || :
68 end
69
70 script postun
71 systemctl daemon-reload >/dev/null 2>&1 || :
72 end
73 end
74
75 package %{name}-debuginfo
76 template DEBUGINFO
77 end
78 end