/[smecontribs]/rpms/smeserver-userpanels/contribs7/smeserver-userpanels.spec
ViewVC logotype

Diff of /rpms/smeserver-userpanels/contribs7/smeserver-userpanels.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Tue Feb 26 01:05:35 2008 UTC Revision 1.5 by dungog, Fri Mar 14 10:19:20 2008 UTC
# Line 2  Summary: Panels to let users to change s Line 2  Summary: Panels to let users to change s
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 7  %define release 10
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
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
20    Requires: e-smith-formmagick >= 1.4.0-10
21  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
22  AutoReqProv: no  AutoReqProv: no
23    
# Line 24  Change password,Forward mail, Backup use Line 27  Change password,Forward mail, Backup use
27  Delegate creation of users with restrictions.  Delegate creation of users with restrictions.
28    
29  %changelog  %changelog
30    * Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10
31    - Add requires for e-smith-formmagick for UTF-8 support [SME: 3858]
32    
33    * Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9
34    - update locale 2008-03-14
35    
36    * Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8
37    - prepare en lexicons for pootle translations
38    
39  * Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7  * Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7
40  - add french translation, thanks Sylvain Gomez  - add french translation, thanks Sylvain Gomez
41    
# Line 72  Delegate creation of users with restrict Line 84  Delegate creation of users with restrict
84  %patch0 -p1  %patch0 -p1
85  %patch1 -p1  %patch1 -p1
86  %patch2 -p1  %patch2 -p1
87    %patch3 -p1
88    %patch4 -p1
89    
90  %build  %build
91  LEXICONS1=$(find root/etc/e-smith/web/functions/userpanel-password -type f )  LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f )
92  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  
93  do  do
94      /sbin/e-smith/validate-lexicon $lexicon      /sbin/e-smith/validate-lexicon $lexicon
95  done  done
96    
 #/sbin/e-smith/generate-lexicons  
   
97  perl createlinks  perl createlinks
98    
99  %install  %install
# Line 104  rm -rf %{name}-%{version} Line 113  rm -rf %{name}-%{version}
113  %post  %post
114  #new installs  #new installs
115  if [ $1 = 1 ] ; then  if [ $1 = 1 ] ; then
   
116   globalUP=`/sbin/e-smith/db accounts get globalUP`   globalUP=`/sbin/e-smith/db accounts get globalUP`
117   if [ "x$globalUP" = "x" ]; then   if [ "x$globalUP" = "x" ]; then
118       /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 || :
119   fi   fi
   
 /etc/e-smith/events/actions/navigation-conf 2>/dev/null  
   
120  fi  fi
121    
122  #upgrades (and new installs)  #upgrades (and new installs)
123    if [ -d /etc/e-smith/events/conf-userpanel ] ; then
124  #if [ -d /etc/e-smith/events/conf-userpanel ] ; then     /sbin/e-smith/signal-event conf-userpanel
125  #   /sbin/e-smith/signal-event conf-userpanel  fi
 #fi  
   
 #notice  
 echo 'smeserver-mailsorting has procmail and maildrop'  
 echo 'smeserver-vacation has vacation'  
126    
127  %postun  %postun
128  #uninstall  #uninstall
129  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then
   
130   DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`   DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"`
131   for db in $DBS ; do   for db in $DBS ; do
132            /sbin/e-smith/db $db delete userpanel-password 2>/dev/null            /sbin/e-smith/db $db delete userpanel-password 2>/dev/null


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed