]> git.pld-linux.org Git - packages/coova-chilli.git/blob - coova-chilli.spec
508875b63f2bbcf3e62fbe2d6b9c8add3a317d78
[packages/coova-chilli.git] / coova-chilli.spec
1 Summary:        CoovaChilli - Software access controller
2 Name:           coovachilli
3 Version:        1.2.4
4 Release:        0.1
5 License:        GPL
6 Group:          Applications
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)
18
19 %description
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/.
27
28 %prep
29 %setup -q -n coova-chilli-%{version}
30
31 %patch0 -p1
32
33 %build
34 %{__libtoolize}
35 %{__aclocal}
36 %{__autoconf}
37 %{__autoheader}
38 %{__automake}
39 %configure
40 %{__make}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44
45 install -d $RPM_BUILD_ROOT/etc/rc.d
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 /sbin/chkconfig --add chilli
55 %service chilli restart
56
57 %preun
58 if [ "$1" = "0" ]; then
59         %service -q chilli stop
60         /sbin/chkconfig --del chilli
61 fi
62
63 %files
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/*
75 %{_mandir}/man1/*.1*
76 %{_mandir}/man5/*.5*
77 %{_mandir}/man8/*.8*
This page took 0.029216 seconds and 2 git commands to generate.