334 |
richard |
1 |
%define _disable_ld_no_undefined 1
|
|
|
2 |
|
|
|
3 |
%define major 0
|
|
|
4 |
%define libname %mklibname chilli %{major}
|
|
|
5 |
%define develname %mklibname -d chilli
|
|
|
6 |
|
|
|
7 |
Summary: Wireless LAN Access Point Controller
|
|
|
8 |
Name: coova-chilli
|
|
|
9 |
Version: 1.2.5
|
|
|
10 |
Release: %mkrel 0
|
|
|
11 |
License: GPLv2
|
|
|
12 |
Group: System/Servers
|
|
|
13 |
URL: http://coova.org/wiki/index.php/CoovaChilli
|
|
|
14 |
Source0: http://ap.coova.org/chilli/%{name}-%{version}.tar.gz
|
|
|
15 |
Patch0: coova-chilli-1.2.5-rexy_fix.diff
|
|
|
16 |
Requires(pre): rpm-helper
|
|
|
17 |
Requires(postun): rpm-helper
|
|
|
18 |
Requires: python-coova-chilli
|
|
|
19 |
BuildRequires: autoconf
|
|
|
20 |
BuildRequires: libtool
|
|
|
21 |
BuildRequires: curl-devel
|
|
|
22 |
BuildRequires: openssl-devel
|
|
|
23 |
BuildRequires: pcap-devel
|
|
|
24 |
BuildRequires: python
|
|
|
25 |
BuildRequires: python-devel
|
|
|
26 |
Provides: coova-chilli = %{version}-%{release}
|
|
|
27 |
Obsoletes: chillispot
|
|
|
28 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
29 |
|
|
|
30 |
%description
|
|
|
31 |
Coova-Chilli is a fork of the ChilliSpot project - an open source captive
|
|
|
32 |
portal or wireless LAN access point controller. It supports web based login
|
|
|
33 |
(Universal Access Method, or UAM), standard for public HotSpots, and it
|
|
|
34 |
supports Wireless Protected Access (WPA), the standard for secure roamable
|
|
|
35 |
networks. Authentication, Authorization and Accounting (AAA) is handled by
|
|
|
36 |
your favorite radius server. Read more at http://coova.org/ and
|
|
|
37 |
http://www.chillispot.org/.
|
|
|
38 |
|
|
|
39 |
%package -n %{libname}
|
|
|
40 |
Summary: Shared libraries for %{name}
|
|
|
41 |
Group: System/Libraries
|
|
|
42 |
|
|
|
43 |
%description -n %{libname}
|
|
|
44 |
Coova-Chilli is a fork of the ChilliSpot project - an open source captive
|
|
|
45 |
portal or wireless LAN access point controller. It supports web based login
|
|
|
46 |
(Universal Access Method, or UAM), standard for public HotSpots, and it
|
|
|
47 |
supports Wireless Protected Access (WPA), the standard for secure roamable
|
|
|
48 |
networks. Authentication, Authorization and Accounting (AAA) is handled by
|
|
|
49 |
your favorite radius server. Read more at http://coova.org/ and
|
|
|
50 |
http://www.chillispot.org/.
|
|
|
51 |
|
|
|
52 |
This package contains the shared libraries for %{name}.
|
|
|
53 |
|
|
|
54 |
%package -n %{develname}
|
|
|
55 |
Summary: Static library and header files for the %{name} library
|
|
|
56 |
Group: Development/C
|
|
|
57 |
Provides: %{name}-devel = %{version}
|
|
|
58 |
Provides: lib%{name}-devel = %{version}
|
|
|
59 |
Requires: %{libname} = %{version}
|
|
|
60 |
|
|
|
61 |
%description -n %{develname}
|
|
|
62 |
Coova-Chilli is a fork of the ChilliSpot project - an open source captive
|
|
|
63 |
portal or wireless LAN access point controller. It supports web based login
|
|
|
64 |
(Universal Access Method, or UAM), standard for public HotSpots, and it
|
|
|
65 |
supports Wireless Protected Access (WPA), the standard for secure roamable
|
|
|
66 |
networks. Authentication, Authorization and Accounting (AAA) is handled by
|
|
|
67 |
your favorite radius server. Read more at http://coova.org/ and
|
|
|
68 |
http://www.chillispot.org/.
|
|
|
69 |
|
|
|
70 |
This package contains the static %{name} library and its header files.
|
|
|
71 |
|
|
|
72 |
%package -n python-coova-chilli
|
|
|
73 |
Summary: CoovaChilli Python Library
|
|
|
74 |
Group: Development/Python
|
|
|
75 |
Obsoletes: python-coova-chilli < %{version}-%{release}
|
|
|
76 |
|
|
|
77 |
%description -n python-coova-chilli
|
|
|
78 |
CoovaChilli Python Library
|
|
|
79 |
|
|
|
80 |
%prep
|
|
|
81 |
%setup -q -n %{name}-%{version}
|
|
|
82 |
%patch0 -p0
|
|
|
83 |
|
|
|
84 |
# fix strange perms
|
|
|
85 |
find . -type d -perm 0700 -exec chmod 755 {} \;
|
|
|
86 |
find . -type f -perm 0555 -exec chmod 755 {} \;
|
|
|
87 |
find . -type f -perm 0444 -exec chmod 644 {} \;
|
|
|
88 |
|
|
|
89 |
# cleanup cvs junk
|
|
|
90 |
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
|
|
|
91 |
if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
|
|
|
92 |
done
|
|
|
93 |
|
|
|
94 |
%build
|
|
|
95 |
autoreconf -fi
|
|
|
96 |
%serverbuild
|
|
|
97 |
|
|
|
98 |
%configure2_5x \
|
|
|
99 |
--enable-static-exec \
|
|
|
100 |
--enable-miniportal \
|
|
|
101 |
--enable-chilliredir \
|
|
|
102 |
--enable-chilliproxy \
|
|
|
103 |
--enable-largelimits \
|
|
|
104 |
--with-openssl \
|
|
|
105 |
--with-mmap \
|
|
|
106 |
--with-pcap \
|
|
|
107 |
--with-curl
|
|
|
108 |
|
|
|
109 |
%make
|
|
|
110 |
|
|
|
111 |
%install
|
|
|
112 |
rm -rf %{buildroot}
|
|
|
113 |
|
|
|
114 |
%makeinstall_std
|
|
|
115 |
|
|
|
116 |
install -d %{buildroot}%{_initrddir}
|
|
|
117 |
mv %{buildroot}%{_sysconfdir}/init.d/chilli %{buildroot}%{_initrddir}/chilli
|
|
|
118 |
|
|
|
119 |
install -d %{buildroot}%{py_puresitedir}/CoovaChilli
|
|
|
120 |
mv %{buildroot}%{_libdir}/python/CoovaChilliLib.py %{buildroot}%{py_puresitedir}/CoovaChilli/
|
|
|
121 |
|
|
|
122 |
%post
|
|
|
123 |
%_post_service chilli
|
|
|
124 |
|
|
|
125 |
%preun
|
|
|
126 |
%_preun_service chilli
|
|
|
127 |
|
|
|
128 |
%if %mdkversion < 200900
|
|
|
129 |
%post -n %{libname} -p /sbin/ldconfig
|
|
|
130 |
%endif
|
|
|
131 |
|
|
|
132 |
%if %mdkversion < 200900
|
|
|
133 |
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
134 |
%endif
|
|
|
135 |
|
|
|
136 |
%clean
|
|
|
137 |
rm -rf %{buildroot}
|
|
|
138 |
|
|
|
139 |
%files
|
|
|
140 |
%defattr(-,root,root)
|
|
|
141 |
%doc AUTHORS COPYING ChangeLog README doc/dictionary.chillispot doc/hotspotlogin.cgi
|
|
|
142 |
%attr(0755,root,root) %{_initrddir}/chilli
|
|
|
143 |
%attr(0644,root,root) %config %{_sysconfdir}/chilli.conf
|
|
|
144 |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/chilli/defaults
|
|
|
145 |
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/chilli/gui-config-default.ini
|
|
|
146 |
%dir %{_sysconfdir}/chilli
|
|
|
147 |
%dir %{_sysconfdir}/chilli/www
|
|
|
148 |
%attr(0755,root,root) %{_sysconfdir}/chilli/www/config.sh
|
|
|
149 |
%{_sysconfdir}/chilli/www/*
|
|
|
150 |
%{_sysconfdir}/chilli/wwwsh
|
|
|
151 |
%{_sysconfdir}/chilli/functions
|
|
|
152 |
%{_sysconfdir}/chilli/*.sh
|
|
|
153 |
%attr(0755,root,root) %{_sbindir}/chilli
|
|
|
154 |
%attr(0755,root,root) %{_sbindir}/chilli_opt
|
|
|
155 |
%attr(0755,root,root) %{_sbindir}/chilli_proxy
|
|
|
156 |
%attr(0755,root,root) %{_sbindir}/chilli_query
|
|
|
157 |
%attr(0755,root,root) %{_sbindir}/chilli_radconfig
|
|
|
158 |
%attr(0755,root,root) %{_sbindir}/chilli_redir
|
|
|
159 |
%attr(0755,root,root) %{_sbindir}/chilli_response
|
|
|
160 |
%{_mandir}/man1/*.1*
|
|
|
161 |
%{_mandir}/man5/*.5*
|
|
|
162 |
%{_mandir}/man8/*.8*
|
|
|
163 |
|
|
|
164 |
%files -n %{libname}
|
|
|
165 |
%defattr(-,root,root)
|
|
|
166 |
%{_libdir}/lib*.so.%{major}*
|
|
|
167 |
|
|
|
168 |
%files -n %{develname}
|
|
|
169 |
%defattr(-,root,root)
|
|
|
170 |
%{_libdir}/*.so
|
|
|
171 |
%{_libdir}/*.*a
|
|
|
172 |
%{_includedir}/chilli/*.h
|
|
|
173 |
|
|
|
174 |
%files -n python-coova-chilli
|
|
|
175 |
%defattr(-,root,root,0755)
|
|
|
176 |
%{py_puresitedir}/CoovaChilli/CoovaChilliLib.py
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
%changelog
|
|
|
180 |
* Sat Nov 20 2010 Rexy for Alcasar project 1.2.5-0mdv2010.1
|
|
|
181 |
+ revision: 394
|
|
|
182 |
- rebuild
|
|
|
183 |
|
|
|
184 |
* Wed Apr 21 2010 Funda Wang <fwang@mandriva.org> 1.2.1-5mdv2010.1
|
|
|
185 |
+ Revision: 537318
|
|
|
186 |
- rebuild
|
|
|
187 |
|
|
|
188 |
* Fri Feb 19 2010 Funda Wang <fwang@mandriva.org> 1.2.1-4mdv2010.1
|
|
|
189 |
+ Revision: 508395
|
|
|
190 |
- should not be noarch
|
|
|
191 |
|
|
|
192 |
* Fri Feb 19 2010 Funda Wang <fwang@mandriva.org> 1.2.1-3mdv2010.1
|
|
|
193 |
+ Revision: 508393
|
|
|
194 |
- rebuild
|
|
|
195 |
|
|
|
196 |
* Wed Feb 03 2010 Frederic Crozat <fcrozat@mandriva.com> 1.2.1-2mdv2010.1
|
|
|
197 |
+ Revision: 500319
|
|
|
198 |
- force rebuild
|
|
|
199 |
|
|
|
200 |
* Tue Feb 02 2010 Oden Eriksson <oeriksson@mandriva.com> 1.2.1-1mdv2010.1
|
|
|
201 |
+ Revision: 499569
|
|
|
202 |
- whoops!
|
|
|
203 |
- second try at this annoying python crap!
|
|
|
204 |
- fix deps (thanks misc)
|
|
|
205 |
- another try
|
|
|
206 |
- 1.2.1
|
|
|
207 |
- 1.0.13
|
|
|
208 |
- rediffed patches
|
|
|
209 |
|
|
|
210 |
+ Thierry Vignaud <tv@mandriva.org>
|
|
|
211 |
- rebuild
|
|
|
212 |
|
|
|
213 |
* Wed Dec 17 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0.12-1mdv2009.1
|
|
|
214 |
+ Revision: 315139
|
|
|
215 |
- import coova-chilli
|
|
|
216 |
|
|
|
217 |
|
|
|
218 |
* Wed Dec 17 2008 Oden Eriksson <oeriksson@mandriva.com> 1.0.12-1mdv2009.0
|
|
|
219 |
- initial Mandriva package
|