CVSやSubversionをWebから見たいときに viewvc を使います。
FreeBSDでは、viewvcをportsからインストールすることが可能です。
インストール方法
cd /usr/ports/devel/viewvc/
sudo make install clean
ViewVC file installation complete.
Consult the INSTALL document for detailed information on completing the
installation and configuration of ViewVC on your system. Here's a brief
overview of the remaining steps:
1) Edit the /usr/local/viewvc/viewvc.conf file.
2) Either configure an existing web server to run
/usr/local/viewvc/bin/cgi/viewvc.cgi.
Or, copy /usr/local/viewvc/bin/cgi/viewvc.cgi to an
already-configured cgi-bin directory.
Or, use the standalone server provided by this distribution at
/usr/local/viewvc/bin/standalone.py.
*****************************************************************
To use ViewVC modify the configuration file, located at
/usr/local/viewvc/viewvc.conf.
There is no need for an Webserver, all you have to do is
enable the standalone ViewVC server in rc.conf with the
parameter viewvc_enable="YES".
You can also adjust the user wich runs the ViewVC standalone
server with the paramter viewvc_user.
If you want to run the ViewVC standalone server with another
IP/PORT use the parameter viewvc_flags
To see all aviable parameters use the command
/usr/local/viewvc/bin/standalone.py --help
To use ViewVC with Apache or LigHTTP as cgi script
see the following config exmples.
Apacheの設定
Example config lines for Apache
==================================
Alias /viewvc "/usr/local/viewvc/bin/cgi/"
Options NONE +ExecCGI
DirectoryIndex /viewvc/viewvc.cgi
Order allow,deny
Allow from all
viewvcの設定
/usr/local/viewvc/viewvc.conf
の設定ファイルを編集します。
0 コメント:
コメントを投稿