1 |
# $Id: smeserver-coova-chilli.spec,v 1.1 2008/04/15 15:04:56 slords Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: Coova-Chilli, a captive portal based on ChilliSpot configured for SME server |
6 |
%define name smeserver-coova-chilli |
7 |
Name: %{name} |
8 |
%define version 0.1 |
9 |
%define release 1 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Remote access |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
Patch1: smeserver-coova-chilli-0.1-bypass_auth_with_squid_fix.patch |
16 |
Patch2: smeserver-coova-chilli-0.1-expand_masq_fix.patch |
17 |
URL: http://sme.firewall-services.com |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
20 |
Requires: e-smith-release >= 7.0 openssl coova-chilli |
21 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
|
23 |
%description |
24 |
This package allow you to configure a third interface |
25 |
(eth2). Just plug a WiFi AP on it, and you'll have |
26 |
a secured captive portal. Users will be redirected |
27 |
on a logon page and they'll have to enter credentials |
28 |
(sme accounts) before the server allows them. By default, |
29 |
they'll only have web access if they are members of the group "chilli" |
30 |
|
31 |
%changelog |
32 |
* Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com> |
33 |
- [0.1-1] |
34 |
- security fixe: auth bypass with squid (patch1) |
35 |
- masq template not expanded (patch2) |
36 |
|
37 |
* Fri Apr 04 2008 Daniel Berteaud <daniel@firewall-services.com> |
38 |
- [0.1] |
39 |
- initiale release |
40 |
|
41 |
%prep |
42 |
%setup |
43 |
%patch1 -p1 |
44 |
%patch2 -p1 |
45 |
|
46 |
%build |
47 |
/usr/bin/perl createlinks |
48 |
|
49 |
%install |
50 |
/bin/rm -rf $RPM_BUILD_ROOT |
51 |
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
52 |
/bin/rm -f %{name}-%{version}-filelist |
53 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
54 |
--file /etc/chilli/conup.sh 'attr(0750,root,root)' \ |
55 |
--file /etc/chilli/condown.sh 'attr(0750,root,root)' \ |
56 |
> %{name}-%{version}-filelist |
57 |
|
58 |
%files -f %{name}-%{version}-filelist |
59 |
%defattr(-,root,root) |
60 |
|
61 |
%clean |
62 |
rm -rf $RPM_BUILD_ROOT |
63 |
|
64 |
%post |
65 |
if [ ! -e /opt/chilli ]; then |
66 |
/bin/cp -a /opt/chilli.rpmnew /opt/chilli |
67 |
fi |
68 |
|
69 |
%preun |
70 |
if [ $1 == 0 ]; then |
71 |
/sbin/e-smith/db configuration setprop chilli status disabled |
72 |
/sbin/e-smith/signal-event chilli-update |
73 |
fi |
74 |
|