/[smecontribs]/rpms/smeserver-egroupware/contribs8/smeserver-egroupware.spec
ViewVC logotype

Diff of /rpms/smeserver-egroupware/contribs8/smeserver-egroupware.spec

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

Revision 1.3 by unnilennium, Thu Dec 12 17:03:05 2013 UTC Revision 1.4 by unnilennium, Thu Dec 12 21:42:30 2013 UTC
# Line 1  Line 1 
1  # $Id: smeserver-egroupware.spec,v 1.2 2013/06/04 21:03:24 unnilennium Exp $  # $Id: smeserver-egroupware.spec,v 1.3 2013/12/12 17:03:05 unnilennium Exp $
2  # Authority: cool34000  # Authority: cool34000
3  # Name: Sylvain Gomez  # Name: Sylvain Gomez
4    
5  %define name smeserver-egroupware  %define name smeserver-egroupware
6  %define version 1.8.005  %define version 1.8.005
7  %define release 1  %define release 2
8  %define rpmver   4.0.4  %define rpmver   4.0.4
9    
10    
# Line 39  https://yourdomain.com/egroupware Line 39  https://yourdomain.com/egroupware
39    
40    
41  %changelog  %changelog
42  * Thu Dec 12 2013 JP Pialasse <tests@pialasse.com> 1.8.005-1.sme  * Thu Dec 12 2013 JP Pialasse <tests@pialasse.com> 1.8.005-2.sme
43  - upgrade to eGroupware 1.8 using opensuse rpm for Centos5  - upgrade to eGroupware 1.8 using opensuse rpm for Centos5
44  - built for eGroupware-1.8.005.20131007  - built for eGroupware-1.8.005.20131007
45  - see [SME: 8040]  - see [SME: 8040]
46    - revert back some configuration in spec
47    - will need to move to an event
48    
49  * Tue Jun 04 2013 JP Pialasse <tests@pialasse.com> 1.4.004-2.sme  * Tue Jun 04 2013 JP Pialasse <tests@pialasse.com> 1.4.004-2.sme
50  - fix upload dir not defined [SME 7653]  - fix upload dir not defined [SME 7653]
# Line 187  esac Line 189  esac
189    
190  %post  %post
191  # Initializing SME DB  # Initializing SME DB
192  /etc/e-smith/events/actions/initialize-default-databases  echo "Initializing SME DB"
193    /etc/e-smith/events/actions/initialize-default-databases 2>/dev/null
194    echo " "
195    
196  # Variables  # Variables
197  DOMAIN=$(/sbin/e-smith/db configuration get DomainName)  DOMAIN=$(/sbin/e-smith/db configuration get DomainName)
198  EGPASS=$(/sbin/e-smith/db configuration getprop egroupware DbPassword)  EGPASS=$(/sbin/e-smith/db configuration getprop egroupware DbPassword)
199  UPDATE=$(ls /opt | grep -c egroupware)  UPDATE=$(ls /usr/share/ | grep -c egroupware)
200    
201  #echo "Decompressing files..."  #echo "Decompressing files..."
202  #mkdir -p /opt/egroupware/{files/g2data,backup,tmp}  #mkdir -p /opt/egroupware/{files/g2data,backup,tmp}
203  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-1.4.004.tar.gz -C /opt/egroupware  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-1.4.004.tar.gz -C /opt/egroupware
204  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-egw-pear-1.4.004.tar.gz -C /opt/egroupware  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-egw-pear-1.4.004.tar.gz -C /opt/egroupware
205  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-gallery-1.4.004.tar.gz -C /opt/egroupware  #tar xzf /usr/share/doc/eGroupWare-1.4.004/Sources/eGroupWare-gallery-1.4.004.tar.gz -C /opt/egroupware
206    echo "Preparing phpSysInfo..."
207  cp -f /usr/share/doc/eGroupWare-1.8.005/Sources/phpSysInfo/config.php /usr/share/egroupware/phpsysinfo/  cp -f /usr/share/doc/eGroupWare-1.8.005/Sources/phpSysInfo/config.php /usr/share/egroupware/phpsysinfo/
208  cp -f /usr/share/doc/eGroupWare-1.8.005/Sources/phpSysInfo/Redhat.png /usr/share/egroupware/phpsysinfo/images/  cp -f /usr/share/doc/eGroupWare-1.8.005/Sources/phpSysInfo/Redhat.png /usr/share/egroupware/phpsysinfo/images/
209    
# Line 226  cp -f /usr/share/doc/eGroupWare-1.8.005/ Line 231  cp -f /usr/share/doc/eGroupWare-1.8.005/
231  #chown www:www /opt/egroupware/tmp  #chown www:www /opt/egroupware/tmp
232    
233  # fixed this one adding .php, not sure if still necessary  # fixed this one adding .php, not sure if still necessary
234  if [ "$UPDATE" = "0" ] ; then  #if [ "$UPDATE" = "0" ] ; then
235    echo "Preparing Site-Mgr..."  #  echo "Preparing Site-Mgr..."
236    cd /usr/share/egroupware  #  cd /usr/share/egroupware
237    ln -s sitemgr/sitemgr-link.php  #  ln -s sitemgr/sitemgr-link.php
238  fi  #fi
239    
240  echo "Preparing header.inc.php..."  echo "Preparing header.inc.php..."
241  case $UPDATE in  # if first install
242    0) sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.8.005/Sources/header.inc.php > /usr/share/egroupware/header.inc.php ;;  if [ "$1" = "1" ] ; then
243    #  0)
244    sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.8.005/Sources/header.inc.php > /usr/share/egroupware/header.inc.php
245    echo " done!"
246    fi
247  #  *) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;;  #  *) mv -f /opt/egroupware/html/header.inc.php /opt/egroupware/ 2>/dev/null ;;
248  esac  #esacc
249  #chown www:www /opt/egroupware/header.inc.php  #chown www:www /opt/egroupware/header.inc.php
250  #chmod 640     /opt/egroupware/header.inc.php  #chmod 640     /opt/egroupware/header.inc.php
251  #cd /opt/egroupware/html  #cd /opt/egroupware/html
252  #ln -s ../header.inc.php 2>/dev/null  #ln -s ../header.inc.php 2>/dev/null
253    echo " "
254    
255  # the integration is complete Ithink now.....  # the integration is complete Ithink now.....
256  #echo "Preparing Gallery2..."  echo "Preparing Gallery2..."
257  #if [ -f /usr/share/egroupware/gallery/gallery2_config.php ] ; then  if [ -f /usr/share/egroupware/gallery/gallery2/config.php ] ; then
258  #  touch /usr/share/egroupware/gallery/gallery2_config.php    touch /usr/share/egroupware/gallery/gallery2/config.php
259  #else  else
260  #  sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.8.005/Sources/Gallery2/config.php > /usr/share/egroupware/gallery/gallery2_config.php    sed 's.egwpass.'$EGPASS'.g' /usr/share/doc/eGroupWare-1.8.005/Sources/Gallery2/config.php > /usr/share/egroupware/gallery/gallery2/config.php
261  #fi  fi
262    
263  #chmod 640     /opt/egroupware/html/gallery/gallery2/config.php  chmod 640     /usr/share/egroupware/gallery/gallery2/config.php
264  #chown www:www /opt/egroupware/html/gallery/gallery2/config.php  chown www:www /usr/share/egroupware/gallery/gallery2/config.php
265  #echo " "  echo " "
266    
267  ### this one will be done by event  ### this one will be done by event
268  #echo "MySQL installation:"  echo "MySQL installation:"
269  #if [ "$UPDATE" = "0" ] ; then  #if [ "$UPDATE" = "0" ] ; then
270  #  cp /usr/share/doc/eGroupWare-1.4.004/Sources/81egw_database.sql /etc/e-smith/sql/init/  #  cp /usr/share/doc/eGroupWare-1.4.004/Sources/81egw_database.sql /etc/e-smith/sql/init/
271  #fi  #fi
272  #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80egw_mysql.sql  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80egw_mysql.sql
273  #/sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_domain.sql  /sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_default
274  #/etc/rc.d/init.d/mysql.init start  /sbin/e-smith/expand-template /etc/e-smith/sql/init/81egw_domain.sql
275  #echo " "  /etc/rc.d/init.d/mysql.init start
276    echo " "
277  #echo "Applying modifications to services..."  
278  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  echo "Applying modifications to services..."
279  #/etc/rc7.d/S86httpd-e-smith sigusr1  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
280  #/etc/rc.d/init.d/crond restart  /etc/rc7.d/S86httpd-e-smith sigusr1
281  #echo " "  /etc/rc.d/init.d/crond restart
282    echo " "
283    
284  echo "-------------------------------------------------------------------------------"  echo "-------------------------------------------------------------------------------"
285  case $UPDATE in  case $UPDATE in


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