#title Chapter 3. 基本的なパッケージング '''目次''' * [[UbuntuPackagingGuideJa/basic-scratch|一からパッケージングする]] * [[UbuntuPackagingGuideJa/basic-scratch#changelog|changelog]] * [[UbuntuPackagingGuideJa/basic-scratch#control|control]] * [[UbuntuPackagingGuideJa/basic-scratch#copyright|copyright]] * [[UbuntuPackagingGuideJa/basic-scratch#rules|rules]] * [[UbuntuPackagingGuideJa/basic-scratch#postinst|postinstとprerm]] * [[UbuntuPackagingGuideJa/basic-scratch#building|ソースパッケージのビルド]] * [[UbuntuPackagingGuideJa/basic-debhelper|Debhelperによるパッケージング]] * [[UbuntuPackagingGuideJa/basic-debhelper#building|ソースパッケージのビルド]] * [[UbuntuPackagingGuideJa/basic-cdbs|CDBSによるパッケージング]] * [[UbuntuPackagingGuideJa/basic-cdbs#usage|CDBSを利用する]] * [[UbuntuPackagingGuideJa/basic-cdbs#more_info|さらなる情報]] * [[UbuntuPackagingGuideJa/basic-mistakes|よくある間違い]] * [[UbuntuPackagingGuideJa/basic-mistakes#ex_files|dh_makeのサンプルファイル]] * [[UbuntuPackagingGuideJa/basic-mistakes#orig_tarball|オリジナルアーカイブへの修正]] * [[UbuntuPackagingGuideJa/basic-mistakes#copyright|copyrightの取り扱い]] Two of the problems that many novice packagers face are that there are multiple ways of packaging, and there is more than one tool to do the job. We will go through three examples with the common build systems. First, we will use no build helper. This approach is usually the most difficult and is not often used in practice but gives the most straightforward look at the packaging process. Second, we will use '''debhelper''', the most common build system in Debian. It helps the packager by automating repetitive tasks. Third, we will briefly cover the '''C'''ommon '''D'''ebian '''B'''uild '''S'''ystem ('''CDBS'''), a more streamlined build system that uses '''debhelper'''. 多くの初心者パッケージャが悩むこととが二つあります。ひとつはパッケージング方法に複数の方法がある、ということです。もう一つは、同じ作業を行うのに複数のツールが存在することです。これから標準的なビルドシステムを利用する、三つの例について触れます。まず、ビルドに全くツールを使用しない方法です。このアプローチがもっとも難しく、あまり使われていません。ですが、これはパッケージングの手順に直接触れることができ、見通しが良いのです。第二に、'''debhelper'''を用います。これはDebianでは最もよく使われているビルドシステムです。これは何度も行う作業を自動化することで、パッケージャの作業を軽減します。第三に、'''C'''ommon '''D'''ebian '''B'''uild '''S'''ystem('''CDBS''')について軽く触れます。これは'''debhelper'''を使うよりもさらに現代的なビルドシステムです。 . [[attachment:UbuntuPackagingGuideJa/conventions/tip.png|{{attachment:UbuntuPackagingGuideJa/conventions/tip.png}}]] Package development often requires installing many packages (especially '''-dev''' packages containing headers and other common development files) that are not part of a normal desktop Ubuntu installation. If you want to avoid installing extra packages or would like to develop for a different Ubuntu release (the development one, for instance) from what you currently have, the use of a chroot environment is highly recommended. A guide to setting up a [[UbuntuPackagingGuideJa/appendix-chroot|chroot]] can be found in the Appendix. . [[attachment:UbuntuPackagingGuideJa/conventions/tip.png|{{attachment:UbuntuPackagingGuideJa/conventions/tip.png}}]] パッケージ開発には、しばしば標準的なデスクトップとして利用しているUbuntu環境には含まれていないパッケージのインストールが必要になります(特に、ヘッダなどの開発に必要なファイルを含んでいる'''-dev'''パッケージ)。余分なパッケージのインストールを避けたいか、今利用しているのとは異なるUbuntuリリース(たとえば開発中のもの)のために開発したいのであれば、chroot環境の利用を強く推奨します。[[UbuntuPackagingGuideJa/appendix-chroot|chroot]]については、追補で紹介しています。 ||<:20%>,,<=,, ||<:60%>||<:20%> ,,=>,,|| ||<:20%>[[UbuntuPackagingGuideJa/gs-pbuilder|パーソナルビルダー"pbuilder"]]||<:60%>'''基本的なパッケージング'''||<:20%> [[UbuntuPackagingGuideJa/basic-scratch|一からパッケージングする]]||