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

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

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


Revision 1.6 - (hide annotations) (download)
Wed Aug 27 13:40:06 2008 UTC (15 years, 8 months ago) by vip-ire
Branch: MAIN
Changes since 1.5: +1 -0 lines
Add buildRequires

1 slords 1.1 Summary: Coova-Chilli, a captive portal based on ChilliSpot configured for SME server
2     %define name smeserver-coova-chilli
3     Name: %{name}
4     %define version 0.1
5 vip-ire 1.5 %define release 2
6 slords 1.1 Version: %{version}
7 vip-ire 1.5 Release: %{release}%{?dist}
8 vip-ire 1.4 License: GPL
9 slords 1.1 Group: Networking/Remote access
10     Source: %{name}-%{version}.tar.gz
11     URL: http://sme.firewall-services.com
12 vip-ire 1.3 Packager: Daniel Berteaud <daniel@firewall-services.com>
13 slords 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14     BuildArchitectures: noarch
15 vip-ire 1.6 BuildRequires: e-smith-devtools
16 slords 1.1 Requires: e-smith-release >= 7.0 openssl coova-chilli
17 vip-ire 1.3
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 slords 1.1
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 vip-ire 1.5 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 slords 1.1
32     %changelog
33 vip-ire 1.3 * Tue Aug 26 2008 Daniel B. <daniel@firewall-services.com>
34     - [0.1-2]
35 vip-ire 1.5 - Most firewall customizations (for incomming and forwarded traffic from
36 vip-ire 1.3 chilli network only) can be set through db commands (Patch3)
37     - Outgoing DNS is allowed only for the two DNS servers configured
38 vip-ire 1.5 - Clean spec file, and put php files in /opt/chilli (Patch4)
39 vip-ire 1.3
40 slords 1.1 * Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com>
41     - [0.1-1]
42     - security fixe: auth bypass with squid (patch1)
43     - masq template not expanded (patch2)
44    
45     * Fri Apr 04 2008 Daniel Berteaud <daniel@firewall-services.com>
46     - [0.1]
47     - initiale release
48    
49     %prep
50     %setup
51     %patch1 -p1
52     %patch2 -p1
53 vip-ire 1.3 %patch3 -p1
54     %patch4 -p1
55 slords 1.1
56     %build
57     /usr/bin/perl createlinks
58    
59     %install
60     /bin/rm -rf $RPM_BUILD_ROOT
61     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
62     /bin/rm -f %{name}-%{version}-filelist
63     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
64     --file /etc/chilli/conup.sh 'attr(0750,root,root)' \
65     --file /etc/chilli/condown.sh 'attr(0750,root,root)' \
66 vip-ire 1.3 --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 slords 1.1 > %{name}-%{version}-filelist
77    
78     %files -f %{name}-%{version}-filelist
79     %defattr(-,root,root)
80    
81     %clean
82     rm -rf $RPM_BUILD_ROOT
83    
84 vip-ire 1.3 %pre
85    
86    
87 slords 1.1 %post
88    
89     %preun
90 vip-ire 1.3
91 slords 1.1 if [ $1 == 0 ]; then
92     /sbin/e-smith/db configuration setprop chilli status disabled
93 vip-ire 1.3 /etc/rc.d/init.d/chilli stop > /dev/null 2>&1
94     true
95 slords 1.1 fi
96    
97 vip-ire 1.3 %postun
98    

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