1 |
|
# $Id: smeserver-userpanels.spec,v 1.30 2009/10/27 17:43:52 slords Exp $ |
2 |
|
# Authority: dungog |
3 |
|
# Name: Stephen Noble |
4 |
|
|
5 |
Summary: Panels to let users to change server settings. |
Summary: Panels to let users to change server settings. |
6 |
%define name smeserver-userpanels |
%define name smeserver-userpanels |
7 |
Name: %{name} |
Name: %{name} |
8 |
%define version 1.0 |
%define version 1.0 |
9 |
%define release 8 |
%define release 29 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GPL |
License: GNU GPL version 2 |
13 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/wiki |
14 |
Group: SMEserver/addon |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
17 |
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
18 |
Patch2: smeserver-userpanels-1.0-frLocale.patch |
Patch2: smeserver-userpanels-1.0-frLocale.patch |
19 |
Patch3: smeserver-userpanels-1.0-pootle.patch |
Patch3: smeserver-userpanels-1.0-pootle.patch |
20 |
|
Patch4: smeserver-userpanels-1.0-locale-2008-03-14.patch |
21 |
|
Patch5: smeserver-userpanels-1.0-locale-2008-04-01.patch |
22 |
|
Patch6: smeserver-userpanels-1.0-locale-2008-04-22.patch |
23 |
|
Patch7: smeserver-userpanels-1.0-add2general.patch |
24 |
|
Patch8: smeserver-userpanels-1.0-locale-2008-05-05.patch |
25 |
|
Patch9: smeserver-userpanels-1.0-add2general.patch2 |
26 |
|
Patch10: smeserver-userpanels-1.0-locale-2008-05-21.patch |
27 |
|
Patch11: smeserver-userpanels-1.0-locale-2008-06-27.patch |
28 |
|
Patch12: smeserver-userpanels-1.0-locale-2008-07-01.patch |
29 |
|
Patch13: smeserver-userpanels-1.0-locale-2008-09-27.patch |
30 |
|
Patch14: smeserver-userpanels-1.0-locale-2008-10-14.patch |
31 |
|
Patch15: smeserver-userpanels-1.0-locale-2008-10-15.patch |
32 |
|
Patch16: smeserver-userpanels-1.0-locale-2008-10-16.patch |
33 |
|
Patch17: smeserver-userpanels-1.0-locale-2008-11-30.patch |
34 |
|
Patch18: smeserver-userpanels-1.0-locale-2009-03-01.patch |
35 |
|
Patch19: smeserver-userpanels-1.0-locale-2009-03-03.patch |
36 |
|
Patch20: smeserver-userpanels-1.0-locale-2009-04-27.patch |
37 |
|
Patch21: smeserver-userpanels-1.0-locale-2009-05-20.patch |
38 |
|
Patch22: smeserver-userpanels-1.0-locale-2009-08-24.patch |
39 |
|
Patch23: smeserver-userpanels-1.0-locale-2009-10-27.patch |
40 |
|
Patch24: smeserver-userpanels-1.0-locale-2010-03-02.patch |
41 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
42 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
43 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
44 |
|
Requires: e-smith-formmagick >= 1.4.0-12 |
45 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
46 |
AutoReqProv: no |
AutoReqProv: no |
47 |
|
|
51 |
Delegate creation of users with restrictions. |
Delegate creation of users with restrictions. |
52 |
|
|
53 |
%changelog |
%changelog |
54 |
* Sat Mar 01 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.0-29.sme |
55 |
|
- apply locale 2010-03-02 patch |
56 |
|
|
57 |
|
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.0-28.sme |
58 |
|
- apply locale 2009-10-27 patch |
59 |
|
|
60 |
|
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.0-27.sme |
61 |
|
- apply locale 2009-08-24 patch |
62 |
|
|
63 |
|
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.0-26.sme |
64 |
|
- apply locale 2009-05-20 patch |
65 |
|
|
66 |
|
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.0-25.sme |
67 |
|
- apply locale 2009-04-27 patch |
68 |
|
|
69 |
|
* Tue Mar 03 2009 SME Translation Server |
70 |
|
- apply locale 2009-03-03 patch |
71 |
|
|
72 |
|
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-23 |
73 |
|
- Apply 1 Mar 2009 locale patch [SME: 5018] |
74 |
|
|
75 |
|
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-22 |
76 |
|
- Apply 30 Nov 2008 locale patch |
77 |
|
|
78 |
|
* Thu Oct 16 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-21 |
79 |
|
- Apply 16 Oct 2008 locale patch |
80 |
|
|
81 |
|
* Wed Oct 15 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-20 |
82 |
|
- Apply 15 Oct 2008 locale patch |
83 |
|
|
84 |
|
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-19 |
85 |
|
- Apply 14 Oct 2008 locale patch |
86 |
|
|
87 |
|
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-26 |
88 |
|
- Apply locale patch |
89 |
|
|
90 |
|
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-17 |
91 |
|
- Apply 1 July 2008 locale patch |
92 |
|
|
93 |
|
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-16 |
94 |
|
- Apply 27 Jun 2008 locale patch |
95 |
|
|
96 |
|
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-15 |
97 |
|
- Apply 21 May 2008 locale patch |
98 |
|
|
99 |
|
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-14 |
100 |
|
- Fixed locale issue with button not being translated in password panel [SME: 4310] |
101 |
|
- Added 5 May 2008 locale patch from the translate engine |
102 |
|
|
103 |
|
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-13 |
104 |
|
- Add common <base> tags to e-smith-formmagick's general |
105 |
|
|
106 |
|
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-12 |
107 |
|
- Apply 22 April 2008 locale patch |
108 |
|
|
109 |
|
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-11 |
110 |
|
- Update to UTF-8 translations |
111 |
|
|
112 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
113 |
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
114 |
|
|
115 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
116 |
|
- update locale 2008-03-14 |
117 |
|
|
118 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
119 |
- prepare en lexicons for pootle translations |
- prepare en lexicons for pootle translations |
120 |
|
|
121 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
167 |
%patch1 -p1 |
%patch1 -p1 |
168 |
%patch2 -p1 |
%patch2 -p1 |
169 |
%patch3 -p1 |
%patch3 -p1 |
170 |
|
%patch4 -p1 |
171 |
|
%patch5 -p1 |
172 |
|
%patch6 -p1 |
173 |
|
%patch7 -p1 |
174 |
|
%patch8 -p1 |
175 |
|
%patch9 -p1 |
176 |
|
%patch10 -p1 |
177 |
|
%patch11 -p1 |
178 |
|
%patch12 -p1 |
179 |
|
%patch13 -p1 |
180 |
|
%patch14 -p1 |
181 |
|
%patch15 -p1 |
182 |
|
%patch16 -p1 |
183 |
|
%patch17 -p1 |
184 |
|
%patch18 -p1 |
185 |
|
%patch19 -p1 |
186 |
|
%patch20 -p1 |
187 |
|
%patch21 -p1 |
188 |
|
%patch22 -p1 |
189 |
|
%patch23 -p1 |
190 |
|
%patch24 -p1 |
191 |
|
|
192 |
%build |
%build |
193 |
LEXICONS1=$(find root/etc/e-smith/web/functions/userpanel-password -type f ) |
LEXICONS=$(find root/etc/e-smith/locale/ -type f ) |
194 |
LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-forwarding -type f ) |
for lexicon in $LEXICONS root/etc/e-smith/web/functions/userpanel-{password,forwarding} |
|
LEXICONS3=$(find root/etc/e-smith/locale/ -type f ) |
|
|
|
|
|
for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3 |
|
195 |
do |
do |
196 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
197 |
done |
done |
215 |
%post |
%post |
216 |
#new installs |
#new installs |
217 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
|
|
|
218 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
219 |
if [ "x$globalUP" = "x" ]; then |
if [ "x$globalUP" = "x" ]; then |
220 |
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
221 |
fi |
fi |
|
|
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
222 |
fi |
fi |
223 |
|
|
224 |
#upgrades (and new installs) |
#upgrades (and new installs) |
|
|
|
225 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
226 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
227 |
fi |
fi |
228 |
|
|
|
#notice |
|
|
echo 'smeserver-mailsorting has procmail and maildrop' |
|
|
echo 'smeserver-vacation has vacation' |
|
|
|
|
229 |
%postun |
%postun |
230 |
#uninstall |
#uninstall |
231 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
|
|
|
232 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
233 |
for db in $DBS ; do |
for db in $DBS ; do |
234 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |