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