USE="apache2" emerge subversion -Dav
#创建svn初始库
emerge --config =dev-util/subversion-1.4.6
#设置权限
groupadd svnusers
chown -R root:svnusers /var/svn/repos/
chmod -R g-w /var/svn/repos
chmod -R g+rw /var/svn/repos/db
chmod -R g+rw /var/svn/repos/locks
#使用http方式
1.edit /etc/conf.d/apache2 to include both "-D DAV" and "-D SVN"
2. create an htpasswd file:
htpasswd2 -m -c /var/svn/conf/svnusers USERNAME
#svn备份
echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion
echo 'SVN_HOTBACKUP_NUM_BACKUPS=2' >> /etc/env.d/80subversion
#创建svn初始库
emerge --config =dev-util/subversion-1.4.6
#设置权限
groupadd svnusers
chown -R root:svnusers /var/svn/repos/
chmod -R g-w /var/svn/repos
chmod -R g+rw /var/svn/repos/db
chmod -R g+rw /var/svn/repos/locks
#使用http方式
1.edit /etc/conf.d/apache2 to include both "-D DAV" and "-D SVN"
2. create an htpasswd file:
htpasswd2 -m -c /var/svn/conf/svnusers USERNAME
#svn备份
echo '# hot-backup: Keep that many repository backups around' > /etc/env.d/80subversion
echo 'SVN_HOTBACKUP_NUM_BACKUPS=2' >> /etc/env.d/80subversion