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

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

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


Revision 1.6 - (hide annotations) (download)
Tue Jul 5 11:55:08 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-coova-chilli-0_3-3_el6_sme
Changes since 1.5: +3 -3 lines
* Tue Jul 05 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-3.sme
- fix format for logout screen [SME: 9514]
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
  by assuming the date is correct and changing the weekday.
  Thu Sep 03 2008 --> Thu Aug 28 2008 or Wed Sep 03 2008 or Thu Sep 04 2008 or ....
  Sun Mar 07 2009 --> Sun Mar 01 2009 or Sat Mar 07 2009 or Sun Mar 08 2009 or ....
  Wed Mar 13 2009 --> Wed Mar 11 2009 or Fri Mar 13 2009 or Wed Mar 18 2009 or ....

1 unnilennium 1.6 # $Id: smeserver-coova-chilli.spec,v 1.5 2016/07/05 11:54:42 unnilennium Exp $
2 vip-ire 1.1 # 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.3
9 unnilennium 1.3 %define release 3
10 vip-ire 1.1 Version: %{version}
11     Release: %{release}%{?dist}
12     License: GPL
13     Group: Networking/Remote access
14     Source: %{name}-%{version}.tar.xz
15 unnilennium 1.2 Patch0: smeserver-coova-chilli-0.3-MasqUpdate.patch
16 unnilennium 1.3 Patch1: smeserver-coova-chilli-0.3-logout_screen.patch
17 vip-ire 1.1 URL: https://contribs.org
18     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19     BuildArchitectures: noarch
20     BuildRequires: e-smith-devtools
21     Requires: e-smith-release >= 7.0
22     Requires: openssl
23     Requires: coova-chilli >= 1.0.13
24     Requires: e-smith-radiusd >= 1.0.0-18
25     Requires: perl(NetAddr::IP)
26     Requires: smeserver-remoteuseraccess
27    
28     %description
29     This package allow you to configure a third interface
30     (eth2). Just plug a WiFi AP on it, and you'll have
31     a secured captive portal. Users will be redirected
32     on a logon page and they'll have to enter credentials
33     (sme accounts) before the server allows them. By default,
34     they'll only have web access if they are members of the group "chilli"
35     This contrib will only work in server&gateway mode
36    
37     %changelog
38 unnilennium 1.3 * Tue Jul 05 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-3.sme
39     - fix format for logout screen [SME: 9514]
40 unnilennium 1.4 - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
41     by assuming the date is correct and changing the weekday.
42     Thu Sep 03 2008 --> Thu Aug 28 2008 or Wed Sep 03 2008 or Thu Sep 04 2008 or ....
43     Sun Mar 07 2009 --> Sun Mar 01 2009 or Sat Mar 07 2009 or Sun Mar 08 2009 or ....
44     Wed Mar 13 2009 --> Wed Mar 11 2009 or Fri Mar 13 2009 or Wed Mar 18 2009 or ....
45    
46 unnilennium 1.3
47 unnilennium 1.2 * Thu May 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.3-2.sme
48     - fix iptables syntax exclamation mark misplaced [SME: 9514]
49     - smeserver-coova-chilli-0.3-MasqUpdate.patch
50    
51 vip-ire 1.1 * Fri May 13 2016 Daniel Berteaud <daniel@firewall-services.com> 0.3-1
52     - Roll new stream for sme9
53    
54     * Mon Mar 28 2011 Daniel B. <daniel@firewall-services.com> 0.2-20
55     - Fix uamhomepage setting
56    
57     * Wed Oct 20 2010 Daniel B. <daniel@firewall-services.com> 0.2-19
58     - Drop all the trafic not going through the external interface
59    
60     * Thu Jul 29 2010 Daniel B. <daniel@firewall-services.com> 0.2-18
61     - cleanup CGI login script
62     - remove obsolete php templates
63     - add macallowed DB key to bypass auth for some mac addresses
64     - add uamhomepage DB key
65    
66     * Mon Jul 19 2010 Daniel B. <daniel@firewall-services.com> 0.2-17
67     - Fixes sudo env (bug only in SME8)
68     - Uses TCPPort squid key instead of TransparentPort so coova can
69     work with dansguardian
70     - insert NAT rule just before the ACCEPT (PREROUTING_FROM_CHILLI)
71     - add transparent directive to squid (required for squid => 2.6)
72    
73     * Wed Apr 14 2010 Daniel B. <daniel@firewall-services.com> 0.2-16
74     - Fixe a bug in conup.sh and condown.sh
75    
76     * Thu Jun 11 2009 Daniel B. <daniel@firewall-services.com> 0.2-15
77     - Fixe a bug in masq template for uamallowed entries
78    
79     * Thu May 28 2009 Daniel B. <daniel@firewall-services.com> 0.2-14
80     - Remove space in hotspot-config.pl template
81    
82     * Tue May 26 2009 Daniel B. <daniel@firewall-services.com> 0.2-13
83     - Add noc2c key (allow to disable the option, but default to enabled)
84    
85     * Thu Apr 30 2009 Daniel B. <daniel@firewall-services.com> 0.2-12
86     - Create a new user coovachilli
87     - Add support of new options uid and gid to drop privileges
88     - Enabled noc2c (prevent client to client communication)
89     - Use sudo to call conup/condown script (as chilli runs under un
90     unprivileged account now)
91     - Add smeserver-remoteuseraccess as a dependency (for sudoers metadata templates)
92     - move templates2expand in creatlinks script
93    
94 unnilennium 1.4 * Fri Mar 13 2009 Daniel B. <daniel@firewall-services.com> 0.2-11
95     Wed Mar 13 2009 --> Wed Mar 11 2009 or Fri Mar 13 2009 or Wed Mar 18 2009 or ....
96 vip-ire 1.1 - Automatically allow uamallowed entries in the firewall (no need to
97     explicitly allow it agin in AllowOutgoing)
98    
99     * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> 0.2-10
100     - Small typo correction
101    
102     * Tue Mar 10 2009 Daniel B. <daniel@firewall-services.com> 0.2-9
103     - Use allready defined localhost NAS to fixe PPTP problem [SME: 4996]
104     (thanks John K Pruder)
105     - fix a typo in squid template
106    
107 unnilennium 1.6 * Sat Mar 07 2009 Daniel B. <daniel@firewall-services.com> 0.2-8
108 vip-ire 1.1 - Add dhcpstart and dhcpstop db parameters (thanks John K Pruder)
109    
110 unnilennium 1.6 * Sat Mar 07 2009 Daniel B. <daniel@firewall-services.com> 0.2-7
111 vip-ire 1.1 - Fix tundev template [SME: 5054]
112    
113     * Thu Sep 18 2008 Daniel B. <daniel@firewall-services.com> 0.2-6
114     - Remove warning in httpd.conf file (httpd -t)
115    
116     * Mon Sep 15 2008 Daniel B. <daniel@firewall-services.com> 0.2-5
117     - Fix Syntax Error in /etc/chilli.conf template (25listen) [SME: 4559]
118    
119     * Mon Sep 08 2008 Daniel B. <daniel@firewall-services.com> 0.2-4
120     - Requires perl(NetAddr::IP)
121    
122     * Fri Sep 5 2008 Daniel B. <daniel@firewall-services.com> 0.2-3
123     - Chilli IP computed with NetAddr::IP
124     - Radius timeout set to 3 sec
125     - syntax error in radius users template fixed (for guest access)
126    
127 unnilennium 1.4 * Wed Sep 03 2008 Daniel B. <daniel@firewall-services.com> 0.2-2
128     Thu Sep 03 2008 --> Thu Aug 28 2008 or Wed Sep 03 2008 or Thu Sep 04 2008 or ....
129 vip-ire 1.1 - Bug fix for guest access
130    
131     * Tue Sep 2 2008 Daniel B. <daniel@firewall-services.com> 0.2-1
132     - uplink and downlink for guest account are configurable via db keys
133    
134     * Tue Sep 2 2008 Daniel B. <daniel@firewall-services.com> 0.2-0
135     - Login page is a CGI, with a server-manager login page look
136     - Guest Access can be enabled with guestAccess key (enabled/disabled)
137     - merge patchs in main package
138    
139     * Mon Sep 01 2008 Daniel B. <daniel@firewall-services.com> 0.1-8
140     - Fix uamallowed not working (since bypass_auth_with_squid_fix patch)
141     - Add WebRequests key (use of squid or direct connexions, default to direct)
142     - disable radconf in /etc/chilli/config
143     - possible to disable https (enabled by default in AllowedOutgoing)
144     - add tcp:static.sourceforge.net:80 in uamallowed so daloradius homepage is displayed correctly
145     - add radiustimeout directive so authentication errors display the standard message quickly
146    
147     * Thu Aug 28 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.1-7
148     - Reverted moving of default db entries to SPEC file since common practice is to store them in files
149    
150     * Thu Aug 28 2008 Daniel B. <daniel@firewall-services.com> 0.1-6
151     - split uamallowed (one per line)
152     - Add dnsparanoia directive
153     - correct cmdsock directive
154     - initialise default configuration db in the spec file
155    
156     * Thu Aug 28 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.1-5
157     - Remove the reset of $OUT from the template
158    
159     * Thu Aug 28 2008 Daniel B. <daniel@firewall-services.com> 0.1-4
160     - Add template to enable auth module unix (replace the template-custom)
161     - Copy images to /opt/chilli/template before removing .rpmnew directory
162     - Correct dependency (e-smith-radiusd not esmith-radiusd)
163    
164     * Wed Aug 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 0.1-3
165     - Split requirements to one per line
166     - Removed .rpmnew directory from package
167     - Removed the need for templates-custom as package now requires e-smith-radiusd >= 1.0.0-18
168    
169     * Tue Aug 26 2008 Daniel B. <daniel@firewall-services.com>
170     - [0.1-2]
171     - Most firewall customizations (for incomming and forwarded traffic from
172     chilli network only) can be set through db commands (Patch3)
173     - Outgoing DNS is allowed only for the two DNS servers configured
174     - Clean spec file, and put php files in /opt/chilli (Patch4)
175    
176     * Tue Apr 15 2008 Daniel Berteaud <daniel@firewall-services.com>
177     - [0.1-1]
178     - security fixe: auth bypass with squid (patch1)
179     - masq template not expanded (patch2)
180    
181     * Fri Apr 04 2008 Daniel Berteaud <daniel@firewall-services.com>
182     - [0.1]
183     - initiale release
184    
185     %prep
186     %setup
187 unnilennium 1.2 %patch0 -p1
188 unnilennium 1.3 %patch1 -p1
189 vip-ire 1.1
190     %build
191     /usr/bin/perl createlinks
192    
193     %install
194     /bin/rm -rf $RPM_BUILD_ROOT
195     (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT)
196     /bin/rm -f %{name}-%{version}-filelist
197     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
198     --file /etc/chilli/conup.sh 'attr(755,root,root)' \
199     --file /etc/chilli/condown.sh 'attr(750,root,root)' \
200     --file /etc/chilli/call_conup.sh 'attr(755,root,root)' \
201     --file /etc/chilli/call_condown.sh 'attr(755,root,root)' \
202     --file /opt/chilli/cgi-bin/hotspotlogin.cgi 'attr(0750,root,www) %config(noreplace)' \
203     --file /opt/chilli/lang/hotspotlogin.fr.pl 'config(noreplace)' \
204     --file /opt/chilli/lang/hotspotlogin.en.pl 'config(noreplace)' \
205     --file /opt/chilli/css/sme.css 'config(noreplace)' \
206     > %{name}-%{version}-filelist
207    
208     %files -f %{name}-%{version}-filelist
209     %defattr(-,root,root)
210    
211     %clean
212     rm -rf $RPM_BUILD_ROOT
213    
214     %pre
215     if ! /usr/bin/id coovachilli &>/dev/null; then
216     /usr/sbin/useradd -c 'Coova Chilli User' -s /sbin/nologin -r -d /etc/chilli coovachilli &>/dev/null || \
217     %logmsg "Unexpected error adding user \"coovachilli\". Abort installation."
218     fi
219    
220    
221     %preun
222    
223     if [ $1 == 0 ]; then
224     /sbin/e-smith/db configuration setprop chilli status disabled
225     /etc/rc.d/init.d/chilli stop >& /dev/null || :
226     fi
227    

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