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 9 |
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 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
Requires: e-smith-release >= 7.0 |
Requires: e-smith-release >= 7.0 |
26 |
Delegate creation of users with restrictions. |
Delegate creation of users with restrictions. |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
* Sat Mar 01 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
30 |
|
- update locale 2008-03-14 |
31 |
|
|
32 |
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
33 |
- prepare en lexicons for pootle translations |
- prepare en lexicons for pootle translations |
34 |
|
|
35 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
81 |
%patch1 -p1 |
%patch1 -p1 |
82 |
%patch2 -p1 |
%patch2 -p1 |
83 |
%patch3 -p1 |
%patch3 -p1 |
84 |
|
%patch4 -p1 |
85 |
|
|
86 |
%build |
%build |
87 |
LEXICONS1=$(find root/etc/e-smith/web/functions/userpanel-password -type f ) |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
88 |
LEXICONS2=$(find root/etc/e-smith/web/functions/userpanel-forwarding -type f ) |
for lexicon in $LEXICONS |
|
LEXICONS3=$(find root/etc/e-smith/locale/ -type f ) |
|
|
|
|
|
for lexicon in $LEXICONS1 $LEXICONS2 $LEXICONS3 |
|
89 |
do |
do |
90 |
/sbin/e-smith/validate-lexicon $lexicon |
/sbin/e-smith/validate-lexicon $lexicon |
91 |
done |
done |
109 |
%post |
%post |
110 |
#new installs |
#new installs |
111 |
if [ $1 = 1 ] ; then |
if [ $1 = 1 ] ; then |
|
|
|
112 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
113 |
if [ "x$globalUP" = "x" ]; then |
if [ "x$globalUP" = "x" ]; then |
114 |
/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 || : |
115 |
fi |
fi |
|
|
|
|
/etc/e-smith/events/actions/navigation-conf 2>/dev/null |
|
|
|
|
116 |
fi |
fi |
117 |
|
|
118 |
#upgrades (and new installs) |
#upgrades (and new installs) |
|
|
|
119 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
120 |
/sbin/e-smith/signal-event conf-userpanel |
/sbin/e-smith/signal-event conf-userpanel |
121 |
fi |
fi |
122 |
|
|
|
#notice |
|
|
echo 'smeserver-mailsorting has procmail and maildrop' |
|
|
echo 'smeserver-vacation has vacation' |
|
|
|
|
123 |
%postun |
%postun |
124 |
#uninstall |
#uninstall |
125 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
|
|
|
126 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
127 |
for db in $DBS ; do |
for db in $DBS ; do |
128 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |