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

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

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

Revision 1.2 by slords, Wed Apr 2 15:03:57 2008 UTC Revision 1.8 by slords, Tue Nov 25 16:20:26 2008 UTC
# Line 1  Line 1 
1  # $Id$  # $Id: smeserver-mediawiki.spec,v 1.6 2008/06/02 16:10:02 slords Exp $
2  # Authority: cool34000  # Authority: ber_die
3  # Name: Sylvain Gomez  # Name: Dietmar Berteld
4    
5  %define name smeserver-mediawiki  %define name smeserver-mediawiki
6  %define version 1.6.10  %define version 1.6.10
7  %define release 6  %define release 9
 %define rpmver   4.0.4  
8    
9  Summary:            Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.6.10  Summary:       Mediawiki Web Application for SME Server 7.x based on Mediawiki 1.6.10
10  Name:               %{name}  Name:          %{name}
11  Version:            %{version}  Version:       %{version}
12  Release:            %{release}%{?dist}  Release:       %{release}%{?dist}
13  License:            GPL  License:       GPL
14  Group:              /Web/Applications  Group:         /Web/Applications
15  Source:             %{name}-%{version}.tar.gz  Source:        %{name}-%{version}.tar.gz
16  URL:                http://group-office.com/  Patch0:        smeserver-mediawiki-1.6.10-1.patch
17  BuildRoot:          /var/tmp/%{name}-%{version}-%{release}-buildroot  URL:           http://mediawiki.org/
18  BuildArchitectures: noarch  BuildRoot:     /var/tmp/%{name}-%{version}-%{release}-buildroot
19  Requires:           e-smith-base, e-smith-release >= 7  BuildArch:     noarch
20  BuildRequires:      e-smith-devtools  Requires:      e-smith-base, e-smith-release >= 7
21    BuildRequires: e-smith-devtools
22    
23  %description  %description
24  This RPM is an unofficial addon for the SME Server 7.x.  This RPM is an unofficial addon for the SME Server 7.x.
# Line 29  After installation open your webbrowser Line 29  After installation open your webbrowser
29  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
30    
31  %changelog  %changelog
32    * Mon May 12 2008 Dietmar Berteld> 1.6.10-9
33    - Disabing automatic creation of SME groups. No idea to synchronise them to mediawiki groups.
34    
35    * Mon May 12 2008 Dietmar Berteld> 1.6.10-8
36    - Adding PwAuth-function, SME users can login with their SME passwords
37      Automatic creation of a few default mw_groups and list them in the
38      configuration file as well so admins only need to add users to the proper
39      groups in the server-manager
40    
41    * Thu Feb 26 2008 Dietmar Berteld>
42    - [1.6.10-7] Fixed httpd-settings for local access only
43    
44  * Thu Oct 23 2007 Dietmar Berteld>  * Thu Oct 23 2007 Dietmar Berteld>
45  - [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user  - [1.6.10-6] Fixed automated uninstall issue for MySQL-DB and MySQL-user
46    
# Line 60  rm -rf $RPM_BUILD_ROOT Line 72  rm -rf $RPM_BUILD_ROOT
72    
73  %setup  %setup
74    
75    %patch0 -p1
76    
77  %build  %build
78    
79  %install  %install
# Line 122  esac Line 136  esac
136  rm -rf /opt/mediawiki-1.6.10  rm -rf /opt/mediawiki-1.6.10
137  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images
138  #Prepare config settings  #Prepare config settings
139  if [ "$UPDATE" = "0" ]; then  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php
140      sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php  sed "s/mydomain/$DOMAIN/g" $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
141      sed "s/mydomain/$DOMAIN/g" $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php  case "$LANG" in
     case "$LANG" in  
142          de_DE) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "de";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;          de_DE) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "de";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;
143          es_ES) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "es";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;          es_ES) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "es";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;
144          fr_FR) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "fr";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;          fr_FR) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "fr";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;
145          it_IT) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "it";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;          it_IT) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "it";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;
146              *) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "en";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;              *) sed 's.$wgLanguageCode = "en";.$wgLanguageCode = "en";.g' $HTMLDIR/LocalSettings2.php > $HTMLDIR/LocalSettings.php ;;
147      esac  esac
148      rm $HTMLDIR/LocalSettings2.php  rm $HTMLDIR/LocalSettings2.php
149  fi  cp $INSTALLDIR/PwAuthPlugin.php $HTMLDIR/extensions/PwAuthPlugin.php
150    #Creating SME-Groups for MediaWiki (disabled)
151    #/sbin/e-smith/db accounts set mw_read group
152    #/sbin/e-smith/db accounts setprop mw_read Description "MediaWiki Read"
153    #/sbin/e-smith/db accounts set mw_edit group
154    #/sbin/e-smith/db accounts setprop mw_edit Description "MediaWiki Edit"
155    #/sbin/e-smith/db accounts set mw_createpage group
156    #/sbin/e-smith/db accounts setprop mw_createpage Description "MediaWiki Create Page"
157    #/sbin/e-smith/db accounts set mw_createtalk group
158    #/sbin/e-smith/db accounts setprop mw_createtalk Description "MediaWiki Create Talk"
159    #/sbin/e-smith/signal-event group-create
160    #Changing some rights
161    chmod 644 $HTMLDIR/extensions/PwAuthPlugin.php
162  chown -R root:root $HTMLDIR  chown -R root:root $HTMLDIR
163  chown    root:www  $HTMLDIR/images  chown    root:www  $HTMLDIR/images
164  chown    root:www  $HTMLDIR/LocalSettings.php  chown    root:www  $HTMLDIR/LocalSettings.php
# Line 158  esac Line 183  esac
183  # Rebuilding Wiki language menus  # Rebuilding Wiki language menus
184  php $HTMLDIR/maintenance/rebuildMessages.php --rebuild  php $HTMLDIR/maintenance/rebuildMessages.php --rebuild
185  echo "Applying modifications to services..."  echo "Applying modifications to services..."
186    # Uncomment the PwAuth-function
187    sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
188    mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php
189  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
190  /usr/local/bin/svc -h /service/httpd-e-smith  /usr/local/bin/svc -h /service/httpd-e-smith
191  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
# Line 167  case $UPDATE in Line 195  case $UPDATE in
195      echo "Reminder:"      echo "Reminder:"
196      echo "- Website open globally"      echo "- Website open globally"
197      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
198      echo "- Username       : admin"      echo "- Usernames are identical with SME users"
199      echo "- Password       : admin"      echo "- Passwords are identical with SME passwords"
200      echo "- Please change admin password"      echo "- MediaWiki admin = SME admin"
201      ;;      ;;
202    *)    *)
203      echo "GroupOffice update completed."      echo "$APP update completed."
204      echo "Reminder:"      echo "Reminder:"
205      echo "- The old install was backed up and can be found in /opt/MW_RPM_BACKUP"      echo "- The old install was backed up and can be found in /opt/MW_RPM_BACKUP"
206      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"
207      echo "- Website open globally"      echo "- Website open globally"
208      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
209      echo "- Username       : admin"      echo "- Usernames are identical with SME users"
210      echo "- Password       : admin"      echo "- Passwords are identical with SME passwords"
211      echo "- Please change admin password"      echo "- MediaWiki admin = SME admin"
212      ;;      ;;
213  esac  esac
214  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"


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