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