/[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.1 by slords, Tue Feb 26 01:05:34 2008 UTC Revision 1.4 by ber_die, Mon Jun 2 14:34:11 2008 UTC
# Line 1  Line 1 
1  %define name smeserver-mediawiki  %define name smeserver-mediawiki
2  %define version 1.6.10  %define version 1.6.10
3  %define release 6  %define release 8
4  %define rpmver   4.0.4  %define rpmver   4.0.4
5    
6  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
7  Name:               %{name}  Name:               %{name}
8  Version:            %{version}  Version:            %{version}
9  Release:            %{release}%{?dist}  Release:            %{release}
10  License:            GPL  License:            GPL
11  Group:              /Web/Applications  Group:              /Web/Applications
12  Source:             %{name}-%{version}.tar.gz  Source:             %{name}-%{version}.tar.gz
13  URL:                http://group-office.com/  Patch0:             smeserver-mediawiki-1.6.10-1.patch
14    Packager:           Dietmar Berteld  <dietmar@berteld.com>
15    URL:                http://mediawiki.org/
16  BuildRoot:          /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot:          /var/tmp/%{name}-%{version}-%{release}-buildroot
17  BuildArchitectures: noarch  BuildArchitectures: noarch
18  Requires:           e-smith-base, e-smith-release >= 7  Requires:           e-smith-base, e-smith-release >= 7
 BuildRequires:      e-smith-devtools  
19    
20  %description  %description
21  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 25  After installation open your webbrowser Line 26  After installation open your webbrowser
26  http://your_e-smith-server_adress/wiki  http://your_e-smith-server_adress/wiki
27    
28  %changelog  %changelog
29    * Mon May 12 2008 Dietmar Berteld>
30    - [1.6.10-8]    Adding PwAuth-function, SME users can login with their SME passwords
31                    Automatic creation of a few default mw_groups and list them in the
32                    configuration file as well so admins only need to add users to the proper
33                    groups in the server-manager
34    
35    * Thu Feb 26 2008 Dietmar Berteld>
36    - [1.6.10-7] Fixed httpd-settings for local access only
37    
38  * Thu Oct 23 2007 Dietmar Berteld>  * Thu Oct 23 2007 Dietmar Berteld>
39  - [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
40    
# Line 56  rm -rf $RPM_BUILD_ROOT Line 66  rm -rf $RPM_BUILD_ROOT
66    
67  %setup  %setup
68    
69    %patch0 -p1
70    
71  %build  %build
72    
73  %install  %install
# Line 118  esac Line 130  esac
130  rm -rf /opt/mediawiki-1.6.10  rm -rf /opt/mediawiki-1.6.10
131  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images  cp $INSTALLDIR/sme.* $HTMLDIR/skins/common/images
132  #Prepare config settings  #Prepare config settings
133  if [ "$UPDATE" = "0" ]; then  sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php
134      sed 's.mediawikipassword.'$MYSQLPASS'.g' $INSTALLDIR/LocalSettings.php > $HTMLDIR/LocalSettings.php  sed "s/mydomain/$DOMAIN/g" $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
135      sed "s/mydomain/$DOMAIN/g" $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php  case "$LANG" in
     case "$LANG" in  
136          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 ;;
137          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 ;;
138          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 ;;
139          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 ;;
140              *) 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 ;;
141      esac  esac
142      rm $HTMLDIR/LocalSettings2.php  rm $HTMLDIR/LocalSettings2.php
143  fi  cp $INSTALLDIR/PwAuthPlugin.php $HTMLDIR/extensions/PwAuthPlugin.php
144    #Creating SME-Groups for MediaWiki (disabled)
145    #/sbin/e-smith/db accounts set mw_read group
146    #/sbin/e-smith/db accounts setprop mw_read Description "MediaWiki Read"
147    #/sbin/e-smith/db accounts set mw_edit group
148    #/sbin/e-smith/db accounts setprop mw_edit Description "MediaWiki Edit"
149    #/sbin/e-smith/db accounts set mw_createpage group
150    #/sbin/e-smith/db accounts setprop mw_createpage Description "MediaWiki Create Page"
151    #/sbin/e-smith/db accounts set mw_createtalk group
152    #/sbin/e-smith/db accounts setprop mw_createtalk Description "MediaWiki Create Talk"
153    #/sbin/e-smith/signal-event group-create
154    #Changing some rights
155    chmod 644 $HTMLDIR/extensions/PwAuthPlugin.php
156  chown -R root:root $HTMLDIR  chown -R root:root $HTMLDIR
157  chown    root:www  $HTMLDIR/images  chown    root:www  $HTMLDIR/images
158  chown    root:www  $HTMLDIR/LocalSettings.php  chown    root:www  $HTMLDIR/LocalSettings.php
# Line 154  esac Line 177  esac
177  # Rebuilding Wiki language menus  # Rebuilding Wiki language menus
178  php $HTMLDIR/maintenance/rebuildMessages.php --rebuild  php $HTMLDIR/maintenance/rebuildMessages.php --rebuild
179  echo "Applying modifications to services..."  echo "Applying modifications to services..."
180    # Uncomment the PwAuth-function
181    sed 's.#!..g' $HTMLDIR/LocalSettings.php > $HTMLDIR/LocalSettings2.php
182    mv $HTMLDIR/LocalSettings2.php $HTMLDIR/LocalSettings.php
183  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
184  /usr/local/bin/svc -h /service/httpd-e-smith  /usr/local/bin/svc -h /service/httpd-e-smith
185  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
# Line 163  case $UPDATE in Line 189  case $UPDATE in
189      echo "Reminder:"      echo "Reminder:"
190      echo "- Website open globally"      echo "- Website open globally"
191      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
192      echo "- Username       : admin"      echo "- Usernames are identical with SME users"
193      echo "- Password       : admin"      echo "- Passwords are identical with SME passwords"
194      echo "- Please change admin password"      echo "- MediaWiki admin = SME admin"
195      ;;      ;;
196    *)    *)
197      echo "GroupOffice update completed."      echo "$APP update completed."
198      echo "Reminder:"      echo "Reminder:"
199      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"
200      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"      echo "  PLEASE MOVE THIS DIRECTORY TO A SAFE PLACE!!!"
201      echo "- Website open globally"      echo "- Website open globally"
202      echo "- go to http://$DOMAIN/$URL"      echo "- go to http://$DOMAIN/$URL"
203      echo "- Username       : admin"      echo "- Usernames are identical with SME users"
204      echo "- Password       : admin"      echo "- Passwords are identical with SME passwords"
205      echo "- Please change admin password"      echo "- MediaWiki admin = SME admin"
206      ;;      ;;
207  esac  esac
208  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