実行時に下記のコマンドで実行する。

perl -MCPAN -e '$ENV{FTP_PASSIVE} = 0; shell'

CentOSのyumでインストールしたSubversionだと、バージョンが1.4.2となる。
TortoiseSVNでマージを実行すると、どうしても「ツリーの競合」が起こってしまう。

悩んだ挙句、最新のSubversionをインストールすることで解決した模様。

最新のSubversionをインストールするには

http://dag.wieers.com/rpm/packages/rpmforge-release/

で、
rpmforge-release-0.x.x-x.el5.rf.x86_64.rpm
(el5のものでプラットフォームにあっているものを選択)
をダウンロードし、
rpm -ivh
でインストール。

yum update subverion
でインストールできる。

今のところ1.6.12が最新。
httpdを再起動してモジュールを読み込み直すと動きました。

yum install rpm-build*
cd /usr/local/src/
wget http://downloads.sourceforge.net/project/poptop/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz?use_mirror=jaist
tar xvzf pptpd-1.3.4.tar.gz

vi pptpd-1.3.4/pptpd.spec
(echo '#undef VERSION'; echo '#define VERSION "2.4.3"') >> plugins/patchlevel.h

(echo '#undef VERSION'; echo '#define VERSION "2.4.4"') >> plugins/patchlevel.h
:wq

tar cvzf pptpd-1.3.4-2.tar.gz pptpd-1.3.4

rpmbuild -ta --target i686 pptpd-1.3.4.tar.gz

rpm -ivh /usr/src/redhat/RPMS/i686/pptpd-1.3.4-1.i686.rpm

587を25番にリダイレクト
# iptables -t nat -A PREROUTING -p tcp --dport 587 -j REDIRECT --to-port 25

/etc/rc.d/init.d/iptables save

vi /etc/yum.repos.d/CentOS-Base.repo

[base]と[updates]の一番下に下記を追記
exclude=postgresql*

http://yum.pgsqlrpms.org/reporpms/repoview/letter_p.group.html
でダウンロードしたいrpmをダウンロードしてインストール

cd /usr/local/src
wget http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-2.noarch.rpm

rpm -ivh pgdg-centos-8.4-2.noarch.rpm

yum groupinstall 'PostgreSQL Database'

nrpe用にユーザー情報を設定

mysql> grant select on *.* to nagios@"localhost" identified by "[パスワード]";
mysql> flush privileges;

nrpe.cfgに下記を追加

command[check_mysql]=/usr/local/nagios/libexec/check_mysql -u nagios -p [パスワード]

SELECT
procpid,
start,
now() - start AS lap,
current_query
FROM
(SELECT
backendid,
pg_stat_get_backend_pid(S.backendid) AS procpid,
pg_stat_get_backend_activity_start(S.backendid) AS start,
pg_stat_get_backend_activity(S.backendid) AS current_query
FROM
(SELECT pg_stat_get_backend_idset() AS backendid) AS S
) AS S
WHERE
current_query <> '' AND procpid = [ここにプロセス番号]
ORDER BY
lap DESC;

yum install ruby*

cd /usr/local/src/
wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz 
tar xvzf rubygems-1.3.1.tgz
cd rubygems-1.3.1
ruby setup.rb  
gem -v
gem install rails -v=2.2.2

cd /usr/local/src/
wget http://rubyforge.org/frs/download.php/43954/rake-0.8.3.gem
gem install rake-0.8.3.gem
wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz
cd /var/www/
tar xvzpf /usr/local/src/redmine-0.8.4.tar.gz
mv -f redmine-0.8.4/ redmine
yum install mysql*
/etc/rc.d/init.d/mysqld start
chkconfig mysqld on
mysql -u root
create database redmine character set utf8; 
create user 'redmine'@'localhost' identified by 'my_password'; 
grant all privileges on redmine.* to 'redmine'@'localhost'
exit
cp redmine/config/database.yml.example redmine/config/database.yml
vi redmine/config/database.yml
production:
  adapter: mysql
  database: redmine
  host: localhost
  username: redmine
  password: my_password
  encoding: utf8
  socket: /var/lib/mysql/mysql.sock
 
cd redmine/
rake db:migrate RAILS_ENV="production"
rake redmine:load_default_data RAILS_ENV="production"
chown -R root:root /var/www/redmine/

cp config/email.yml.example config/email.yml
vi config/email.yml
production:
 delivery_method: :smtp
 smtp_settings:
   address: localhost
   port: 25
   domain: your_domain.com
   authentication: :login
   user_name: your_user
   password: your_password

gem install passenger -v=2.2.11
passenger-install-apache2-module

vi /etc/httpd/conf.d/passenger.conf
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11
PassengerRuby /usr/bin/ruby

yum install *perl*
yum install mod_dav_svn
yum install subversion
vi /etc/httpd/conf.d/redmine.conf
Alias /redmine /var/www/redmine/public

<Location /redmine>
    Order deny,allow
    Deny from all
    Allow from all
#    Allow from 127.0.0.1
#    Allow from ::1
    # Allow from .example.com
</Location>
<Directory /var/www/redmine/public>
        Allowoverride All
        RailsBaseURI /redmine
</Directory>

   # /svn location for users
   PerlLoadModule Apache::Redmine
   <Location /redmine/svn>
     DAV svn
     SVNParentPath "/var/www/redmine/svn"
     Order deny,allow
     Deny from all
     Satisfy any

     PerlAccessHandler Apache::Authn::Redmine::access_handler
     PerlAuthenHandler Apache::Authn::Redmine::authen_handler
     AuthType Basic
     AuthName "Redmine SVN Repository"

     #read-only access
     <Limit GET PROPFIND OPTIONS REPORT>
        Require valid-user
        Allow from intratf
         Satisfy any
     </Limit>
     # write access
     <LimitExcept GET PROPFIND OPTIONS REPORT>
       Require valid-user
     </LimitExcept>

     ## for mysql
     RedmineDSN "DBI:mysql:database=redmine;host=localhost"

     RedmineDbUser "redmine"
     RedmineDbPass "my_password"
  </Location>

cd /var/www/redmine/
chown apache:apache /var/www/redmine/svn/
chmod 750 /var/www/redmine/svn/

ln -s /var/www/redmine/extra/svn/Redmine.pm /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Apache/

vi /etc/hosts

127.0.0.1               localhost.localdomain localhost intratf
cd /var/www/html/

ln -s /var/www/redmine/public redmine
chmod -R 777 tmp/*
chmod 777 /var/www/redmine/log/
/etc/rc.d/init.d/httpd start

login admin/admin

vi /var/www/redmine/extra/svn/reposman.rb
require の先頭に
require 'rdoc/ri/ri_paths'
を追加

/usr/bin/ruby /var/www/redmine/extra/svn/reposman.rb --redmine intratf/redmine --svn-dir /var/www/redmine/svn/ --owner apache --url http://intratf/redmine/svn

管理>設定>リポジトリ>リポジトリ管理用のWeb Serviceを有効にする>on

CREATE USER 'ユーザー名'@'localhost' IDENTIFIED BY 'パスワード';
CREATE DATABASE DB名;
GRANT ALL PRIVILEGES ON DB名.* TO 'ユーザー名'@'localhost';
flush privileges;

perl -p -e 's/置換対象文字列/置換後文字列/g' 置換対象ファイル名 >保存ファイル名