| 107 | |
| 108 | 1. aptitude install m4 man2html namazu2-index-tools nkf rpm ruby rsync |
| 109 | * man2htmlによってapache2がインストールされるのがいやな場合は、lynx-curを追加すると良い |
| 110 | 1. git clone git://git.sourceforge.jp/gitroot/linuxjm/jm.git |
| 111 | * これを記述している時点では、{{{3715a98402e6ee5d0d730a3c98792b9aec7afca9}}} |
| 112 | 1. edit config files |
| 113 | {{{#!diff |
| 114 | diff --git a/JM.rules b/JM.rules |
| 115 | index 609bd3c..cae2fa9 100644 |
| 116 | --- a/JM.rules |
| 117 | +++ b/JM.rules |
| 118 | @@ -5,7 +5,7 @@ |
| 119 | # |
| 120 | # modify these to fit your env. |
| 121 | # |
| 122 | -JMHOME=/home/groups/l/li/linuxjm |
| 123 | +JMHOME=/var/path/to/linuxjm |
| 124 | ROOT=$(JMHOME) |
| 125 | WWWROOT=$(ROOT)/htdocs |
| 126 | CGIROOT=$(ROOT)/cgi-bin |
| 127 | @@ -20,13 +20,13 @@ RPMROOT=$(TMPDIR)/RPM |
| 128 | # |
| 129 | # used as an absolute link in cgi scripts |
| 130 | # |
| 131 | -URLROOT=http://linuxjm.sourceforge.jp |
| 132 | +URLROOT=http://example.jp/linuxjm |
| 133 | |
| 134 | # |
| 135 | # commands |
| 136 | # |
| 137 | RSYNC=/usr/bin/rsync |
| 138 | -MAN2HTML=$(JMHOME)/bin/man2html |
| 139 | +MAN2HTML=/usr/bin/man2html |
| 140 | MKNMZ=/usr/bin/mknmz |
| 141 | RPM=rpm |
| 142 | RPMB=rpmbuild |
| 143 | diff --git a/admin/site/gen_sitemap.rb b/admin/site/gen_sitemap.rb |
| 144 | index 5a56462..53b1266 100755 |
| 145 | --- a/admin/site/gen_sitemap.rb |
| 146 | +++ b/admin/site/gen_sitemap.rb |
| 147 | @@ -2,7 +2,7 @@ |
| 148 | |
| 149 | require 'find' |
| 150 | |
| 151 | -$site_url = "http://linuxjm.sourceforge.jp" |
| 152 | +$site_url = "http://example.jp/linuxjm" |
| 153 | |
| 154 | def usage |
| 155 | puts "Usage: #{$0} <htdocs_path> ...." |
| 156 | diff --git a/www/jm_www.m4 b/www/jm_www.m4 |
| 157 | index 855dafd..7a07ffe 100644 |
| 158 | --- a/www/jm_www.m4 |
| 159 | +++ b/www/jm_www.m4 |
| 160 | @@ -48,8 +48,8 @@ m4_define(`_EDIT_WARNING',` |
| 161 | -->') |
| 162 | |
| 163 | |
| 164 | -m4_define(`_MANCGI',`http://linuxjm.sourceforge.jp/cgi-bin/man.cgi') |
| 165 | -m4_define(`_NAMAZU',`http://linuxjm.sourceforge.jp/cgi-bin/namazu.cgi') |
| 166 | +m4_define(`_MANCGI',`http://example.jp/linuxjm/cgi-bin/man.cgi') |
| 167 | +m4_define(`_NAMAZU',`http://example.jp/linuxjm/cgi-bin/namazu.cgi') |
| 168 | |
| 169 | m4_define(`_EMAIL_ADDRESS',linuxjm-discuss@lists.sourceforge.jp) |
| 170 | |
| 171 | }}} |
| 172 | 1. sudo make |
| 173 | * makeするだけでインストールされる |
| 174 | 1. configure httpd |
| 175 | * nginxの例 |
| 176 | {{{ |
| 177 | location /linuxjm { |
| 178 | alias /var/path/to/linuxjm/htdocs; |
| 179 | } |
| 180 | location /linuxjm/cgi-bin/man.cgi { |
| 181 | fastcgi_pass unix:/var/run/fcgiwrap.socket; |
| 182 | fastcgi_param SCRIPT_FILENAME /var/path/to/linuxjm/cgi-bin/man.cgi; |
| 183 | include fastcgi_params; |
| 184 | } |
| 185 | }}} |
| 186 | 1. http://example.jp/linuxjm にアクセスする |