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