2 |
%define name smeserver-userpanels |
%define name smeserver-userpanels |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.0 |
%define version 1.0 |
5 |
%define release 8 |
%define release 11 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GNU GPL version 2 |
9 |
URL: http://www.dungog.net/sme |
URL: http://www.dungog.net/wiki |
10 |
Group: SMEserver/addon |
Group: SMEserver/addon |
11 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
12 |
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
13 |
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
14 |
Patch2: smeserver-userpanels-1.0-frLocale.patch |
Patch2: smeserver-userpanels-1.0-frLocale.patch |
15 |
Patch3: smeserver-userpanels-1.0-pootle.patch |
Patch3: smeserver-userpanels-1.0-pootle.patch |
16 |
|
Patch4: smeserver-userpanels-1.0-locale-2008-03-14.patch |
17 |
|
Patch5: smeserver-userpanels-1.0-locale-2008-04-01.patch |
18 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
19 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
20 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
21 |
|
Requires: e-smith-formmagick >= 1.4.0-10 |
22 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
23 |
AutoReqProv: no |
AutoReqProv: no |
24 |
|
|
28 |
Delegate creation of users with restrictions. |
Delegate creation of users with restrictions. |
29 |
|
|
30 |
%changelog |
%changelog |
31 |
* 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 |
32 |
|
- Update to UTF-8 translations |
33 |
|
|
34 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
35 |
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
36 |
|
|
37 |
|
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
38 |
|
- update locale 2008-03-14 |
39 |
|
|
40 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
41 |
- prepare en lexicons for pootle translations |
- prepare en lexicons for pootle translations |
42 |
|
|
43 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
89 |
%patch1 -p1 |
%patch1 -p1 |
90 |
%patch2 -p1 |
%patch2 -p1 |
91 |
%patch3 -p1 |
%patch3 -p1 |
92 |
|
%patch4 -p1 |
93 |
|
%patch5 -p1 |
94 |
|
|
95 |
%build |
%build |
96 |
LEXICONS1=$(find root/etc/e-smith/web/functions/userpanel-password -type f ) |
LEXICONS=$(find root/etc/e-smith/locale/ -type f ) |
97 |
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 |
|
98 |
do |
do |
99 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
100 |
done |
done |
118 |
%post |
%post |
119 |
#new installs |
#new installs |
120 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
|
|
|
121 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
122 |
if [ "x$globalUP" = "x" ]; then |
if [ "x$globalUP" = "x" ]; then |
123 |
/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 || : |
124 |
fi |
fi |
|
|
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
125 |
fi |
fi |
126 |
|
|
127 |
#upgrades (and new installs) |
#upgrades (and new installs) |
|
|
|
128 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
129 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
130 |
fi |
fi |
131 |
|
|
|
#notice |
|
|
echo 'smeserver-mailsorting has procmail and maildrop' |
|
|
echo 'smeserver-vacation has vacation' |
|
|
|
|
132 |
%postun |
%postun |
133 |
#uninstall |
#uninstall |
134 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
|
|
|
135 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
136 |
for db in $DBS ; do |
for db in $DBS ; do |
137 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |