1 Summary: CoovaChilli - Software access controller
7 Source0: http://ap.coova.org/chilli/coova-chilli-%{version}.tar.gz
8 # Source0-md5: 6d942a731da07b029a1be0b58d7917d6
9 Patch0: %{name}-strncpy.patch
10 URL: http://coova.org/wiki/index.php/CoovaChilli
11 BuildRequires: autoconf
12 BuildRequires: automake
13 BuildRequires: libtool
14 BuildRequires: perl-base
15 BuildRequires: rpmbuild(macros) >= 1.228
16 Requires(post,preun): /sbin/chkconfig
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Coova-Chilli is a fork of the ChilliSpot project - an open source
21 captive portal or wireless LAN access point controller. It supports
22 web based login (Universal Access Method, or UAM), standard for public
23 HotSpots, and it supports Wireless Protected Access (WPA), the
24 standard for secure roamable networks. Authentication, Authorization
25 and Accounting (AAA) is handled by your favorite radius server. Read
26 more at http://coova.org/ and http://www.chillispot.org/.
29 %setup -q -n coova-chilli-%{version}
43 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/etc/rc.d
48 DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 /sbin/chkconfig --add chilli
55 %service chilli restart
58 if [ "$1" = "0" ]; then
59 %service -q chilli stop
60 /sbin/chkconfig --del chilli
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_sbindir}/*
66 %attr(755,root,root) %{_libdir}/*.so*
67 %attr(754,root,root) /etc/init.d/chilli
68 %doc AUTHORS COPYING ChangeLog INSTALL README doc/dictionary.chillispot doc/hotspotlogin.cgi
69 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli.conf
70 %dir %{_sysconfdir}/chilli
71 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/*
72 %attr(755,root,root)%{_sysconfdir}/chilli/www/config.sh
73 %dir %{_sysconfdir}/chilli/www
74 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/chilli/www/*