subversion/apache 㨠Redmine ã®ã¦ã¼ã¶ãåæ
åæã¨ããããapacheã®èªè¨¼æ
å ±ã«redmineã§ä½¿ã£ã¦ãããã¼ã¿ãã¼ã¹ã使ãæ¹æ³ã
Redmine ã«ã¯ Apache-perlã¢ã¸ã¥ã¼ã«ã¨ã㦠Redmine.pm ã¨ããã®ãããã
http://www.redmine.org/wiki/1/Repositories_access_control_with_apache_mod_dav_svn_and_mod_perl
ä¾ãã°redmineã /sites/redmine ã«ã¤ã³ã¹ãã¼ã«ããã¨ãã㨠/sites/redmine/extra/svn/Redmine.pm ãããã
centos ã®å ´åã¯
yum install httpd-devel mod_perl
ãã¨
yum install perl-Digest-SHA1 perl-DBI
ããã ã¨DBIãå¤ãã¦DBD::SQLiteãå ¥ããããªããããªã®ã§ï¼sqliteããã¼ã¿ãã¼ã¹ã«ä½¿ã£ã¦ãªã人ã¯ä»ã®ã¢ã¸ã¥ã¼ã«ãå ¥ãããï¼
cpan install DBI cpan install DBD::SQLite
ã¨ãã§ç®çã®ã¢ã¸ã¥ã¼ã«ãã¤ã³ã¹ãã¼ã«ããå¾
mkdir /usr/lib/perl5/site_perl/5.8.8/Apache/Authn cp /sites/redmine/extra/svn/Redmine.pm /usr/lib/perl5/site_perl/5.8.8/Apache/Authn
ã¨ããã¦ãRedmine.pm ã®ãããã«æ¸ããã¦ããããã« httpd.conf ãè¨å®ããã°ãããï¼ãã¼ã¸ã§ã³ã«ãã£ã¦ã¡ãã£ã¨ãã¤éãã¿ããï¼
<Location /svn> SVNParentPath "/var/svn"
ã§ã
svnadmin create /var/svn/hoge
ããã¦ããå ´åã
http://xxxx/svn/hoge
ã«ã¢ã¯ã»ã¹ããã¨ããã¤ã¢ãã°ãåºã¦ redmine ä¸ã®ããã¸ã§ã¯ã hoge ã«ããã¦ãªãã¸ããªã®é²è¦§æ¨©éããããã©ããã調ã¹ã¦ãããï¼redmineã®ããã¸ã§ã¯ãåã¨svnã®ãªãã¸ããªåã¯åãããªãã¨ãããªãï¼ã
åä½ãæ°ã«å
¥ããªããã°Redmine.pm ãã«ã¹ã¿ãã¤ãºããã°ãããããªã¼ã