Steps to setup SVN over http on Nevada build 59
Thursday Apr 05, 2007
Do following in root privilege.
- # ## install svn pkg from Solaris build 61
- # ## if you're using snv_61 or later, skip this step
- # ## svn version 1.4.0 (r21228)
- # pkgadd -d . SUNWneon SUNWsvn SUNWsvnS
- #
- # cd /etc/apache2
- # cp httpd.conf-example httpd.conf
- # vi httpd.conf
- add two lines in LoadModule session
- LoadModule dav_svn_module libexec/mod_dav_svn.so
LoadModule authz_svn_module libexec/mod_authz_svn.so - add follow at the end of httpd.conf
- RedirectMatch ^(/svn)$ $1/
<IfModule dav_svn_module>
<Location /svn/>
DAV svn
SVNParentPath /workspace/scm/svn/svnroot
SVNListParentPath on
SVNIndexXSLT "/svnindex.xsl"
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /workspace/scm/svn/auth/svn_passwd
<IfModule authz_svn_module>
AuthzSVNAccessFile /workspace/scm/svn/auth/svn_access.conf
</IFModule>
# For any operations other than these, require an authenticated user.
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
</Location>
</IfModule> - #
- # cp /usr/share/src/subversion/tools/xslt/svnindex.xsl /var/apache2/htdocs/
- # cp /usr/share/src/subversion/tools/xslt/svnindex.css /var/apache2/htdocs/
- # cp /usr/share/src/subversion/www/favicon.ico /var/apache2/htdocs/
- # /usr/apache2/bin/htpasswd -cm /workspace/scm/svn/auth/svn_passwd [username]
New password:
Re-type new password:
Adding password for user [username] - # cat <<EOF > /workspace/scm/svn/auth/svn_access.conf
> [groups]
> g1 = [username]
>
> [/]
> * = r
>
> [test:/]
> @g1 = rw
>
> EOF - #
- # cd /workspace/scm/svn/svnroot
- # svnadmin create test
- #
- # svcs -a |grep apache2
disabled 12:36:52 svc:/network/http:apache2 - # svcadm enable svc:/network/http:apache2
- #
That's it! You should be able to browse the svn tree from:
http://www.example.com/svn/Or check out source tree by:
$ svn co http://www.example.com/svn/test
- $ ##
- $ ## to create notifications for commit
- $ ## as normal user privilege
- $ ##
- $ cd /workspace/scm/svn/svnroot/test/hooks
- $ cp /usr/share/src/subversion/tools/hook-scripts/commit-email.pl.in commit-email.pl
- $ vi commit-email.pl
replace "@SVN_BINDIR@/svnlook" with "/usr/bin/svnlook" in line 54 - $ cp post-commit.tmpl post-commit
- $ vi post-commit
add full path to commit-email.pl, replace the email address with the real one,
add '-s "test project"' before email address,
comment out line 'log-commit.py ...' - $












[url=
「こんなきっ...