/[smecontribs]/rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli.spec
ViewVC logotype

Diff of /rpms/smeserver-coova-chilli/contribs7/smeserver-coova-chilli.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.2 by slords, Tue Apr 15 15:18:07 2008 UTC Revision 1.6 by vip-ire, Wed Aug 27 13:40:06 2008 UTC
# Line 1  Line 1 
 # $Id: smeserver-coova-chilli.spec,v 1.1 2008/04/15 15:04:56 slords Exp $  
 # 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
6  Version: %{version}  Version: %{version}
7  Release: %{release}%{?dist}  Release: %{release}%{?dist}
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>
13  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14  BuildArchitectures: noarch  BuildArchitectures: noarch
15    BuildRequires: e-smith-devtools
16  Requires: e-smith-release >= 7.0 openssl coova-chilli  Requires: e-smith-release >= 7.0 openssl coova-chilli
17  BuildRequires: e-smith-devtools >= 1.13.1-03  
18    Patch1: smeserver-coova-chilli-0.1-bypass_auth_with_squid_fix.patch
19    Patch2: smeserver-coova-chilli-0.1-expand_masq_fix.patch
20    Patch3: smeserver-coova-chilli-0.1-firewall2db.patch
21    Patch4: smeserver-coova-chilli-0.1-loginPageDir.patch
22    
23  %description  %description
24  This package allow you to configure a third interface  This package allow you to configure a third interface
# Line 26  This package allow you to configure a th Line 26  This package allow you to configure a th
26  a secured captive portal. Users will be redirected  a secured captive portal. Users will be redirected
27  on a logon page and they'll have to enter credentials  on a logon page and they'll have to enter credentials
28  (sme accounts) before the server allows them. By default,  (sme accounts) before the server allows them. By default,
29  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"
30    This contrib will only work in server&gateway mode
31    
32  %changelog  %changelog
33    * Tue Aug 26 2008 Daniel B. <daniel@firewall-services.com>
34    - [0.1-2]
35    - Most firewall customizations (for incomming and forwarded traffic from
36      chilli network only) can be set through db commands (Patch3)
37    - Outgoing DNS is allowed only for the two DNS servers configured
38    - Clean spec file, and put php files in /opt/chilli (Patch4)
39    
40  * Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com>  * Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com>
41  - [0.1-1]  - [0.1-1]
42  - security fixe: auth bypass with squid (patch1)  - security fixe: auth bypass with squid (patch1)
# Line 42  they'll only have web access if they are Line 50  they'll only have web access if they are
50  %setup  %setup
51  %patch1 -p1  %patch1 -p1
52  %patch2 -p1  %patch2 -p1
53    %patch3 -p1
54    %patch4 -p1
55    
56  %build  %build
57  /usr/bin/perl createlinks  /usr/bin/perl createlinks
# Line 53  they'll only have web access if they are Line 63  they'll only have web access if they are
63  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
64          --file /etc/chilli/conup.sh 'attr(0750,root,root)' \          --file /etc/chilli/conup.sh 'attr(0750,root,root)' \
65          --file /etc/chilli/condown.sh 'attr(0750,root,root)' \          --file /etc/chilli/condown.sh 'attr(0750,root,root)' \
66            --file /opt/chilli/hotspotlogin-loginform.php 'config(noreplace)' \
67            --file /opt/chilli/hotspotlogin-nonchilli.php 'config(noreplace)' \
68            --file /opt/chilli/hotspotlogin-nonssl.php 'config(noreplace)' \
69            --file /opt/chilli/hotspotlogin.php 'config(noreplace)' \
70            --file /opt/chilli/lang/en.php 'config(noreplace)' \
71            --file /opt/chilli/lang/fr.php 'config(noreplace)' \
72            --file /opt/chilli/lang/main.php 'config(noreplace)' \
73            --file /opt/chilli/template/loggingin.php 'config(noreplace)' \
74            --file /opt/chilli/template/loginform-footer.php 'config(noreplace)' \
75            --file /opt/chilli/template/loginform-header.php 'config(noreplace)' \
76          > %{name}-%{version}-filelist          > %{name}-%{version}-filelist
77    
78  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
# Line 61  they'll only have web access if they are Line 81  they'll only have web access if they are
81  %clean  %clean
82  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
83    
84    %pre
85    
86    
87  %post  %post
 if [ ! -e /opt/chilli ]; then  
         /bin/cp -a /opt/chilli.rpmnew /opt/chilli  
 fi  
88    
89  %preun  %preun
90    
91  if [ $1 == 0 ]; then  if [ $1 == 0 ]; then
92          /sbin/e-smith/db configuration setprop chilli status disabled          /sbin/e-smith/db configuration setprop chilli status disabled
93          /sbin/e-smith/signal-event chilli-update          /etc/rc.d/init.d/chilli stop > /dev/null 2>&1
94            true
95  fi  fi
96    
97    %postun
98    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed