KanonConductor

changeset 13:d48ffe357575 centos5-support

add some CentOS5.x support code.
author chris
date Wed, 09 Mar 2011 18:29:35 +0900
parents 427a87821423
children 01209a6aabbd
files kanon-setup pkglist.rhel5
diffstat 2 files changed, 32 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/kanon-setup	Wed Mar 09 18:15:30 2011 +0900
     1.2 +++ b/kanon-setup	Wed Mar 09 18:29:35 2011 +0900
     1.3 @@ -1,3 +1,4 @@
     1.4 +
     1.5  #!/bin/bash
     1.6  
     1.7  export KANON_OPT=/opt/kanon
     1.8 @@ -25,6 +26,7 @@
     1.9      echo "  * Debian GNU/Linux, GNU/kFreeBSD 6.0"
    1.10      echo "  * RedHat Enterprise Linux 6.0"
    1.11      echo "  * Oracle Enterprise Linux 6.0"
    1.12 +    echo "  * CentOS 5.x (Experimental)"
    1.13      echo ""
    1.14      echo "です。"
    1.15      exit
    1.16 @@ -64,6 +66,8 @@
    1.17          yum -y install `cat pkglist.rhel6`
    1.18          ;;
    1.19      rhel5)
    1.20 +        rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    1.21 +        yum -y install `cat pkglist.rhel5`
    1.22          ;;
    1.23      *)
    1.24          ;;    
    1.25 @@ -155,6 +159,21 @@
    1.26          service httpd start
    1.27          ;;
    1.28      rhel5)
    1.29 +        mkdir -p /var/opt/kanon/trac/.egg-cache
    1.30 +        chown apache:apache -R /var/opt/kanon/trac/.egg-cache/
    1.31 +        mkdir -p /usr/lib/python2.6/site-packages/bzrlib/plugin
    1.32 +        ln -s /usr/lib/python2.4/site-packages/libsvn /opt/kanon/lib/python2.6/site-packages/
    1.33 +        ln -s /usr/lib/python2.4/site-packages/svn /opt/kanon/lib/python2.6/site-packages/
    1.34 +
    1.35 +        cp resource/trac_hook.py /usr/lib/python2.6/site-packages/bzrlib/plugin
    1.36 +        if [ ! -f /etc/httpd/conf.d/kanon.conf ]
    1.37 +        then
    1.38 +            cp resource/httpd.conf /etc/httpd/conf.d/kanon.conf
    1.39 +        fi
    1.40 +        echo 0 > /selinux/enforce
    1.41 +        echo "SELinuxが無効化されました"
    1.42 +        service httpd stop
    1.43 +        service httpd start
    1.44          ;;
    1.45      *)
    1.46          ;;    
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/pkglist.rhel5	Wed Mar 09 18:29:35 2011 +0900
     2.3 @@ -0,0 +1,13 @@
     2.4 +python26
     2.5 +python26-devel
     2.6 +python26-mod_wsgi
     2.7 +httpd
     2.8 +python-setuptools
     2.9 +python-pygments
    2.10 +sqlite
    2.11 +mod_dav_svn
    2.12 +subversion
    2.13 +mercurial
    2.14 +bzr
    2.15 +gcc
    2.16 +git