]>
Commit | Line | Data |
---|---|---|
a169e907 SP |
1 | Summary: CoovaChilli - Software access controller |
2 | Name: coovachilli | |
6ef11f53 | 3 | Version: 1.0.12 |
a169e907 SP |
4 | Release: 0.1 |
5 | License: GPL | |
6 | Group: Applications | |
7 | Source0: http://ap.coova.org/chilli/coova-chilli-%{version}.tar.gz | |
6ef11f53 SP |
8 | # Source0-md5: 365f46fe79b3d76432544d6bc5f37939 |
9 | URL: http://coova.org/wiki/index.php/CoovaChilli | |
a169e907 SP |
10 | BuildRequires: rpmbuild(macros) >= 1.228 |
11 | Requires(post,preun): /sbin/chkconfig | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | Coova-Chilli is a fork of the ChilliSpot project - an open source | |
16 | captive portal or wireless LAN access point controller. It supports | |
17 | web based login (Universal Access Method, or UAM), standard for public | |
18 | HotSpots, and it supports Wireless Protected Access (WPA), the | |
19 | standard for secure roamable networks. Authentication, Authorization | |
20 | and Accounting (AAA) is handled by your favorite radius server. Read | |
21 | more at http://coova.org/ and http://www.chillispot.org/. | |
22 | ||
23 | %prep | |
24 | %setup -q -n coova-chilli-%{version} | |
25 | ||
26 | %build | |
27 | %configure | |
28 | %{__make} | |
29 | ||
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
32 | ||
33 | install -d $RPM_BUILD_ROOT/etc/rc.d | |
34 | ||
35 | %{__make} install \ | |
36 | DESTDIR=$RPM_BUILD_ROOT | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %post | |
6ef11f53 SP |
42 | /sbin/chkconfig --add chilli |
43 | %service chilli restart | |
a169e907 SP |
44 | |
45 | %preun | |
46 | if [ "$1" = "0" ]; then | |
6ef11f53 SP |
47 | %service -q chilli stop |
48 | /sbin/chkconfig --del chilli | |
a169e907 SP |
49 | fi |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %attr(755,root,root) %{_sbindir}/* | |
54 | %attr(755,root,root) %{_libdir}/*.so* | |
55 | %attr(754,root,root) /etc/init.d/chilli | |
56 | %doc AUTHORS COPYING ChangeLog INSTALL README doc/dictionary.chillispot doc/hotspotlogin.cgi | |
6ef11f53 | 57 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli.conf |
c63be05f | 58 | %dir %{_sysconfdir}/chilli |
a169e907 | 59 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/* |
a169e907 | 60 | %attr(755,root,root)%{_sysconfdir}/chilli/www/config.sh |
6ef11f53 SP |
61 | %dir %{_sysconfdir}/chilli/www |
62 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/www/* | |
a169e907 SP |
63 | %{_mandir}/man1/*.1* |
64 | %{_mandir}/man5/*.5* | |
65 | %{_mandir}/man8/*.8* |