{"id":450,"date":"2015-04-02T21:46:30","date_gmt":"2015-04-02T12:46:30","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2015\/04\/02\/gitwebgit\/"},"modified":"2015-04-02T21:46:30","modified_gmt":"2015-04-02T12:46:30","slug":"gitwebgit","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2015\/04\/02\/gitwebgit\/","title":{"rendered":"GitWeb\u3067\u7c21\u5358\u306bGit\u30b5\u30fc\u30d0\u30fc\u306e\u60c5\u5831\u3092\u95b2\u89a7\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b"},"content":{"rendered":"<p><a href=\"http:\/\/git-scm.com\/book\/ja\/v1\/Git-%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC\">Git\u30b5\u30fc\u30d0\u30fc<\/a>\u3092\u5358\u7d14\u306b\u305f\u3066\u305f\u3060\u3051\u3060\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u95b2\u89a7\u306a\u3069 Subversion \u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3067\u304d\u3066\u3044\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306eWeb\u30da\u30fc\u30b8\u304c\u5b58\u5728\u3057\u306a\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/subversion_browse.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"subversion_browse\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"subversion_browse\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/subversion_browse_thumb.jpg\" width=\"354\" height=\"223\"><\/a><\/p>\n<p><a href=\"https:\/\/github.com\/\">GitHub<\/a> \u3068\u304b <a href=\"https:\/\/bitbucket.org\/\">Bitbucket<\/a> \u3068\u304b\u4f7f\u3063\u3066\u308c\u3070\u3001\u305d\u3093\u306a\u3053\u3068\u6c17\u306b\u3057\u306a\u304f\u3066\u3082\u3088\u3044\u306e\u3060\u304c\u3001\u307e\u3041\u8af8\u822c\u306e\u4e8b\u60c5\u3067\u72ec\u81ea\u306bGit\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u305f\u3044\u3053\u3068\u3082\u3042\u308b\u3060\u308d\u3046\u3002<\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001GitWeb\u304c\u304a\u624b\u8efd\u305d\u3046\u306a\u306e\u3067\u3001\u8a66\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u74b0\u5883\u306f\u3001\u30ec\u30f3\u30bf\u30eb\u30b5\u30fc\u30d0\u30fc\u306eCentOS6.3<\/p>\n<h2>1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/427406767X\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=427406767X&amp;linkCode=as2&amp;tag=typea09-22\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=427406767X&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\"><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=427406767X\" width=\"1\" height=\"1\">  <\/p>\n<p><a title=\"http:\/\/git-scm.com\/book\/ja\/v1\/Git-%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC-GitWeb\" href=\"http:\/\/git-scm.com\/book\/ja\/v1\/Git-%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC-GitWeb\">http:\/\/git-scm.com\/book\/ja\/v1\/Git-%E3%82%B5%E3%83%BC%E3%83%90%E3%83%BC-GitWeb<\/a><\/p>\n<pre class=\"prettyprint linenums\"># yum search gitweb\r\nLoaded plugins: fastestmirror\r\nDetermining fastest mirrors\r\n * base: ftp.iij.ad.jp\r\n * extras: ftp.iij.ad.jp\r\n * updates: ftp.iij.ad.jp\r\nbase                                                                         | 3.7 kB     00:00\r\nextras                                                                       | 3.4 kB     00:00\r\nupdates                                                                      | 3.4 kB     00:00\r\nupdates\/primary_db                                                           | 2.5 MB     00:00\r\nvz-base                                                                      |  951 B     00:00\r\nvz-updates                                                                   |  951 B     00:00\r\n======================================= N\/S Matched: gitweb ========================================\r\ngitweb.noarch : Simple web interface to git repositories\r\n\r\n  Name and summary matches only, use \"search all\" for everything.<\/pre>\n<p>yum \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre class=\"prettyprint linenums\"># yum install -y gitweb<\/pre>\n<h2>2.Git\u306e\u30d3\u30eb\u30c9<\/h2>\n<p>GitWeb\u306e\u8a2d\u5b9a\u3092\u3059\u308b\u305f\u3081\u306b\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u3001Git\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3002<\/p>\n<p>Git \u3067\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53d6\u5f97\u3059\u308b<\/p>\n<pre class=\"prettyprint linenums\"># git clone git:\/\/git.kernel.org\/pub\/scm\/git\/git.git\r\nInitialized empty Git repository in \/home\/piroto\/download\/git\/.git\/\r\nremote: Counting objects: 183667, done.\r\nremote: Compressing objects: 100% (47770\/47770), done.\r\nremote: Total 183667 (delta 134102), reused 183217 (delta 133864)\r\nReceiving objects: 100% (183667\/183667), 49.28 MiB | 3.70 MiB\/s, done.\r\nResolving deltas: 100% (134102\/134102), done.\r\n<\/pre>\n<p>GITWEB_PROJECTROOT \u306b\u3001Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u30d1\u30b9\u3092\u3092\u6307\u5b9a\u3057\u3066 make<\/p>\n<pre class=\"prettyprint linenums\"># cd git\r\n# make GITWEB_PROJECTROOT=\"\/var\/www\/git\" prefix=\/usr gitweb\r\nGIT_VERSION = 2.3.3.262.ge80e85a\r\n    SUBDIR gitweb\r\n    SUBDIR ..\/\r\nmake[2]: `GIT-VERSION-FILE' is up to date.\r\n    GEN gitweb.cgi\r\n    GEN static\/gitweb.js\r\n# cp -Rf gitweb \/var\/www<\/pre>\n<h2>3.VirtualHost\u306e\u8a2d\u5b9a<\/h2>\n<p>httpd.conf \u306b\u3001rev.typea.info \u3067\u3001GitWeb\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b VirtualHost\u306e\u6307\u5b9a\u3092\u884c\u3046\u3002<\/p>\n<pre class=\"prettyprint linenums\">&lt;VirtualHost *:80&gt;\r\n    ServerName rev.typea.info\r\n    DocumentRoot \/var\/www\/gitweb\r\n    &lt;Directory \/var\/www\/gitweb&gt;\r\n        Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch\r\n        AllowOverride All\r\n        order allow,deny\r\n        Allow from all\r\n        AddHandler cgi-script cgi\r\n        DirectoryIndex gitweb.cgi\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<h2>4.\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c8<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc<\/p>\n<pre class=\"prettyprint linenums\">Can't locate Time\/HiRes.pm in @INC (@INC contains: \/usr\/local\/lib\/perl5 \/usr\/local\/share\/perl5 \/usr\/lib\/perl5\/vendor_perl \/usr\/share\/perl5\/vendor_perl \/usr\/lib\/perl5 \/usr\/share\/perl5 .) at \/var\/www\/gitweb\/gitweb.cgi line 20.\r\nBEGIN failed--compilation aborted at \/var\/www\/gitweb\/gitweb.cgi line 20.<\/pre>\n<p>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<\/p>\n<p><a title=\"http:\/\/flatworld21.blogspot.jp\/2012\/04\/perlcant-locate-timehirespm.html\" href=\"http:\/\/flatworld21.blogspot.jp\/2012\/04\/perlcant-locate-timehirespm.html\">http:\/\/flatworld21.blogspot.jp\/2012\/04\/perlcant-locate-timehirespm.html<\/a><\/p>\n<pre class=\"prettyprint linenums\"># yum install perl-Time-HiRes<\/pre>\n<h2>5.Basic\u8a8d\u8a3c\u3092\u304b\u3051\u308b<\/h2>\n<p>\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3084\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u306f\u3001\u3044\u308d\u3044\u308d\u306a\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3084\u3089\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3084\u3089\u3092\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u305f\u3081(\u6614Amazon\u306e\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3068\u3001Amazon\u304b\u3089\u96fb\u8a71\u304c\u304b\u304b\u3063\u3066\u304d\u305f\u3053\u3068\u304c\u3042\u308b)\u307e\u305a\u3044\u305f\u3081\u3001\u4e0a\u8a18\u306eVirtualHost\u306e\u8a2d\u5b9a\u3092\u601d\u3044\u76f4\u3057\u3066\u3001Basic\u8a8d\u8a3c\u3092\u304b\u3051\u308b\u72b6\u614b\u306b\u6700\u4f4e\u9650\u3057\u3066\u304a\u304f\u3002<\/p>\n<h3>5.1 \u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u767b\u9332<\/h3>\n<pre class=\"prettyprint linenums\"># cd \/etc\/httpd\r\n# htpasswd \/etc\/httpd\/.passwd git\r\nNew password:\r\nRe-type new password:\r\nAdding password for user git<\/pre>\n<h3>5.2 VirtualHost\u306e\u66f8\u304d\u76f4\u3057<\/h3>\n<pre class=\"prettyprint linenums\">&lt;VirtualHost *:80&gt;\r\n    ServerName rev.typea.info\r\n    DocumentRoot \/var\/www\/gitweb\r\n    &lt;Directory \/var\/www\/gitweb&gt;\r\n        Options ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch\r\n        AllowOverride All\r\n        order allow,deny\r\n        Allow from all\r\n        AddHandler cgi-script cgi\r\n        DirectoryIndex gitweb.cgi\r\n    &lt;\/Directory&gt;\r\n    &lt;Directory \"\/\"&gt;\r\n        AuthType Basic\r\n        AuthName \"Git Repository\"\r\n        AuthUserFile \/etc\/httpd\/.passwd\r\n        Require user git\r\n    &lt;\/Directory&gt;\r\n&lt;\/VirtualHost&gt;<\/pre>\n<h2>6.\u51fa\u6765\u4e0a\u304c\u308a<\/h2>\n<h3>6.1 httpd \u306e\u30ea\u30b9\u30bf\u30fc\u30c8<\/h3>\n<pre class=\"prettyprint linenums\"># \/sbin\/service httpd restart<\/pre>\n<h3>6.2 Basic\u8a8d\u8a3c<\/h3>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/gitweb_basic_auth.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"gitweb_basic_auth\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"gitweb_basic_auth\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/gitweb_basic_auth_thumb.jpg\" width=\"429\" height=\"208\"><\/a><\/p>\n<h3>6.3 \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u95b2\u89a7\u53ef\u80fd\u306b\uff01<\/h3>\n<p>\u3082\u3061\u308d\u3093\u3001\u30b3\u30df\u30c3\u30c8\u5c65\u6b74\u3084\u30ed\u30b0\u3084\u30bf\u30b0\u306a\u3093\u304b\u3082\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u4fbf\u5229\uff01<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/gitweb02.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"gitweb02\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"gitweb02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/GitWeb_CC41\/gitweb02_thumb.jpg\" width=\"585\" height=\"225\"><\/a><\/p>\n<p><iframe style=\"height: 240px; width: 120px\" marginheight=\"0\" src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=ss_til&amp;asins=477415184X\" frameborder=\"0\" marginwidth=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git\u30b5\u30fc\u30d0\u30fc\u3092\u5358\u7d14\u306b\u305f\u3066\u305f\u3060\u3051\u3060\u3068\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u95b2\u89a7\u306a\u3069 Subversion \u3067\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u3067\u304d\u3066\u3044\u305f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u306eWeb\u30da\u30fc\u30b8\u304c\u5b58\u5728\u3057\u306a\u3044\u3002 GitHub \u3068\u304b Bitbucket \u3068\u304b\u4f7f\u3063\u3066\u308c\u3070\u3001\u305d\u3093\u306a\u3053 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[43],"tags":[],"class_list":["post-450","post","type-post","status-publish","format-standard","hentry","category-git"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/450","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=450"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/450\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=450"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=450"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=450"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}