en to zh translation catalogue (793 entries)

note: type: Content of: <book><chapter><section><screen>
en: en
zh: zh-tw

note: type: Content of: <book><info><title>
en: Guide for Debian Maintainers
zh: Debian 維護者指南

note: type: Content of: <book><info>
en: <date>@@@debdate@@@</date> <copyright> <year>2014-2026</year> <holder>Osamu Aoki</holder> </copyright>
zh: <author><personname> 青木 修 </personname></author> <date>@@@debdate@@@</date> <copyright><year>2014-2026</year> <holder>Osamu Aoki</holder></copyright>

note: type: Content of: <book><info><legalnotice><simpara>
en: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
zh: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

note: type: Content of: <book><info><legalnotice><simpara>
en: This guide was made using the following previous documents as its reference:
zh: 本指南在撰寫過程中參考了以下幾篇文件：

note: type: Content of: <book><info><legalnotice><itemizedlist><listitem><simpara>
en: “Making a Debian Package (AKA the Debmake Manual)”, copyright © 1997 Jaldhar Vyas.
zh: “Making a Debian Package (AKA the Debmake Manual)”, 版權所有 © 1997 Jaldhar Vyas.

note: type: Content of: <book><info><legalnotice><itemizedlist><listitem><simpara>
en: “The New-Maintainer’s Debian Packaging Howto”, copyright © 1997 Will Lowe.
zh: “The New-Maintainer’s Debian Packaging Howto”, 版權所有 © 1997 Will Lowe.

note: type: Content of: <book><info><legalnotice><itemizedlist><listitem><simpara>
en: “Debian New Maintainers’ Guide”, copyright © 1998-2002 Josip Rodin, 2005-2017 Osamu Aoki, 2010 Craig Small, and 2010 Raphaël Hertzog.
zh: “Debian New Maintainers’ Guide”, 版權所有 © 1998-2002 Josip Rodin, 2005-2017 Osamu Aoki, 2010 Craig Small 以及 2010 Raphaël Hertzog。

note: type: Content of: <book><info><legalnotice><simpara>
en: The latest version of this guide should be available:
zh: 本指南的最新版本應當可以在下列位置找到：

note: type: Content of: <book><info><legalnotice><itemizedlist><listitem><simpara>
en: in the <quote><link xl:href="https://tracker.debian.org/pkg/debmake-doc">debmake-doc package</link></quote> and
zh: 在 <quote><link xl:href="https://tracker.debian.org/pkg/debmake-doc">debmake-doc 套件</link></quote> 中，以及

note: type: Content of: <book><info><abstract><simpara>
en: This “Guide for Debian Maintainers” (@@@debdate@@@)  tutorial guide describes the building of the Debian package to ordinary Debian users and prospective developers using the <emphasis role="strong">debmake</emphasis> command.
zh: 本篇《Debian 維護者指南》（@@@debdate@@@）教材文件針對普通 Debian 使用者和未來的開發者，描述了使用 <emphasis role="strong">debmake</emphasis> 命令構建 Debian 套件的方法。

note: type: Content of: <book><info><abstract><simpara>
en: This guide focuses on the modern packaging style and comes with many simple examples.
zh: 本指南注重描述現代的打包風格，同時提供了許多簡單的範例。

note: type: Content of: <book><info><abstract><itemizedlist><listitem><simpara>
en: POSIX shell script packaging
zh: POSIX shell 指令碼打包

note: type: Content of: <book><info><abstract><itemizedlist><listitem><simpara>
en: Python3 script packaging
zh: Python3 指令碼打包

note: type: Content of: <book><info><abstract><itemizedlist><listitem><simpara>
en: C with Makefile/Autotools/CMake
zh: C 和 Makefile/Autotools/CMake

note: type: Content of: <book><info><abstract><itemizedlist><listitem><simpara>
en: multiple binary packages with shared library etc.
zh: 含有共享程式庫的多個二進位制套件的打包，等等。

note: type: Content of: <book><info><abstract><simpara>
en: This “Guide for Debian Maintainers” can be considered as the successor to the “Debian New Maintainers’ Guide”.
zh: 本篇《Debian 維護者指南》可看作《Debian 新維護者手冊》的繼承文件。

note: type: Content of: <book><chapter><title>
en: Preface
zh: 前言

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: You wish to install a certain software package not yet found in the Debian archive.
zh: 您想要安裝某一個套件，但是該軟體在 Debian 倉庫中尚不存在。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: You wish to update a Debian package with the newer upstream release.
zh: 您想要將一個 Debian 套件更新為上游的新版本。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: You wish to fix bugs of a Debian package with some patches.
zh: 您想要新增某些補丁來修復某個 Debian 套件中的缺陷。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: What you should know before getting involved with Debian as a prospective maintainer.
zh: 作為未來潛在的維護者，您在參與 Debian 工作之前應該瞭解的東西。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: What it looks like to make a simple Debian package.
zh: 製作一個簡單的 Debian 套件大概流程如何。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: What kind of rules exist for making the Debian package.
zh: 製作 Debian 套件時有哪些規則。

note: type: Content of: <book><chapter><caution><simpara>
en: It takes many hours to properly create and maintain Debian packages. The Debian maintainer must be <emphasis role="strong">both technically competent and diligent</emphasis> to take up this challenge.
zh: 合適地建立並維護 Debian 套件需要佔用許多時間。Debian 維護者在接受這項挑戰時一定要確保 <emphasis role="strong">既能精通技術又能勤勉投入精力</emphasis>。

note: type: Content of: <book><chapter><title>
en: Overview
zh: 概覽

note: type: Content of: <book><chapter><simpara>
en: If manual adjustments of generated configuration files are skipped, the generated binary package lacks meaningful package description but still functions well under the <emphasis role="strong">dpkg</emphasis> command to be used for your local deployment.
zh: 如果跳過了對生成的配置檔案的手工調整流程，則最終生成的二進位制套件將缺少有意義的套件描述資訊，但是仍然能為 <emphasis role="strong">dpkg</emphasis> 命令所使用，在本地部署環境下正常工作。

note: type: Content of: <book><chapter><simpara>
en: The <emphasis role="strong">debmake</emphasis> command is designed with the following features:
zh: <emphasis role="strong">debmake</emphasis> 命令設計提供如下特性與功能：

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: modern packaging style
zh: 現代的打包風格

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: flexibility
zh: 靈活性

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: sane default actions
zh: 合理的預設行為

note: type: Content of: <book><chapter><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: execute non-stop with clean results
zh: 執行過程不中斷，輸出乾淨的結果

note: type: Content of: <book><chapter><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: generate the multiarch package, unless the <emphasis role="strong">-m</emphasis> option is explicitly specified.
zh: 生成多架構支援（multiarch）的套件，除非明確指定了 <emphasis role="strong">-m</emphasis> 選項。

note: type: Content of: <book><chapter><tip><simpara>
en: The non-native Debian package is the normal Debian package.
zh: 非原生套件是標準的 Debian 套件。

note: type: Content of: <book><chapter><tip><simpara>
en: The detailed log of all the package build examples in this document can be obtained by following the instructions in <quote><xref linkend="details"/></quote>.
zh: 本文件中所有套件構建範例的詳細日誌可以由 <quote><xref linkend="details"/></quote> 一段給出的操作來取得。

note: type: Content of: <book><chapter><title>
en: Prerequisites
zh: 預備知識

note: type: Content of: <book><chapter><section><title>
en: People around Debian
zh: Debian 社群的工作者

note: type: Content of: <book><chapter><section><simpara>
en: There are several types of people interacting around Debian with different roles:
zh: 在 Debian 社群中有這幾類常見的角色：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">upstream author</emphasis>: the person who made the original program.
zh: <emphasis role="strong">上游作者（upstream author）</emphasis>：程式的原始作者。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">upstream maintainer</emphasis>: the person who currently maintains the program.
zh: <emphasis role="strong">上游維護者（upstream maintainer）</emphasis>：目前在上游維護程式程式碼的人。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">maintainer</emphasis>: the person making the Debian package of the program.
zh: <emphasis role="strong">套件維護者（maintainer）</emphasis>：製作並維護該程式 Debian 套件的人。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">sponsor</emphasis>: a person who helps maintainers to upload packages to the official Debian package archive (after checking their contents).
zh: <emphasis role="strong">贊助者（sponsor）</emphasis>：幫助維護者上傳套件到 Debian 官方倉庫的人（在通過內容檢查之後）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">mentor</emphasis>: a person who helps novice maintainers with packaging etc.
zh: <emphasis role="strong">導師（mentor）</emphasis>：幫助新手維護者熟悉和深入打包的人。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">Debian Developer</emphasis> (DD): a member of the Debian project with full upload rights to the official Debian package archive.
zh: <emphasis role="strong">Debian 開發者</emphasis>（DD, Debian Developer）：Debian 社群的官方成員。DD 擁有對 Debian 官方倉庫上傳的全部許可權。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">Debian Maintainer</emphasis> (DM): a person with limited upload rights to the official Debian package archive.
zh: <emphasis role="strong">Debian 維護者</emphasis>（Debian Maintainer, DM）：擁有對 Debian 官方倉庫部分上傳許可權的人。

note: type: Content of: <book><chapter><section><title>
en: How to contribute
zh: 如何做出貢獻

note: type: Content of: <book><chapter><section><simpara>
en: Please refer to the following to learn how to contribute to Debian:
zh: 請參考下列文件來了解應當如何為 Debian 作出貢獻：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/intro/help">How can you help Debian?</link></quote> (official)
zh: <quote><link xl:href="https://www.debian.org/intro/help">您如何協助 Debian？</link></quote>（官方）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/HelpDebian">Debian Wiki, HelpDebian</link></quote> (supplemental)
zh: <quote><link xl:href="https://wiki.debian.org/HelpDebian">Debian Wiki, HelpDebian</link></quote>（補充內容）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://nm.debian.org/">Debian New Member site</link></quote> (official)
zh: <quote><link xl:href="https://nm.debian.org/">Debian 新成員站點</link></quote>（官方）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/DebianMentorsFaq">Debian Mentors FAQ</link></quote> (supplemental)
zh: <quote><link xl:href="https://wiki.debian.org/DebianMentorsFaq">Debian Mentors FAQ</link></quote>（補充內容）

note: type: Content of: <book><chapter><section><title>
en: Social dynamics of Debian
zh: Debian 的社會驅動力

note: type: Content of: <book><chapter><section><simpara>
en: Please understand Debian’s social dynamics to prepare yourself for interactions with Debian:
zh: 為做好準備和 Debian 進行互動，請理解 Debian 的社會動力學：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Friendly cooperation is the driving force.
zh: 友好的合作是我們前行的動力。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Your contribution should not over-strain others.
zh: 您的貢獻不應致使他人增加負擔。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Your contribution is valuable only when others appreciate it.
zh: 只有當別人欣賞和感激您的貢獻時，它才有真正的價值。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian is constantly improving.
zh: Debian 一直在不斷進步。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: You are expected to make high quality packages.
zh: Debian 期望您製作出高質量的套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: You should adapt yourself to change.
zh: 您應該隨時調整自己來適應變化。

note: type: Content of: <book><chapter><section><simpara>
en: Since we focus only on the technical aspects of the packaging in the rest of this guide, please refer to the following to understand the social dynamics of Debian:
zh: 在這篇指南之後的部分中，我們只關注打包的技術方面。因此，請參考下面的文件來理解 Debian 的社會動力學：

note: type: Content of: <book><chapter><section><title>
en: Technical reminders
zh: 技術提醒

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Make your package easy to debug.
zh: 讓您的套件容易除錯（debug）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Keep your package simple.
zh: 保持您的套件簡單易懂。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Don’t over-engineer your package.
zh: 不要對套件過度設計。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Keep your package well-documented.
zh: 讓您的套件擁有良好的文件記錄。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Use readable code style.
zh: 使用可讀的程式碼風格。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Make comments in code.
zh: 在程式碼中寫註釋。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Format code consistently.
zh: 格式化程式碼使其風格一致。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara><footnote><simpara>
en: The overwhelming number of Debian maintainers use <emphasis role="strong">git</emphasis> over other VCS systems such as <emphasis role="strong">hg</emphasis>, <emphasis role="strong">bzr</emphasis>, etc.
zh: 絕大多數 Debian 維護者使用 <emphasis role="strong">git</emphasis> 而非其它版本控制系統，如 <emphasis role="strong">hg</emphasis>、<emphasis role="strong">bzr</emphasis> 等等。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Maintain the git repository <placeholder type="footnote" id="0"/> of the package.
zh: 維護套件的 git 倉庫 <placeholder type="footnote" id="0"/>。

note: type: Content of: <book><chapter><section><note><simpara>
en: Debugging of software tends to consume more time than writing the initial working software.
zh: 對軟體進行除錯（debug）通常會比編寫初始可用的軟體花費更多的時間。

note: type: Content of: <book><chapter><section><title>
en: Debian documentation
zh: Debian 文件

note: type: Content of: <book><chapter><section><simpara>
en: If this guide contradicts the official Debian documentation, the official Debian documentation is correct. Please file a bug report on the <emphasis role="strong">debmake-doc</emphasis> package using the <emphasis role="strong">reportbug</emphasis> command.
zh: 如果本指南文件的內容與官方的 Debian 文件有所衝突，那麼官方的那些總是對的。請使用 <emphasis role="strong">reportbug</emphasis> 工具對 <emphasis role="strong">debmake-doc</emphasis> 套件報告問題。

note: type: Content of: <book><chapter><section><simpara>
en: Here are alternative tutorial documents, which you may read along with this guide:
zh: 這裡有一些替代性的教材文件，您可以與本指南一起閱讀進行參考：

note: type: Content of: <book><chapter><section><title>
en: Help resources
zh: 幫助資源

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: package information available through the <emphasis role="strong">aptitude</emphasis>, <emphasis role="strong">apt-cache</emphasis>, and <emphasis role="strong">dpkg</emphasis> commands.
zh: 套件的資訊可以使用 <emphasis role="strong">aptitude</emphasis>、<emphasis role="strong">apt-cache</emphasis> 以及 <emphasis role="strong">dpkg</emphasis> 命令進行檢視。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: files in <emphasis role="strong">/usr/share/doc/</emphasis><emphasis>package</emphasis> for all pertinent packages.
zh: 所有相關套件在 <emphasis role="strong">/usr/share/doc/</emphasis><emphasis>套件名</emphasis> 目錄下的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: contents of <emphasis role="strong">man</emphasis> <emphasis>command</emphasis> for all pertinent commands.
zh: 所有相關命令在 <emphasis role="strong">man</emphasis> <emphasis>命令</emphasis> 下輸出的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: contents of <emphasis role="strong">info</emphasis> <emphasis>command</emphasis> for all pertinent commands.
zh: 所有相關命令在 <emphasis role="strong">info</emphasis> <emphasis>命令</emphasis> 下輸出的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: contents of <quote><link xl:href="https://lists.debian.org/debian-mentors/">debian-mentors@lists.debian.org mailing list archive</link></quote>.
zh: <quote><link xl:href="https://lists.debian.org/debian-mentors/">debian-mentors@lists.debian.org 郵件列表存檔</link></quote> 的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: contents of <quote><link xl:href="https://lists.debian.org/debian-devel/">debian-devel@lists.debian.org mailing list archive</link></quote>.
zh: <quote><link xl:href="https://lists.debian.org/debian-devel/">debian-devel@lists.debian.org 郵件列表存檔</link></quote> 的內容。

note: type: Content of: <book><chapter><section><simpara>
en: If you still have questions about the packaging, you can ask them interactively:
zh: 如果您對打包仍然存在疑問，您可以使用以下方式與他人進行溝通：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Language-specific mailing lists.
zh: 特定語言的郵件列表。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://lists.debian.org/debian-chinese-gb/">debian-chinese-gb@lists.debian.org</link></quote> (This mailing list is for general (Simplified) Chinese discussion.)
zh: <quote><link xl:href="https://lists.debian.org/debian-chinese-gb/">debian-chinese-gb@lists.debian.org</link></quote>（該郵件列表用於一般的（簡體）中文討論。）

note: type: Content of: <book><chapter><section><title>
en: Archive situation
zh: 倉庫狀況

note: type: Content of: <book><chapter><section><simpara>
en: Please realize the situation of the Debian archive.
zh: 請了解 Debian 倉庫的當前狀況。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian already has packages for most kinds of programs.
zh: Debian 已經包含了絕大多數種類程式的套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The number of packages already in the Debian archive is several tens of times greater than that of active maintainers.
zh: Debian 倉庫內套件的數量是活躍維護者的數十倍。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Unfortunately, some packages lack an appropriate level of attention by the maintainer.
zh: 遺憾的是，某些套件缺乏維護者的足夠關注。

note: type: Content of: <book><chapter><section><simpara>
en: Thus, contributions to packages already in the archive are far more appreciated (and more likely to receive sponsorship for uploading) by other maintainers.
zh: 因此，對已經存在於倉庫內的套件做出貢獻是十分歡迎的（這也更有可能得到其他維護者的支援和協助上傳）。

note: type: Content of: <book><chapter><section><title>
en: Contribution approaches
zh: 貢獻流程

note: type: Content of: <book><chapter><section><simpara>
en: Here is pseudo-Python code for your contribution approaches to Debian with a <emphasis role="strong">program</emphasis>:
zh: 這裡使用類 Python 虛擬碼，給出了對 Debian 貢獻名為 <emphasis role="strong">program</emphasis> 的軟體所走的貢獻流程：

note: type: Content of: <book><chapter><section><simpara>
en: Here:
zh: 其中：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: For exist_in_debian(), and is_team_maintained(); check:
zh: 對 exist_in_debian() 和 is_team_maintained()，需檢查：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: the <emphasis role="strong">aptitude</emphasis> command
zh: <emphasis role="strong">aptitude</emphasis> 命令

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/distrib/packages">Debian packages</link></quote> web page
zh: <quote><link xl:href="https://www.debian.org/distrib/packages">Debian 套件</link></quote> 網頁

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: For is_orphaned(), is_RFA(), and is_ITPed_by_others(); check:
zh: 對 is_orphaned()、is_RFA() 和 is_ITPed_by_others()，需檢查：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The output of the <emphasis role="strong">wnpp-alert</emphasis> command.
zh: <emphasis role="strong">wnpp-alert</emphasis> 命令的輸出。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/devel/wnpp/">Work-Needing and Prospective Packages</link></quote>
zh: <quote><link xl:href="https://www.debian.org/devel/wnpp/">需要投入精力和未來的套件（WNPP）</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=wnpp;dist=unstable">Debian Bug report logs: Bugs in pseudo-package wnpp in unstable</link></quote>
zh: <quote><link xl:href="https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=wnpp;dist=unstable">Debian 缺陷報告記錄：在 unstable 版本中 wnpp 偽套件的缺陷記錄</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wnpp.debian.net/">Debian Packages that Need Lovin'</link></quote>
zh: <quote><link xl:href="https://wnpp.debian.net/">需要“關愛”的 Debian 套件</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wnpp-by-tags.debian.net/">Browse wnpp bugs based on debtags</link></quote>
zh: <quote><link xl:href="https://wnpp-by-tags.debian.net/">基於 debtags 瀏覽 wnpp 缺陷記錄</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: For is_good_program(), check:
zh: 對於 is_good_program()，請檢查：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The program should be useful.
zh: 這個程式應當有用。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The program should not introduce security and maintenance concerns to the Debian system.
zh: 這個程式不應當對 Debian 系統引入安全和維護上的問題。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The program should be well documented and its code needs to be understandable (i.e. not obfuscated).
zh: 這個程式應當有良好的文件，其原始碼需要可被理解（即，未經混淆）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara><footnote><simpara>
en: This is not the absolute requirement.  The hostile upstream may become a major resource drain for us all.  The friendly upstream can be consulted to solve any problems with the program.
zh: 這一條不是絕對的要求，但請注意：遇上不友好的上游可能需要大家為此投入大量精力，而一個友好的上游則能協助解決程式的各類問題。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The program’s authors agree with the packaging and are amicable to Debian. <placeholder type="footnote" id="0"/>
zh: 這個程式的作者同意軟體被打包，且對 Debian 態度友好。<placeholder type="footnote" id="0"/>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: For is_it_DFSG(), and is_its_dependency_DFSG(); check:
zh: 對 is_it_DFSG()，及 is_its_dependency_DFSG()，請檢查：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/social_contract#guidelines">Debian Free Software Guidelines</link></quote> (DFSG).
zh: <quote><link xl:href="https://www.debian.org/social_contract#guidelines">Debian 自由軟體指導方針</link></quote>（DFSG）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: For is_it_distributable(), check:
zh: 對 is_it_distributable()，請檢查：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The software must have a license and it should allow its distribution.
zh: 該軟體必須有一個許可證，其中應當允許軟體被髮行。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/doc/manuals/developers-reference/pkgs.html#newpackage">5.1. New packages</link></quote>.
zh: <quote><link xl:href="https://www.debian.org/doc/manuals/developers-reference/pkgs.html#newpackage">5.1. 新套件</link></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://www.debian.org/doc/manuals/developers-reference/pkgs.html#archive-manip">5.9. Moving, removing, renaming, orphaning, adopting, and reintroducing packages</link></quote>.
zh: <quote><link xl:href="https://www.debian.org/doc/manuals/developers-reference/pkgs.html#archive-manip">5.9. 移動、刪除、重新命名、丟棄、接手和重新引入套件</link></quote>。

note: type: Content of: <book><chapter><section><title>
en: Novice contributor and maintainer
zh: 新手貢獻者和維護者

note: type: Content of: <book><chapter><section><simpara>
en: The novice contributor and maintainer may wonder what to learn to start your contribution to Debian.  Here are my suggestions depending on your focus:
zh: 新手貢獻者和維護者可能想知道在開始對 Debian 進行貢獻之前需要事先學習哪些知識。根據您個人的側重點不同，下面有我的一些建議供您參考：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Packaging
zh: 打包

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Basics of the <emphasis role="strong">POSIX shell</emphasis> and <emphasis role="strong">make</emphasis>.
zh: <emphasis role="strong">POSIX shell</emphasis> 和 <emphasis role="strong">make</emphasis> 的基本知識。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Some rudimentary knowledge of <emphasis role="strong">Perl</emphasis> and <emphasis role="strong">Python</emphasis>.
zh: 一些 <emphasis role="strong">Perl</emphasis> 和 <emphasis role="strong">Python</emphasis> 的入門知識。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Translation
zh: 翻譯

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Basics of how the PO based translation system works.
zh: 基於 PO 的翻譯系統的工作原理和基本知識。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Documentation
zh: 文件

note: type: Content of: <book><chapter><section><simpara>
en: The novice contributor and maintainer may wonder where to start your contribution to Debian.  Here are my suggestions depending on your skills:
zh: 新手貢獻者和維護者可能想知道從哪裡開始對 Debian 進行貢獻。根據您掌握的技能，下面有我的一些建議供您參考：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">POSIX shell</emphasis>, <emphasis role="strong">Perl</emphasis>, and <emphasis role="strong">Python</emphasis> skills:
zh: <emphasis role="strong">POSIX shell</emphasis>、<emphasis role="strong">Perl</emphasis> 和 <emphasis role="strong">Python</emphasis> 的技巧：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Send patches to the Debian Installer.
zh: 對 Debian 安裝程式提交補丁。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">C</emphasis> and <emphasis role="strong">C++</emphasis> skills:
zh: <emphasis role="strong">C</emphasis> 和 <emphasis role="strong">C++</emphasis> 技能：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Send patches to the packages with the <emphasis role="strong">required</emphasis> and <emphasis role="strong">important</emphasis> priorities.
zh: 對具有 <emphasis role="strong">required</emphasis> 和 <emphasis role="strong">important</emphasis> 優先順序的套件提交補丁。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Non-English skills:
zh: 英語之外的技能：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Send patches to the PO file of the Debian Installer.
zh: 對 Debian 安裝程式專案提交補丁。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Send patches to the PO file of the packages with the <emphasis role="strong">required</emphasis> and <emphasis role="strong">important</emphasis> priorities.
zh: 為具有 <emphasis role="strong">required</emphasis> 和 <emphasis role="strong">important</emphasis> 優先順序的套件中的 PO 檔案提交補丁。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Documentation skills:
zh: 文件技能：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Update contents on <quote><link xl:href="https://wiki.debian.org/">Debian Wiki</link></quote>.
zh: 更新 <quote><link xl:href="https://wiki.debian.org/">Debian 維基（Wiki）</link></quote> 中的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Send patches to the existing <quote><link xl:href="https://www.debian.org/doc/">Debian Documentation</link></quote>.
zh: 對已有的 <quote><link xl:href="https://www.debian.org/doc/">Debian 文件</link></quote> 提交補丁。

note: type: Content of: <book><chapter><section><simpara>
en: These activities should give you good exposure to the other Debian people to establish your credibility.
zh: 這些活動應當能讓您在各位 Debian 社群成員之間得到存在感，從而建立您的信譽與名聲。

note: type: Content of: <book><chapter><section><simpara>
en: The novice maintainer should avoid packaging programs with the high security exposure:
zh: 新手維護者應當避免打包具有潛在高度安全隱患的程式：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">setuid</emphasis> or <emphasis role="strong">setgid</emphasis> program
zh: <emphasis role="strong">setuid</emphasis> 或 <emphasis role="strong">setgid</emphasis> 程式

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">daemon</emphasis> program
zh: <emphasis role="strong">背景服務程序（daemon）</emphasis>程式

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: program installed in the <emphasis role="strong">/sbin/</emphasis> or <emphasis role="strong">/usr/sbin/</emphasis> directories
zh: 安裝至 <emphasis role="strong">/sbin/</emphasis> 或 <emphasis role="strong">/usr/sbin/</emphasis> 目錄的程式

note: type: Content of: <book><chapter><section><simpara>
en: When you gain more experience in packaging, you’ll be able to package such programs.
zh: 在積累足夠的打包經驗後，您可以再嘗試打包這樣的程式。

note: type: Content of: <book><chapter><title>
en: Tool Setups
zh: 工具的配置

note: type: Content of: <book><chapter><simpara>
en: The <emphasis role="strong">build-essential</emphasis> package must be installed in the build environment.
zh: <emphasis role="strong">build-essential</emphasis> 套件必須在構建環境內預先安裝。

note: type: Content of: <book><chapter><caution><simpara>
en: Tool setups presented here are only meant as an example and may not be up-to-date with the latest packages on the system.  Debian development is a moving target.  Please make sure to read the pertinent documentation and update the configuration as needed.
zh: 這裡展示的工具配置方式僅作為範例提供，可能與系統上最新的套件相比有所落後。Debian 的開發具有一個移動的目標。請確保閱讀合適的文件並按照需要更新配置內容。

note: type: Content of: <book><chapter><section><simpara>
en: Various Debian maintenance tools recognize your email address and name to use by the shell environment variables <emphasis role="strong">$DEBEMAIL</emphasis> and <emphasis role="strong">$DEBFULLNAME</emphasis>.
zh: 許多 Debian 維護工具識別並使用 shell 環境變數 <emphasis role="strong">$DEBEMAIL</emphasis> 和 <emphasis role="strong">$DEBFULLNAME</emphasis> 作為作為您的電子郵件地址和名稱。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Add to the <emphasis role="strong">~/.bashrc</emphasis> file
zh: 新增至 <emphasis role="strong">~/.bashrc</emphasis> 檔案

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">mc</emphasis> command offers very easy ways to manage files.  It can open the binary <emphasis role="strong">deb</emphasis> file to check its content by pressing the Enter key over the binary <emphasis role="strong">deb</emphasis> file.  It uses the <emphasis role="strong">dpkg-deb</emphasis> command as its back-end.  Let’s set it up to support easy <emphasis role="strong">chdir</emphasis> as follows.
zh: <emphasis role="strong">mc</emphasis> 命令提供了管理檔案的簡單途徑。它可以開啟二進位制 <emphasis role="strong">deb</emphasis> 檔案，並僅需對二進位制 <emphasis role="strong">deb</emphasis> 檔案按下回車鍵便能檢查其內容。它呼叫了 <emphasis role="strong">dpkg-deb</emphasis> 命令作為其後端。我們可以按照下列方式對其配置，以支援簡易 <emphasis role="strong">chdir</emphasis> 操作。

note: type: Content of: <book><chapter><section><simpara>
en: Nowadays, the <emphasis role="strong">git</emphasis> command is the essential tool to manage the source tree with history.
zh: 如今 <emphasis role="strong">git</emphasis> 命令已成為管理帶歷史的原始碼樹的必要工具。

note: type: Content of: <book><chapter><section><simpara>
en: The global user configuration for the <emphasis role="strong">git</emphasis> command such as your name and email address can be set in <emphasis role="strong">~/.gitconfig</emphasis> as follows.
zh: <emphasis role="strong">git</emphasis> 命令的使用者級全域性配置，如您的名字和電子郵件地址，儲存在 <emphasis role="strong">~/.gitconfig</emphasis> 檔案中，且可以使用如下方式配置。

note: type: Content of: <book><chapter><section><simpara>
en: If you are too accustomed to the CVS or Subversion commands, you may wish to set several command aliases as follows.
zh: 如果您仍然只習慣 CVS 或者 Subversion 的命令風格，您可以使用如下方式設定幾個命令別名。

note: type: Content of: <book><chapter><section><simpara>
en: You can check your global configuration as follows.
zh: 您可以使用如下命令檢查全域性配置。

note: type: Content of: <book><chapter><section><tip><simpara>
en: It is essential to use some GUI git tools like <emphasis role="strong">gitk</emphasis> or <emphasis role="strong">gitg</emphasis> to work effectively with the history of the git repository.
zh: 有必要使用某些圖形介面 git 工具，例如 <emphasis role="strong">gitk</emphasis> 或 <emphasis role="strong">gitg</emphasis> 命令來有效地處理 git 倉庫的歷史。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">quilt</emphasis> command offers a basic method for recording modifications. For the Debian packaging, it should be customized to record modifications in the <emphasis role="strong">debian/patches/</emphasis> directory instead of its default <emphasis role="strong">patches/</emphasis> directory.
zh: <emphasis role="strong">quilt</emphasis> 命令提供了記錄修改的一個基本方式。對 Debian 打包來說，該工具需要進行設定，從而在 <emphasis role="strong">debian/patches/</emphasis> 目錄內記錄修改內容，而非使用預設的 <emphasis role="strong">patches/</emphasis> 目錄。

note: type: Content of: <book><chapter><section><simpara>
en: In order to avoid changing the behavior of the <emphasis role="strong">quilt</emphasis> command itself, let’s create an alias <emphasis role="strong">dquilt</emphasis> for the Debian packaging by adding the following lines to the <emphasis role="strong">~/.bashrc</emphasis> file. The second line provides the same shell completion feature of the <emphasis role="strong">quilt</emphasis> command to the <emphasis role="strong">dquilt</emphasis> command.
zh: 為了避免改變 <emphasis role="strong">quilt</emphasis> 命令自身的行為，我們在這裡建立一個用於 Debian 打包工作的命令別名：<emphasis role="strong">dquilt</emphasis>。之後，我們將對應內容寫入 <emphasis role="strong">~/.bashrc</emphasis> 檔案。下面給出的第二行為 <emphasis role="strong">dquilt</emphasis> 命令提供與 <emphasis role="strong">quilt</emphasis> 命令相同的命令行補全功能。

note: type: Content of: <book><chapter><section><simpara>
en: Then let’s create <emphasis role="strong">~/.quiltrc-dpkg</emphasis> as follows.
zh: 然後我們來建立具有如下內容的 <emphasis role="strong">~/.quiltrc-dpkg</emphasis> 檔案。

note: type: Content of: <book><chapter><section><simpara>
en: See <quote><xref linkend="alt-patch"/></quote> for example usages.
zh: 要取得使用範例，請檢視 <quote><xref linkend="alt-patch"/></quote>。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debuild</emphasis> command, included in the <emphasis role="strong">devscripts</emphasis> package, builds the binary package and checks it with the <emphasis role="strong">lintian</emphasis> command.  It is useful to have verbose outputs from the <emphasis role="strong">lintian</emphasis> command.
zh: <emphasis role="strong">debuild</emphasis> 命令同樣由 <emphasis role="strong">devscripts</emphasis> 套件提供，它可以構建二進位制套件並使用 <emphasis role="strong">lintian</emphasis> 命令對其進行檢查。<emphasis role="strong">lintian</emphasis> 命令的詳細輸出通常都很實用。

note: type: Content of: <book><chapter><section><simpara>
en: You can set these up in <emphasis role="strong">~/.devscripts</emphasis> as follows.
zh: 您可以將下列內容寫入 <emphasis role="strong">~/.devscripts</emphasis> 檔案來進行配置。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">lintian</emphasis> package to find bugs in the package.
zh: <emphasis role="strong">lintian</emphasis> 套件能找到所構建套件中的缺陷。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">ccache</emphasis> package to boost the <emphasis role="strong">gcc</emphasis> speed. (optional)
zh: <emphasis role="strong">ccache</emphasis> 套件可以加速 <emphasis role="strong">gcc</emphasis>。（可選）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">libeatmydata1</emphasis> package to boost the <emphasis role="strong">dpkg</emphasis> speed. (optional)
zh: <emphasis role="strong">libeatmydata1</emphasis> 套件可以加速 <emphasis role="strong">dpkg</emphasis>。（可選）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The parallel <emphasis role="strong">make</emphasis> to boost the build speed. (optional)
zh: 並行執行 <emphasis role="strong">make</emphasis> 以提高構建速度。（可選）

note: type: Content of: <book><chapter><section><warning><simpara>
en: The optional customization may cause negative effects.  In case of doubts, disable them.
zh: 可選的設定項可能造成負面影響。如果有疑問，請關閉它們。

note: type: Content of: <book><chapter><section><note><simpara>
en: The parallel <emphasis role="strong">make</emphasis> may fail for some existing packages and may make the build log difficult to read.
zh: 並行的 <emphasis role="strong">make</emphasis> 可能在某些已有套件上執行失敗，它同樣會使得構建日誌難以閱讀。

note: type: Content of: <book><chapter><section><title>
en: HTTP proxy
zh: HTTP 代理

note: type: Content of: <book><chapter><section><simpara>
en: You should set up a local HTTP caching proxy to save the bandwidth for the Debian package repository access.  There are several choices:
zh: 您應當在本地設定 HTTP 快取代理以節約查詢 Debian 軟體倉庫的頻寬。可以考慮以下幾種選項：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Specialized HTTP caching proxy using the <emphasis role="strong">apt-cacher-ng</emphasis> package.
zh: 特化的 HTTP 快取代理，使用 <emphasis role="strong">apt-cacher-ng</emphasis> 套件。

note: type: Content of: <book><chapter><section><title>
en: Private Debian repository
zh: 私有 Debian 倉庫

note: type: Content of: <book><chapter><section><simpara>
en: You can set up a private Debian package repository with the <emphasis role="strong">reprepro</emphasis> package.
zh: 您可以使用 <emphasis role="strong">reprepro</emphasis> 套件搭建私有 Debian 倉庫。

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a simple C source using the <emphasis role="strong">Makefile</emphasis> as its build system.
zh: 這裡給出了從簡單的 C 語言原始碼建立簡單的 Debian 套件的例子，並假設上游使用了 <emphasis role="strong">Makefile</emphasis> 作為構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: This type of source is meant to be installed as a non-system file as:
zh: 這一類原始碼設計可以用這樣的方式安裝成為非系統檔案：

note: type: Content of: <book><chapter><section><note><simpara>
en: Examples of creating a Debian package from other complicated build systems are described in <quote><xref linkend="more"/></quote>.
zh: 在其它更加複雜的構建系統下構建 Debian 套件的例子可以在 <quote><xref linkend="more"/></quote> 找到。

note: type: Content of: <book><chapter><section><title>
en: Big picture
zh: 大致流程

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debmake</emphasis> command debianizes the upstream source tree by adding template files only in the <emphasis role="strong">debian</emphasis> directory.
zh: <emphasis role="strong">debmake</emphasis> 命令對上游原始碼樹進行 debian 化（debianize），具體來說，是建立一個 <emphasis role="strong">debian</emphasis> 目錄並僅向該目錄中新增各類模板檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The maintainer customizes template files.
zh: 維護者須自行編輯修改模板檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debuild</emphasis> command builds the binary package from the debianized source tree.
zh: <emphasis role="strong">debuild</emphasis> 命令基於已 debian 化的原始碼樹構建二進位制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">debhello-0.0-1.debian.tar.xz</emphasis> is created containing the <emphasis role="strong">debian</emphasis> directory.
zh: <emphasis role="strong">debhello-0.0-1.debian.tar.xz</emphasis> 將被建立，它包含了 <emphasis role="strong">debian</emphasis> 目錄。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Big picture of package building
zh: 套件構建的大致流程

note: type: Content of: <book><chapter><section><title>
en: What is debmake?
zh: 什麼是 debmake？

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: It always sets most of the obvious option states and values to reasonable defaults.
zh: 它總是將大多數選項的狀態與引數設定為合理的預設值。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: It generates the upstream tarball and its required symlink if they are missing.
zh: 它能產生上游原始碼套件，並按需建立所需的符號連結。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: It doesn’t overwrite the existing configuration files in the <emphasis role="strong">debian/</emphasis> directory.
zh: 它不會覆寫 <emphasis role="strong">debian/</emphasis> 目錄下已存在的配置文件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: It supports the <emphasis role="strong">multiarch</emphasis> package.
zh: 它支援多架構（<emphasis role="strong">multiarch</emphasis>）套件。

note: type: Content of: <book><chapter><section><simpara>
en: These features make Debian packaging with <emphasis role="strong">debmake</emphasis> simple and modern.
zh: 這些特性使得使用 <emphasis role="strong">debmake</emphasis> 進行 Debian 打包工作變得簡單而現代化。

note: type: Content of: <book><chapter><section><title>
en: What is debuild?
zh: 什麼是 debuild？

note: type: Content of: <book><chapter><section><simpara>
en: Here is a summary of commands similar to the <emphasis role="strong">debuild</emphasis> command.
zh: 這裡給出與 <emphasis role="strong">debuild</emphasis> 命令類似的一系列命令的一個彙總。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debian/rules</emphasis> file defines how the Debian binary package is built.
zh: <emphasis role="strong">debian/rules</emphasis> 檔案定義了 Debian 二進位制套件該如何構建。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">dpkg-buildpackage</emphasis> command is the official command to build the Debian binary package.  For normal binary build, it executes roughly:
zh: <emphasis role="strong">dpkg-buildpackge</emphasis> 是構建 Debian 二進位制套件的正式命令。對於正常的二進位制構建，它大體上會執行以下操作：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: If you followed <quote><xref linkend="devscripts-setup"/></quote> to set the <emphasis role="strong">-us</emphasis> and <emphasis role="strong">-uc</emphasis> options, this step is skipped and you must run the <emphasis role="strong">debsign</emphasis> command manually.
zh: 如果您按照 <quote><xref linkend="devscripts-setup"/></quote> 的說明設定了 <emphasis role="strong">-us</emphasis> 和 <emphasis role="strong">-us</emphasis> 選項的話，本步驟將會被跳過。您需要手動執行 <emphasis role="strong">debsign</emphasis> 命令。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debuild</emphasis> command is a wrapper script of the <emphasis role="strong">dpkg-buildpackage</emphasis> command to build the Debian binary package under the proper environment variables.
zh: <emphasis role="strong">debuild</emphasis> 命令是 <emphasis role="strong">dpkg-buildpackage</emphasis> 命令的一個封裝指令碼，它可以使用合適的環境變數來構建 Debian 二進位制套件。

note: type: Content of: <book><chapter><section><note><simpara>
en: See <emphasis role="strong">dpkg-buildpackage</emphasis>(1) for exact details.
zh: 如需瞭解詳細內容，請見 <emphasis role="strong">dpkg-buildpackage</emphasis>(1)。

note: type: Content of: <book><chapter><section><title>
en: Step 1: Get the upstream source
zh: 第一步：取得上游原始碼

note: type: Content of: <book><chapter><section><simpara>
en: Let’s get the upstream source.
zh: 我們先要取得上游原始碼。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the C source <emphasis role="strong">hello.c</emphasis> is a very simple one.
zh: 這裡的 C 原始碼 <emphasis role="strong">hello.c</emphasis> 非常的簡單。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the <emphasis role="strong">Makefile</emphasis> supports <quote><link xl:href="https://www.gnu.org/prep/standards/">GNU Coding Standards</link></quote> and <quote><link xl:href="https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard">FHS</link></quote>. Notably:
zh: 這裡，原始碼中的 <emphasis role="strong">Makefile</emphasis> 支援 <quote><link xl:href="https://www.gnu.org/prep/standards/">GNU 編碼標準</link></quote> 和 <quote><link xl:href="https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard">FHS（檔案系統層級規範）</link></quote>。特別地：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: build binaries honoring <emphasis role="strong">$(CPPFLAGS)</emphasis>, <emphasis role="strong">$(CFLAGS)</emphasis>, <emphasis role="strong">$(LDFLAGS)</emphasis>, etc.
zh: 構建二進位制程式時會考慮 <emphasis role="strong">$(CPPFLAGS)</emphasis>、<emphasis role="strong">$(CFLAGS)</emphasis>、<emphasis role="strong">$(LDFLAGS)</emphasis>，等等。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: install files with <emphasis role="strong">$(DESTDIR)</emphasis> defined to the target system image
zh: 安裝檔案時採納 <emphasis role="strong">$(DESTDIR)</emphasis> 作為目標系統鏡像的路徑字首

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: install files with <emphasis role="strong">$(prefix)</emphasis> defined, which can be overridden to be <emphasis role="strong">/usr</emphasis>
zh: 安裝檔案時使用 <emphasis role="strong">$(prefix)</emphasis> 的值，以便我們將其設定覆蓋為 <emphasis role="strong">/usr</emphasis>

note: type: Content of: <book><chapter><section><note><simpara>
en: The <emphasis role="strong">echo</emphasis> of the <emphasis role="strong">$(CFLAGS)</emphasis> variable is used to verify the proper setting of the build flag in the following example.
zh: 對 <emphasis role="strong">$(CFLAGS)</emphasis> 的 <emphasis role="strong">echo</emphasis> 命令用於在接下來的例子中驗證所設定的構建引數。

note: type: Content of: <book><chapter><section><simpara>
en: The output from the <emphasis role="strong">debmake</emphasis> command is very verbose and explains what it does as follows.
zh: <emphasis role="strong">debmake</emphasis> 命令的輸出十分詳細，如下所示，它可以展示程式的具體操作內容。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debmake</emphasis> command generates all these template files based on command line options.  Since no options are specified, the <emphasis role="strong">debmake</emphasis> command chooses reasonable default values for you:
zh: <emphasis role="strong">debmake</emphasis> 命令基於命令列選項產生所有這些模板檔案。如果沒有指定具體選項，<emphasis role="strong">debmake</emphasis> 命令將為您自動選擇合理的預設值：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The source package name: <emphasis role="strong">debhello</emphasis>
zh: 原始碼套件名稱：<emphasis role="strong">debhello</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The upstream version: <emphasis role="strong">0.0</emphasis>
zh: 上游版本：<emphasis role="strong">0.0</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The binary package name: <emphasis role="strong">debhello</emphasis>
zh: 二進位制套件名稱：<emphasis role="strong">debhello</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The Debian revision: <emphasis role="strong">1</emphasis>
zh: Debian 修訂版本：<emphasis role="strong">1</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The package type: <emphasis role="strong">bin</emphasis> (the ELF binary executable package)
zh: 套件型別： <emphasis role="strong">bin</emphasis>（ELF 二進位制可執行程式套件）

note: type: Content of: <book><chapter><section><simpara>
en: Let’s inspect generated template files.
zh: 我們來檢查一下自動產生的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The source tree after the basic <emphasis role="strong">debmake</emphasis> execution.
zh: 基本 <emphasis role="strong">debmake</emphasis> 命令執行後的原始碼樹。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/rules</emphasis> file is the build script provided by the package maintainer.  Here is its template file generated by the <emphasis role="strong">debmake</emphasis> command.
zh: 這裡的 <emphasis role="strong">debian/rules</emphasis> 檔案是應當由套件維護者提供的構建指令碼。此時該檔案是由 <emphasis role="strong">debmake</emphasis> 命令產生的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案）：

note: type: Content of: <book><chapter><section><simpara>
en: This is essentially the standard <emphasis role="strong">debian/rules</emphasis> file with the <emphasis role="strong">dh</emphasis> command. (There are some commented out contents for you to customize it.)
zh: 這便是使用 <emphasis role="strong">dh</emphasis> 命令時標準的 <emphasis role="strong">debian/rules</emphasis> 檔案。（某些內容已被註釋，可供後續修改使用。）

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/control</emphasis> file provides the main meta data for the Debian package.  Here is its template file generated by the <emphasis role="strong">debmake</emphasis> command.
zh: 這裡的 <emphasis role="strong">debian/control</emphasis> 檔案提供了 Debian 套件的主要參數。此時該檔案是由 <emphasis role="strong">debmake</emphasis> 命令產生的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (template file):
zh: <emphasis role="strong">debian/control</emphasis>（模板檔案）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/copyright</emphasis> (template file):
zh: <emphasis role="strong">debian/copyright</emphasis>（模板檔案）：

note: type: Content of: <book><chapter><section><title>
en: Step 3: Modification to the template files
zh: 第三步：編輯模板檔案

note: type: Content of: <book><chapter><section><simpara>
en: Some manual modification is required to make the proper Debian package as a maintainer.
zh: 作為維護者，要製作一個合適的 Debian 套件當然需要對模板內容進行一些手工的調整。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本）：

note: type: Content of: <book><chapter><section><simpara>
en: Exporting the <emphasis role="strong">DH_VERBOSE</emphasis> environment variable in the <emphasis role="strong">debian/rules</emphasis> file as above forces the <emphasis role="strong">debhelper</emphasis> tool to make a fine grained build report.
zh: 如上在 <emphasis role="strong">debian/rules</emphasis> 檔案中匯出=<emphasis role="strong">DH_VERBOSE</emphasis> 環境變數可以強制 <emphasis role="strong">debhelper</emphasis> 工具輸出細粒度的構建報告。

note: type: Content of: <book><chapter><section><simpara>
en: Exporting <emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis> as above forces the C compiler to emit all the warnings.
zh: 如上匯出 <emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis> 可以強制 C 編譯器給出所有型別的警告內容。

note: type: Content of: <book><chapter><section><simpara><footnote><simpara>
en: This is a cliché to prevent overlinking for the complex library dependency case such as Gnome programs.  This is not really needed for this simple example but should be harmless.
zh: 這裡的做法是為了避免在依賴程式庫情況複雜的情況下過度連結，例如某些 GNOME 程式。這樣做對這裡的簡單例子來說並不是必要的，但應當是無害的。

note: type: Content of: <book><chapter><section><simpara>
en: Exporting <emphasis role="strong">DEB_LDFLAGS_MAINT_APPEND</emphasis> as above forces the linker to link only when the library is actually needed.  <placeholder type="footnote" id="0"/>
zh: 如上匯出 <emphasis role="strong">DEB_LDFLAGS_MAINT_APPEND</emphasis> 可以強制連結器只對真正需要的程式庫進行連結。<placeholder type="footnote" id="0"/>

note: type: Content of: <book><chapter><section><simpara>
en: Here are the maintainer versions of the <emphasis role="strong">debian/control</emphasis> and <emphasis role="strong">debian/copyright</emphasis> files.
zh: 這裡是維護者版本的 <emphasis role="strong">debian/control</emphasis> 和 <emphasis role="strong">debian/copyright</emphasis> 檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/copyright</emphasis> (maintainer version):
zh: <emphasis role="strong">debian/copyright</emphasis>（維護者版本）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=0.0):
zh: <emphasis role="strong">debian/</emphasis>. 下面的模板檔案（0.0 版）：

note: type: Content of: <book><chapter><section><simpara>
en: You can create a non-native Debian package using the <emphasis role="strong">debuild</emphasis> command or its equivalents (see <quote><xref linkend="what-debuild"/></quote>) in this source tree.  The command output is very verbose and explains what it does as follows.
zh: 您可以使用 <emphasis role="strong">debuild</emphasis> 或者等效的命令工具（參見 <quote><xref linkend="what-debuild"/></quote>）在這個原始碼樹內構建一個非原生 Debian 套件。命令的輸出通常十分詳細，如下所示，它會對構建中執行的操作進行解釋。

note: type: Content of: <book><chapter><section><simpara>
en: You can verify that <emphasis role="strong">CFLAGS</emphasis> is updated properly with <emphasis role="strong">-Wall</emphasis> and <emphasis role="strong">-pedantic</emphasis> by the <emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis> variable.
zh: 這裡驗證了 <emphasis role="strong">CFLAGS</emphasis> 已經得到了更新，新增了 <emphasis role="strong">-Wall</emphasis> 和 <emphasis role="strong">-pendatic</emphasis> 引數；這是我們先前在 <emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis> 變數中所指定的。

note: type: Content of: <book><chapter><section><simpara>
en: The manpage should be added to the package as reported by the <emphasis role="strong">lintian</emphasis> package, as shown in later examples (see <quote><xref linkend="more"/></quote>).  Let’s move on for now.
zh: 根據 <emphasis role="strong">lintian</emphasis> 的報告，您應該如同後文中的例子那樣（請見 <quote><xref linkend="more"/></quote>）為套件新增 man 手冊頁。我們這裡暫且跳過這部分內容。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s inspect the result.
zh: 現在我們來看看成果如何。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated files of <emphasis role="strong">debhello</emphasis> version <emphasis role="strong">0.0</emphasis> by the <emphasis role="strong">debuild</emphasis> command:
zh: <emphasis role="strong">debhello</emphasis> <emphasis role="strong">0.0</emphasis> 版使用 <emphasis role="strong">debuild</emphasis> 命令產生的文件：

note: type: Content of: <book><chapter><section><simpara>
en: You see all the generated files.
zh: 您可以看見生成的全部檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis> contains the maintainer generated contents.
zh: <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis> 包含了維護者生成的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1.dsc</emphasis> is the meta data file for the Debian source package.
zh: <emphasis role="strong">debhello_0.0-1.dsc</emphasis> 是 Debian 原始碼套件的元資料檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1_amd64.deb</emphasis> is the Debian binary package.
zh: <emphasis role="strong">debhello_0.0-1_amd64.deb</emphasis> 是 Debian 二進制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello-dbgsym_0.0-1_amd64.deb</emphasis> is the Debian debug symbol binary package. See <quote><xref linkend="dbgsym"/></quote>.
zh: <emphasis role="strong">debhello-dbgsym_0.0-1_amd64.deb</emphasis> 是 Debian 的除錯符號二進位制套件。另請參見 <quote><xref linkend="dbgsym"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1_amd64.build</emphasis> file is the build log file.
zh: <emphasis role="strong">debhello_0.0-1_amd64.build</emphasis> 是構建日誌文件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1_amd64.buildinfo</emphasis> file is the meta data file generated by <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1).
zh: <emphasis role="strong">debhello_0.0-1_amd64.buildinfo</emphasis> 是 <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1) 生成的元資料檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.0-1_amd64.changes</emphasis> is the meta data file for the Debian binary package.
zh: <emphasis role="strong">debhello_0.0-1_amd64.changes</emphasis> 是 Debian 二進位制套件的元資料檔案。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis> contains the Debian changes to the upstream source as follows.
zh: <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis> 包含了 Debian 對上游原始碼的修改，具體如下所示。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The compressed archive contents of <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis>:
zh: 壓縮檔案 <emphasis role="strong">debhello_0.0-1.debian.tar.xz</emphasis> 的內容：

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debhello_0.0-1_amd64.deb</emphasis> contains the binary files to be installed to the target system.
zh: <emphasis role="strong">debhello_0.0-1_amd64.deb</emphasis> 包含了將要安裝至目標系統中的檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The binary package contents of all binary packages:
zh: 所有二進位制包的包內容：

note: type: Content of: <book><chapter><section><simpara>
en: The generated dependency list of all binary packages.
zh: 生成的依賴列表會給出所有二進位制套件的依賴。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of all binary packages (v=0.0):
zh: 生成的所有二進位制套件的依賴列表（v=0.0）：

note: type: Content of: <book><chapter><section><caution><simpara>
en: Many more details need to be addressed before uploading the package to the Debian archive.
zh: 在將套件上傳至 Debian 倉庫之前，仍然有很多細節需要進行處理。

note: type: Content of: <book><chapter><section><note><simpara>
en: If manual adjustments of auto-generated configuration files by the <emphasis role="strong">debmake</emphasis> command are skipped, the generated binary package may lack meaningful package description and some of the policy requirements may be missed.  This sloppy package functions well under the <emphasis role="strong">dpkg</emphasis> command, and may be good enough for your local deployment.
zh: 如果跳過了對 <emphasis role="strong">debmake</emphasis> 命令自動生成的配置檔案的手工調整步驟，所生成的二進位制套件可能缺少有用的套件描述資訊，某些政策的要求也無法滿足。這個不正式的套件對於 <emphasis role="strong">dpkg</emphasis> 命令來說可以正常處理，也許這樣對您本地的部署來說已經足夠好了。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (alternative maintainer version):
zh: <emphasis role="strong">debian/rules</emphasis>（備選的維護者版本）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s edit the upstream source.
zh: 我們先來編輯上游原始碼。

note: type: Content of: <book><chapter><note><simpara>
en: Some details are intentionally skipped for clarity.  Please read the manpages of the <emphasis role="strong">dpkg-source</emphasis>(1), <emphasis role="strong">dpkg-buildpackage</emphasis>(1), <emphasis role="strong">dpkg</emphasis>(1), <emphasis role="strong">dpkg-deb</emphasis>(1), <emphasis role="strong">deb</emphasis>(5), etc.
zh: 為簡明起見，某些細節被有意跳過。請按需查閱對應命令的手冊頁，例如<emphasis role="strong">dpkg-source</emphasis>(1)、<emphasis role="strong">dpkg-buildpackage</emphasis>(1)、<emphasis role="strong">dpkg</emphasis>(1)、<emphasis role="strong">dpkg-deb</emphasis>(1)、<emphasis role="strong">deb</emphasis>(5)，等等。

note: type: Content of: <book><chapter><simpara>
en: The Debian source package is a set of input files used to build the Debian binary package and is not a single file.
zh: Debian 原始碼套件是一組用於構建 Debian 二進位制套件的輸入檔案，而非單個檔案。

note: type: Content of: <book><chapter><simpara>
en: The Debian binary package is a special archive file which holds a set of installable binary data with its associated information.
zh: Debian 二進位制套件是一個特殊的檔案檔案，其中包含了一系列可安裝的二進位制資料及與它們相關的資訊。

note: type: Content of: <book><chapter><simpara>
en: A single Debian source package may generate multiple Debian binary packages defined in the <emphasis role="strong">debian/control</emphasis> file.
zh: 單個 Debian 原始碼套件可能根據 <emphasis role="strong">debian/control</emphasis> 檔案定義的內容產生多個 Debian 二進位制套件。

note: type: Content of: <book><chapter><note><simpara>
en: There are many wrapper scripts.  Use them to streamline your workflow but make sure to understand the basics of their internals.
zh: 有許多封裝指令碼可用。合理使用它們可以幫助您理順工作流程，但是請確保您能理解它們內部的基本工作原理。

note: type: Content of: <book><chapter><section><title>
en: Packaging workflow
zh: 打包工作流

note: type: Content of: <book><chapter><section><orderedlist><listitem><simpara>
en: The upstream tarball is untarred to create many files under the <emphasis>package-version</emphasis><emphasis role="strong">/</emphasis> directory.
zh: 使上游提供的原始碼壓縮包解壓縮後的所有檔案儲存在 <emphasis>package-version</emphasis><emphasis role="strong">/</emphasis> 目錄中。

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><simpara>
en: the character separating <emphasis>package</emphasis> and <emphasis>version</emphasis> is changed from <emphasis role="strong">-</emphasis> (hyphen) to <emphasis role="strong">_</emphasis> (underscore)
zh: 分隔 <emphasis>package</emphasis> 和 <emphasis>version</emphasis> 的符號從 <emphasis role="strong">-</emphasis>（連字元）更改為 <emphasis role="strong">_</emphasis>（下劃線）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">.orig</emphasis> is added in the file extension.
zh: 副檔名添加了 <emphasis role="strong">.orig</emphasis> 部分。

note: type: Content of: <book><chapter><section><orderedlist><listitem><simpara>
en: The Debian package specification files are added to the upstream source under the <emphasis>package-version</emphasis><emphasis role="strong">/debian/</emphasis> directory.
zh: Debian 套件規範檔案將被新增至上游原始碼中，存放在 <emphasis>package-version</emphasis><emphasis role="strong">/debian/</emphasis> 目錄下。

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><simpara>
en: Required specification files under the <emphasis role="strong">debian/</emphasis> directory:
zh: <emphasis role="strong">debian/</emphasis>* 目錄下的必需技術說明檔案：

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The executable script for building the Debian package (see <quote><xref linkend="rules"/></quote>)
zh: 構建 Debian 套件所需的可執行指令碼（參見 <quote><xref linkend="rules"/></quote>）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The package configuration file containing the source package name, the source build dependencies, the binary package name, the binary dependencies, etc. (see <quote><xref linkend="control"/></quote>)
zh: 套件配置檔案包含了原始碼套件名稱、原始碼構建依賴、二進位制套件名稱、二進位制套件依賴，等等。（參見 <quote><xref linkend="control"/></quote>）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The Debian package history file defining the upstream package version and the Debian revision in its first line (see <quote><xref linkend="changelog"/></quote>)
zh: Debian 套件歷史檔案，其中第一行定義了上游套件版本號和 Debian 修訂版本號（參見 <quote><xref linkend="changelog"/></quote>）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The copyright and license summary (see <quote><xref linkend="copyright"/></quote>)
zh: 版權和許可證摘要資訊（參看 <quote><xref linkend="copyright"/></quote>）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><simpara>
en: Optional specification files under the <emphasis role="strong">debian/</emphasis>* (see <quote><xref linkend="debianconf"/></quote>):
zh: 在 <emphasis role="strong">debian/</emphasis>* 下的可選配置檔案（參見 <quote><xref linkend="debianconf"/></quote>）：

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><simpara>
en: Create the Debian binary package using <emphasis role="strong">dpkg-deb</emphasis>(1), <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1), and <emphasis role="strong">dpkg-genchanges</emphasis>(1).
zh: 使用 <emphasis role="strong">dpkg-deb</emphasis>(1)、<emphasis role="strong">dpkg-genbuildinfo</emphasis>(1) 和 <emphasis role="strong">dpkg-genchanges</emphasis>(1) 建立 Debian 二進位制套件。

note: type: Content of: <book><chapter><section><orderedlist><listitem><simpara>
en: Check the quality of the Debian package with the <emphasis role="strong">lintian</emphasis> command. (recommended)
zh: 使用 <emphasis role="strong">lintian</emphasis> 命令檢查 Debian 套件的質量。（推薦）

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://ftp-master.debian.org/REJECT-FAQ.html">REJECT-FAQ</link></quote>
zh: <quote><link xl:href="https://ftp-master.debian.org/REJECT-FAQ.html">套件被拒絕常見問題解答（REJECT-FAQ）</link></quote>

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://ftp-master.debian.org/NEW-checklist.html">NEW checklist</link></quote>
zh: <quote><link xl:href="https://ftp-master.debian.org/NEW-checklist.html">新套件（NEW）檢查清單</link></quote>

note: type: Content of: <book><chapter><section><orderedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://ftp-master.debian.org/#lintianrejects">Lintian Autorejects</link></quote> (<quote><link xl:href="https://ftp-master.debian.org/static/lintian.tags">lintian tag list</link></quote>)
zh: <quote><link xl:href="https://ftp-master.debian.org/#lintianrejects">Lintian 自動拒絕（autoreject）</link></quote>（<quote><link xl:href="https://ftp-master.debian.org/static/lintian.tags">lintian 標籤列表</link></quote>）

note: type: Content of: <book><chapter><section><simpara>
en: Here, please replace each part of the filename as:
zh: 這裡，請將檔名中對應的部分使用下面的方式進行替換：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: the <emphasis>package</emphasis> part with the Debian source package name
zh: 將 <emphasis>package</emphasis> 部分替換為 Debian 原始碼套件名稱

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: the <emphasis>binarypackage</emphasis> part with the Debian binary package name
zh: 將 <emphasis>binarypackage</emphasis> 部分替換為 Debian 二進位制套件名稱

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: the <emphasis>version</emphasis> part with the upstream version
zh: 將 <emphasis>version</emphasis> 部分替換為上游版本號

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: the <emphasis>revision</emphasis> part with the Debian revision
zh: 將 <emphasis>revision</emphasis> 部分替換為 Debian 修訂號

note: type: Content of: <book><chapter><section><tip><simpara>
en: Many patch management and VCS usage strategies for the Debian packaging are practiced.  You don’t need to use all of them.
zh: 有很多種通過實踐摸索而得到的補丁管理方法和版本控制系統的使用策略與技巧。您沒有必要將它們全部用上。

note: type: Content of: <book><chapter><section><simpara>
en: The modern Debian packaging workflow can be organized into a simple modular workflow by:
zh: 現代化的 Debian 打包工作流可以組織成一個簡單的模組化工作流，如下所示：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: using the <emphasis role="strong">dh</emphasis> command to invoke many utility scripts automatically from the <emphasis role="strong">debhelper</emphasis> package, and
zh: 使用 <emphasis role="strong">dh</emphasis> 命令以自動呼叫來自 <emphasis role="strong">debhelper</emphasis> 套件的許多實用指令碼，以及

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: configuring their behavior with declarative configuration files in the <emphasis role="strong">debian/</emphasis> directory.
zh: 使用 <emphasis role="strong">debian/</emphasis> 目錄下的宣告式配置檔案配置它們的行為。

note: type: Content of: <book><chapter><section><simpara>
en: You should almost always use <emphasis role="strong">debhelper</emphasis> as your package’s build dependency. This document also assumes that you are using a fairly contemporary version of <emphasis role="strong">debhelper</emphasis> to handle packaging works in the following contents.
zh: 您幾乎總是應當將 <emphasis role="strong">debhelper</emphasis> 列為您的軟體包的構建依賴之一。本文件在接下來的內容中也假設您正在使用一個版本足夠新的 <emphasis role="strong">debhelper</emphasis> 協助進行打包工作。

note: type: Content of: <book><chapter><section><title>
en: Package name and version
zh: 套件名稱和版本

note: type: Content of: <book><chapter><section><simpara>
en: There are some limitations for what characters may be used as a part of the Debian package.  The most notable limitation is the prohibition of uppercase letters in the package name.  Here is a summary as a set of regular expressions:
zh: 組成 Debian 套件名稱的字元選取存在一定的限制。最明顯的限制應當是套件名稱中禁止出現大寫字母。這裡給出正則表示式形式的規則總結：

note: type: Content of: <book><chapter><section><simpara>
en: You must adjust the package name and upstream version accordingly for the Debian packaging.
zh: 您必須為 Debian 打包工作適當地調整套件名稱和上游版本號。

note: type: Content of: <book><chapter><section><simpara><footnote><simpara>
en: For more than 90% of packages, the package name is equal or less than 24 characters; the upstream version is equal or less than 10 characters and the Debian revision is equal or less than 3 characters.
zh: 對九成以上的套件來說，套件名稱都不會超過 24 個字元；上游版本號通常不超過 10 個字元，而 Debian 修訂版本號也通常不超過 3 個字元。

note: type: Content of: <book><chapter><section><simpara>
en: In order to manage the package name and version information effectively under popular tools such as the <emphasis role="strong">aptitude</emphasis> command, it is a good idea to keep the length of package name to be equal or less than 30 characters; and the total length of version and revision to be equal or less than 14 characters. <placeholder type="footnote" id="0"/>
zh: 為了能有效地使用一些流行的工具（如 <emphasis role="strong">aptitude</emphasis>）管理套件名稱和版本資訊，最好能將套件名稱保持在 30 字元以下；版本號和修訂號加起來最好能不超過 14 個字元。<placeholder type="footnote" id="0"/>

note: type: Content of: <book><chapter><section><simpara>
en: In order to avoid name collisions, the user visible binary package name should not be chosen from any generic words.
zh: 為了避免命名衝突，對使用者可見的二進位制套件名稱不應選擇任何常用的單詞。

note: type: Content of: <book><chapter><section><simpara>
en: If upstream does not use a normal versioning scheme such as <emphasis role="strong">2.30.32</emphasis> but uses some kind of date such as <emphasis role="strong">11Apr29</emphasis>, a random codename string, or a VCS hash value as part of the version, make sure to remove them from the upstream version. Such information can be recorded in the <emphasis role="strong">debian/changelog</emphasis> file. If you need to invent a version string, use the <emphasis role="strong">YYYYMMDD</emphasis> format such as <emphasis role="strong">20110429</emphasis> as upstream version. This ensures that the <emphasis role="strong">dpkg</emphasis> command interprets later versions correctly as upgrades. If you need to ensure a smooth transition to a normal version scheme such as <emphasis role="strong">0.1</emphasis> in the future, use the <emphasis role="strong">0~YYMMDD</emphasis> format such as <emphasis role="strong">0~110429</emphasis> as upstream version, instead.
zh: 如果上游沒有使用像 <emphasis role="strong">2.30.32</emphasis> 這樣正常的版本編號方案，而是使用了諸如 <emphasis role="strong">11Apr29</emphasis> 這樣包含日期、某些代號或者一個版本控制系統雜湊值等字串作為版本號的一部分的話，請在上游版本號中將這些部分移除。這些資訊可以稍後在 <emphasis role="strong">debian/changelog</emphasis> 檔案中進行記錄。如果您需要為軟體設計一個版本字符串，可以使用 <emphasis role="strong">YYYYMMDD</emphasis> 格式，如 <emphasis role="strong">20110429</emphasis> 的字串作為上游版本號。這樣能保證 <emphasis role="strong">dpkg</emphasis> 命令在升級時能正確地確定版本的先後關係。如果您想要確保萬一上游在未來重新採納正常版本編號方案，例如 <emphasis role="strong">0.1</emphasis> 時能夠做到順暢地遷移，可以另行使用 <emphasis role="strong">0~YYMMDD</emphasis> 的格式，如 <emphasis role="strong">0~110429</emphasis> 作為上游版本號。

note: type: Content of: <book><chapter><section><simpara>
en: Version strings can be compared using the <emphasis role="strong">dpkg</emphasis> command as follows.
zh: 版本字串可以按如下的方式使用 <emphasis role="strong">dpkg</emphasis> 命令進行比較。

note: type: Content of: <book><chapter><section><simpara>
en: The version comparison rule can be summarized as:
zh: 版本比較的規則可以歸納如下：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Strings are compared from the head to the tail.
zh: 字串按照起始到末尾的順序進行比較。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Letters are larger than digits.
zh: 字元比數字大。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Numbers are compared as integers.
zh: 數字按照整數順序進行比較。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Letters are compared in ASCII code order.
zh: 字元按照 ASCII 編碼的順序進行比較。

note: type: Content of: <book><chapter><section><simpara>
en: There are special rules for period (<emphasis role="strong">.</emphasis>), plus (<emphasis role="strong">+</emphasis>), and tilde (<emphasis role="strong">~</emphasis>) characters, as follows.
zh: 對於某些字元，如句點（<emphasis role="strong">.</emphasis>）、加號（<emphasis role="strong">+</emphasis>）和波浪號（<emphasis role="strong">~</emphasis>），有如下的特殊規則。

note: type: Content of: <book><chapter><section><title>
en: Native Debian package
zh: 原生 Debian 套件

note: type: Content of: <book><chapter><section><simpara>
en: A native Debian package is the rare Debian binary package format.  It may be used only when the package is useful and valuable only for Debian.  Thus, its use is generally discouraged.
zh: 而原生 Debian 套件是較罕見的一種 Debian 套件格式。它通常只用於打包僅對 Debian 專案有價值、有意義的軟體。因此，該格式的使用通常不被提倡。

note: type: Content of: <book><chapter><section><simpara>
en: A native Debian package has no separation between the <emphasis role="strong">upstream code</emphasis> and the <emphasis role="strong">Debian changes</emphasis> and consists only of the following:
zh: 原生 Debian 套件不對 <emphasis role="strong">上游程式碼</emphasis> 和 <emphasis role="strong">Debian 的修改</emphasis> 進行區分，僅包含以下內容：

note: type: Content of: <book><chapter><section><simpara><footnote><simpara>
en: The <emphasis role="strong">debmake</emphasis> command generates a bit more complicated <emphasis role="strong">debian/rules</emphasis> file.  But this is the core part.
zh: <emphasis role="strong">debmake</emphasis> 命令會產生稍微複雜一些的 <emphasis role="strong">debian/rules</emphasis> 檔案。雖然如此，其核心結構沒有什麼變化。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Simple <emphasis role="strong">debian/rules</emphasis>:
zh: 簡單的 <emphasis role="strong">debian/rules</emphasis>：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh clean</emphasis> : clean files in the source tree.
zh: <emphasis role="strong">dh clean</emphasis>：清理原始碼樹中的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh build</emphasis> : build the source tree
zh: <emphasis role="strong">dh build</emphasis>：在原始碼樹中進行構建

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh build-arch</emphasis> : build the source tree for architecture dependent packages
zh: <emphasis role="strong">dh build-arch</emphasis>：在原始碼樹中構建架構相關的套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh build-indep</emphasis> : build the source tree for architecture independent packages
zh: <emphasis role="strong">dh build-indep</emphasis>：在原始碼中構建架構無關的套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh install</emphasis> : install the binary files to <emphasis role="strong">$(DESTDIR)</emphasis>
zh: <emphasis role="strong">dh install</emphasis>：將二進位制檔案安裝至 <emphasis role="strong">$(DESTDIR)</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh install-arch</emphasis> : install the binary files to <emphasis role="strong">$(DESTDIR)</emphasis> for architecture dependent packages
zh: <emphasis role="strong">dh install-arch</emphasis>：為架構相關的套件將二進位制檔案安裝至 <emphasis role="strong">$(DESTDIR)</emphasis> 中

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh install-indep</emphasis> : install the binary files to <emphasis role="strong">$(DESTDIR)</emphasis> for architecture independent packages
zh: <emphasis role="strong">dh install-indep</emphasis>：為架構無關的套件將二進位制檔案安裝進入 <emphasis role="strong">$(DESTDIR)</emphasis> 中

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh binary</emphasis> : generate the <emphasis role="strong">deb</emphasis> file
zh: <emphasis role="strong">dh binary</emphasis>：產生 <emphasis role="strong">deb</emphasis> 檔案

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh binary-arch</emphasis> : generate the <emphasis role="strong">deb</emphasis> file for architecture dependent packages
zh: <emphasis role="strong">dh binary-arch</emphasis>：為架構相關的套件產生 <emphasis role="strong">deb</emphasis> 檔案

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dh binary-indep</emphasis> : generate the <emphasis role="strong">deb</emphasis> file for architecture independent packages
zh: <emphasis role="strong">dh binary-indep</emphasis>：為架構無關的套件產生 <emphasis role="strong">deb</emphasis> 檔案

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: meta data for the Debian source package
zh: Debian 原始碼套件的參數資料

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: meta data for the Debian binary packages
zh: Debian 二進位制套件的參數

note: type: Content of: <book><chapter><section><simpara>
en: The upstream changelog is installed in the <emphasis role="strong">/usr/share/doc/</emphasis><emphasis>binarypackage</emphasis> directory as <emphasis role="strong">changelog.gz</emphasis>.
zh: 上游的變更日誌則會安裝至 <emphasis role="strong">/usr/share/doc/</emphasis><emphasis>binarypackage</emphasis> 目錄中，檔名為 <emphasis role="strong">changelog.gz</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s pick the latest version set.
zh: 我們現在來選擇最新的版本套裝。

note: type: Content of: <book><chapter><section><simpara>
en: After confirming the key ID <emphasis role="strong">80EE4A00</emphasis> is a trustworthy one, download its public key into the <emphasis role="strong">debian/upstream/signing-key.asc</emphasis> file.
zh: 在確認金鑰身份 <emphasis role="strong">80EE4A00</emphasis> 值得信任之後，應當下載其公鑰並將其儲存在 <emphasis role="strong">debian/upstream/signing-key.asc</emphasis> 檔案中。

note: type: Content of: <book><chapter><section><simpara>
en: Optional configuration files may be added under the <emphasis role="strong">debian/</emphasis> directory.  Most of them are to control <emphasis role="strong">dh_</emphasis>* commands offered by the <emphasis role="strong">debhelper</emphasis> package but there are some for <emphasis role="strong">dpkg-source</emphasis>, <emphasis role="strong">lintian</emphasis> and <emphasis role="strong">gbp</emphasis> commands.
zh: 另外也可以新增一些可選的配置檔案並放入 <emphasis role="strong">debian/</emphasis> 目錄。它們大多用於控制由 <emphasis role="strong">debhelper</emphasis> 套件提供的 <emphasis role="strong">dh_</emphasis>* 命令的行為，但也有一些檔案會影響 <emphasis role="strong">dpkg-source</emphasis>、<emphasis role="strong">lintian</emphasis> 和 <emphasis role="strong">gbp</emphasis> 這些命令。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Some template configuration files may not be created by the <emphasis role="strong">debmake</emphasis> command. In such cases, you need to create them with an editor.
zh: <emphasis role="strong">debmake</emphasis> 可能沒有自動生成某些模板配置文件。如遇到這種情況，您可以使用文字編輯器手動建立遺失的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Unused configuration template files generated by the <emphasis role="strong">debmake</emphasis> command should be removed.
zh: 您應當刪除 <emphasis role="strong">.ex</emphasis> 命令生成但對您無用的配置模板檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Copy configuration template files as needed to the filenames matching their pertinent binary package names.
zh: 請按需複製配置模板檔案以匹配其對應的二進位制包名稱以及您的需求。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: installed as <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/control</emphasis> in <emphasis>binarypackage</emphasis>. See <quote><xref linkend="bug"/></quote>.
zh: 將安裝至 <emphasis>binarypackage</emphasis> 套件的 <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/control</emphasis> 位置。另請參考<quote><xref linkend="bug"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: installed as <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/presubj</emphasis> in <emphasis>binarypackage</emphasis>. See <quote><xref linkend="bug"/></quote>.
zh: 將安裝至 <emphasis>binarypackage</emphasis> 套件的 <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/presubj</emphasis> 位置。另請參考<quote><xref linkend="bug"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: installed as <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis> or <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/script</emphasis> in <emphasis>binarypackage</emphasis>. See <quote><xref linkend="bug"/></quote>.
zh: 將安裝至 <emphasis>binarypackage</emphasis> 套件的 <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis> or <emphasis role="strong">usr/share/bug/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/script</emphasis> 位置。另請參考<quote><xref linkend="bug"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_bash-completion</emphasis>(1).
zh: 另請參考<emphasis role="strong">dh_bash-completion</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List files that should be removed but are not cleaned by the <emphasis role="strong">dh_auto_clean</emphasis> command.
zh: 列出（構建前）未被 <emphasis role="strong">dh_auto_clean</emphasis> 命令清理，且需要手工清理的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_auto_clean</emphasis>(1) and <emphasis role="strong">dh_clean</emphasis>(1).
zh: 另請參考 <emphasis role="strong">dh_auto_clean</emphasis>(1) 和 <emphasis role="strong">dh_clean</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: If the program you’re packaging requires every user to modify the configuration files in the <emphasis role="strong">/etc</emphasis> directory, there are two popular ways to arrange for them not to be conffiles, keeping the <emphasis role="strong">dpkg</emphasis> command happy and quiet.
zh: 如果您正要打包的程式要求每個使用者都對 <emphasis role="strong">/etc</emphasis> 目錄下的配置檔案進行修改，可以採取兩種常見辦法使其不作為 conffile 配置檔案出現，避免 <emphasis role="strong">dpkg</emphasis> 命令處理套件時給出不必要的處理選項。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: Create a symlink under the <emphasis role="strong">/etc</emphasis> directory pointing to a file under the <emphasis role="strong">/var</emphasis> directory generated by the maintainer scripts.
zh: 在 <emphasis role="strong">/etc</emphasis> 目錄下建立一個符號連結，指向 <emphasis role="strong">/var</emphasis> 目錄下的某些檔案；實際存在的檔案則使用維護者指令碼（maintainer script）予以建立。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: Create a file generated by the maintainer scripts under the <emphasis role="strong">/etc</emphasis> directory.
zh: 使用維護者指令碼（maintainer script）在 <emphasis role="strong">/etc</emphasis> 目錄下建立並維護配置所需的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installdeb</emphasis>(1).
zh: 另請參考 <emphasis role="strong">dh_installdeb</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: This is the <emphasis role="strong">debconf</emphasis> <emphasis role="strong">config</emphasis> script used for asking any questions necessary to configure the package.  See <quote><xref linkend="debconf"/></quote>.
zh: 這是 <emphasis role="strong">debconf</emphasis> <emphasis role="strong">config</emphasis> 指令碼，用來在配置套件時向用戶詢問任何必需的問題。另請參見<quote><xref linkend="debconf"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the <emphasis role="strong">etc/cron/hourly/</emphasis><emphasis>binarypackage</emphasis> file in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包內的 <emphasis role="strong">etc/cron/hourly/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installcron</emphasis>(1) and <emphasis role="strong">cron</emphasis>(8).
zh: 另請參見 <emphasis role="strong">dh_installcron</emphasis>(1) 和 <emphasis role="strong">cron</emphasis>(8)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the <emphasis role="strong">etc/cron/daily/</emphasis><emphasis>binarypackage</emphasis> file in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包內的 <emphasis role="strong">etc/cron/daily/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the <emphasis role="strong">etc/cron/weekly/</emphasis><emphasis>binarypackage</emphasis> file in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包內的 <emphasis role="strong">etc/cron/weekly/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the <emphasis role="strong">etc/cron.d/</emphasis><emphasis>binarypackage</emphasis> file in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包內的 <emphasis role="strong">etc/cron.d/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installcron</emphasis>(1), <emphasis role="strong">cron</emphasis>(8), and <emphasis role="strong">crontab</emphasis>(5).
zh: 參見 <emphasis role="strong">dh_installcron</emphasis>(1)、<emphasis role="strong">cron</emphasis>(8) 和 <emphasis role="strong">crontab</emphasis>(5)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: If this exists, it is installed into <emphasis role="strong">etc/default/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 若該檔案存在，它將被安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">etc/default/</emphasis><emphasis>binarypackage</emphasis> 位置。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installinit</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installinit</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List directories to be created in <emphasis>binarypackage</emphasis>.
zh: 列出 <emphasis>binarypackage</emphasis> 包中要建立的目錄。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installdirs</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installdirs</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Usually, this is not needed since all <emphasis role="strong">dh_install</emphasis>* commands create required directories automatically.  Use this only when you run into trouble.
zh: 通常情況下您並不需要這麼做，因為所有的 <emphasis role="strong">dh_install</emphasis>* 命令都會自動建立所需的目錄。請僅在遇到問題時考慮使用這一工具。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed as the <emphasis role="strong">doc-base</emphasis> control file in <emphasis>binarypackage</emphasis>.
zh: 作為 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">doc-base</emphasis> 控制檔案進行安裝。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List documentation files to be installed in <emphasis>binarypackage</emphasis>.
zh: 列出要安裝在 <emphasis>binarypackage</emphasis> 包中的文件檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installdocs</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installdocs</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/lib/emacsen-common/packages/compat/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/lib/emacsen-common/packages/compat/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installemacsen</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installemacsen</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/lib/emacsen-common/packages/install/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/lib/emacsen-common/packages/install/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/lib/emacsen-common/packages/remove/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/lib/emacsen-common/packages/remove/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/lib/emacsen-common/packages/startup/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/lib/emacsen-common/packages/startup/</emphasis><emphasis>binarypackage</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List example files or directories to be installed into <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/examples/</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 列出要安裝至 <emphasis>binarypackage</emphasis> 包中 <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/examples/</emphasis> 位置下的範例檔案或目錄。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installexamples</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installexamples</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: If this exists, it functions as the configuration file for the <emphasis role="strong">gbp</emphasis> command.
zh: 如果該檔案存在，它將作為 <emphasis role="strong">gbp</emphasis> 命令的配置檔案發揮作用。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">gbp.conf</emphasis>(5), <emphasis role="strong">gbp</emphasis>(1), and <emphasis role="strong">git-buildpackage</emphasis>(1).
zh: 參見 <emphasis role="strong">gbp.conf</emphasis>(5)、<emphasis role="strong">gbp</emphasis>(1) 和 <emphasis role="strong">git-buildpackage</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List info files to be installed in <emphasis>binarypackage</emphasis>.
zh: 列出要安裝至 <emphasis>binarypackage</emphasis> 包中的 info 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installinfo</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installinfo</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List files which should be installed but are not installed by the <emphasis role="strong">dh_auto_install</emphasis> command.
zh: 列出未被 <emphasis role="strong">dh_auto_install</emphasis> 命令安裝的其它應當安裝的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_install</emphasis>(1) and <emphasis role="strong">dh_auto_install</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_install</emphasis>(1) 和 <emphasis role="strong">dh_auto_install</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List pairs of source and destination files to be symlinked. Each pair should be put on its own line, with the source and destination separated by whitespace.
zh: 列出要生成符號連結的原始檔和目標檔案對。每一對連結均應在單獨的一行中列出，源檔案和目標檔案之間使用空白字元分隔。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_link</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_link</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/share/lintian/overrides/</emphasis><emphasis>binarypackage</emphasis> in the package build directory. This file is used to suppress erroneous <emphasis role="strong">lintian</emphasis> diagnostics.
zh: 安裝至套件構建目錄的 <emphasis role="strong">usr/share/lintian/overrides/</emphasis><emphasis>binarypackage</emphasis> 位置。該檔案用於消除 <emphasis role="strong">lintian</emphasis> 錯誤生成的診斷資訊。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_lintian</emphasis>(1), <emphasis role="strong">lintian</emphasis>(1) and <quote><link xl:href="https://lintian.debian.org/manual/index.html">Lintian User’s Manual</link></quote>.
zh: 參見 <emphasis role="strong">dh_lintian</emphasis>(1)、<emphasis role="strong">lintian</emphasis>(1) 和 <quote><link xl:href="https://lintian.debian.org/manual/index.html">Lintian 使用者手冊</link></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: These are manpage template files generated by the <emphasis role="strong">debmake</emphasis> command.  Please rename these to appropriate file names and update their contents.
zh: 這些檔案是 <emphasis role="strong">debmake</emphasis> 命令生成的 man 手冊頁模板檔案。請將其重新命名為合適的檔名並更新其內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: List man pages to be installed.
zh: 列出要安裝的 man 手冊頁。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installman</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installman</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><term>
en: <emphasis>binarypackage</emphasis><emphasis role="strong">.menu</emphasis> (deprecated, no more installed)
zh: <emphasis>binarypackage</emphasis><emphasis role="strong">.menu</emphasis> （已過時，不再安裝）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Debian menu file installed into <emphasis role="strong">usr/share/menu/</emphasis><emphasis>binarypackage</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/share/menu/</emphasis><emphasis>binarypackage</emphasis> Debian 選單文件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">menufile</emphasis>(5) for its format.  See <emphasis role="strong">dh_installmenu</emphasis>(1).
zh: 參見 <emphasis role="strong">menufile</emphasis>(5) 以瞭解其格式。另請參見 <emphasis role="strong">dh_installmenu</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/NEWS.Debian</emphasis>.
zh: 安裝至 <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/NEWS.Debian</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_installchangelogs</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_installchangelogs</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Collection of <emphasis role="strong">-p1</emphasis> patch files which are applied to the upstream source before building the source.
zh: 這是 <emphasis role="strong">-p1</emphasis> 補丁檔案的集合，它們將在使用源程式碼構建之前應用在上游原始碼上。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: No patch files are generated by the <emphasis role="strong">debmake</emphasis> command.
zh: <emphasis role="strong">debmake</emphasis> 預設不會生成補丁檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dpkg-source</emphasis>(1), <quote><xref linkend="quilt-setup"/></quote> and <quote><xref linkend="alt-patch"/></quote>.
zh: 參見 <emphasis role="strong">dpkg-source</emphasis>(1)、<quote><xref linkend="quilt-setup"/></quote> 和 <quote><xref linkend="alt-patch"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The application sequence of the <emphasis role="strong">patches/</emphasis>* patch files.
zh: <emphasis role="strong">patches/</emphasis>* 補丁檔案的應用順序。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the first binary package listed in the <emphasis role="strong">debian/control</emphasis> file as <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/README.Debian</emphasis>.
zh: 安裝至 <emphasis role="strong">debian/control</emphasis> 檔案列出的第一個二進位制套件中的 <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/README.Debian</emphasis> 位置。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: This file provides the information specific to the Debian package.
zh: 該檔案提供了針對該 Debian 套件的資訊。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: If this exists, it is installed into <emphasis role="strong">lib/systemd/system/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.service</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 如果該檔案存在，它將被安裝到 <emphasis>binarypackage</emphasis> 包下面的 <emphasis role="strong">lib/systemd/system/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.service</emphasis> 位置。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_systemd_enable</emphasis>(1), <emphasis role="strong">dh_systemd_start</emphasis>(1), and <emphasis role="strong">dh_installinit</emphasis>(1).
zh: 參見 <emphasis role="strong">dh_systemd_enable</emphasis>(1)、<emphasis role="strong">dh_systemd_start</emphasis>(1) 和 <emphasis role="strong">dh_installinit</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The Debian package format.
zh: Debian 套件格式。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_lintian</emphasis>(1) and <emphasis role="strong">lintian</emphasis>(1).
zh: 另請參考 <emphasis role="strong">dh_lintian</emphasis>(1) 和 <emphasis role="strong">lintian</emphasis>(1)。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Free form text that is put on top of the automatic patch generated.
zh: 自由格式的文字，將被包含在自動生成補丁的頂部。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: The symbols files, if present, are passed to the <emphasis role="strong">dpkg-gensymbols</emphasis> command to be processed and installed.
zh: 這些符號檔案如果存在，將交由 <emphasis role="strong">dpkg-gensymbols</emphasis> 命令進行處理和安裝。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: See <emphasis role="strong">dh_makeshlibs</emphasis>(1) and <quote><xref linkend="symbols"/></quote>..
zh: 參見 <emphasis role="strong">dh_makeshlibs</emphasis>(1) 和 <quote><xref linkend="symbols"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: This is the <emphasis role="strong">debconf</emphasis> <emphasis role="strong">templates</emphasis> file used for asking any questions necessary to configure the package.  See <quote><xref linkend="debconf"/></quote>.
zh: 這是 <emphasis role="strong">debconf</emphasis> <emphasis role="strong">模板</emphasis>檔案，用於在安裝過程中向用戶詢問必需的問題以正確配置套件。請參閱 <quote><xref linkend="debconf"/></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: Installed into the first binary package listed in the <emphasis role="strong">debian/control</emphasis> file as <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/TODO.Debian</emphasis>.
zh: 安裝至 <emphasis role="strong">debian/control</emphasis> 檔案列出的第一個二進位制包中的 <emphasis role="strong">usr/share/doc/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">/TODO.Debian</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><variablelist><varlistentry><listitem><simpara>
en: If this exists, it is installed into <emphasis role="strong">usr/lib/tmpfiles.d/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.conf</emphasis> in <emphasis>binarypackage</emphasis>.
zh: 如果該檔案存在，它將被安裝至 <emphasis>binarypackage</emphasis> 包中的 <emphasis role="strong">usr/lib/tmpfiles.d/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.conf</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: List the files to be removed in the <emphasis role="strong">Files-Excluded</emphasis> stanza of the <emphasis role="strong">debian/copyright</emphasis> file.
zh: 在 <emphasis role="strong">debian/copyright</emphasis> 檔案中的 <emphasis role="strong">Files-Excluded</emphasis> 一節中列出需要移除的檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: List the URL to download the upstream tarball in the <emphasis role="strong">debian/watch</emphasis> file.
zh: 在 <emphasis role="strong">debian/watch</emphasis> 檔案中列出下載上游原始碼套件（tarball）所使用的 URL。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Run the <emphasis role="strong">uscan</emphasis> command to download the new upstream tarball.
zh: 執行 <emphasis role="strong">uscan</emphasis> 命令以下載新的上游原始碼套件（tarball）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The resulting tarball has the version number with an additional suffix <emphasis role="strong">+dfsg</emphasis>.
zh: 最後得到 tarball 的版本編號會附加一個額外的字尾 <emphasis role="strong">+dfsg</emphasis>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The Debian package installation path etc. can be customized through the addition of configuration files such as <emphasis>package</emphasis><emphasis role="strong">.install</emphasis> and <emphasis>package</emphasis><emphasis role="strong">.docs</emphasis> in the <emphasis role="strong">debian/</emphasis> directory for the <emphasis role="strong">dh_</emphasis>* commands from the <emphasis role="strong">debhelper</emphasis> package (see <quote><xref linkend="debianconf"/></quote>).
zh: 可以使用額外的配置檔案（如 <emphasis role="strong">debian/</emphasis> directory 目錄下的 <emphasis>package</emphasis><emphasis role="strong">.install</emphasis> 和 <emphasis>package</emphasis><emphasis role="strong">.docs</emphasis> 檔案）以配合來自 <emphasis role="strong">debhelper</emphasis> 套件的 <emphasis role="strong">dh_</emphasis>* 命令設定 Debian 套件檔案的安裝路徑等資訊（請參見 <quote><xref linkend="debianconf"/></quote>）。

note: type: Content of: <book><chapter><section><simpara>
en: The build process may be customized via the upstream provided interface such as arguments to the standard source build system commands, such as:
zh: 構建的過程可以使用某些上游提供的介面進行定製化，如使用傳遞給標準的原始碼構建系統的引數。這些構建系統包括但不限於：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">configure</emphasis>,
zh: <emphasis role="strong">configure</emphasis>，

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">Makefile</emphasis>,
zh: <emphasis role="strong">Makefile</emphasis>，

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">Build.PL</emphasis>.
zh: <emphasis role="strong">Build.PL</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: See:
zh: 參見：

note: type: Content of: <book><chapter><section><simpara>
en: Some variable definitions useful for customizing <emphasis role="strong">debian/rules</emphasis> can be found in files under <emphasis role="strong">/usr/share/dpkg/</emphasis>.  Notably:
zh: 某些對設定 <emphasis role="strong">debian/rules</emphasis> 有用的變數定義可以在 <emphasis role="strong">/usr/share/dpkg/</emphasis> 目錄下的檔案中找到。比較重要的包括：

note: type: Content of: <book><chapter><section><simpara>
en: See <quote><xref linkend="multiarch"/></quote>, <emphasis role="strong">dpkg-architecture</emphasis>(1) and <emphasis role="strong">dpkg-buildflags</emphasis>(1).
zh: 參見 <quote><xref linkend="multiarch"/></quote>、<emphasis role="strong">dpkg-architecture</emphasis>(1) 和 <emphasis role="strong">dpkg-buildflags</emphasis>(1)。

note: type: Content of: <book><chapter><section><title>
en: New upstream release
zh: 新上游版本

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dpkg-buildpackage</emphasis> = core of package building tool
zh: <emphasis role="strong">dpkg-buildpackage</emphasis> = 套件打包工具的核心

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">debuild</emphasis> = <emphasis role="strong">dpkg-buildpackage</emphasis> + <emphasis role="strong">lintian</emphasis> (build under the sanitized environment variables)
zh: <emphasis role="strong">debuild</emphasis> = <emphasis role="strong">dpkg-buildpackage</emphasis> + <emphasis role="strong">lintian</emphasis> （在清理後的環境變數下構建）

note: type: Content of: <book><chapter><section><title>
en: Skipped uploads
zh: 跳過的上傳

note: type: Content of: <book><chapter><section><simpara>
en: If you created multiple entries in the <emphasis role="strong">debian/changelog</emphasis> while skipping uploads, you must create a proper <emphasis role="strong">*_.changes</emphasis> file which includes all changes since the last upload. This can be done by specifying the dpkg-buildpackage option <emphasis role="strong">-v</emphasis> with the last uploaded version, e.g., <emphasis>1.2</emphasis>.
zh: 如果當跳過上傳時，你在 <emphasis role="strong">debian/changelog</emphasis> 中建立了多個條目，你必須建立一個包含自上次上傳以來所有變更的 <emphasis role="strong">debian/changelog</emphasis> 檔案。這可以通過指定 dpkg-buildpackage 選項 <emphasis role="strong">-v</emphasis> 以及上次上傳的版本號，比如 <emphasis>1.2</emphasis> 來完成。

note: type: Content of: <book><chapter><section><title>
en: Bug reports
zh: 錯誤報告

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">dh_bugfiles</emphasis> command installs these files from the template files in the <emphasis role="strong">debian/</emphasis> directory.
zh: <emphasis role="strong">dh_bugfiles</emphasis> 命令將安裝以下位於 <emphasis role="strong">debian/</emphasis> 目錄中的的模板檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This file contains some directions such as redirecting the bug report to another package.
zh: 該檔案包含諸如重定向錯誤報告至其它套件的一些指導性內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This file is displayed to the user by the <emphasis role="strong">reportbug</emphasis> command.
zh: 該檔案的內容將由 <emphasis role="strong">reportbug</emphasis> 命令對使用者展示。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">reportbug</emphasis> command runs this script to generate a template file for the bug report.
zh: <emphasis role="strong">reportbug</emphasis> 命令執行此指令碼以生成錯誤報告的模板檔案。

note: type: Content of: <book><chapter><section><tip><simpara>
en: If you always remind the bug reporter of something or ask them about their situation, use these files to automate it.
zh: 如果您總是需要提醒提交報告的使用者某些注意事項或詢問他們某些問題，使用這些檔案可以將這個過程自動化。

note: type: Content of: <book><chapter><title>
en: Advanced packaging
zh: 高階打包

note: type: Content of: <book><chapter><section><title>
en: Continuous integration
zh: 持續整合

note: type: Content of: <book><chapter><section><simpara>
en: There are several other CI tools on Debian for you to explore.
zh: 您可以在 Debian 系統上探索使用不同的持續整合系統。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debci</emphasis> package: CI platform on top of the <emphasis role="strong">autopkgtest</emphasis> package
zh: <emphasis role="strong">debci</emphasis> 套件：建立在 <emphasis role="strong">autopkgtest</emphasis> 之上的持續整合平臺

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">jenkins</emphasis> package: generic CI platform
zh: <emphasis role="strong">jenkins</emphasis> 套件：通用持續整合平臺

note: type: Content of: <book><chapter><section><title>
en: Bootstrapping
zh: 自主生成 (Bootstrapping)

note: type: Content of: <book><chapter><section><title>
en: Compiler hardening
zh: 編譯強化

note: type: Content of: <book><chapter><section><simpara>
en: You should read the following references in detail.
zh: 您應當詳細閱讀下列參考內容。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debmake</emphasis> command adds template comments to the <emphasis role="strong">debian/rules</emphasis> file as needed for <emphasis role="strong">DEB_BUILD_MAINT_OPTIONS</emphasis>, <emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis>, and <emphasis role="strong">DEB_LDFLAGS_MAINT_APPEND</emphasis> (see <quote><xref linkend="simple"/></quote> and <emphasis role="strong">dpkg-buildflags</emphasis>(1)).
zh: <emphasis role="strong">debmake</emphasis> 命令會對 <emphasis role="strong">debian/rules</emphasis> 檔案中按需新增 <emphasis role="strong">DEB_BUILD_MAINT_OPTIONS</emphasis>、<emphasis role="strong">DEB_CFLAGS_MAINT_APPEND</emphasis> 和 <emphasis role="strong">DEB_LDFLAGS_MAINT_APPEND</emphasis> 的專案（參見 <quote><xref linkend="simple"/></quote> 和 <emphasis role="strong">dpkg-buildflags</emphasis>(1)）。

note: type: Content of: <book><chapter><section><title>
en: Reproducible build
zh: 可重現的構建

note: type: Content of: <book><chapter><section><simpara>
en: Here are some recommendations to attain a reproducible build result.
zh: 為了做到套件可重現的構建，這裡給出一些相關的建議。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Don’t embed the timestamp based on the system time.
zh: 不要嵌入基於系統時間的時間戳。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Set the timestamp used in the upstream source from the value of the debhelper-provided environment variable <emphasis role="strong">$SOURCE_DATE_EPOCH</emphasis>.
zh: 對上游原始碼中使用的時間戳，使用 debhelper 提供的環境變數 <emphasis role="strong">$SOURCE_DATE_EPOCH</emphasis> 的值。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Read more at <quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds">ReproducibleBuilds</link></quote>.
zh: 閱讀<quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds">可重現構建</link></quote>瞭解更多資訊。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds/Howto">ReproducibleBuilds Howto</link></quote>.
zh: <quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds/Howto">可重現構建操作方法</link></quote>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal">ReproducibleBuilds TimestampsProposal</link></quote>.
zh: <quote><link xl:href="https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal">可重現構建時間戳處理提議</link></quote>。

note: type: Content of: <book><chapter><section><simpara>
en: The control file <emphasis>source-name_source-version_arch</emphasis><emphasis role="strong">.buildinfo</emphasis> generated by <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1) records the build environment. See <emphasis role="strong">deb-buildinfo</emphasis>(5)
zh: 由 <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1) 生成的控制檔案 <emphasis>source-name_source-version_arch</emphasis><emphasis role="strong">.buildinfo</emphasis> 記錄了構建環境資訊。參見 <emphasis role="strong">deb-buildinfo</emphasis>(5)

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/control</emphasis> file also defines the package dependency in which the <quote><link xl:href="https://www.debian.org/doc/debian-policy/ch-source.html#s-substvars">variable substitutions mechanism</link></quote> (substvar) may be used to free package maintainers from chores of tracking most of the simple package dependency cases.  See <emphasis role="strong">deb-substvars</emphasis>(5).
zh: <emphasis role="strong">debian/control</emphasis> 也定義了套件的依賴關系，其中<quote><link xl:href="https://www.debian.org/doc/debian-policy/ch-source.html#s-substvars">變數替換機制</link></quote>（substvar）的功能可以用來將套件維護者從追蹤（大多數簡單的）套件依賴的重複勞動中解放出來。請參見 <emphasis role="strong">deb-substvars</emphasis>(5)。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debmake</emphasis> command supports the following substvars:
zh: <emphasis role="strong">debmake</emphasis> 命令支援下列變數替換指令：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${misc:Depends}</emphasis> for all binary packages
zh: <emphasis role="strong">${misc:Depends}</emphasis>，可用於所有二進位制套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${misc:Pre-Depends}</emphasis> for all multiarch packages
zh: <emphasis role="strong">${misc:Pre-Depends}</emphasis>，可用於所有 multiarch 套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${shlibs:Depends}</emphasis> for all binary executable and library packages
zh: <emphasis role="strong">${shlibs:Depends}</emphasis>，可用於所有含有二進位制可執行檔案或程式庫的套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${python:Depends}</emphasis> for all Python packages
zh: <emphasis role="strong">${python:Depends}</emphasis>，可用於所有 Python 套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${python3:Depends}</emphasis> for all Python3 packages
zh: <emphasis role="strong">${python3:Depends}</emphasis>，可用於所有 Python3 套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${perl:Depends}</emphasis> for all Perl packages
zh: <emphasis role="strong">${perl:Depends}</emphasis>，用於所有 Perl 套件

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">${ruby:Depends}</emphasis> for all Ruby packages
zh: <emphasis role="strong">${ruby:Depends}</emphasis>，用於所有 Ruby 套件

note: type: Content of: <book><chapter><section><simpara>
en: For other programs which do not deploy their own substvars, the <emphasis role="strong">misc</emphasis> substvar covers their dependency.
zh: 對其它沒有部署屬於自己範疇內的變數替換機制的情況，<emphasis role="strong">misc</emphasis> 變數替換佔位符通常用來覆蓋對應的依賴替換需求。

note: type: Content of: <book><chapter><section><simpara>
en: For POSIX shell programs, there is no easy way to identify the dependency and no substvar covers their dependency.
zh: 對 POSIX shell 程式來說，並沒有簡單的辦法來驗證其依賴關係，substvar 的變數替換也無法自動得出它們的依賴。

note: type: Content of: <book><chapter><section><simpara>
en: For libraries and modules required via the dynamic loading mechanism including the <quote><link xl:href="https://wiki.gnome.org/Projects/GObjectIntrospection">GObject introspection</link></quote> mechanism, there is no easy way to identify the dependency and no substvar covers their dependency.
zh: 對使用動態載入機制，包括 <quote><link xl:href="https://wiki.gnome.org/Projects/GObjectIntrospection">GObject introspection</link></quote> 機制的程式庫和模組來說，現在沒有簡單的方法可以檢查依賴關係，變數替換機制也無法自動推匯出所需的依賴。

note: type: Content of: <book><chapter><section><title>
en: Library package
zh: 程式庫套件

note: type: Content of: <book><chapter><section><simpara>
en: Packaging library software requires you to perform much more work than usual.  Here are some reminders for packaging library software:
zh: 打包軟體程式庫需要您投入更多的工作。下面有一些打包軟體程式庫的提醒和建議：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The library binary package must be named as in <quote><xref linkend="libnames"/></quote>.
zh: 程式庫二進位制套件必須根據 <quote><xref linkend="libnames"/></quote> 進行命名。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian ships shared libraries such as <emphasis role="strong">/usr/lib/&lt;triplet&gt;/lib</emphasis><emphasis>foo-0.1</emphasis><emphasis role="strong">.so.</emphasis><emphasis>1.0.0</emphasis> (see <quote><xref linkend="multiarch"/></quote>).
zh: Debian 按照 <emphasis role="strong">/usr/lib/&lt;triplet&gt;/lib</emphasis><emphasis>foo-0.1</emphasis><emphasis role="strong">.so.</emphasis><emphasis>1.0.0</emphasis> 這樣的路徑提供共享連結程式庫（參見 <quote><xref linkend="multiarch"/></quote>）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian encourages using versioned symbols in the shared library (see <quote><xref linkend="symbols"/></quote>).
zh: Debian 鼓勵在共享程式庫中使用帶版本的符號（見 <quote><xref linkend="symbols"/></quote>）。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian doesn’t ship <emphasis role="strong">*.la</emphasis> libtool library archive files.
zh: Debian 不提供 <emphasis role="strong">*.la</emphasis> libtool 程式庫歸檔檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian discourages using and shipping <emphasis role="strong">*.a</emphasis> static library files.
zh: Debian 不推薦使用、提供 <emphasis role="strong">*.a</emphasis> 靜態程式庫檔案。

note: type: Content of: <book><chapter><section><simpara>
en: Before packaging shared library software, see:
zh: 在打包共享程式庫軟體之前，請查閱：

note: type: Content of: <book><chapter><section><simpara>
en: For the historic background study, see:
zh: 如需研究其歷史背景，請參見：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara><footnote><simpara>
en: This document was written before the introduction of the <emphasis role="strong">symbols</emphasis> file.
zh: 該文件是在 <emphasis role="strong">symbols</emphasis> 檔案被引入之前寫成的。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://debconf4.debconf.org/talks/dependency-hell/img1.html">Escaping the Dependency Hell</link></quote> <placeholder type="footnote" id="0"/>
zh: <quote><link xl:href="https://debconf4.debconf.org/talks/dependency-hell/img1.html">逃離依賴地獄</link></quote> <placeholder type="footnote" id="0"/>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This encourages having versioned symbols in the shared library.
zh: 該文件鼓勵在共享程式庫中使用帶版本的符號。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara><footnote><simpara>
en: The strong preference is to use the SONAME versioned <emphasis role="strong">-dev</emphasis> package names over the single <emphasis role="strong">-dev</emphasis> package name in <quote><link xl:href="https://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html#devpkg">Chapter 6. Development (-DEV) packages</link></quote>, which does not seem to be shared by the former ftp-master (Steve Langasek). This document was written before the introduction of the <emphasis role="strong">multiarch</emphasis> system and the <emphasis role="strong">symbols</emphasis> file.
zh: 在<quote><link xl:href="https://www.netfort.gr.jp/~dancer/column/libpkg-guide/libpkg-guide.html#devpkg">第六章 - 開發（-DEV）套件</link></quote>中，存在強烈的使用含有 SONAME 版本號的 <emphasis role="strong">-dev</emphasis> 套件名而非僅使用 <emphasis role="strong">-dev</emphasis> 作為名稱的偏好，但前 ftp-master 成員（Steve Langasek）對此有不同意見。請注意該文件在 <emphasis role="strong">multiarch</emphasis> 系統和 <emphasis role="strong">symbols</emphasis> 引入之前寫成，可能有一定程度的過時。

note: type: Content of: <book><chapter><section><title>
en: Multiarch
zh: 多體系架構

note: type: Content of: <book><chapter><section><simpara>
en: Multiarch support for cross-architecture installation of binary packages (particularly <emphasis role="strong">i386</emphasis> and <emphasis role="strong">amd64</emphasis>, but also other combinations) in the <emphasis role="strong">dpkg</emphasis> and <emphasis role="strong">apt</emphasis> packages introduced in Debian <emphasis role="strong">wheezy</emphasis> (7.0, May 2013), demands that we pay extra attention to packaging.
zh: Debian <emphasis role="strong">wheezy</emphasis>（7.0，2013年5月）在 <emphasis role="strong">dpkg</emphasis> 和 <emphasis role="strong">apt</emphasis> 中引入了對跨架構二進位制套件安裝的多架構支援（特別是 <emphasis role="strong">i386</emphasis> 架構和 <emphasis role="strong">amd64</emphasis> 架構，但也支援其它的組合），這部分內容值得我們額外關注。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Ubuntu wiki (upstream)
zh: Ubuntu 維基（上游）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.ubuntu.com/MultiarchSpec">MultiarchSpec</link></quote>
zh: <quote><link xl:href="https://wiki.ubuntu.com/MultiarchSpec">多架構規範（MultiarchSpec）</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian wiki (Debian situation)
zh: Debian 維基（Debian 的現狀）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/Multiarch">Debian multiarch support</link></quote>
zh: <quote><link xl:href="https://wiki.debian.org/Multiarch">Debian 多架構支援</link></quote>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://wiki.debian.org/Multiarch/Implementation">Multiarch/Implementation</link></quote>
zh: <quote><link xl:href="https://wiki.debian.org/Multiarch/Implementation">多架構支援/實現（Multiarch/Implementation）</link></quote>

note: type: Content of: <book><chapter><section><simpara>
en: The multiarch is enabled by using the <emphasis role="strong">&lt;triplet&gt;</emphasis> value such as <emphasis role="strong">i386-linux-gnu</emphasis> and <emphasis role="strong">x86_64-linux-gnu</emphasis> in the install path of shared libraries as <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis>, etc..
zh: 多架構支援使用三元組（<emphasis role="strong">&lt;triplet&gt;</emphasis>）的值，例如 <emphasis role="strong">i386-linux-gnu</emphasis> 和 <emphasis role="strong">x86_64-linux-gnu</emphasis>；它們出現在共享連結程式庫的安裝路徑中，例如 <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis>，等等。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">&lt;triplet&gt;</emphasis> value required internally by <emphasis role="strong">debhelper</emphasis> scripts is implicitly set in themselves.  The maintainer doesn’t need to worry.
zh: 三元組 <emphasis role="strong">&lt;triplet&gt;</emphasis> 的值由 <emphasis role="strong">debhelper</emphasis> 指令碼隱性提前設定好，套件維護者無需擔心。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">&lt;triplet&gt;</emphasis> value used in <emphasis role="strong">override_dh_</emphasis>* target scripts must be explicitly set in the <emphasis role="strong">debian/rules</emphasis> file by the maintainer.  The <emphasis role="strong">&lt;triplet&gt;</emphasis> value is stored in the <emphasis role="strong">$(DEB_HOST_MULTIARCH)</emphasis> variable in the following <emphasis role="strong">debian/rules</emphasis> snippet example:
zh: 不過，在 <emphasis role="strong">debian/rules</emphasis> 檔案中用於 <emphasis role="strong">override_dh_</emphasis>* 目標的三元組 <emphasis role="strong">&lt;triplet&gt;</emphasis> 值需要由維護者手動進行顯性設定。三元組 <emphasis role="strong">&lt;triplet&gt;</emphasis> 的值可由 <emphasis role="strong">$(DEB_HOST_MULTIARCH)</emphasis> 變數在 <emphasis role="strong">debian/rules</emphasis> 檔案中取得到，具體方法如下：

note: type: Content of: <book><chapter><section><title>
en: Split of a Debian binary package
zh: Debian 二進位制套件的拆分

note: type: Content of: <book><chapter><section><simpara>
en: For well behaving build systems, the split of a Debian binary package into small ones can be realized as follows.
zh: 對行為良好的構建系統來說，對 Debian 二進位制包的拆分可以由如下方式實現。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Create binary package entries for all binary packages in the <emphasis role="strong">debian/control</emphasis> file.
zh: 為所有二進位制套件在 <emphasis role="strong">debian/control</emphasis> 檔案中建立對應的二進位制套件條目。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: List all file paths (relative to <emphasis role="strong">debian/tmp</emphasis>) in the corresponding <emphasis role="strong">debian/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.install</emphasis> files.
zh: 在對應的 <emphasis role="strong">debian/</emphasis><emphasis>二進位制套件名</emphasis><emphasis role="strong">.install</emphasis> 檔案中列出所有檔案的路徑（相對於 <emphasis role="strong">debian/tmp</emphasis> 目錄）。

note: type: Content of: <book><chapter><section><simpara>
en: Please check examples in this guide:
zh: 請檢視本指南中相關的例子：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><xref linkend="autotools-multi"/></quote> (Autotools based)
zh: <quote><xref linkend="autotools-multi"/></quote>（基於 Autotools）

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><xref linkend="cmake-multi"/></quote> (CMake based)
zh: <quote><xref linkend="cmake-multi"/></quote>（基於 CMake）

note: type: Content of: <book><chapter><section><title>
en: Package split scenario and examples
zh: 拆包的場景和例子

note: type: Content of: <book><chapter><section><simpara>
en: Here are some typical multiarch package split scenarios for the following upstream source examples using the <emphasis role="strong">debmake</emphasis> command:
zh: 對於下面這樣的上游原始碼範例，我們在這裡給出使用 <emphasis role="strong">debmake</emphasis> 處理時一些典型的 multiarch 套件拆分的場景和做法：

note: type: Content of: <book><chapter><section><informaltable><tgroup><thead><row><entry>
en: <emphasis>binarypackage</emphasis>
zh: <emphasis>二進位制套件</emphasis>

note: type: Content of: <book><chapter><section><informaltable><tgroup><thead><row><entry>
en: <emphasis>type</emphasis>
zh: <emphasis>型別</emphasis>

note: type: Content of: <book><chapter><section><informaltable><tgroup><thead><row><entry>
en: Package content
zh: 套件內容

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the shared library, co-installable
zh: 共享程式庫，可共同安裝

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the shared library header files etc., co-installable
zh: 共享程式庫標頭檔案及相關開發檔案，可共同安裝

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the run-time support programs, not co-installable
zh: 執行時支援程式，不可共同安裝

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the shared library documentation files
zh: 共享程式庫文件

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the compiled program files, not co-installable
zh: 編譯好的程式檔案，不可共同安裝

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the documentation files for the program
zh: 程式的配套文件檔案

note: type: Content of: <book><chapter><section><informaltable><tgroup><tbody><row><entry><simpara>
en: the interpreted program files
zh: 解釋型程式檔案

note: type: Content of: <book><chapter><section><table><title>
en: The multiarch library path options
zh: 多架構程式庫路徑選項

note: type: Content of: <book><chapter><section><table><tgroup><thead><row><entry>
en: Classic path
zh: 經典路徑

note: type: Content of: <book><chapter><section><table><tgroup><thead><row><entry>
en: i386 multiarch path
zh: i386 多體系架構路徑

note: type: Content of: <book><chapter><section><table><tgroup><thead><row><entry>
en: amd64 multiarch path
zh: amd64 多體系架構路徑

note: type: Content of: <book><chapter><section><simpara>
en: For Autotools based packages under the <emphasis role="strong">debhelper</emphasis> package (compat&gt;=9), this path setting is automatically taken care by the <emphasis role="strong">dh_auto_configure</emphasis> command.
zh: 對基於 Autotools 且由 <emphasis role="strong">debhelper</emphasis> （compat&gt;=9）管理的套件來說，這些路徑設定已由 <emphasis role="strong">dh_auto_configure</emphasis> 命令自動處理。

note: type: Content of: <book><chapter><section><simpara>
en: For other packages with non-supported build systems, you need to manually adjust the install path as follows.
zh: 對於其它使用不支援的構建系統的套件，您需要按照下面的方式手動調整安裝路徑。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Replace all occurrences of <emphasis role="strong">/usr/lib/</emphasis> with <emphasis role="strong">/usr/lib/*/</emphasis> in <emphasis role="strong">debian/</emphasis><emphasis>foo</emphasis><emphasis role="strong">.install</emphasis> files.
zh: 請在 <emphasis role="strong">debian/</emphasis><emphasis>foo</emphasis><emphasis role="strong">.install</emphasis> 檔案中將所有出現的 <emphasis role="strong">/usr/lib/</emphasis> 字串替換為 <emphasis role="strong">/usr/lib/*/</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: All files installed simultaneously as the multiarch package to the same file path should have exactly the same file content. You must be careful with differences generated by the data byte order and by the compression algorithm.
zh: 所有啟用多架構的套件安裝至相同路徑的檔案必須內容完全相同。您必須小心處理，避免資料位元組序或者壓縮演算法等等問題帶來的檔案內容差異。

note: type: Content of: <book><chapter><section><simpara>
en: The shared library files in the default path <emphasis role="strong">/usr/lib/</emphasis> and <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis> are loaded automatically.
zh: 位於預設路徑 <emphasis role="strong">/usr/lib/</emphasis> 和 <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis> 的共享程式庫可被自動載入。

note: type: Content of: <book><chapter><section><simpara>
en: For shared library files in another path, the GCC option <emphasis role="strong">-l</emphasis> must be set by the <emphasis role="strong">pkg-config</emphasis> command to make them load properly.
zh: 對位於其它路徑的共享程式庫，必須使用 <emphasis role="strong">pkg-config</emphasis> 命令設定 GCC 選項 <emphasis role="strong">-l</emphasis> 以正確進行載入。

note: type: Content of: <book><chapter><section><simpara>
en: GCC includes both <emphasis role="strong">/usr/include/</emphasis> and <emphasis role="strong">/usr/include/&lt;triplet&gt;/</emphasis> by default on the multiarch Debian system.
zh: 在支援多架構的 Debian 系統上，GCC 預設會同時包含、使用 <emphasis role="strong">/usr/include/</emphasis> 和 <emphasis role="strong">/usr/include/&lt;triplet&gt;/</emphasis> 下的標頭檔案。

note: type: Content of: <book><chapter><section><simpara>
en: If the header file is not in those paths, the GCC option <emphasis role="strong">-I</emphasis> must be set by the <emphasis role="strong">pkg-config</emphasis> command to make "<emphasis role="strong">#include &lt;</emphasis><emphasis>foo.h</emphasis><emphasis role="strong">&gt;</emphasis>" work properly.
zh: 如果標頭檔案不在這些路徑中，必須使用 <emphasis role="strong">pkg-config</emphasis> 命令設定 GCC 的 <emphasis role="strong">-I</emphasis> 引數以使得“<emphasis role="strong">#include &lt;</emphasis><emphasis>foo.h</emphasis><emphasis role="strong">&gt;</emphasis>”正常工作。

note: type: Content of: <book><chapter><section><table><title>
en: The multiarch header file path options
zh: 多架構標頭檔案路徑選項

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/include/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis>
zh: <emphasis role="strong">/usr/include/</emphasis><emphasis>套件名</emphasis><emphasis role="strong">/</emphasis>

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/include/i386-linux-gnu/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis>
zh: <emphasis role="strong">/usr/include/i386-linux-gnu/</emphasis><emphasis>套件名</emphasis><emphasis role="strong">/</emphasis>

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/include/x86_64-linux-gnu/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis>
zh: <emphasis role="strong">/usr/include/x86_64-linux-gnu/</emphasis><emphasis>套件名</emphasis><emphasis role="strong">/</emphasis>

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/lib/i386-linux-gnu/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis>
zh: <emphasis role="strong">/usr/lib/i386-linux-gnu/</emphasis><emphasis>套件名</emphasis><emphasis role="strong">/</emphasis>

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/lib/x86_64-linux-gnu/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis>
zh: <emphasis role="strong">/usr/lib/x86_64-linux-gnu/</emphasis><emphasis>軟體包名</emphasis><emphasis role="strong">/</emphasis>

note: type: Content of: <book><chapter><section><simpara>
en: The use of the <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis><emphasis>packagename</emphasis><emphasis role="strong">/</emphasis> path for the library files allows the upstream maintainer to use the same install script for the multiatch system with <emphasis role="strong">/usr/lib/&lt;triplet&gt;</emphasis> and the biarch system with <emphasis role="strong">/usr/lib&lt;qual&gt;/</emphasis>. <placeholder type="footnote" id="0"/>
zh: 為程式庫檔案使用 <emphasis role="strong">/usr/lib/&lt;triplet&gt;/</emphasis><emphasis>套件名</emphasis><emphasis role="strong">/</emphasis> 路徑可幫助上游維護者對使用 <emphasis role="strong">/usr/lib/&lt;triplet&gt;</emphasis> 的多架構系統和使用 <emphasis role="strong">/usr/lib&lt;qual&gt;/</emphasis> 的雙架構系統使用相同的安裝指令碼。<placeholder type="footnote" id="0"/>

note: type: Content of: <book><chapter><section><simpara>
en: The use of the file path containing <emphasis>packagename</emphasis> enables having more than 2 development libraries simultaneously installed on a system.
zh: 使用包含 <emphasis>packagename</emphasis> 的檔案路徑也使得在同一系統上同時安裝多個架構的開發程式庫成為可能。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">pkg-config</emphasis> program is used to retrieve information about installed libraries in the system.  It stores its configuration parameters in the <emphasis role="strong">*.pc</emphasis> file and is used for setting the <emphasis role="strong">-I</emphasis> and <emphasis role="strong">-l</emphasis> options for GCC.
zh: <emphasis>packagename</emphasis> 用來取得系統上已安裝程式庫的資訊。它在 <emphasis role="strong">*.pc</emphasis> 檔案中儲存配置引數，用來設定 GCC 的 <emphasis role="strong">-I</emphasis> 和 <emphasis role="strong">-l</emphasis> 選項。

note: type: Content of: <book><chapter><section><table><title>
en: The <emphasis role="strong">*.pc</emphasis> file path options
zh: <emphasis role="strong">*.pc</emphasis> 檔案路徑選項

note: type: Content of: <book><chapter><section><table><tgroup><tbody><row><entry><simpara>
en: <emphasis role="strong">/usr/lib/i386-linux-gnu/pkgconfig/</emphasis>
zh: <emphasis role="strong">/usr/lib/pkgconfig/</emphasis>

note: type: Content of: <book><chapter><section><title>
en: Library symbols
zh: 程式庫符號

note: type: Content of: <book><chapter><section><simpara>
en: The symbols support in <emphasis role="strong">dpkg</emphasis> introduced in Debian <emphasis role="strong">lenny</emphasis> (5.0, May 2009) helps us to manage the backward ABI compatibility of the library package with the same package name.  The <emphasis role="strong">DEBIAN/symbols</emphasis> file in the binary package provides the minimal version associated with each symbol.
zh: Debian <emphasis role="strong">lenny</emphasis>（5.0，2009年5月）中引入的 <emphasis role="strong">dpkg</emphasis> 符號支援可以幫助我們管理同一共享鏈接程式庫套件的向後 ABI 相容性（backward ABI compatibility）。二進位制套件中的 <emphasis role="strong">DEBIAN/symbols</emphasis> 檔案提供了每個符號及其對應的最小版本號。

note: type: Content of: <book><chapter><section><simpara>
en: An oversimplified method for the library packaging is as follows.
zh: 一個極其簡化的軟體程式庫打包流程大概如下所示。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Alternatively, the <emphasis role="strong">mc</emphasis> command may be used to extract the <emphasis role="strong">DEBIAN/symbols</emphasis> file.
zh: 或者，<emphasis role="strong">mc</emphasis> 命令也可以用來解壓得到 <emphasis role="strong">DEBIAN/symbols</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Copy it to the <emphasis role="strong">debian/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.symbols</emphasis> file.
zh: 將其複製為 <emphasis role="strong">debian/</emphasis><emphasis>binarypackage</emphasis><emphasis role="strong">.symbols</emphasis> 檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: If this is the first package, use an empty content file instead.
zh: 如果這是第一次打包的話，可以只建立一個空檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Build the binary package.
zh: 構建二進位制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: If the <emphasis role="strong">dpkg-gensymbols</emphasis> command warns about some new symbols:
zh: 如果 <emphasis role="strong">dpkg-gensymbols</emphasis> 命令警告添加了新的符號的話：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Trim the Debian revision such as <emphasis role="strong">-1</emphasis> in it.
zh: 將其中的 Debian 修訂版本號，例如 <emphasis role="strong">-1</emphasis>，從檔案中去除。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Re-build the binary package.
zh: 重新構建二進位制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: If the <emphasis role="strong">dpkg-gensymbols</emphasis> command does not warn about new symbols:
zh: 如果 <emphasis role="strong">dpkg-gensymbols</emphasis> 命令不報和新連結符號有關的警告：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: You are done with the library packaging.
zh: 您已完成了共享程式庫的打包工作。

note: type: Content of: <book><chapter><section><simpara>
en: For the details, you should read the following primary references.
zh: 如需瞭解詳細資訊，您應當閱讀下列第一手參考資料。

note: type: Content of: <book><chapter><section><simpara>
en: You should also check:
zh: 您也應當檢視：

note: type: Content of: <book><chapter><section><warning><simpara>
en: If the binary library package isn’t renamed, many dependent packages in the <emphasis role="strong">unstable</emphasis> suite become broken just after the library upload even if a binNMU upload is requested.  The binNMU may not happen immediately after the upload due to several reasons.
zh: 如果這個二進位制程式庫套件沒有得到更名，許多使用 <emphasis role="strong">unstable</emphasis> 套件的系統上的各個依賴該程式庫的套件會在新的程式庫包上傳後立刻破損，即便立刻請求進行 binNMU 上傳也無法避免這個問題。由於種種原因，binNMU 不可能在上傳後立刻開始進行，故無法緩解問題。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">-dev</emphasis> package must follow one of the following naming rules:
zh: <emphasis role="strong">-dev</emphasis> 套件必須遵循以下命名規則：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Use the <emphasis role="strong">unversioned -dev</emphasis> package name: <emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>
zh: 使用<emphasis role="strong">不帶版本號的 -dev</emphasis> 套件名稱：<emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This is the typical one for leaf library packages.
zh: 該情況通常適用於依賴關係處於葉節點的程式庫套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Only one version of the library source package is allowed in the archive.
zh: 倉庫內只允許存在一個版本的程式庫原始碼套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Use the <emphasis role="strong">versioned -dev</emphasis> package names: <emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis><emphasis role="strong">-dev</emphasis> and <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis><emphasis role="strong">-dev</emphasis>
zh: 使用<emphasis role="strong">帶版本的 -dev</emphasis> 套件名稱：<emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis><emphasis role="strong">-dev</emphasis> 和 <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis><emphasis role="strong">-dev</emphasis>

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This is typical for many major library packages.
zh: 該情況通常適用於各類重要程式庫套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Two versions of the library source packages are allowed simultaneously in the archive.
zh: 兩個版本的程式庫原始碼套件可同時出現在發行版倉庫中。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Make all dependent packages depend on <emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>.
zh: 令所有依賴該程式庫的套件依賴 <emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Make both <emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis><emphasis role="strong">-dev</emphasis> and <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis><emphasis role="strong">-dev</emphasis> provide <emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>.
zh: 令 <emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis><emphasis role="strong">-dev</emphasis> 和 <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis><emphasis role="strong">-dev</emphasis> 兩者都提供 <emphasis role="strong">lib</emphasis><emphasis>foo</emphasis><emphasis role="strong">-dev</emphasis>。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: The package specific install file path including <emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis> and <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis> respectively for header files etc. needs to be chosen to make them co-installable.
zh: 需要仔細選擇 <emphasis role="strong">lib</emphasis><emphasis>foo7</emphasis> 和 <emphasis role="strong">lib</emphasis><emphasis>foo8</emphasis> 套件檔案安裝時的路徑，如標頭檔案等等，以保證它們可以同時安裝。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Do not use this heavy handed approach, if possible.
zh: 可能的話，不要使用這個重量級的、需要大量人為干預的方法。

note: type: Content of: <book><chapter><section><tip><simpara>
en: If the data encoding scheme changes (e.g., latin1 to utf-8), the same care as the API change needs to be taken.
zh: 如果包內資料檔案編碼方案有所變化（如，從 latin1 變為 utf-8），該場景應比照 API 變化做類似的考慮與處理。

note: type: Content of: <book><chapter><section><simpara>
en: See <quote><xref linkend="lib"/></quote>.
zh: 參見 <quote><xref linkend="lib"/></quote>。

note: type: Content of: <book><chapter><section><title>
en: Library transition
zh: 程式庫變遷

note: type: Content of: <book><chapter><section><simpara>
en: Release team has the <quote><link xl:href="https://release.debian.org/transitions/">transition tracker</link></quote>.  See <quote><link xl:href="https://wiki.debian.org/Teams/ReleaseTeam/Transitions">Transitions</link></quote>.
zh: 發行團隊提供了<quote><link xl:href="https://release.debian.org/transitions/">變遷追蹤系統</link></quote>。參見 <quote><link xl:href="https://wiki.debian.org/Teams/ReleaseTeam/Transitions">變遷（Transition）</link></quote>。

note: type: Content of: <book><chapter><section><caution><simpara>
en: Please make sure to rename binary packages as in <quote><xref linkend="libnames"/></quote>.
zh: 請確保您按照 <quote><xref linkend="libnames"/></quote> 的描述正確地對二進位制套件進行了重命名。

note: type: Content of: <book><chapter><section><title>
en: binNMU safe
zh: binNMU 安全

note: type: Content of: <book><chapter><section><title>
en: Debugging information
zh: 除錯資訊

note: type: Content of: <book><chapter><section><simpara>
en: See
zh: 參見

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Debian debian-devel post: <quote><link xl:href="https://lists.debian.org/debian-devel/2015/08/msg00443.html">Status on automatic debug packages</link></quote> (2015-08-15)
zh: Debian debian-devel 列表釋出的郵件：<quote><link xl:href="https://lists.debian.org/debian-devel/2015/08/msg00443.html">自動除錯套件狀態</link></quote> (2015-08-15)

note: type: Content of: <book><chapter><section><simpara>
en: The debugging information is automatically packaged separately as the debug package using the <emphasis role="strong">dh_strip</emphasis> command with its default behavior.  The name of such a debug package normally has the <emphasis role="strong">-dbgsym</emphasis> suffix.
zh: 除錯資訊由 <emphasis role="strong">dh_strip</emphasis> 命令的預設行為自動打包並進行移除。所分離得到的除錯套件名具有 <emphasis role="strong">-dbgsym</emphasis> 的字尾。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debian/rules</emphasis> file shouldn’t explicitly contain <emphasis role="strong">dh_strip</emphasis>.
zh: <emphasis role="strong">debian/rules</emphasis> 檔案不應顯性包括 <emphasis role="strong">dh_strip</emphasis> 。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debconf</emphasis> package enables us to configure packages during their installation in 2 main ways:
zh: <emphasis role="strong">debconf</emphasis> 套件可以幫助我們在下列兩種情況下配置套件：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: non-interactively from the <emphasis role="strong">debian-installer</emphasis> pre-seeding.
zh: 在 <emphasis role="strong">debian-installer</emphasis>（Debian 安裝程式）預安裝時進行非互動式配置。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: the package installation: invoked by the <emphasis role="strong">dpkg</emphasis> command
zh: 套件安裝時：由 <emphasis role="strong">dpkg</emphasis> 命令呼叫

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: the installed package: invoked by the <emphasis role="strong">dpkg-reconfigure</emphasis> command
zh: 對已安裝套件：由 <emphasis role="strong">dpkg-reconfigure</emphasis> 命令呼叫

note: type: Content of: <book><chapter><section><simpara>
en: All user interactions for the package installation must be handled by this <emphasis role="strong">debconf</emphasis> system using the following files.
zh: 套件安裝時的所有使用者互動都必須由這裡的 <emphasis role="strong">debconf</emphasis> 系統進行處理，下列配置檔案對這個過程進行控制。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This is the <emphasis role="strong">debconf</emphasis> <emphasis role="strong">config</emphasis> script used for asking any questions necessary to configure the package.
zh: 這是 <emphasis role="strong">debconf</emphasis> <emphasis role="strong">config</emphasis> 指令碼，用於對使用者詢問對於配置套件必需的問題。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: This is the <emphasis role="strong">debconf</emphasis> <emphasis role="strong">templates</emphasis> file used for asking any questions necessary to configure the package.
zh: 這是 <emphasis role="strong">debconf</emphasis> <emphasis role="strong">templates</emphasis>（模板）檔案，用於對使用者詢問對於配置套件必需的問題。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <quote><link xl:href="https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html">Building Debian Packages with git-buildpackage</link></quote>
zh: <quote><link xl:href="https://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html">使用 git-buildpackage 構建 Debian 套件</link></quote>

note: type: Content of: <book><chapter><title>
en: Tips
zh: 小技巧

note: type: Content of: <book><chapter><section><title>
en: Build under UTF-8
zh: 在 UTF-8 環境下構建

note: type: Content of: <book><chapter><section><simpara>
en: The default locale of the build environment is <emphasis role="strong">C</emphasis>.
zh: 構建環境的預設語言環境是 <emphasis role="strong">C</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: Some programs such as the <emphasis role="strong">read</emphasis> function of Python3 change their behavior depending on the locale.
zh: 某些程式（如 Python3 的 <emphasis role="strong">read</emphasis> 函式）會根據區域設定改變行為。

note: type: Content of: <book><chapter><section><simpara>
en: Adding the following code to the <emphasis role="strong">debian/rules</emphasis> file ensures building the program under the <emphasis role="strong">C.UTF-8</emphasis> locale.
zh: 新增以下程式碼到 <emphasis role="strong">debian/rules</emphasis> 檔案可以確保程式使用 <emphasis role="strong">C.UTF-8</emphasis> 的區域語言設定（locale）進行構建。

note: type: Content of: <book><chapter><section><title>
en: UTF-8 conversion
zh: UTF-8 轉換

note: type: Content of: <book><chapter><section><simpara>
en: Use <emphasis role="strong">w3m</emphasis>(1) to convert from HTML files to UTF-8 plain text files. When you do this, make sure to execute it under UTF-8 locale.
zh: 使用 <emphasis role="strong">w3m</emphasis>(1) 將 HTML 檔案轉換為 UTF-8 純文字檔案。 執行此操作時，請確保在 UTF-8 語言環境下執行它。

note: type: Content of: <book><chapter><section><simpara>
en: Run these scripts in the <emphasis role="strong">override_dh_</emphasis>* target of the <emphasis role="strong">debian/rules</emphasis> file.
zh: 在 <emphasis role="strong">debian/rules</emphasis> 檔案的 <emphasis role="strong">override_dh_</emphasis>* 目標中執行這些指令碼。

note: type: Content of: <book><chapter><section><simpara>
en: When you face build problems or core dumps of generated binary programs, you need to resolve them yourself.  That’s <emphasis role="strong">debug</emphasis>.
zh: 當您遇到構建問題或者生成的二進位制程式核心轉儲時，您需要自行解決他們。這就是<emphasis role="strong">除錯（debug）</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: This is too deep a topic to describe here.  So, let me just list few pointers and hints for some typical debug tools.
zh: This is too deep a topic to describe here. So, let me just list few pointers and hints for some typical debug tools.

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">strace</emphasis> - Trace system calls and signals
zh: <emphasis role="strong">strace</emphasis> - 追蹤系統呼叫和訊號

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Use <emphasis role="strong">strace-graph</emphasis> script found in <emphasis role="strong">/usr/share/doc/strace/examples/</emphasis> to make a nice tree view
zh: 使用 <emphasis role="strong">/usr/share/doc/strace/examples/</emphasis> 中的 <emphasis role="strong">strace-graph</emphasis> 指令碼來建立一個好看的樹形圖

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">ltrace</emphasis> - Trace library calls
zh: <emphasis role="strong">ltrace</emphasis> - 追蹤程式庫呼叫

note: type: Content of: <book><chapter><section><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: Install the <emphasis role="strong">libterm-readline-gnu-perl</emphasis> package or its equivalent to add input line editing capability with history support.
zh: 安裝 <emphasis role="strong">libterm-readline-gnu-perl</emphasis> 套件或者同類型軟體來新增輸入行編輯功能與歷史記錄支援。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">lsof</emphasis> - List open files by processes
zh: <emphasis role="strong">lsof</emphasis> - 按程序列出開啟的檔案

note: type: Content of: <book><chapter><section><tip><simpara>
en: The <emphasis role="strong">script</emphasis> command records console outputs.
zh: <emphasis role="strong">script</emphasis> 命令能幫助記錄控制檯輸出。

note: type: Content of: <book><chapter><section><tip><simpara>
en: The <emphasis role="strong">screen</emphasis> and <emphasis role="strong">tmux</emphasis> commands used with the <emphasis role="strong">ssh</emphasis> command offer secure and robust remote connection terminals.
zh: 在 <emphasis role="strong">ssh</emphasis> 命令中搭配使用 <emphasis role="strong">screen</emphasis> 和 <emphasis role="strong">tmux</emphasis> 命令，能夠提供安全並且強健的遠端連線終端。

note: type: Content of: <book><chapter><section><simpara>
en: You can compare file contents in two source Debian packages with the <emphasis role="strong">debdiff</emphasis> command.
zh: 您可以使用 <emphasis role="strong">debdiff</emphasis> 命令來對比兩個 Debian 套件組成的差別。

note: type: Content of: <book><chapter><section><simpara>
en: You can also compare file lists in two sets of binary Debian packages with the <emphasis role="strong">debdiff</emphasis> command.
zh: 您也可以使用 <emphasis role="strong">debdiff</emphasis> 命令來對比兩組二進制 Debian 套件中的檔案列表。

note: type: Content of: <book><chapter><section><simpara>
en: These are useful to identify what has been changed in the source packages and to check for inadvertent changes made when updating binary packages, such as unintentionally misplacing or removing files.
zh: 當檢查原始碼套件中哪些檔案被修改時，這個命令非常有用。它還可以用來檢測二進位制包中是否有檔案在更新過程中發生變動，比如被意外替換或刪除。

note: type: Content of: <book><chapter><section><simpara>
en: You can download the set of files for the Debian source package with the <emphasis role="strong">dget</emphasis> command.
zh: 您可以使用 <emphasis role="strong">dget</emphasis> 命令來下載 Debian 套件原始碼的檔案集。

note: type: Content of: <book><chapter><section><simpara>
en: You should install generated packages with the <emphasis role="strong">debc</emphasis> command to test it locally.
zh: 您應該使用 <emphasis role="strong">debc</emphasis> 命令安裝生成的套件以在本地測試它。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">bts</emphasis> command is a handy tool to manage bugs on the <quote><link xl:href="https://www.debian.org/Bugs/">Debian Bug Tracking System</link></quote>.
zh: <emphasis role="strong">bts</emphasis> 命令是一個用以處理 <quote><link xl:href="https://www.debian.org/Bugs/">Debian 缺陷追蹤系統</link></quote> 上的錯誤的便捷工具。

note: type: Content of: <book><chapter><title>
en: More Examples
zh: 更多範例

note: type: Content of: <book><chapter><simpara>
en: It is highly recommended to practice and experiment with all the steps of Debian packaging with simple packages.  This chapter provides you with many upstream cases for your practice.
zh: 強烈建議使用簡單的包來練習和試驗 Debian 打包的所有步驟。本章為您的練習提供了許多上游案例。

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: Method to create a desktop GUI program launcher with icon graphics.
zh: 使用圖示圖形建立桌面 GUI 程式啟動器的方法。

note: type: Content of: <book><chapter><simpara>
en: Please note that Debian takes a few things seriously:
zh: 請注意，Debian 對以下事項非常注意：

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: Free software (a.k.a. Libre software)
zh: 自由軟體

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: Stability and security of OS
zh: 作業系統的穩定性與安全性

note: type: Content of: <book><chapter><itemizedlist><listitem><simpara>
en: Universal OS realized via:
zh: 通過以下方式以實現通用作業系統：

note: type: Content of: <book><chapter><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: free choice for upstream sources,
zh: 上游原始碼的自由選擇，

note: type: Content of: <book><chapter><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: free choice of CPU architectures, and
zh: CPU架構的自由選擇，以及

note: type: Content of: <book><chapter><itemizedlist><listitem><itemizedlist><listitem><simpara>
en: free choice of UI languages.
zh: 使用者介面語言的自由選擇。

note: type: Content of: <book><chapter><simpara>
en: The typical packaging example presented in <quote><xref linkend="simple"/></quote> is the prerequisite for this chapter.
zh: 在 <quote><xref linkend="simple"/></quote> 中介紹的典型打包範例是本章節的先決條件。

note: type: Content of: <book><chapter><simpara>
en: Some details are intentionally left vague in the following sections.  Please try to read the pertinent documentation and practice yourself to find them out.
zh: 在以下數小節中，有些細節被刻意模糊。請嘗試閱讀相關檔案，並且嘗試自行釐清它們。

note: type: Content of: <book><chapter><section><title>
en: Cherry-pick templates
zh: 挑選最好的模板

note: type: Content of: <book><chapter><section><simpara>
en: Let’s assume this empty directory to be <emphasis role="strong">debhello-0.1</emphasis>.
zh: 讓我們假設這個空目錄為 <emphasis role="strong">debhello-0.1</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: Now you can copy any of these generated template files in the <emphasis>debhello-0.1/</emphasis><emphasis role="strong">debian/</emphasis> directory to your package as needed while renaming them as needed.
zh: 現在，您可以複製 <emphasis>debhello-0.1/</emphasis><emphasis role="strong">debian/</emphasis> 目錄下所有生成的模板檔案到您的套件中。

note: type: Content of: <book><chapter><section><title>
en: No Makefile (shell, CLI)
zh: 無 Makefile（shell，命令列介面）

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a POSIX shell CLI program without its build system.
zh: 此處是一個從 POSIX shell 命令列介面程式建立簡單的 Debian 套件的範例，我們假設它沒有使用任何構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: This type of source has no automated means and files must be installed manually.
zh: 此類原始碼不具有自動化方法，所以必須手動安裝檔案。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the POSIX shell script <emphasis role="strong">hello</emphasis> is a very simple one.
zh: 這裡的 POSIX shell 指令碼 <emphasis role="strong">hello</emphasis> 非常的簡單。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">hello</emphasis> (v=0.2)
zh: <emphasis role="strong">hello</emphasis>（v=0.2）

note: type: Content of: <book><chapter><section><simpara>
en: Here, <emphasis role="strong">hello.desktop</emphasis> supports the <quote><link xl:href="https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/">Desktop Entry Specification</link></quote>.
zh: 此處的 <emphasis role="strong">hello.desktop</emphasis> 支援 <quote><link xl:href="https://www.freedesktop.org/wiki/Specifications/desktop-entry-spec/">桌面項（Desktop Entry）規範</link></quote>。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">hello.desktop</emphasis> (v=0.2)
zh: <emphasis role="strong">hello.desktop</emphasis>（v=0.2）

note: type: Content of: <book><chapter><section><simpara>
en: Here, <emphasis role="strong">hello.png</emphasis> is the icon graphics file.
zh: 此處的 <emphasis role="strong">hello.png</emphasis> 是圖示的影象檔案。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s package this with the <emphasis role="strong">debmake</emphasis> command.  Here, the <emphasis role="strong">-b':sh'</emphasis> option is used to specify that the generated binary package is a shell script.
zh: 讓我們使用 <emphasis role="strong">debmake</emphasis> 命令來打包。這裡使用 <emphasis role="strong">-b':sh'</emphasis> 選項來指明生成的二進位制包是一個 shell 指令碼。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s inspect notable template files generated.
zh: 讓我們來檢查一下自動產生的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The source tree after the basic <emphasis role="strong">debmake</emphasis> execution. (v=0.2)
zh: 執行基本的 <emphasis role="strong">debmake</emphasis> 命令後的原始碼樹。（v=0.2）

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=0.2):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=0.2）：

note: type: Content of: <book><chapter><section><simpara>
en: This is essentially the standard <emphasis role="strong">debian/rules</emphasis> file with the <emphasis role="strong">dh</emphasis> command. Since this is the script package, this template <emphasis role="strong">debian/rules</emphasis> file has no build flag related contents.
zh: 這基本上是帶有 <emphasis role="strong">dh</emphasis> 命令的標準 <emphasis role="strong">debian/rules</emphasis> 檔案。因為這是個指令碼套件，所以這個 <emphasis role="strong">debian/rules</emphasis> 模板檔案沒有與構建標記（build flag）相關的內容。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (template file, v=0.2):
zh: <emphasis role="strong">debian/control</emphasis>（模板檔案，v=0.2）：

note: type: Content of: <book><chapter><section><simpara>
en: Since this upstream source lacks the upstream <emphasis role="strong">Makefile</emphasis>, that functionality needs to be provided by the maintainer.  This upstream source contains only a script file and data files and no C source files; the <emphasis role="strong">build</emphasis> process can be skipped but the <emphasis role="strong">install</emphasis> process needs to be implemented.  For this case, this is achieved cleanly by adding the <emphasis role="strong">debian/install</emphasis> and <emphasis role="strong">debian/manpages</emphasis> files without complicating the <emphasis role="strong">debian/rules</emphasis> file.
zh: 因為這個上游原始碼缺少上游的 <emphasis role="strong">Makefile</emphasis>，所以這個功能需要由維護者提供。這個上游原始碼僅包含指令碼檔案和資料檔案，沒有 C 的源碼檔案，因此 <emphasis role="strong">構建（build）</emphasis> 的過程可以被跳過，但是需要實現 <emphasis role="strong">安裝（install）</emphasis> 的過程。對於這種情況，通過新增 <emphasis role="strong">debian/install</emphasis> 和 <emphasis role="strong">debian/manpages</emphasis> 檔案可以很好地實現這一功能，且不會使 <emphasis role="strong">debian/rules</emphasis> 檔案變得複雜。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s make this Debian package better as the maintainer.
zh: 作為維護者，我們要把這個 Debian 套件做得更好。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=0.2):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=0.2）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=0.2):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=0.2）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/install</emphasis> (maintainer version, v=0.2):
zh: <emphasis role="strong">debian/install</emphasis>（維護者版本，v=0.2）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/manpages</emphasis> (maintainer version, v=0.2):
zh: <emphasis role="strong">debian/manpages</emphasis>（維護者版本，v=0.2）：

note: type: Content of: <book><chapter><section><simpara>
en: There are several other template files under the <emphasis role="strong">debian/</emphasis> directory.  These also need to be updated.
zh: 在 <emphasis role="strong">debian/</emphasis> 目錄下還有一些其它的模板文件。它們也需要進行更新。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=0.2):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=0.2）：

note: type: Content of: <book><chapter><section><simpara>
en: You can create a non-native Debian package using the <emphasis role="strong">debuild</emphasis> command (or its equivalents) in this source tree.  The command output is very verbose and explains what it does as follows.
zh: 您可以在此原始碼樹中使用 <emphasis role="strong">debuild</emphasis> 命令（或其等效命令）建立非原生的 Debian 套件。如下所示，該命令的輸出非常詳細，並且解釋了它所做的事。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated files of <emphasis role="strong">debhello</emphasis> version <emphasis role="strong">0.2</emphasis> by the <emphasis role="strong">debuild</emphasis> command:
zh: 通過 <emphasis role="strong">debuild</emphasis> 生成的第 <emphasis role="strong">0.2</emphasis> 版的 <emphasis role="strong">debhello</emphasis> 檔案：

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis> file contains the maintainer generated contents.
zh: <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis> 包含了維護者生成的內容。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1.dsc</emphasis> file is the meta data file for the Debian source package.
zh: <emphasis role="strong">debhello_0.2-1.dsc</emphasis> 是 Debian 原始碼套件的元資料檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1_all.deb</emphasis> file is the Debian binary package.
zh: The <emphasis role="strong">debhello_0.2-1_all.deb</emphasis> 是 Debian 二進位制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1_amd64.build</emphasis> file is the build log file.
zh: <emphasis role="strong">debhello_0.2-1_amd64.build</emphasis> 是 Debian 二進位制套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1_amd64.buildinfo</emphasis> file is the meta data file generated by <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1).
zh: <emphasis role="strong">debhello_0.2-1_amd64.buildinfo</emphasis> 檔案是由 <emphasis role="strong">dpkg-genbuildinfo</emphasis>(1) 自動生成的元檔案。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: The <emphasis role="strong">debhello_0.2-1_amd64.changes</emphasis> file is the meta data file for the Debian binary package.
zh: <emphasis role="strong">debhello_0.2-1_amd64.changes</emphasis> 是 Debian 二進位制套件的元資料檔案。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis> file contains the Debian changes to the upstream source as follows.
zh: <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis> 包含了 Debian 對上游原始碼的修改，具體如下所示。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The compressed archive contents of <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis>:
zh: 壓縮過的歸檔檔案 <emphasis role="strong">debhello_0.2-1.debian.tar.xz</emphasis> 中的內容物：

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debhello_0.2-1_amd64.deb</emphasis> file contains the files to be installed as follows.
zh: <emphasis role="strong">debhello_0.2-1_amd64.deb</emphasis> 包含了將要安裝至系統中的檔案，如下所示。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The binary package contents of <emphasis role="strong">debhello_0.2-1_all.deb</emphasis>:
zh: <emphasis role="strong">debhello_0.2-1_all.deb</emphasis> 二進位制套件中的內容：

note: type: Content of: <book><chapter><section><simpara>
en: Here is the generated dependency list of <emphasis role="strong">debhello_0.2-1_all.deb</emphasis>.
zh: 此處是生成的 <emphasis role="strong">debhello_0.2-1_all.deb</emphasis> 的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of <emphasis role="strong">debhello_0.2-1_all.deb</emphasis>:
zh: <emphasis role="strong">debhello_0.2-1_all.deb</emphasis> 的依賴項列表：

note: type: Content of: <book><chapter><section><title>
en: Makefile (shell, CLI)
zh: Makefile（shell，命令列介面）

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a POSIX shell CLI program using the <emphasis role="strong">Makefile</emphasis> as its build system.
zh: 下面是從 POSIX shell 命令列介面程式建立簡單的 Debian 套件的範例，我們假設它使用 <emphasis role="strong">Makefile</emphasis> 作為構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s get the source and make the Debian package.
zh: 讓我們取得原始碼並製作 Debian 套件。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the <emphasis role="strong">Makefile</emphasis> uses <emphasis role="strong">$(DESTDIR)</emphasis> and <emphasis role="strong">$(prefix)</emphasis> properly.  All other files are the same as in <quote><xref linkend="nomakefile"/></quote> and most of the packaging activities are the same.
zh: 這裡的 <emphasis role="strong">Makefile</emphasis> 正確使用 <emphasis role="strong">$(DESTDIR)</emphasis> 和 <emphasis role="strong">$(prefix)</emphasis>。其他的所有檔案都和 <quote><xref linkend="nomakefile"/></quote> 中的一樣，並且大多數的打包工作也都一樣。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile</emphasis> (v=1.0)
zh: <emphasis role="strong">Makefile</emphasis>（v=1.0）

note: type: Content of: <book><chapter><section><simpara>
en: Let’s inspect the notable template files generated.
zh: 讓我們來檢查一下自動產生的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=1.0):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=1.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.0):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.0）：

note: type: Content of: <book><chapter><section><simpara>
en: Since this upstream source has the proper upstream <emphasis role="strong">Makefile</emphasis>, there is no need to create <emphasis role="strong">debian/install</emphasis> and <emphasis role="strong">debian/manpages</emphasis> files.
zh: 因為上游原始碼含有正確的上游 <emphasis role="strong">Makefile</emphasis> 文件，所以沒有必要再去建立 <emphasis role="strong">debian/install</emphasis> 和 <emphasis role="strong">debian/manpages</emphasis> 檔案。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/control</emphasis> file is exactly the same as the one in <quote><xref linkend="nomakefile"/></quote>.
zh: <emphasis role="strong">debian/control</emphasis> 檔案和 <quote><xref linkend="nomakefile"/></quote> 中的完全一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=1.0):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=1.0）：

note: type: Content of: <book><chapter><section><simpara>
en: The rest of the packaging activities are practically the same as the ones in <quote><xref linkend="nomakefile"/></quote>.
zh: 其餘的打包操作基本上和 <quote><xref linkend="nomakefile"/></quote> 中的相同。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s package this with the <emphasis role="strong">debmake</emphasis> command.  Here, the <emphasis role="strong">-b':py3'</emphasis> option is used to specify the generated binary package containing Python3 script and module files.
zh: 讓我們使用 <emphasis role="strong">debmake</emphasis> 命令來打包。這裡使用 <emphasis role="strong">-b':py3'</emphasis> 選項來指明生成的二進位制包包含 Python3 指令碼和模組檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=1.1):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=1.1）：

note: type: Content of: <book><chapter><section><simpara>
en: This is essentially the standard <emphasis role="strong">debian/rules</emphasis> file with the <emphasis role="strong">dh</emphasis> command.
zh: 這基本上是帶有 <emphasis role="strong">dh</emphasis> 命令的標準 <emphasis role="strong">debian/rules</emphasis> 檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (template file, v=1.1):
zh: <emphasis role="strong">debian/control</emphasis>（模板檔案，v=1.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.1):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=1.1):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=1.1）：

note: type: Content of: <book><chapter><section><simpara>
en: The rest of the packaging activities are practically the same as the ones in <quote><xref linkend="makefile-sh"/></quote>.
zh: 其餘的打包工作與 <quote><xref linkend="makefile-sh"/></quote> 中的幾乎一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=1.1):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=1.1）：

note: type: Content of: <book><chapter><section><simpara>
en: Here is the generated dependency list of <emphasis role="strong">debhello_1.1-1_all.deb</emphasis>.
zh: 此處是生成的 <emphasis role="strong">debhello_1.1-1_all.deb</emphasis> 包的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of <emphasis role="strong">debhello_1.1-1_all.deb</emphasis>:
zh: <emphasis role="strong">debhello_1.1-1_all.deb</emphasis> 的依賴項列表：

note: type: Content of: <book><chapter><section><title>
en: Makefile (shell, GUI)
zh: Makefile（shell，圖形介面）

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a POSIX shell GUI program using the <emphasis role="strong">Makefile</emphasis> as its build system.
zh: 此處是一個從 POSIX shell 圖形介面程式構建簡單的 Debian 套件的範例，我們假設程式使用 <emphasis role="strong">Makefile</emphasis> 作為構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: This upstream is based on <quote><xref linkend="makefile-sh"/></quote> with enhanced GUI support.
zh: 上游是基於 <quote><xref linkend="makefile-sh"/></quote> 中的原始碼，並帶有增強的圖形介面支持。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the <emphasis role="strong">hello</emphasis> has been re-written to use the <emphasis role="strong">zenity</emphasis> command to make this a GTK+ GUI program.
zh: 此處的 <emphasis role="strong">hello</emphasis> 已經被重寫以便使用 <emphasis role="strong">zenity</emphasis> 命令來使其成為 GTK+ 圖形介面程序。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">hello</emphasis> (v=1.2)
zh: <emphasis role="strong">hello</emphasis>（v=1.2）

note: type: Content of: <book><chapter><section><simpara>
en: Here, the desktop file is updated to be <emphasis role="strong">Terminal=false</emphasis> as a GUI program.
zh: 這裡，作為圖形介面程式，桌面檔案被更新為 <emphasis role="strong">Terminal=false</emphasis>。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">hello.desktop</emphasis> (v=1.2)
zh: <emphasis role="strong">hello.desktop</emphasis>（v=1.2）

note: type: Content of: <book><chapter><section><simpara>
en: All other files are the same as in <quote><xref linkend="makefile-sh"/></quote>.
zh: 其餘的所有檔案都與 <quote><xref linkend="makefile-sh"/></quote> 中的一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (template file, v=1.2):
zh: <emphasis role="strong">debian/control</emphasis>（模板檔案，v=1.2）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=1.2):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=1.2）：

note: type: Content of: <book><chapter><section><simpara>
en: Please note the manually added <emphasis role="strong">zenity</emphasis> dependency.
zh: 請注意，這裡需要手動新增 <emphasis role="strong">zenity</emphasis> 依賴。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/rules</emphasis> file is exactly the same as the one in <quote><xref linkend="makefile-sh"/></quote>.
zh: <emphasis role="strong">debian/rules</emphasis> 檔案與 <quote><xref linkend="makefile-sh"/></quote> 中的完全一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=1.2):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=1.2）：

note: type: Content of: <book><chapter><section><simpara>
en: The rest of the packaging activities are practically the same as in <quote><xref linkend="makefile-sh"/></quote>.
zh: 其餘的打包工作與 <quote><xref linkend="makefile-sh"/></quote> 中的幾乎一致。

note: type: Content of: <book><chapter><section><simpara>
en: Here is the generated dependency list of <emphasis role="strong">debhello_1.2-1_all.deb</emphasis>.
zh: 此處是 <emphasis role="strong">debhello_1.2-1_all.deb</emphasis> 的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of <emphasis role="strong">debhello_1.2-1_all.deb</emphasis>:
zh: <emphasis role="strong">debhello_1.2-1_all.deb</emphasis> 的依賴項列表：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s package this with the <emphasis role="strong">debmake</emphasis> command.  Here, the <emphasis role="strong">-b':py3'</emphasis> option is used to specify that the generated binary package contains Python3 script and module files.
zh: 讓我們使用 <emphasis role="strong">debmake</emphasis> 命令來打包。這裡使用 <emphasis role="strong">-b':py3'</emphasis> 選項來指明生成的二進位制包包含 Python3 指令碼和模組檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.3):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.3）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=1.3):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=1.3）：

note: type: Content of: <book><chapter><section><simpara>
en: Please note the manually added <emphasis role="strong">python3-gi</emphasis> and <emphasis role="strong">gir1.2-gtk-3.0</emphasis> dependencies.
zh: 請注意，此處需要手動新增 <emphasis role="strong">python3-gi</emphasis> 和 <emphasis role="strong">gir1.2-gtk-3.0</emphasis> 依賴。

note: type: Content of: <book><chapter><section><simpara>
en: Here is the generated dependency list of <emphasis role="strong">debhello_1.3-1_all.deb</emphasis>.
zh: 此處是 <emphasis role="strong">debhello_1.3-1_all.deb</emphasis> 的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of <emphasis role="strong">debhello_1.3-1_all.deb</emphasis>:
zh: <emphasis role="strong">debhello_1.3-1_all.deb</emphasis> 的依賴項列表：

note: type: Content of: <book><chapter><section><title>
en: Makefile (single-binary package)
zh: Makefile（單個二進位制套件）

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a simple C source program using the <emphasis role="strong">Makefile</emphasis> as its build system.
zh: 這裡給出了從簡單的 C 語言原始碼建立簡單的 Debian 套件的例子，並假設上游使用了 <emphasis role="strong">Makefile</emphasis> 作為構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: This is an enhanced upstream source example for <quote><xref linkend="simple"/></quote>.  This comes with the manpage, the desktop file, and the desktop icon.  This also links to an external library <emphasis role="strong">libm</emphasis> to be a more practical example.
zh: 此處的上游原始碼是 <quote><xref linkend="simple"/></quote> 中的原始碼的增強版本。它帶有手冊頁、桌面檔案和桌面圖示。並且為了更加貼合實際，它還有一個外部程式庫檔案 <emphasis role="strong">libm</emphasis>。

note: type: Content of: <book><chapter><section><simpara>
en: Here, the contents of this source are as follows.
zh: 此處的原始碼如下所示。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=1.4):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=1.4）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/config.h</emphasis> (v=1.4):
zh: <emphasis role="strong">src/config.h</emphasis>（v=1.4）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile</emphasis> (v=1.4):
zh: <emphasis role="strong">Makefile</emphasis>（v=1.4）：

note: type: Content of: <book><chapter><section><simpara>
en: Please note that this <emphasis role="strong">Makefile</emphasis> has the proper <emphasis role="strong">install</emphasis> target for the manpage, the desktop file, and the desktop icon.
zh: 請注意，此 <emphasis role="strong">Makefile</emphasis> 含有正確的手冊頁、桌面檔案、桌面圖示的 <emphasis role="strong">install</emphasis> 物件。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s package this with the <emphasis role="strong">debmake</emphasis> command.
zh: 讓我們使用 <emphasis role="strong">debmake</emphasis> 命令打包。

note: type: Content of: <book><chapter><section><simpara>
en: The result is practically the same as in <quote><xref linkend="step-debmake"/></quote>.
zh: 其餘的工作與 <quote><xref linkend="step-debmake"/></quote> 中的幾乎一致。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s make this Debian package, which is practically the same as in <quote><xref linkend="step-maintainer"/></quote>, better as the maintainer.
zh: 像 <quote><xref linkend="step-maintainer"/></quote> 中所寫的一樣，讓我們這些維護者來把這個 Debian 套件做的更好。

note: type: Content of: <book><chapter><section><simpara>
en: The <emphasis role="strong">debian/control</emphasis> file makes it exactly the same as the one in <quote><xref linkend="step-maintainer"/></quote>, since the <emphasis role="strong">libm</emphasis> library is always available as a part of <emphasis role="strong">libc6</emphasis> (Priority: required).
zh: <emphasis role="strong">debian/control</emphasis> 檔案與 <quote><xref linkend="step-maintainer"/></quote> 中的完全一致，因為 <emphasis role="strong">libm</emphasis> 程式庫是 <emphasis role="strong">libc6</emphasis> 程式庫的一部分，所以它總是可獲得的（優先順序：必需 / Priority: required）。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=1.4):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=1.4）：

note: type: Content of: <book><chapter><section><simpara>
en: The rest of the packaging activities are practically the same as the one in <quote><xref linkend="step-debuild"/></quote>.
zh: 其餘的打包步驟與 <quote><xref linkend="step-debuild"/></quote> 中的基本一致。

note: type: Content of: <book><chapter><section><simpara>
en: Here is the generated dependency list of all binary packages.
zh: 此處是生成的二進位制包的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of all binary packages (v=1.4):
zh: 生成的二進位制包的依賴項列表（v=1.4）：

note: type: Content of: <book><chapter><section><title>
en: Makefile.in + configure (single-binary package)
zh: Makefile.in + configure（單個二進位制套件）

note: type: Content of: <book><chapter><section><simpara>
en: Here is an example of creating a simple Debian package from a simple C source program using <emphasis role="strong">Makefile.in</emphasis> and <emphasis role="strong">configure</emphasis> as its build system.
zh: 這裡給出了從簡單的 C 語言原始碼建立簡單的 Debian 套件的例子，並假設上游使用了 <emphasis role="strong">Makefile.in</emphasis> 和 <emphasis role="strong">configure</emphasis> 作為構建系統。

note: type: Content of: <book><chapter><section><simpara>
en: This is an enhanced upstream source example for <quote><xref linkend="makefile-single"/></quote>.  This also links to an external library, <emphasis role="strong">libm</emphasis>, and this source is configurable using arguments to the <emphasis role="strong">configure</emphasis> script, which generates the <emphasis role="strong">Makefile</emphasis> and <emphasis role="strong">src/config.h</emphasis> files.
zh: 此處的原始碼範例是 <quote><xref linkend="makefile-single"/></quote> 中的原始碼的增強版本。它也有一個外部連結程式庫 <emphasis role="strong">libm</emphasis>，並且它的原始碼可以使用 <emphasis role="strong">configure</emphasis> 指令碼進行配置，然後生成相應的 <emphasis role="strong">Makefile</emphasis>、<emphasis role="strong">src/config.h</emphasis> 檔案。

note: type: Content of: <book><chapter><section><simpara>
en: This type of source is meant to be installed as a non-system file, for example, as:
zh: 此型別的原始碼旨在作為非系統檔案安裝，例如：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=1.5):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=1.5）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile.in</emphasis> (v=1.5):
zh: <emphasis role="strong">Makefile.in</emphasis>（v=1.5）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">configure</emphasis> (v=1.5):
zh: <emphasis role="strong">configure</emphasis>（v=1.5）：

note: type: Content of: <book><chapter><section><simpara>
en: The result is similar to <quote><xref linkend="step-debmake"/></quote> but not exactly the same.
zh: 結果與 <quote><xref linkend="step-debmake"/></quote> 中的相似，但是並不完全一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=1.5):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=1.5）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.5):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.5）：

note: type: Content of: <book><chapter><section><title>
en: Autotools (single-binary package)
zh: Autotools（單個二進位制檔案）

note: type: Content of: <book><chapter><section><simpara>
en: This source usually comes with the upstream auto-generated <emphasis role="strong">Makefile.in</emphasis> and <emphasis role="strong">configure</emphasis> files, too.  This source can be packaged using these files as in <quote><xref linkend="configure-single"/></quote> with the help of the <emphasis role="strong">autotools-dev</emphasis> package.
zh: 此種原始碼通常也帶有上游自動生成的 <emphasis role="strong">Makefile.in</emphasis> 和 <emphasis role="strong">configure</emphasis> 檔案。在 <emphasis role="strong">autotools-dev</emphasis> 套件的幫助下，我們可以按 <quote><xref linkend="configure-single"/></quote> 中所介紹的，使用這些檔案進行打包。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=1.6):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=1.6）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile.am</emphasis> (v=1.6):
zh: <emphasis role="strong">Makefile.am</emphasis>（v=1.6）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">configure.ac</emphasis> (v=1.6):
zh: <emphasis role="strong">configure.ac</emphasis>（v=1.6）：

note: type: Content of: <book><chapter><section><simpara>
en: The result is similar to <quote><xref linkend="configure-single"/></quote> but not exactly the same.
zh: 結果與 <quote><xref linkend="configure-single"/></quote> 中的類似，但是並不完全一致。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=1.6):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=1.6）:

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.6):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.6）：

note: type: Content of: <book><chapter><section><title>
en: CMake (single-binary package)
zh: CMake（單個二進位制套件）

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=1.7):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/config.h.in</emphasis> (v=1.7):
zh: <emphasis role="strong">src/config.h.in</emphasis>（v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">CMakeLists.txt</emphasis> (v=1.7):
zh: <emphasis role="strong">CMakeLists.txt</emphasis>（v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=1.7):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (template file, v=1.7):
zh: <emphasis role="strong">debian/control</emphasis>（模板檔案，v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=1.7):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=1.7）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=1.7):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=1.7）：

note: type: Content of: <book><chapter><section><simpara>
en: The rest of the packaging activities are practically the same as the one in <quote><xref linkend="configure-single"/></quote>.
zh: 其餘的打包工作與 <quote><xref linkend="configure-single"/></quote> 中的近乎一致。

note: type: Content of: <book><chapter><section><title>
en: Autotools (multi-binary package)
zh: Autotools（多個二進位制套件）

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=2.0):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=2.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">lib/sharedlib.h</emphasis> and <emphasis role="strong">lib/sharedlib.c</emphasis> (v=1.6):
zh: <emphasis role="strong">lib/sharedlib.h</emphasis> 與 <emphasis role="strong">lib/sharedlib.c</emphasis>（v=1.6）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile.am</emphasis> (v=2.0):
zh: <emphasis role="strong">Makefile.am</emphasis>（v=2.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">configure.ac</emphasis> (v=2.0):
zh: <emphasis role="strong">configure.ac</emphasis>（v=2.0）：

note: type: Content of: <book><chapter><section><simpara>
en: The result is similar to <quote><xref linkend="configure-single"/></quote> but with more template files.
zh: 結果與 <quote><xref linkend="configure-single"/></quote> 中的相似，但是這個具有更多的模板檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=2.0):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=2.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=2.0):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=2.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=2.0):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=2.0）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/*.install</emphasis> (maintainer version, v=2.0):
zh: <emphasis role="strong">debian/*.install</emphasis>（維護者版本，v=2.0）：

note: type: Content of: <book><chapter><section><simpara>
en: Since this upstream source creates the proper auto-generated <emphasis role="strong">Makefile</emphasis>, there is no need to create <emphasis role="strong">debian/install</emphasis> and <emphasis role="strong">debian/manpages</emphasis> files.
zh: 因為上游原始碼已經具有正確的自動生成的 <emphasis role="strong">Makefile</emphasis> 檔案，所以沒有必要再去建立 <emphasis role="strong">debian/install</emphasis> 和 <emphasis role="strong">debian/manpages</emphasis> 文件。

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=2.0):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=2.0）：

note: type: Content of: <book><chapter><section><simpara>
en: Here are the generated dependency list of all binary packages.
zh: 此處是生成的二進位制包的依賴項列表。

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of all binary packages (v=2.0):
zh: 生成的二進位制包的依賴項列表（v=2.0）：

note: type: Content of: <book><chapter><section><title>
en: CMake (multi-binary package)
zh: CMake（多個二進位制套件）

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (v=2.1):
zh: <emphasis role="strong">src/hello.c</emphasis>（v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/config.h.in</emphasis> (v=2.1):
zh: <emphasis role="strong">src/config.h.in</emphasis>（v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">lib/sharedlib.c</emphasis> and <emphasis role="strong">lib/sharedlib.h</emphasis> (v=2.1):
zh: <emphasis role="strong">lib/sharedlib.c</emphasis> 與 <emphasis role="strong">lib/sharedlib.h</emphasis>（v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">CMakeLists.txt</emphasis> (v=2.1):
zh: <emphasis role="strong">CMakeLists.txt</emphasis>（v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (template file, v=2.1):
zh: <emphasis role="strong">debian/rules</emphasis>（模板檔案，v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/rules</emphasis> (maintainer version, v=2.1):
zh: <emphasis role="strong">debian/rules</emphasis>（維護者版本，v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/control</emphasis> (maintainer version, v=2.1):
zh: <emphasis role="strong">debian/control</emphasis>（維護者版本，v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/*.install</emphasis> (maintainer version, v=2.1):
zh: <emphasis role="strong">debian/*.install</emphasis>（維護者版本，v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">debian/patches/</emphasis>* (maintainer version, v=2.1):
zh: <emphasis role="strong">debian/patches/</emphasis>*（維護者版本，v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: Template files under <emphasis role="strong">debian/</emphasis>. (v=2.1):
zh: <emphasis role="strong">debian/</emphasis> 目錄下的模板檔案。（v=2.1）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: The generated dependency list of all binary packages (v=2.1):
zh: 生成的二進位制包的依賴項列表（v=2.1）：

note: type: Content of: <book><chapter><section><title>
en: Internationalization
zh: 國際化

note: type: Content of: <book><chapter><section><simpara>
en: In the real situation, the package should already be internationalized.  So this example is educational for you to understand how this internationalization is implemented.
zh: 在實際情況中，此套件應該已被國際化過。所以此範例用作幫助您瞭解國際化的具體實現方法。

note: type: Content of: <book><chapter><section><tip><simpara>
en: The routine maintainer activity for the i18n is simply to add translation po files reported to you via the Bug Tracking System (BTS) to the <emphasis role="strong">po/</emphasis> directory and to update the language list in the <emphasis role="strong">po/LINGUAS</emphasis> file.
zh: 負責維護國際化的維護者的日常活動就是將通過缺陷追蹤系統（BTS）反饋給您的 po 翻譯檔案新增至 <emphasis role="strong">po/</emphasis> 目錄，然後更新 <emphasis role="strong">po/LINGUAS</emphasis> 檔案的語言列表。

note: type: Content of: <book><chapter><section><simpara>
en: Internationalize this source tree with the <emphasis role="strong">gettextize</emphasis> command and remove files auto-generated by Autotools.
zh: 使用 <emphasis role="strong">gettextize</emphasis> 命令將此原始碼樹國際化，並刪除由 Autotools 自動生成的檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: run <emphasis role="strong">gettextize</emphasis> (i18n):
zh: 執行 <emphasis role="strong">gettextize</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s check generated files under the <emphasis role="strong">po/</emphasis> directory.
zh: 讓我們確認一下 <emphasis role="strong">po/</emphasis> 目錄下生成的檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: files in <emphasis role="strong">po</emphasis> (i18n):
zh: <emphasis role="strong">po</emphasis> 目錄下的檔案（國際化版）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">configure.ac</emphasis> (i18n):
zh: <emphasis role="strong">configure.ac</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s create the <emphasis role="strong">po/Makevars</emphasis> file from the <emphasis role="strong">po/Makevars.template</emphasis> file.
zh: 讓我們從 <emphasis role="strong">po/Makevars.template</emphasis> 檔案中創建 <emphasis role="strong">po/Makevars</emphasis> 檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">po/Makevars</emphasis> (i18n):
zh: <emphasis role="strong">po/Makevars</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">src/hello.c</emphasis> (i18n):
zh: <emphasis role="strong">src/hello.c</emphasis> （國際化版）：

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">lib/sharedlib.c</emphasis> (i18n):
zh: <emphasis role="strong">lib/sharedlib.c</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: The new <emphasis role="strong">gettext</emphasis> (v=0.19) can handle the i18n version of the desktop file directly.
zh: 新版本的 <emphasis role="strong">gettext</emphasis>（v = 0.19）可以直接處理桌面檔案的國際化版本。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">data/hello.desktop.in</emphasis> (i18n):
zh: <emphasis role="strong">data/hello.desktop.in</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s list the input files to extract translatable strings in <emphasis role="strong">po/POTFILES.in</emphasis>.
zh: 讓我們列出輸入檔案，以便在 <emphasis role="strong">po/POTFILES.in</emphasis> 中提取可翻譯的字串。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">po/POTFILES.in</emphasis> (i18n):
zh: <emphasis role="strong">po/POTFILES.in</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Here is the updated root <emphasis role="strong">Makefile.am</emphasis> with <emphasis role="strong">po</emphasis> added to the <emphasis role="strong">SUBDIRS</emphasis> environment variable.
zh: 此處是在 <emphasis role="strong">SUBDIRS</emphasis> 環境變數中新增 <emphasis role="strong">po</emphasis> 目錄後更新過的根 <emphasis role="strong">Makefile.am</emphasis> 檔案。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">Makefile.am</emphasis> (i18n):
zh: <emphasis role="strong">Makefile.am</emphasis> （國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s make a translation template file, <emphasis role="strong">debhello.pot</emphasis>.
zh: 讓我們建立一個翻譯模板檔案 <emphasis role="strong">debhello.pot</emphasis>。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">po/debhello.pot</emphasis> (i18n):
zh: <emphasis role="strong">po/debhello.pot</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: Let’s add a translation for French.
zh: 讓我們新增法語的翻譯。

note: type: Content of: <book><chapter><section><formalpara><title>
en: <emphasis role="strong">po/LINGUAS</emphasis> and <emphasis role="strong">po/fr.po</emphasis> (i18n):
zh: <emphasis role="strong">po/LINGUAS</emphasis> 與 <emphasis role="strong">po/fr.po</emphasis>（國際化版）：

note: type: Content of: <book><chapter><section><simpara>
en: The packaging activities are practically the same as the one in <quote><xref linkend="autotools-multi"/></quote>.
zh: 打包工作與 <quote><xref linkend="autotools-multi"/></quote> 中的近乎一致。

note: type: Content of: <book><chapter><section><title>
en: Details
zh: 細節

note: type: Content of: <book><chapter><section><formalpara><title>
en: How to get details
zh: 如何取得細節

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: emulated console command line activity log: the <emphasis role="strong">.log</emphasis> file
zh: 模擬控制檯命令列活動日誌：<emphasis role="strong">.log</emphasis> 檔案

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: emulated console command line activity log (short): the <emphasis role="strong">.slog</emphasis> file
zh: 模擬控制檯命令列活動日誌（縮略版）：<emphasis role="strong">.slog</emphasis> 檔案

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: snapshot source tree image after the <emphasis role="strong">debmake</emphasis> command: the <emphasis role="strong">debmake</emphasis> directory
zh: 執行 <emphasis role="strong">debmake</emphasis> 命令後的原始碼樹快照：<emphasis role="strong">debmake</emphasis> 目錄

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: snapshot source tree image after the <emphasis role="strong">debuild</emphasis> command: the <emphasis role="strong">test</emphasis> directory
zh: 執行 <emphasis role="strong">debuild</emphasis> 命令後的原始碼樹快照：<emphasis role="strong">test</emphasis> 目錄

note: type: Content of: <book><chapter><title>
en: <emphasis role="strong">debmake</emphasis>(1) manpage
zh: <emphasis role="strong">debmake</emphasis>(1) 手冊頁

note: type: Content of: <book><chapter><section><title>
en: NAME
zh: 名稱

note: type: Content of: <book><chapter><section><simpara>
en: debmake - program to make a Debian source package
zh: debmake，用來製作 Debian 原始碼套件的程式

note: type: Content of: <book><chapter><section><title>
en: SYNOPSIS
zh: 概述

note: type: Content of: <book><chapter><section><title>
en: DESCRIPTION
zh: 描述

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">dev</emphasis>: Library development package (any, same) (alias: <emphasis role="strong">de</emphasis>)
zh: <emphasis role="strong">dev</emphasis>：程式庫開發套件（any，same）（別名：<emphasis role="strong">de</emphasis>）

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">doc</emphasis>: Documentation package (all, foreign) (alias: <emphasis role="strong">do</emphasis>)
zh: <emphasis role="strong">doc</emphasis>：文件套件（all，foreign）（別名：<emphasis role="strong">do</emphasis>）

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">lib</emphasis>: Library package (any, same) (alias: <emphasis role="strong">l</emphasis>)
zh: <emphasis role="strong">lib</emphasis>：程式庫套件（any，same）（別名：<emphasis role="strong">l</emphasis>）

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">perl</emphasis>: Perl script package (all, foreign) (alias: <emphasis role="strong">pl</emphasis>)
zh: <emphasis role="strong">perl</emphasis>：Perl 指令碼套件（all，foreign）（別名：<emphasis role="strong">pl</emphasis>）

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><itemizedlist><listitem><simpara>
en: <emphasis role="strong">ruby</emphasis>: Ruby script package (all, foreign) (alias: <emphasis role="strong">rb</emphasis>)
zh: <emphasis role="strong">ruby</emphasis>：Ruby 指令碼套件（all，foreign）（別名：<emphasis role="strong">rb</emphasis>）

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><simpara>
en: If the source tree contents do not match settings for <emphasis>type</emphasis>, the <emphasis role="strong">debmake</emphasis> command warns you.
zh: 如果原始碼樹的內容和<emphasis>型別</emphasis>的設定不一致，<emphasis role="strong">debmake</emphasis> 命令會發出警告。

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><simpara>
en: The default is taken from the value of the environment variable <emphasis role="strong">$DEBEMAIL</emphasis>.
zh: 預設值為環境變數 <emphasis role="strong">$DEBEMAIL</emphasis> 的值。

note: type: Content of: <book><chapter><section><variablelist><varlistentry><listitem><simpara>
en: The default is taken from the value of the environment variable <emphasis role="strong">$DEBFULLNAME</emphasis>.
zh: 預設值為環境變數 <emphasis role="strong">$DEBFULLNAME</emphasis> 的值。

note: type: Content of: <book><chapter><section><title>
en: EXAMPLES
zh: 範例

note: type: Content of: <book><chapter><section><title>
en: HELPER PACKAGES
zh: 幫助套件

note: type: Content of: <book><chapter><section><simpara>
en: Packaging may require installation of some additional specialty helper packages.
zh: 打包工作也許需要額外安裝一些專用的幫助套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Ruby programs may require the <emphasis role="strong">gem2deb</emphasis> package.
zh: Ruby 程式可能需要 <emphasis role="strong">gem2deb</emphasis> 套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Java programs may require the <emphasis role="strong">javahelper</emphasis> package.
zh: Java 程式可能需要 <emphasis role="strong">javahelper</emphasis> 套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: Gnome programs may require the <emphasis role="strong">gobject-introspection</emphasis> package.
zh: Gnome 程式可能需要 <emphasis role="strong">gobject-introspection</emphasis> 套件。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: etc.
zh: 等等。

note: type: Content of: <book><chapter><section><title>
en: CAVEAT
zh: 注意事項

note: type: Content of: <book><chapter><section><title>
en: DEBUG
zh: 除錯

note: type: Content of: <book><chapter><section><simpara>
en: Please report bugs to the <emphasis role="strong">debmake</emphasis> package using the <emphasis role="strong">reportbug</emphasis> command.
zh: 請使用 <emphasis role="strong">reportbug</emphasis> 命令報告 <emphasis role="strong">debmake</emphasis> 套件的問題與錯誤。

note: type: Content of: <book><chapter><section><simpara>
en: The character set in the environment variable <emphasis role="strong">$DEBUG</emphasis> determines the logging output level.
zh: 環境變數 <emphasis role="strong">$DEBUG</emphasis> 中設定的字元用來確定日誌輸出等級。

note: type: Content of: <book><chapter><section><title>
en: AUTHOR
zh: 作者

note: type: Content of: <book><chapter><section><title>
en: LICENSE
zh: 許可證

note: type: Content of: <book><chapter><section><simpara>
en: Expat License
zh: Expat 許可證

note: type: Content of: <book><chapter><section><title>
en: SEE ALSO
zh: 參見

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: <emphasis role="strong">-i</emphasis> : execute script to build the binary package
zh: <emphasis role="strong">-i</emphasis>：執行構建二進位制包的指令碼

note: type: Content of: <book><chapter><section><simpara>
en: The example in the above <quote><xref linkend="simple"/></quote> can be done simply as follows.
zh: 前文中<quote><xref linkend="simple"/></quote>的例子可以使用下面的命令直接達到目的。

note: type: Content of: <book><chapter><section><simpara>
en: Let’s quote the pertinent part from the <emphasis role="strong">debmake</emphasis> manpage here.
zh: 我們在這裡直接引用 <emphasis role="strong">debmake</emphasis> 手冊頁中的相關一部分內容。

note: type: Content of: <book><chapter><section><simpara>
en: The amount of template files generated by the <emphasis role="strong">debmake</emphasis> command depends on the <emphasis role="strong">-x</emphasis>[01234] option.
zh: <emphasis role="strong">debmake</emphasis> 生成的模板檔案數量由 <emphasis role="strong">-x</emphasis>[01234] 選項進行控制。

note: type: Content of: <book><chapter><section><itemizedlist><listitem><simpara>
en: See <quote><xref linkend="emptypkg"/></quote> for cherry-picking of the template files.
zh: 請參見 <quote><xref linkend="emptypkg"/></quote> 以瞭解與揀選使用模板檔案的方式。

note: type: Content of: <book><chapter><section><note><simpara>
en: None of the existing configuration files are modified by the <emphasis role="strong">debmake</emphasis> command.
zh: <emphasis role="strong">debmake</emphasis> 命令不會修改任何已存在的配置文件。
