cygwinã§Subversion+WebDAV
èªåã§ã¡ã³ããã³ã¹ãã¦ããwebãã¼ã¸ã®ç®¡çã«ã¯ãiTunesãµã¼ãã¨åãã¦ããMac miniã«ã¤ã³ã¹ãã¼ã«ããCVSã使ã£ã¦ãããCVSã®å¾ç¶ã¨ãã¦éçºããã¦ããSubversionã«èå³ããã£ãã®ã§ãMac miniã¨Windows XPã®ãã¼ãã«subversionã®ããã±ã¼ã¸ãããã¦ã¿ãï¼ããã¾ã§ã¯portã¨cygwinã®ããã±ã¼ã¸ç®¡çã使ãã°ä½ãèããã«ã§ããï¼ãSubversionã«ã¯CVSã«ã¯ãªãããã¤ãã®å©ç¹ãããããä¸ã«WebDAV対å¿ããã以åããèå³ãæã£ã¦ãããããã§é£ä¼ã®æéãå©ç¨ãã¦WebDAVãWindows XPã®ãã¼ãã«ã¤ã³ã¹ãã¼ã«ãã¦ã¿ããã¨ã«ããã
ApacheãSubversionã¯ããããwin32対å¿ã®ãã¤ããªãæä¾ããã¦ãããããç°å¢ã®æ§ç¯ã¯ããããwin32ãå©ç¨ããããcygwinã®ããã±ã¼ã¸ãå°å ¥ãããã§çµã¿åããã¯4éãã ãããã©ã¼ãã³ã¹çã«ã¯win32ç¨ã®ã»ããæå©ãªããã ããåã¯Apacheãå«ãã¦ãµã¼ãå¨ãã¯cygwinã®ã»ãã«å ¥ãã¦ãã使ãæ¹ã好ããªã®ã§*1ãä»åããã®å½¢æ ã§ææ¦ãããcygwin, WebDAV, subversionã®çµã¿åãããªãã¦ããã«ã誰ã§ããã£ã¦ããããªãã®ã ããæ¤ç´¢ãã¦ã¿ãã¨åãç°å¢ã§åä½ãããã¨ãããã®å 容ãæ¸ããã¨ããããªãã£ãã®ã§ã¡ã¢ãã¦ãããã
å ã XPã®cygwinã«ã¯Apache 1.3ãå ¥ã£ã¦ããã®ã§ãã¾ãcygwinã®setupã使ã£ã¦ãApache 1.3ãã¢ã³ã¤ã³ã¹ãã¼ã«ãã¦ãApache2ãã¤ã³ã¹ãã¼ã«ãããsubversionã¯æ¢ã«å°å ¥æ¸ã¿ã ã£ããupdateãã¦ãããã«subversion-apache2ã¨ããååã®Apache2 (WebDAV)ç¨ã®ããã±ã¼ã¸ãæ°è¦ã«ã¤ã³ã¹ãã¼ã«ããã
% cygcheck -c apache2 subversion subversion-apache2 Cygwin Package Information Package Version Status apache2 2.0.55-1 OK subversion 1.2.3-1 OK subversion-apache2 1.2.3-1 OK
以ä¸è¡ã£ãä½æ¥ã®ç°å¢ï¼åæï¼:
- C:\cygwinã«cygwinãã¤ã³ã¹ãã¼ã«ããã¦ããã
- C:\homeã¯cygwinç°å¢ã§/homeã¨ãã¦ã¢ã¯ã»ã¹ã§ãããããã¦ã³ãããã¦ãããï¼è¨å®ãã¡ã¤ã«ã®ä¸ã§Cãã©ã¤ããWindowsã¨cygwinã®ãã¹è¡¨è¨ã®éããæèããªãã¦è¯ãããã«ããããï¼
- subversionããã³subversion-apache2ãcygwinç°å¢ã«ã¤ã³ã¹ãã¼ã«ããã¦ããã
- subversionã¯C:\home\svn\reposã¨ãã¦ã¬ãã¸ããªã®åæåãè¡ããã¦ããã
- subversionã§ã¬ãã¸ããªã«branch, tags, trunkã¨ããååã§svn mkdirãè¡ããtrunkã«ã¯æ¢åã®ãã¼ã¿ãimportæ¸ã¿ã§ããã
ãã®æ®µéã§Apache2ãèµ·åããã¨æ£å¸¸ã«ã¤ãªãããtelnet localhost 80çã§ã¤ãªãã§ã¿ãã¨ã"Server: Apache/2.0.55 (Unix) DAV/2 SVN/1.2.3"ã¨ã¬ã¹ãã³ã¹ãè¿ãã
Suvbersionã®ã¬ãã¸ããªãWebDAVçµç±ã§è¦ããããã®C:\cygwin\etc\apache2\httpd.confï¼cygwinããã¯/etc/apache2/httpd.confï¼ã®åºæ¬è¨å®ã¯ä»¥ä¸ã¨ãªãã
DAV svn SVNParentPath "/home/svn"
httpd.confã®Load moduleã®ãªã¹ãã«ã¯ãWebDAVé¢é£ã§ä»¥ä¸ã®2ã¨ã³ããªã¼ãå«ã¾ãã¦ããããããã ãã§ã¯"DAV svn"ã®è§£éãã§ãããApacheãèµ·åãã¦ã"Unknown DAV provider: svn"ã¨ããã¨ã©ã¼ã«ãªã失æããã
LoadModule dav_module lib/apache2/mod_dav.so ... LoadModule dav_fs_module lib/apache2/mod_dav_fs.so
ããã§ãcygwinã®"subversion-apache2"ããã±ã¼ã¸ãå°å ¥ããã¨ã/lib/apache2/mod_dav_svn.soãå±éãããããhttpd.confã®ä¿®æ£ã¾ã§ã¯èªååããã¦ããªãã®ã§æã§è¡ãå¿ è¦ããããhttpd.confã®LoadModuleã«ä»¥ä¸ã®è¡ã追å ãããå½ç¶ãªãã"/lib/apache2/mod_dav_svn.so"ã®é¨åã¯å®éã«cygwinããè¦ãããã¹ãè¨å ¥ããªããã°ãªããªãï¼cygwinã®ç°å¢ããã¯C:\cygwin\libã¯/libã«è¦ããï¼ã
LoadModule dav_svn_module /lib/apache2/mod_dav_svn.so
ããã§ãIEãã"http://127.0.0.1/svn/repos/trunk"ã¨ãã¦ãã¬ãã¸ããªã®å 容ãåç §ã§ããIEã®ããã¡ã¤ã«ãéããã§ãWebãã©ã«ãã¨ãã¦ãåç §ã§ããããã«ãªã£ãã
ãã®ã¾ã¾ã ã¨Apache2(WebDAV)çµç±ã§ãããã¯ã¼ã¯ããåç §ã¯ã§ããããæ´æ°ãã§ããªããããã§Locationã以ä¸ã®ããã«æ¸ãæãããSVNParentPathã®é¨åã¯ããã¼ã¸ã§ã³ç®¡çã®å¯¾è±¡ãã²ã¨ã¤ãªãSVNPathã¨ããã
DAV svn SVNAutoversioning on SVNParentPath "/home/svn" AuthType Basic AuthName "Subversion repository" AuthUserFile "/etc/subversion/passwd" Satisfy Any Require valid-user
èªè¨¼ç¨ã®ãã¡ã¤ã«ã¯ã©ããªååã§ã©ãã«ç½®ãã¦ãè¯ãããä»åã¯cygwinã§/etc/subvresionã¨ãããã£ã¬ã¯ããªãä½æãã"htpasswd2 -c /etc/subversion/passwd username"ã³ãã³ãã«ããpasswdã¨ãããã¡ã¤ã«ãä½æããã¢ã«ã¦ã³ããç»é²ãããããã§ããããã£ãäºãå®ç¾ã§ããã
WebDAVã使ãå©ç¹ã®ã²ã¨ã¤ã¯httpsã®å©ç¨ã ããcygwinã§ããã±ã¼ã¸ã¨ãã¦æä¾ããã¦ããApache2ã§ã¯sslãå«ã¾ãã¦ããªãï¼ç¥ããªãã£ãï¼ã
% /usr/sbin/httpd2.exe -l Compiled in modules: core.c prefork.c http_core.c mod_so.c
ãã®ãããhttpsã§ã¢ã¯ã»ã¹ã§ããããã«ããããã«ã¯ãopensslã¨Apache2ã®ã½ã¼ã¹ãè½ã¨ãã¦ã³ã³ãã¤ã«ãï¼ãã¤ããªã¨ãã¦é ä»ããã¦ããã®ã¨åããã¼ã¸ã§ã³ã§ããã°mod_dav_svnã¯èªåã§ã³ã³ãã¤ã«ããå¿ è¦ã¯ãªãï¼ã証ææ¸ã®ä½æã¨httpd.confã®è¨å®ãè¡ããªããã°ãªããªããå®éãã£ã¦ã¿ããç¸å½ã«é¢åã ã
åè:
ä¸è¨éèªã§éµé£¼ææãããæ¸ããã¦ããç¹éè¨äºããCVS/Subversion, ãªãã¸ã§ã³ç®¡çã®ãã¨ã¯ãããã主è¦ãªæ©è½ãã«ãã¼ãã¦ããªããè¨è¿°ãç°¡æ½ã§é常ã«ããããããã
Debian GNU/Linux Expertãã¹ã¯ãããã¦ã¼ã¹ã¹ãã·ã£ã«
- ä½è : æè¡è©è«ç¤¾æ¸ç±ç·¨éé¨
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2004/08
- ã¡ãã£ã¢: åè¡æ¬
- ã¯ãªãã¯: 9å
- ãã®ååãå«ãããã° (26件) ãè¦ã