1 |
# $Id: smeserver-userpanel.spec,v 1.3 2021/02/24 03:36:24 jpp Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
Summary: Provide a user panel to let users to change delegated server settings. |
6 |
%define name smeserver-userpanel |
7 |
Name: %{name} |
8 |
%define version 1.4 |
9 |
%define release 4 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
URL: http://wiki.contribs.org |
14 |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.xz |
16 |
Patch0: %{name}-%{version}-v10_init.patch |
17 |
Patch1: smeserver-userpanel-1.4-bz11079.patch |
18 |
Patch2: smeserver-userpanel-1.4-bz12064-24syntax.patch |
19 |
|
20 |
BuildArchitectures: noarch |
21 |
BuildRoot: /var/tmp/%{name}-%{version} |
22 |
Requires: smeserver-release >= 10 |
23 |
Requires: e-smith-apache >= 2.6.0-19 |
24 |
BuildRequires: e-smith-devtools |
25 |
Obsoletes: e-smith-userpanel |
26 |
AutoReqProv: no |
27 |
|
28 |
%description |
29 |
SME Server enhancement to create a user manager panel where users can |
30 |
authenticate with their own username/password and change selected |
31 |
server settings as allowed by admin. |
32 |
Selected User settings can be altered after installing additional |
33 |
userpanels available in seperate rpms. |
34 |
Panels can be delegated at user, group or global levels |
35 |
|
36 |
%changelog |
37 |
* Mon Aug 01 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4-4.sme |
38 |
- update to httpd 2.4 access syntax [SME: 12064] |
39 |
thanks to Vasarhelyi Zsolt |
40 |
|
41 |
* Tue Feb 23 2021 Jean-Philipe Pialasse <tests@pialasse.com> 1.4-3.sme |
42 |
- add -update event to avoid reboot [SME: 11079] |
43 |
also fix detection of userpassword file |
44 |
|
45 |
* Mon Nov 02 2020 Michel Begue <mab974@gmail.com> 1.4-2.sme |
46 |
- Initial release for sme10 [SME: 11079] |
47 |
|
48 |
* Wed May 31 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.2-3.sme |
49 |
- rebuild archive to fix [SME: 8026] |
50 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
51 |
by assuming the date is correct and changing the weekday. |
52 |
|
53 |
* Tue May 30 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-8.sme |
54 |
- fix bad redirection on logout or timeout [SME: 8026] |
55 |
|
56 |
* Tue Jul 19 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1-6.sme |
57 |
- adapt to the new color of manager for Koozali [SME: 9678] |
58 |
- thanks to John Crisp for this great work. |
59 |
|
60 |
* Thu Oct 15 2015 Michel Begue <mab974@gmail.com> 1.1-5.sme |
61 |
- Add an alias in db key for userpanel [SME:9093] |
62 |
|
63 |
* Sat Aug 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-3.sme |
64 |
- Initial release to contribs9 |
65 |
|
66 |
* Tue Aug 19 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-2.sme |
67 |
- corrected a prototype called too early [SME:8534] |
68 |
- removed all prototypes of file userpanel-navigation |
69 |
|
70 |
* Mon Jun 23 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.1-1.sme |
71 |
- Initial release to sme9 |
72 |
|
73 |
* Sun Dec 15 2013 JP Pialasse <tests@pialasse.com> 0.9-16.sme |
74 |
- move post to an action event [SME: 8032] |
75 |
|
76 |
* Mon Dec 2 2013 JP Pialasse <tests@pialasse.com> 0.9-13.sme |
77 |
- reverting language links creation in post as temp fix. see Bugs 8032 and 8022 |
78 |
- final fix will depends on 8032 int he future |
79 |
|
80 |
* Thu Nov 28 2013 JP Pialasse <tests@pialasse.com> 0.9-12.sme |
81 |
- NFR: logout button [SME: 8022] |
82 |
- NFR: show username [SME: 8025] |
83 |
- should fix 500 error by adding action in most events [SME: 7667] |
84 |
- spec file tidying |
85 |
|
86 |
* Sun Feb 17 2008 Stephen Noble <support@dungog.net> 0.9-11 |
87 |
- remove pleasewait hack [SME: 126] |
88 |
|
89 |
* Mon Feb 5 2007 Stephen Noble <support@dungog.net> 0.9-10 |
90 |
- redirect to https [sme 1879] |
91 |
- Adjust to work on sme 7.1.1 [sme 2419] |
92 |
- thanks John Bennett |
93 |
|
94 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> 0.9-9 |
95 |
- shorten /user-manager to /user |
96 |
- delegate rights with a group [sme 1748] |
97 |
|
98 |
* Sun Oct 29 2006 Stephen Noble <support@dungog.net> 0.9-8 |
99 |
- bugfix for navigation frame |
100 |
|
101 |
* Sat Oct 28 2006 Stephen Noble <support@dungog.net> |
102 |
- i18n support for navigation frame [sme 2009] |
103 |
- [0.9-7] |
104 |
|
105 |
* Thu Oct 26 2006 Stephen Noble <support@dungog.net> |
106 |
- german and italian language support [sme 2008] |
107 |
- [0.9-6] |
108 |
|
109 |
* Mon Feb 13 2006 Stephen Noble <support@dungog.net> |
110 |
- remove Provides e-smith-userpanel, for sme7 pre release 2 |
111 |
- [0.9-5] |
112 |
|
113 |
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
114 |
- for sme7 beta |
115 |
- [0.9-4] |
116 |
|
117 |
* Sun Aug 21 2005 Stephen Noble <support@dungog.net> |
118 |
- perl-Unicode-String dependancy removed |
119 |
- [0.9-3] |
120 |
|
121 |
* Wed Aug 10 2005 Stephen Noble <support@dungog.net> |
122 |
- removed all userpanels, these are in smeserver-userpanel-* |
123 |
- /home/e-smith/db/accounts relocated |
124 |
- for sme7 alpha |
125 |
- [0.9-2] |
126 |
|
127 |
* Sat Jun 18 2005 Stephen Noble <support@dungog.net> |
128 |
- renamed rpm smeserver-userpanel |
129 |
- user admin can be delegated hidden panels in userpanelaccess |
130 |
- option to use maildrop instead of procmail |
131 |
- new setting to enable procmail and/or mailfilter |
132 |
- db set accounts USER procmail|mailfilter enabled [individually] |
133 |
- db set configuration MailFilter service procmail|mailfilter enabled [global[if above unset]] |
134 |
- [0.9-1] |
135 |
|
136 |
* Sat Jun 18 2005 Stephen Noble <support@dungog.net> |
137 |
- Allows for: e-smith-release >= 7.0 |
138 |
- sme7 RequireSSL -> SSLRequireSSL [Gordon Rowell] |
139 |
- passwords can be stricter [Lorenzo Fascì] |
140 |
- sme6 /sbin/e-smith/db configuration setprop passwordstrength User none|normal|strong |
141 |
- sme7 /sbin/e-smith/db configuration setprop passwordstrength Users none|normal|strong |
142 |
- merged dungog-useraccounts, new function userpanel-useraccounts |
143 |
- http://www.dungog.net/sme/changelog/useraccounts.txt |
144 |
- delegated user account creation with limits |
145 |
- sme5 manager.css added |
146 |
- 26autoreply altered to leave autoreplied email in the inbox |
147 |
- sme7 IMAP changed from /;junkmail to /.junkmail, check all your procmail rules !! |
148 |
- perl-Unicode-IMAPUtf7 dependancy/support removed |
149 |
- [1.6.5-3] |
150 |
|
151 |
* Thu May 26 2005 Stephen Noble <support@dungog.net> |
152 |
- vacation if enabled is run first |
153 |
- test for invalid forwarding addresses |
154 |
- [1.6.5-2] |
155 |
|
156 |
* Fri Feb 11 2005 Stephen Noble <support@dungog.net> |
157 |
- change rpm scripts from httpd-* graceful to restart |
158 |
- to allow rpm to install on both SME 6.0 + 6.5 |
159 |
- added alias, /user is same as /user-manager |
160 |
- allow remote access to /user, with alt IP range from /server-manager access |
161 |
- /sbin/e-smith/db configuration set httpd-user 188.122.45.122 |
162 |
- /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
163 |
- /etc/rc.d/init.d/httpd-e-smith restart |
164 |
- see also /sbin/e-smith/db configuration show httpd-admin for format |
165 |
- bad things happen if you enter an invalid ip ie>256 |
166 |
- remove displayed mitel references and old images |
167 |
- [1.6.5-1] |
168 |
|
169 |
* Thu Dec 23 2004 Stephen Noble <support@dungog.net> |
170 |
- cosmetic vacation msg fix re. Dos/Unix new line |
171 |
- [1.6.0-4] |
172 |
|
173 |
* Sat Mar 6 2004 Stephen Noble <support@dungog.net> |
174 |
- procmail forward to user fixed |
175 |
- procmail says folder not in correct format fixed |
176 |
- procmail can use 2nd value for closer matching |
177 |
- geek mode hidden, you can set manually with |
178 |
- /sbin/e-smith/db processmail setprop stephen mode geek |
179 |
- [1.6.0-3] |
180 |
|
181 |
* Fri Dec 5 2003 Stephen Noble <support@dungog.net> |
182 |
- procmail, supports folders starting with new, cur, tmp |
183 |
thanks Shad Lords |
184 |
- displays sme6 panels correctly |
185 |
thanks Robert Mc Donald |
186 |
- [1.6.0-2] |
187 |
|
188 |
* Fri Aug 15 2003 Stephen Noble <support@dungog.net> |
189 |
- SME 6.0 support, this version requires it |
190 |
- supports servermanager navigation & shows tables correctly |
191 |
- procmail writes to dovecoat imap store eg. ~/Maildir/;junkmail |
192 |
- many other changes |
193 |
- [1.6.0-1] |
194 |
|
195 |
* Wed May 21 2003 Stephen Noble <support@dungog.net> |
196 |
Thu May 21 2003 --> Thu May 15 2003 or Wed May 21 2003 or Thu May 22 2003 or .... |
197 |
- Fix 90e-smithAccess30user, httpd failed with 500?+ users |
198 |
- [1.0-11] |
199 |
|
200 |
* Thu Mar 6 2003 Stephen Noble <support@dungog.net> |
201 |
- Fix 23autoreply, wasn't stopping looping to self |
202 |
- [1.0-10] |
203 |
|
204 |
* Mon Dec 16 2002 Stephen Noble <support@dungog.net> |
205 |
- Fix /usr.../vacation, saved in dos not unix |
206 |
- [1.0-9] |
207 |
|
208 |
* Thu Dec 12 2002 Stephen Noble <support@dungog.net> |
209 |
- mkdir -p user/cgi-bin in spec for new installs |
210 |
- [1.0-8] |
211 |
|
212 |
* Tue Dec 10 2002 Stephen Noble <support@dungog.net> |
213 |
- Fix actions, saved in dos not unix |
214 |
- userpanel-backup changed default file save as name to username |
215 |
- [1.0-7] |
216 |
|
217 |
* Fri Nov 29 2002 Stephen Noble <support@dungog.net> |
218 |
- userpanel-forwarding modified to allow empty fwd address |
219 |
- [1.0-6] |
220 |
|
221 |
* Thu Nov 28 2002 Shad Lords <slords@mail.com> |
222 |
- changed directive for externalSSLAccess to strip /255.255.255.255 |
223 |
- [1.0-5] |
224 |
|
225 |
* Thu Oct 03 2002 Shad Lords <slords@mail.com> |
226 |
- fixed ordering of panels a little more to make them alphabetical |
227 |
- [1.0-4] |
228 |
|
229 |
* Thu Oct 03 2002 Shad Lords <slords@mail.com> |
230 |
- Cleaned up .procmailrc header |
231 |
- [1.0-3] |
232 |
|
233 |
* Wed Oct 02 2002 Shad Lords <slords@mail.com> |
234 |
- Updated requires to include the Unicode packages for imap folders |
235 |
- [1.0-2] |
236 |
|
237 |
* Tue Oct 01 2002 Shad Lords <slords@mail.com> |
238 |
- Combined all user-manager panels into 1 package |
239 |
- Fixed user-manager.jpg to show on all panels (except pleasewait) |
240 |
- updated userpanel-forward to check for procmail enabled |
241 |
- updated userpanel-autoreply to check for procmail enabled |
242 |
- [1.0-1] |
243 |
|
244 |
* Mon Sep 30 2002 Shad Lords <slords@mail.com> |
245 |
- Fixed another bug with global panels (needed AdminPanels) |
246 |
- added externalSSLAccess to allow from for external access |
247 |
- added RequireSSL on to the user-manager directive |
248 |
- fixed user-manager.jpg to correct version |
249 |
- [0.3-6] |
250 |
|
251 |
* Mon Sep 23 2002 Stephen Noble <support@dungog.net> |
252 |
- userpanel-forwarding tests if procmail fragments are installed |
253 |
- renumbered navigation in userpanels to display alphabetically and match initial |
254 |
- [0.3-5] |
255 |
|
256 |
* Sun Sep 22 2002 Shad Lords <slords@mail.com> |
257 |
- added userpanel- panels into list to choose from |
258 |
- added default globalUP panels to all userpanel- panels |
259 |
- added indication in user panels to which global panels are active |
260 |
- added routine to display desc and longdesc to userpanel-initial |
261 |
- [0.3-4] |
262 |
|
263 |
* Sat Sep 21 2002 Shad Lords <slords@mail.com> |
264 |
- helps if you actually include your changes (userpanelaccess) ;) |
265 |
- excluded a few more web functions per Darrell May. |
266 |
- [0.3-3] |
267 |
|
268 |
* Sat Sep 21 2002 Shad Lords <slords@mail.com> |
269 |
- fixed permission for global user panels |
270 |
- added userpanel-* back into navigation |
271 |
- fixed userpanel-noframes to use globals |
272 |
- fixed userpanelaccess to look in functions for panels |
273 |
- fixed conf-userpanelsymlinks to only create needed panels |
274 |
- cleaned up some of the userpanel- titles for consistency |
275 |
- fixed userpanel-initial to look for userpanel-procmail instead of dungog-procmail |
276 |
- removed ^M from admin-conf templates |
277 |
- added devinfo-mitel-userpanel-autoreply to obsoletes |
278 |
- [0.3-2] |
279 |
|
280 |
* Sat Sep 21 2002 Stephen Noble <support@dungog.net> |
281 |
- only gives users access after admin assigns panel |
282 |
- admin can assign a panel to all users via userpanelaccess |
283 |
- merged updated userpanels for userpanelaccess, e-smith-userpanel-vacation, |
284 |
e-smith-userpanel-config, dungog-autoreply and dungog-userbackup |
285 |
- updated userpanel-password,forward,navigation,inital) |
286 |
- added usermanager.jpg |
287 |
- [0.3-1] |
288 |
|
289 |
* Mon Jan 07 2002 Daniel van Raay <danielvr@caa.org.au> |
290 |
- fixed bug in 90e-smithAccess30user while maintaining '<Files>' directives |
291 |
for security purposes |
292 |
- [0.2-5] |
293 |
|
294 |
* Sun Jan 06 2002 Darrell May <dmay@netsourced.com> |
295 |
- fixed bug in 90e-smithAccess30user |
296 |
- [0.2-4] |
297 |
|
298 |
* Sun Jan 06 2002 Daniel van Raay <danielvr@caa.org.au> |
299 |
- [0.2-3] |
300 |
- added all the panels to the default AvailablePanels setting |
301 |
- modified the default navigation heading weights |
302 |
|
303 |
* Sun Jan 06 2002 Daniel van Raay <danielvr@caa.org.au> |
304 |
- [0.2-2] |
305 |
- fixed bug in conf-userpanel event |
306 |
|
307 |
* Sat Jan 05 2002 Daniel van Raay <danielvr@caa.org.au> |
308 |
- [0.2-1] |
309 |
- tidy up /etc/e-smith/templates/etc/httpd/admin-conf/httpd.conf/90e-smithAccess30user |
310 |
- added initial support for additional 'AdminPanels' for users that need access to |
311 |
one or a few of the server-manager panels only |
312 |
- changed 'Email' and 'Password' to 'Your Email' and 'Your Password' |
313 |
|
314 |
* Wed Jan 02 2002 Daniel van Raay <danielvr@caa.org.au> |
315 |
- [0.1-12] |
316 |
- added manual redirect httpd.conf fragment for user-manager under e-smith 4.1.2 |
317 |
- stopped templates from adding ProxyPass directives under e-smith 4.1.2 |
318 |
so that the redirects will work properly |
319 |
|
320 |
* Tue Jan 01 2002 Darrell May <dmay@netsourced.com> |
321 |
- [0.1-11] |
322 |
- edit initial.html to support name change of userpanel-procmail to userpanel-processmail |
323 |
|
324 |
* Sun Dec 30 2001 Daniel van Raay <danielvr@caa.org.au> |
325 |
- [0.1-10] |
326 |
- improved (cosmetic) compatibility with e-smith 4.1.2, SME 5.0, SME 5.1 |
327 |
- rolled in Darrell's cosmetic changes to initial page with checks to |
328 |
see if e-smith-procmail and/or e-smith-vacation are installed |
329 |
|
330 |
* Tue Dec 25 2001 Darrell May <dmay@netsourced.com> |
331 |
- [0.1-9] |
332 |
- updated initial.html |
333 |
|
334 |
* Mon Dec 24 2001 Darrell May <dmay@netsourced.com> |
335 |
- [0.1-8] |
336 |
- minor cosmetic changes to the password panel for SME5.1B3 |
337 |
|
338 |
* Sat Oct 20 2001 Daniel van Raay <danielvr@caa.org.au> |
339 |
- [0.1-7] |
340 |
- minor cosmetic changes to the password panel |
341 |
|
342 |
* Fri Oct 19 2001 Daniel van Raay <danielvr@caa.org.au> |
343 |
- [0.1-6] |
344 |
- actually build the RPM properly to include [0.1-6] changes ;) |
345 |
|
346 |
* Thu Oct 11 2001 Daniel van Raay <danielvr@caa.org.au> |
347 |
- [0.1-5] |
348 |
- added alias for access via http://servername/user-manager/ |
349 |
- cosmetic changes to refer to the panels as 'User Manager' instead of 'e-smith user' |
350 |
|
351 |
* Sat Sep 22 2001 Daniel van Raay <danielvr@caa.org.au> |
352 |
- [0.1-4] |
353 |
- fixed minor cosmetic problem with front page when accessed through ProxyPass |
354 |
|
355 |
* Fri Sep 21 2001 Daniel van Raay <danielvr@caa.org.au> |
356 |
- [0.1-3] |
357 |
- updated for compatibility with SME Sever V5 |
358 |
|
359 |
* Wed Sep 19 2001 Daniel van Raay <danielvr@caa.org.au> |
360 |
- [0.1-2] |
361 |
- added post (un)install scripts to expand/reload the relevant templates/services |
362 |
|
363 |
* Tue Sep 04 2001 Daniel van Raay <danielvr@caa.org.au> |
364 |
- [0.1-1] |
365 |
- initial release |
366 |
|
367 |
%prep |
368 |
%setup |
369 |
%patch0 -p1 |
370 |
%patch1 -p1 |
371 |
%patch2 -p1 |
372 |
|
373 |
%build |
374 |
perl createlinks |
375 |
|
376 |
mkdir -p root/etc/e-smith/web/panels/user/cgi-bin |
377 |
|
378 |
%install |
379 |
rm -rf $RPM_BUILD_ROOT |
380 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
381 |
rm -f %{name}-%{version}-filelist |
382 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
383 |
|grep -v 'logout-user'> %{name}-%{version}-filelist |
384 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
385 |
echo '%attr(0755,root,admin) /etc/e-smith/web/common/cgi-bin/logout-user'>> %{name}-%{version}-filelist |
386 |
|
387 |
%clean |
388 |
#cd .. |
389 |
#rm -rf %{name}-%{version} |
390 |
|
391 |
%pre |
392 |
%preun |
393 |
|
394 |
%post |
395 |
# dirty workaround to fix the index and multiple login windows |
396 |
/bin/touch /etc/e-smith/web/panels/user/html/index.html |
397 |
|
398 |
#/sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf |
399 |
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
400 |
#/usr/local/bin/svc -h /service/httpd-admin |
401 |
#/usr/local/bin/svc -h /service/httpd-e-smith |
402 |
|
403 |
#needs script to find existing languages |
404 |
#upgrades (and new installs) should be in new but existing users may miss some lexicons |
405 |
#should have in build not post |
406 |
# or better move as action in events, this way we could update any languages. |
407 |
#for lang in en-us fr es it de sv pt sl nl #el id |
408 |
#do |
409 |
#/bin/mkdir -p /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user |
410 |
#/bin/ln -sf /etc/e-smith/locale/$lang/etc/e-smith/web/functions /etc/e-smith/locale/$lang/etc/e-smith/web/panels/user/cgi-bin |
411 |
#done |
412 |
|
413 |
#/sbin/e-smith/signal-event conf-userpanel |
414 |
|
415 |
%postun |
416 |
#uninstall |
417 |
#if [ $1 = 0 ] ; then |
418 |
# /sbin/e-smith/expand-template /etc/httpd/admin-conf/httpd.conf |
419 |
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
420 |
# /usr/local/bin/svc -h /service/httpd-admin |
421 |
# /usr/local/bin/svc -h /service/httpd-e-smith |
422 |
|
423 |
# #this has moved ?fixme? |
424 |
# DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
425 |
# for db in $DBS ; do |
426 |
# /sbin/e-smith/db $db delete userpanelaccess |
427 |
# done |
428 |
#fi |
429 |
|
430 |
%files -f %{name}-%{version}-filelist |
431 |
%defattr(-,root,root) |