|
# $Id$ |
|
|
# Authority: vip-ire |
|
|
# Name: Daniel Berteaud |
|
|
|
|
1 |
Summary: Coova-Chilli, a captive portal based on ChilliSpot configured for SME server |
Summary: Coova-Chilli, a captive portal based on ChilliSpot configured for SME server |
2 |
%define name smeserver-coova-chilli |
%define name smeserver-coova-chilli |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.1 |
%define version 0.1 |
5 |
%define release 1 |
%define release 2.el4.sme |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release} |
8 |
License: GPL |
License: GPL |
9 |
Group: Networking/Remote access |
Group: Networking/Remote access |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
|
Patch1: smeserver-coova-chilli-0.1-bypass_auth_with_squid_fix.patch |
|
|
Patch2: smeserver-coova-chilli-0.1-expand_masq_fix.patch |
|
11 |
URL: http://sme.firewall-services.com |
URL: http://sme.firewall-services.com |
12 |
Packager: Daniel Berteaud <daniel@firewall-services.com> |
Packager: Daniel Berteaud <daniel@firewall-services.com> |
13 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
15 |
Requires: e-smith-release >= 7.0 openssl coova-chilli |
Requires: e-smith-release >= 7.0 openssl coova-chilli |
16 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
|
17 |
|
Patch1: smeserver-coova-chilli-0.1-bypass_auth_with_squid_fix.patch |
18 |
|
Patch2: smeserver-coova-chilli-0.1-expand_masq_fix.patch |
19 |
|
Patch3: smeserver-coova-chilli-0.1-firewall2db.patch |
20 |
|
Patch4: smeserver-coova-chilli-0.1-loginPageDir.patch |
21 |
|
|
22 |
%description |
%description |
23 |
This package allow you to configure a third interface |
This package allow you to configure a third interface |
28 |
they'll only have web access if they are members of the group "chilli" |
they'll only have web access if they are members of the group "chilli" |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
|
* Tue Aug 26 2008 Daniel B. <daniel@firewall-services.com> |
32 |
|
- [0.1-2] |
33 |
|
- Most firewall customizations (for incomming and forwarded traffic from |
34 |
|
chilli network only) can be set through db commands (Patch3) |
35 |
|
- Outgoing DNS is allowed only for the two DNS servers configured |
36 |
|
- Clean spec file, adn put php files in /opt/chilli (Patch4) |
37 |
|
|
38 |
|
|
39 |
* Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com> |
* Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com> |
40 |
- [0.1-1] |
- [0.1-1] |
41 |
- security fixe: auth bypass with squid (patch1) |
- security fixe: auth bypass with squid (patch1) |
49 |
%setup |
%setup |
50 |
%patch1 -p1 |
%patch1 -p1 |
51 |
%patch2 -p1 |
%patch2 -p1 |
52 |
|
%patch3 -p1 |
53 |
|
%patch4 -p1 |
54 |
|
|
55 |
%build |
%build |
56 |
/usr/bin/perl createlinks |
/usr/bin/perl createlinks |
62 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
63 |
--file /etc/chilli/conup.sh 'attr(0750,root,root)' \ |
--file /etc/chilli/conup.sh 'attr(0750,root,root)' \ |
64 |
--file /etc/chilli/condown.sh 'attr(0750,root,root)' \ |
--file /etc/chilli/condown.sh 'attr(0750,root,root)' \ |
65 |
|
--file /opt/chilli/hotspotlogin-loginform.php 'config(noreplace)' \ |
66 |
|
--file /opt/chilli/hotspotlogin-nonchilli.php 'config(noreplace)' \ |
67 |
|
--file /opt/chilli/hotspotlogin-nonssl.php 'config(noreplace)' \ |
68 |
|
--file /opt/chilli/hotspotlogin.php 'config(noreplace)' \ |
69 |
|
--file /opt/chilli/lang/en.php 'config(noreplace)' \ |
70 |
|
--file /opt/chilli/lang/fr.php 'config(noreplace)' \ |
71 |
|
--file /opt/chilli/lang/main.php 'config(noreplace)' \ |
72 |
|
--file /opt/chilli/template/loggingin.php 'config(noreplace)' \ |
73 |
|
--file /opt/chilli/template/loginform-footer.php 'config(noreplace)' \ |
74 |
|
--file /opt/chilli/template/loginform-header.php 'config(noreplace)' \ |
75 |
> %{name}-%{version}-filelist |
> %{name}-%{version}-filelist |
76 |
|
|
77 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
80 |
%clean |
%clean |
81 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
82 |
|
|
83 |
|
%pre |
84 |
|
|
85 |
|
|
86 |
%post |
%post |
|
if [ ! -e /opt/chilli ]; then |
|
|
/bin/cp -a /opt/chilli.rpmnew /opt/chilli |
|
|
fi |
|
87 |
|
|
88 |
%preun |
%preun |
89 |
|
|
90 |
if [ $1 == 0 ]; then |
if [ $1 == 0 ]; then |
91 |
/sbin/e-smith/db configuration setprop chilli status disabled |
/sbin/e-smith/db configuration setprop chilli status disabled |
92 |
/sbin/e-smith/signal-event chilli-update |
/etc/rc.d/init.d/chilli stop > /dev/null 2>&1 |
93 |
|
true |
94 |
fi |
fi |
95 |
|
|
96 |
|
%postun |
97 |
|
|