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