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