1 |
|
# $Id$ |
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 11 |
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 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
23 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
24 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
25 |
|
Requires: e-smith-formmagick >= 1.4.0-10 |
26 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
27 |
AutoReqProv: no |
AutoReqProv: no |
28 |
|
|
32 |
Delegate creation of users with restrictions. |
Delegate creation of users with restrictions. |
33 |
|
|
34 |
%changelog |
%changelog |
35 |
* Sat Mar 01 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-11 |
36 |
|
- Update to UTF-8 translations |
37 |
|
|
38 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
39 |
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
40 |
|
|
41 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
42 |
|
- update locale 2008-03-14 |
43 |
|
|
44 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
45 |
- prepare en lexicons for pootle translations |
- prepare en lexicons for pootle translations |
46 |
|
|
47 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
93 |
%patch1 -p1 |
%patch1 -p1 |
94 |
%patch2 -p1 |
%patch2 -p1 |
95 |
%patch3 -p1 |
%patch3 -p1 |
96 |
|
%patch4 -p1 |
97 |
|
%patch5 -p1 |
98 |
|
|
99 |
%build |
%build |
100 |
LEXICONS1=$(find root/etc/e-smith/web/functions/userpanel-password -type f ) |
LEXICONS=$(find root/etc/e-smith/locale/ -type f ) |
101 |
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 |
|
102 |
do |
do |
103 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
104 |
done |
done |
122 |
%post |
%post |
123 |
#new installs |
#new installs |
124 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
|
|
|
125 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
126 |
if [ "x$globalUP" = "x" ]; then |
if [ "x$globalUP" = "x" ]; then |
127 |
/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 || : |
128 |
fi |
fi |
|
|
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
129 |
fi |
fi |
130 |
|
|
131 |
#upgrades (and new installs) |
#upgrades (and new installs) |
|
|
|
132 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
133 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
134 |
fi |
fi |
135 |
|
|
|
#notice |
|
|
echo 'smeserver-mailsorting has procmail and maildrop' |
|
|
echo 'smeserver-vacation has vacation' |
|
|
|
|
136 |
%postun |
%postun |
137 |
#uninstall |
#uninstall |
138 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
|
|
|
139 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
140 |
for db in $DBS ; do |
for db in $DBS ; do |
141 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |