# HG changeset patch # User chris # Date 1299662975 -32400 # Node ID d48ffe35757510ceec795dc2c877c3bb28e840c1 # Parent 427a878214236ecdaac6623cae48af6eb6184354 add some CentOS5.x support code. diff -r 427a87821423 -r d48ffe357575 kanon-setup --- a/kanon-setup Wed Mar 09 18:15:30 2011 +0900 +++ b/kanon-setup Wed Mar 09 18:29:35 2011 +0900 @@ -1,3 +1,4 @@ + #!/bin/bash export KANON_OPT=/opt/kanon @@ -25,6 +26,7 @@ echo " * Debian GNU/Linux, GNU/kFreeBSD 6.0" echo " * RedHat Enterprise Linux 6.0" echo " * Oracle Enterprise Linux 6.0" + echo " * CentOS 5.x (Experimental)" echo "" echo "です。" exit @@ -64,6 +66,8 @@ yum -y install `cat pkglist.rhel6` ;; rhel5) + rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm + yum -y install `cat pkglist.rhel5` ;; *) ;; @@ -155,6 +159,21 @@ service httpd start ;; rhel5) + mkdir -p /var/opt/kanon/trac/.egg-cache + chown apache:apache -R /var/opt/kanon/trac/.egg-cache/ + mkdir -p /usr/lib/python2.6/site-packages/bzrlib/plugin + ln -s /usr/lib/python2.4/site-packages/libsvn /opt/kanon/lib/python2.6/site-packages/ + ln -s /usr/lib/python2.4/site-packages/svn /opt/kanon/lib/python2.6/site-packages/ + + cp resource/trac_hook.py /usr/lib/python2.6/site-packages/bzrlib/plugin + if [ ! -f /etc/httpd/conf.d/kanon.conf ] + then + cp resource/httpd.conf /etc/httpd/conf.d/kanon.conf + fi + echo 0 > /selinux/enforce + echo "SELinuxが無効化されました" + service httpd stop + service httpd start ;; *) ;; diff -r 427a87821423 -r d48ffe357575 pkglist.rhel5 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkglist.rhel5 Wed Mar 09 18:29:35 2011 +0900 @@ -0,0 +1,13 @@ +python26 +python26-devel +python26-mod_wsgi +httpd +python-setuptools +python-pygments +sqlite +mod_dav_svn +subversion +mercurial +bzr +gcc +git