| 22 | | 1. 找到並解壓縮 nutch-1.0.tar.gz |
| 23 | | 2. 在 nutch-1.0 資料夾執行 ''' dh_make -f ../nutch_1.0.tar.gz ''' |
| 24 | | 3. 將debian內的 '''rm *.ex *.EX dir '''等檔案,並修改 rules , control |
| 25 | | 4. 增加 nutch.[install,docs,links,postinst, postrm, prerm] 等檔 |
| 26 | | 5. 在 nutch-1.0 資料夾內編輯Makefile檔 |
| 27 | | 6. 執行 ''' sudo dpkg-buildpackage -rfakeroot -k0xB35CE8C3''' |
| 28 | | |
| | 22 | == 1. 找到並解壓縮 nutch-1.0.tar.gz == |
| | 23 | == 2. 在 nutch-1.0 資料夾執行 ''' dh_make -f ../nutch_1.0.tar.gz ''' == |
| | 24 | == 3. 將debian內的 '''rm *.ex *.EX dir '''等檔案,並修改 rules , control == |
| | 25 | |
| | 26 | * changelog |
| | 27 | |
| | 28 | {{{ |
| | 29 | nutch (1.0-1) unstable; urgency=low |
| | 30 | |
| | 31 | * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> |
| | 32 | |
| | 33 | -- Wei-Yu Chen <waue0920@gmail.com> Tue, 12 May 2009 11:15:51 +0800 |
| | 34 | }}} |
| | 35 | |
| | 36 | * compat |
| | 37 | |
| | 38 | {{{ |
| | 39 | 5 |
| | 40 | }}} |
| | 41 | |
| | 42 | * control |
| | 43 | |
| | 44 | {{{ |
| | 45 | Source: nutch |
| | 46 | |
| | 47 | Section:devel |
| | 48 | |
| | 49 | Priority: extra |
| | 50 | |
| | 51 | Maintainer: Wei-Yu Chen <waue0920@gmail.com> |
| | 52 | |
| | 53 | Build-Depends: debhelper (>= 5) |
| | 54 | |
| | 55 | Standards-Version: 3.7.2 |
| | 56 | |
| | 57 | |
| | 58 | |
| | 59 | Package: nutch |
| | 60 | |
| | 61 | Architecture: any |
| | 62 | |
| | 63 | Depends: ${shlibs:Depends}, ${misc:Depends}, sun-java6-jre, sun-java6-bin |
| | 64 | |
| | 65 | Suggests: sun-java6-jdk, tomcat6 |
| | 66 | |
| | 67 | Description: Apache Nutch |
| | 68 | |
| | 69 | . |
| | 70 | |
| | 71 | Apache Nutch is a software that search and crawl internet. |
| | 72 | }}} |
| | 73 | |
| | 74 | * copyright |
| | 75 | {{{ |
| | 76 | This package was debianized by Wei-Yu Chen <waue0920@gmail.com> on |
| | 77 | |
| | 78 | Tue, 12 May 2009 11:15:51 +0800. |
| | 79 | |
| | 80 | |
| | 81 | |
| | 82 | It was downloaded from <url://example.com> |
| | 83 | |
| | 84 | |
| | 85 | |
| | 86 | Upstream Author(s): |
| | 87 | |
| | 88 | |
| | 89 | |
| | 90 | <put author's name and email here> |
| | 91 | |
| | 92 | <likewise for another author> |
| | 93 | |
| | 94 | |
| | 95 | |
| | 96 | Copyright: |
| | 97 | |
| | 98 | |
| | 99 | |
| | 100 | <Copyright (C) YYYY Name OfAuthor> |
| | 101 | |
| | 102 | <likewise for another author> |
| | 103 | |
| | 104 | |
| | 105 | |
| | 106 | License: |
| | 107 | |
| | 108 | |
| | 109 | |
| | 110 | <Put the license of the package here indented by 4 spaces> |
| | 111 | |
| | 112 | |
| | 113 | |
| | 114 | The Debian packaging is (C) 2009, Wei-Yu Chen <waue0920@gmail.com> and |
| | 115 | |
| | 116 | is licensed under the GPL, see `/usr/share/common-licenses/GPL'. |
| | 117 | |
| | 118 | |
| | 119 | |
| | 120 | # Please also look if there are files or directories which have a |
| | 121 | |
| | 122 | # different copyright/license attached and list them here. |
| | 123 | }}} |
| | 124 | |
| | 125 | * docs |
| | 126 | |
| | 127 | {{{ |
| | 128 | CHANGES.txt |
| | 129 | |
| | 130 | LICENSE.txt |
| | 131 | |
| | 132 | NOTICE.txt |
| | 133 | |
| | 134 | README.txt |
| | 135 | |
| | 136 | README.txt |
| | 137 | }}} |
| | 138 | |
| | 139 | * rules |
| | 140 | |
| | 141 | {{{ |
| | 142 | #!/usr/bin/make -f |
| | 143 | |
| | 144 | export DH_VERBOSE=0 |
| | 145 | |
| | 146 | |
| | 147 | |
| | 148 | all: |
| | 149 | |
| | 150 | |
| | 151 | |
| | 152 | install: |
| | 153 | |
| | 154 | dh_testdir |
| | 155 | |
| | 156 | dh_testroot |
| | 157 | |
| | 158 | dh_install -Xlicense.txt |
| | 159 | |
| | 160 | dh_installdocs |
| | 161 | |
| | 162 | dh_installchangelogs |
| | 163 | |
| | 164 | #dh_installexamples |
| | 165 | |
| | 166 | dh_compress |
| | 167 | |
| | 168 | dh_fixperms |
| | 169 | |
| | 170 | dh_installdeb |
| | 171 | |
| | 172 | dh_link |
| | 173 | |
| | 174 | dh_gencontrol |
| | 175 | |
| | 176 | dh_md5sums |
| | 177 | |
| | 178 | dh_builddeb |
| | 179 | |
| | 180 | |
| | 181 | |
| | 182 | clean: |
| | 183 | |
| | 184 | dh_clean |
| | 185 | |
| | 186 | |
| | 187 | |
| | 188 | binary: install |
| | 189 | |
| | 190 | |
| | 191 | |
| | 192 | build: |
| | 193 | |
| | 194 | binary-arch: |
| | 195 | |
| | 196 | binary-indep: |
| | 197 | }}} * changelog |
| | 198 | |
| | 199 | {{{ |
| | 200 | nutch (1.0-1) unstable; urgency=low |
| | 201 | |
| | 202 | * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP> |
| | 203 | |
| | 204 | -- Wei-Yu Chen <waue0920@gmail.com> Tue, 12 May 2009 11:15:51 +0800 |
| | 205 | }}} |
| | 206 | |
| | 207 | * compat |
| | 208 | |
| | 209 | {{{ |
| | 210 | 5 |
| | 211 | }}} |
| | 212 | |
| | 213 | * control |
| | 214 | |
| | 215 | {{{ |
| | 216 | Source: nutch |
| | 217 | |
| | 218 | Section:devel |
| | 219 | |
| | 220 | Priority: extra |
| | 221 | |
| | 222 | Maintainer: Wei-Yu Chen <waue0920@gmail.com> |
| | 223 | |
| | 224 | Build-Depends: debhelper (>= 5) |
| | 225 | |
| | 226 | Standards-Version: 3.7.2 |
| | 227 | |
| | 228 | |
| | 229 | |
| | 230 | Package: nutch |
| | 231 | |
| | 232 | Architecture: any |
| | 233 | |
| | 234 | Depends: ${shlibs:Depends}, ${misc:Depends}, sun-java6-jre, sun-java6-bin |
| | 235 | |
| | 236 | Suggests: sun-java6-jdk, tomcat6 |
| | 237 | |
| | 238 | Description: Apache Nutch |
| | 239 | |
| | 240 | . |
| | 241 | |
| | 242 | Apache Nutch is a software that search and crawl internet. |
| | 243 | }}} |
| | 244 | |
| | 245 | * copyright |
| | 246 | {{{ |
| | 247 | This package was debianized by Wei-Yu Chen <waue0920@gmail.com> on |
| | 248 | |
| | 249 | Tue, 12 May 2009 11:15:51 +0800. |
| | 250 | |
| | 251 | |
| | 252 | |
| | 253 | It was downloaded from <url://example.com> |
| | 254 | |
| | 255 | |
| | 256 | |
| | 257 | Upstream Author(s): |
| | 258 | |
| | 259 | |
| | 260 | |
| | 261 | <put author's name and email here> |
| | 262 | |
| | 263 | <likewise for another author> |
| | 264 | |
| | 265 | |
| | 266 | |
| | 267 | Copyright: |
| | 268 | |
| | 269 | |
| | 270 | |
| | 271 | <Copyright (C) YYYY Name OfAuthor> |
| | 272 | |
| | 273 | <likewise for another author> |
| | 274 | |
| | 275 | |
| | 276 | |
| | 277 | License: |
| | 278 | |
| | 279 | |
| | 280 | |
| | 281 | <Put the license of the package here indented by 4 spaces> |
| | 282 | |
| | 283 | |
| | 284 | |
| | 285 | The Debian packaging is (C) 2009, Wei-Yu Chen <waue0920@gmail.com> and |
| | 286 | |
| | 287 | is licensed under the GPL, see `/usr/share/common-licenses/GPL'. |
| | 288 | |
| | 289 | |
| | 290 | |
| | 291 | # Please also look if there are files or directories which have a |
| | 292 | |
| | 293 | # different copyright/license attached and list them here. |
| | 294 | }}} |
| | 295 | |
| | 296 | * docs |
| | 297 | |
| | 298 | {{{ |
| | 299 | CHANGES.txt |
| | 300 | |
| | 301 | LICENSE.txt |
| | 302 | |
| | 303 | NOTICE.txt |
| | 304 | |
| | 305 | README.txt |
| | 306 | |
| | 307 | README.txt |
| | 308 | }}} |
| | 309 | |
| | 310 | * rules |
| | 311 | |
| | 312 | {{{ |
| | 313 | #!/usr/bin/make -f |
| | 314 | |
| | 315 | export DH_VERBOSE=0 |
| | 316 | |
| | 317 | |
| | 318 | |
| | 319 | all: |
| | 320 | |
| | 321 | |
| | 322 | |
| | 323 | install: |
| | 324 | |
| | 325 | dh_testdir |
| | 326 | |
| | 327 | dh_testroot |
| | 328 | |
| | 329 | dh_install -Xlicense.txt |
| | 330 | |
| | 331 | dh_installdocs |
| | 332 | |
| | 333 | dh_installchangelogs |
| | 334 | |
| | 335 | #dh_installexamples |
| | 336 | |
| | 337 | dh_compress |
| | 338 | |
| | 339 | dh_fixperms |
| | 340 | |
| | 341 | dh_installdeb |
| | 342 | |
| | 343 | dh_link |
| | 344 | |
| | 345 | dh_gencontrol |
| | 346 | |
| | 347 | dh_md5sums |
| | 348 | |
| | 349 | dh_builddeb |
| | 350 | |
| | 351 | |
| | 352 | |
| | 353 | clean: |
| | 354 | |
| | 355 | dh_clean |
| | 356 | |
| | 357 | |
| | 358 | |
| | 359 | binary: install |
| | 360 | |
| | 361 | |
| | 362 | |
| | 363 | build: |
| | 364 | |
| | 365 | binary-arch: |
| | 366 | |
| | 367 | binary-indep: |
| | 368 | }}} |
| | 369 | |
| | 370 | |
| | 371 | |
| | 372 | == 4. 增加 nutch.[install,docs,links,postinst, postrm, prerm] 等檔 == |
| | 373 | == 5. 在 nutch-1.0 資料夾內編輯Makefile檔 == |
| | 374 | == 6. 執行 ''' sudo dpkg-buildpackage -rfakeroot -k0xB35CE8C3''' == |
| | 375 | |