Game Packaging and Patch System Setup - Linux Server
(work in progress)
Server Software
This description assumes a SuSE 10.1 server running apache 2.2.3.
Enable SVN
Make sure you have subversion-1.3.0 (or a newer version) installed.
SuSE uses a configuration file /etc/sysconfig/apache2 to list the apache modules. Add "dav dav_svn authz_svn" to the APACHE_MODULES shell variable.
Pick a path where you wnat to place your subversion repository. I'll use /srv/mygame/.
Create the repository:
cd /srv mkdir -p /srv/mygame/svnrepo cd /srv/mygame/svnrepo svnadmin create patchfiles htpasswd2 -bc htpasswd admin mypassword htpasswd2 -b htpasswd starter myotherpassword
Create the svn access file with these lines:
[patchfiles:/] admin = rw starter = r
In your vhosts configuration (one of the configuration for your virtual hosts) add:
<Location /svn>
SetOutputFilter DEFLATE
SetInputFilter DEFLATE
DAV svn
SVNParentPath /srv/mygame/svnrepo
# our access control policy
AuthzSVNAccessFile /srv/mygame/svnrepo/svnaccess.txt
AuthType Basic
AuthName "My Game's Patch File Repository"
AuthUserFile /srv/mygame/svnrepo/htpasswd
require valid-user
</Location>
Make the apache user id the owner of the repository:
chown -R wwwrun /srv/mygame/svnrepo
Restart apache2 to load the modules and the configuration changes:
apache2ctl restart
You can check the access to the repository with http://127.0.0.1/svn/patchfiles
Then continue with the deployment documentation for the client.
