subversion without apache….

#vim /usr/local/etc/ports.conf

devel/subversion: WITHOUT_BDB | WITHOUT_NEON | WITH_APACHE2_APR | WITH_SVNSERVE_RAPPER | WITH_MOD_DAV_SVN

接下來就去/usr/ports/devel/subservion 下裝起來

#vim /etc/rc.conf
svnserve_enable=”YES”
svnserve_flags=”-d –listen-port=3690 –listen-host=0.0.0.0″
svnserve_data=”/home/svnroot”
svnserve_user=”www”
svnserve_group=”www”

svnserver_data 記得設一下…
不然default 會在 / 根目錄下…

mkdir -p /home/svnroot/projectName ; svnadmin create /home/svnroot/projectName

編輯一下權限
先去/home/svnroot/projectName/conf
這個目錄下會有這三個檔案
authz, passwd, svnserve.conf
設定檔案位置
#vim /home/svnroot/projectName/conf/svnserve.conf
設定authd 和passwd
兩個檔案的位置
password-db = passwd
authz-db = authz

#vim authz
[/]
* = r
www = rw
root = rw
[projectName:/]
* = r
www = rw
root = rw

#vim passwd
[users]
# harry = harryssecret
# sally = sallyssecret
www = www(你的密碼)
root = root(你的記密)

就這樣….非常的簡易…. :8-):

About johnpupu

..........
This entry was posted in program and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word