packaging-tutorial 0.19 - en to pt_BR translation catalogue (547 entries)

note: Translators: change debiantutorial to debiantutorial.$lang to use translated file, and append to this string all commands to load localisation packages, e.g.: \\usepackage{debiantutorial.fr} \\usepackage[french]{babel} \\frenchsetup{...} type: Plain text
en: \usepackage{debiantutorial}
pt_BR: \usepackage{debiantutorial.pt_BR}

note: type: title{#2}
en: Debian Packaging Tutorial
pt_BR: Manual de Empacotamento Debian

note: type: author{#2}
en: Lucas Nussbaum\\{\small\texttt{packaging-tutorial@packages.debian.org}}
pt_BR: Lucas Nussbaum\\{\small\texttt{packaging-tutorial@packages.debian.org}}\\[1.2em]Tradução para o português de\\ Tássia\ Camões\ Araújo, Leandro\ Luiz\ Pereira\\e equipe de tradução para o português do Brasil

note: Translators: leave \\version unchanged: this will a variable containing the actual version To translate the date, use \\today or a string containing \\year, \\month, \\day (numeric values). DATE - use debian/rules update-version-date type: date{#1}
en: version 0.22 -- 2019-02-21
pt_BR: versão 0.22 -- 28-02-2019

note: type: frame{#2}
en: About this tutorial
pt_BR: Sobre este manual

note: type: itemize
en: Goal: \textbf{tell you what you really need to know about Debian packaging}
pt_BR: Objetivo: \textbf{dizer o que é essencial saber sobre empacotamento Debian}

note: type: itemize
en: Modify existing packages
pt_BR: Modificar pacotes existentes

note: type: itemize
en: Create your own packages
pt_BR: Criar os seus próprios pacotes

note: type: itemize
en: Interact with the Debian community
pt_BR: Interagir com a comunidade Debian

note: type: itemize
en: Become a Debian power-user
pt_BR: Tornar-se um usuário avançado do Debian

note: type: itemize
en: Covers the most important points, but is not complete
pt_BR: Cobre os pontos mais importantes, mas não é completo

note: type: itemize
en: You will need to read more documentation
pt_BR: Você vai precisar ler mais documentação

note: type: itemize
en: Most of the content also applies to Debian derivative distributions
pt_BR: A maioria do conteúdo também se aplica a distribuições derivadas do Debian

note: type: itemize
en: That includes Ubuntu
pt_BR: Isso inclui Ubuntu

note: type: frame{#2}
en: Outline
pt_BR: Sumário

note: type: section{#2}
en: Introduction
pt_BR: Introdução

note: type: textbf{#1}
en: GNU/Linux distribution
pt_BR: Distribuição GNU/Linux

note: type: itemize
en: 1st major distro developed ``openly in the spirit of GNU''
pt_BR: 1ª grande distribuição desenvolvida ``abertamente no espírito GNU''

note: type: itemize
en: \textbf{Non-commercial}, built collaboratively by over 1,000 volunteers
pt_BR: \textbf{Não-comercial}, construída via colaboração por mais de 1000 voluntários

note: type: itemize
en: 3 main features:
pt_BR: 3 funcionalidades principais:

note: type: itemize
en: \textbf{Quality} -- culture of technical excellence\\ {\small\sl We release when it's ready}
pt_BR: \textbf{Qualidade} -- cultura de excelência técnica\\ {\small\sl Nós lançamos quando está pronto}

note: type: itemize
en: \textbf{Freedom} -- devs and users bound by the \textsl{Social Contract}\\ Promoting the culture of Free Software since 1993
pt_BR: \textbf{Liberdade} -- desenvolvedores e usuários unidos pelo \textsl{Contrato Social}\\ Promovendo a cultura do Software Livre desde 1993

note: type: itemize
en: \textbf{Independence} -- no (single) company babysitting Debian\\ And open decision-making process (\textsl{do-ocracy} + \textsl{democracy})
pt_BR: \textbf{Independência} -- nenhuma (única) companhia toma conta do Debian\\ E processo de tomada de decisão aberto (\textsl{do-ocracy} + \textsl{democracy})

note: type: itemize
en: \textbf{Amateur} in the best sense: done for the love of it
pt_BR: \textbf{Amador} no melhor sentido: feito com amor

note: type: frame{#2}
en: Debian packages
pt_BR: Pacotes Debian

note: type: itemize
en: \textbf{.deb} files (binary packages)
pt_BR: arquivos \textbf{.deb} (pacotes binários)

note: type: itemize
en: A very powerful and convenient way to distribute software to users
pt_BR: Uma maneira muito poderosa e conveniente de distribuir software aos usuários

note: type: itemize
en: One of the two most common package formats (with RPM)
pt_BR: Um dos dois formatos de pacotes mais comuns (juntamente com o RPM)

note: type: itemize
en: 30,000 binary packages in Debian\\ $\rightarrow$ most of the available free software is packaged in Debian!
pt_BR: 30000 pacotes binários no Debian\\ $\rightarrow$ a maioria do software livre disponível é empacotado para Debian!

note: type: itemize
en: For 12 ports (architectures), including 2 non-Linux (Hurd; KFreeBSD)
pt_BR: Para 12 portes (arquiteturas), incluindo 2 não-Linux (Hurd; KFreeBSD)

note: type: itemize
en: Also used by 120 Debian derivative distributions
pt_BR: Também usado por 120 distribuições derivadas do Debian

note: type: frame{#2}
en: The Deb package format
pt_BR: O formato de pacotes Deb

note: type: itemize
en: \texttt{.deb} file: an \texttt{ar} archive
pt_BR: Arquivo \texttt{.deb}: um pacote \texttt{ar}

note: $ type: itemize
en: \texttt{debian-binary}: version of the deb file format, \texttt{"2.0\textbackslash{}n"}
pt_BR: \texttt{debian-binary}: versão do formato de arquivo deb, \texttt{"2.0\textbackslash{}n"}

note: type: itemize
en: \texttt{control.tar.gz}: metadata about the package\\ {\small \texttt{\textbf{control}, md5sums, (pre|post)(rm|inst), triggers, shlibs}, \ldots}
pt_BR: \texttt{control.tar.gz}: meta-dados sobre o pacote\\ {\small \texttt{\textbf{control}, md5sums, (pre|post)(rm|inst), triggers, shlibs}, \ldots}

note: type: itemize
en: \texttt{data.tar.gz}: data files of the package
pt_BR: \texttt{data.tar.gz}: arquivos de dados do pacote

note: type: itemize
en: You could create your \texttt{.deb} files manually\\ {\footnotesize \url{http://tldp.org/HOWTO/html\_single/Debian-Binary-Package-Building-HOWTO/}}
pt_BR: Você poderia criar os seus arquivos \texttt{.deb} manualmente\\ {\footnotesize \url{http://tldp.org/HOWTO/html\_single/Debian-Binary-Package-Building-HOWTO/}}

note: type: itemize
en: But most people don't do it that way
pt_BR: Mas a maioria das pessoas não o faz dessa maneira

note: type: textbf{#1}
en: This tutorial: create Debian packages, the Debian way
pt_BR: Neste tutorial: criar pacotes Debian, à maneira Debian

note: type: frame{#2}
en: Tools you will need
pt_BR: Ferramentas que você vai precisar

note: type: itemize
en: A Debian (or Ubuntu) system (with root access)
pt_BR: Um sistema Debian (ou Ubuntu) (com acesso root)

note: type: itemize
en: Some packages:
pt_BR: Alguns pacotes:

note: type: itemize
en: \textbf{build-essential}: has dependencies on the packages that will be assumed to be available on the developer's machine (no need to specify them in the \texttt{Build-Depends:} control field of your package)
pt_BR: \textbf{build-essential}: tem dependências nos pacotes que serão assumidos estar disponíveis na máquina do desenvolvedor (não é preciso especificá-las no campo \texttt{Build-Depends:} do arquivo control do seu pacote)

note: type: itemize
en: includes a dependency on \textbf{dpkg-dev}, which contains basic Debian-specific tools to create packages
pt_BR: Inclui uma dependência de \textbf{dpkg-dev}, o qual contém ferramentas básicas específicas do Debian para criar pacotes

note: type: itemize
en: \textbf{devscripts}: contains many useful scripts for Debian maintainers
pt_BR: \textbf{devscripts}: contém muitos scripts úteis para mantenedores Debian

note: type: frame
en: Many other tools will also be mentioned later, such as \textbf{debhelper}, \textbf{cdbs}, \textbf{quilt}, \textbf{pbuilder}, \textbf{sbuild}, \textbf{lintian}, \textbf{svn-buildpackage}, \textbf{git-buildpackage}, \ldots\\ Install them when you need them.
pt_BR: Muitas outras ferramentas serão também mencionadas mais tarde, tais como \textbf{debhelper}, \textbf{cdbs}, \textbf{quilt}, \textbf{pbuilder}, \textbf{sbuild}, \textbf{lintian}, \textbf{svn-buildpackage}, \textbf{git-buildpackage}, \ldots\\ Instale-as quando precisar delas.

note: type: frame{#2}
en: General packaging workflow
pt_BR: Fluxo de trabalho de empacotamento geral

note: \draw[arr,->] (bin) -- (-1,-6) node[pos=0.5,left] {upload (\textttc{dput})}; hack hack hack type: tikzpicture
en: \node[node1] (www) at (0, 0) {Web}; \node[node1] (us) at (2.5, 0) {upstream source}; \node[node1] (da) at (-2.5, 0) {Debian mirror}; \node[node1] (sp) at (0, -2) {source package}; \draw[arr,<-,dashed,thick] (sp) -- (2.5,-2) node[right=0cm,text width=2.98cm,text centered,font=\small\sl] {where most of the manual work is done}; \node[node1] (bin) at (0, -4) {one or several binary packages}; \draw[arr,<-,dashed,thick] (bin) -- (3.5,-4) node[right,text centered,font=\small\ttfamily\sl] {.deb\normalfont}; \draw[arr,->] (us) -- (sp) node[pos=0.5,right,command] {dh\_make}; \draw[arr,->] (da) -- (sp) node[pos=0.5,left,command] {apt-get source}; \draw[arr,->] (www) -- (sp) node[pos=0.5,left,command] {dget}; \draw[arr,->] (sp) -- (bin) node[pos=0.5,right,text width=6cm] {\textttc{debuild} (build and test with \textttc{lintian}) or \textttc{dpkg-buildpackage}}; \draw[arr,->] (bin) -- (1,-6) node[pos=0.5,right] {install (\textttc{debi})}; \draw[transparent] (bin) -- (-1,-6) node[pos=0.5,left,opaque] {upload (\textttc{dput})}; \draw[arr,->,rounded corners] (bin) -- (-1,-6) -- (-4.5,-6) -- (-4.5,0) -- (da); \useasboundingbox (-4,-6) rectangle (6,0);
pt_BR: \node[node1] (www) at (0, 0) {Web}; \node[node1] (us) at (2.5, 0) {fonte original}; \node[node1] (da) at (-2.5, 0) {mirror Debian}; \node[node1] (sp) at (0, -2) {pacote fonte}; \draw[arr,<-,dashed,thick] (sp) -- (2.5,-2) node[right=0cm,text width=2.98cm,text centered,font=\small\sl] {onde a maioria do trabalho manual é feito}; \node[node1] (bin) at (0, -4) {um ou vários pacotes binários}; \draw[arr,<-,dashed,thick] (bin) -- (3.5,-4) node[right,text centered,font=\small\ttfamily\sl] {.deb\normalfont}; \draw[arr,->] (us) -- (sp) node[pos=0.5,right,command] {dh\_make}; \draw[arr,->] (da) -- (sp) node[pos=0.5,left,command] {apt-get source}; \draw[arr,->] (www) -- (sp) node[pos=0.5,left,command] {dget}; \draw[arr,->] (sp) -- (bin) node[pos=0.5,right,text width=6cm] {\textttc{debuild} (compilar e testar com \textttc{lintian}) ou \textttc{dpkg-buildpackage}}; \draw[arr,->] (bin) -- (1,-6) node[pos=0.5,right] {instalar (\textttc{debi})}; \draw[transparent] (bin) -- (-1,-6) node[pos=0.5,left,opaque] {enviar (\textttc{dput})}; \draw[arr,->,rounded corners] (bin) -- (-1,-6) -- (-4.5,-6) -- (-4.5,0) -- (da); \useasboundingbox (-4,-6) rectangle (6,0);

note: type: subsection{#2}
en: Rebuilding dash
pt_BR: Recompilando o dash

note: type: frame{#2}
en: Example: rebuilding dash
pt_BR: Exemplo: recompilando o dash

note: type: enumerate
en: Install packages needed to build dash, and devscripts\\ {\texttt{sudo apt-get build-dep dash}\\ (requires \texttt{deb-src} lines in \texttt{/etc/apt/sources.list})}\\ {\texttt{sudo apt-get install -{}-no-install-recommends devscripts fakeroot}}
pt_BR: Instale os pacotes necessários para compilar o dash e devscripts\\ {\texttt{sudo apt-get build-dep dash}\\ (requer linhas \texttt{deb-src} em \texttt{/etc/apt/sources.list})}\\ {\texttt{sudo apt-get install -{}-no-install-recommends devscripts fakeroot}}

note: type: enumerate
en: Create a working directory, and get in it:\\ \texttt{mkdir /tmp/debian-tutorial ; cd /tmp/debian-tutorial}
pt_BR: Crie um diretório de trabalho, e vá para ele :\\ \texttt{mkdir /tmp/debian-tutorial ; cd /tmp/debian-tutorial}

note: type: enumerate
en: Grab the \texttt{dash} source package\\ \texttt{apt-get source dash}\\ {\small (This needs you to have \texttt{deb-src} lines in your \texttt{/etc/apt/sources.list})}
pt_BR: Obtenha o pacote fonte do \texttt{dash}\\ \texttt{apt-get source dash}\\ {\small (Para isto você precisa ter linhas \texttt{deb-src} no seu \texttt{/etc/apt/sources.list})}

note: type: enumerate
en: Build the package\\ {\texttt{cd dash-*\\ debuild -us -uc}} ~~~(\texttt{-us -uc} disables signing the package with GPG)
pt_BR: Compile o pacote\\ {\texttt{cd dash-*\\ debuild -us -uc}} ~~~(\texttt{-us -uc} desativa a assinatura do pacote com GPG)

note: type: enumerate
en: Check that it worked
pt_BR: Verifique que funcionou

note: type: itemize
en: There are some new \texttt{.deb} files in the parent directory
pt_BR: Existem alguns arquivos \texttt{.deb} novos no diretório anterior

note: type: enumerate
en: Look at the \texttt{debian/} directory
pt_BR: Observe o diretório \texttt{debian/}

note: type: itemize
en: That's where the packaging work is done
pt_BR: É aí que o trabalho de empacotamento é feito

note: type: section{#2}
en: Creating source packages
pt_BR: Criar pacotes fonte

note: type: subsection{#2}
en: Source packages basics
pt_BR: Fundamentos dos pacotes fonte

note: type: frame{#2}
en: Source package
pt_BR: Pacote fonte

note: type: itemize
en: One source package can generate several binary packages\\ {\small e.g. the \texttt{\bfseries libtar} source generates the \texttt{\bfseries libtar0} and \texttt{\bfseries libtar-dev} binary packages}
pt_BR: Um pacote fonte pode gerar vários pacotes binários\\ {\small p. ex. o fonte \texttt{\bfseries libtar} gera os pacotes binários \texttt{\bfseries libtar0} e \texttt{\bfseries libtar-dev}}

note: type: itemize
en: Two kinds of packages: (if unsure, use non-native)
pt_BR: Dois tipos de pacotes: (em caso de dúvida, use não-nativo)

note: type: itemize
en: Native packages: normally for Debian specific software (\textsl{dpkg}, \textsl{apt})
pt_BR: Pacotes nativos: geralmente para software específico do Debian (\textsl{dpkg}, \textsl{apt})

note: type: itemize
en: Non-native packages: software developed outside Debian
pt_BR: Pacotes não-nativos: software desenvolvido fora do Debian

note: type: itemize
en: Main file: \texttt{.dsc} (meta-data)
pt_BR: Arquivo principal: \texttt{.dsc} (meta-dados)

note: type: itemize
en: Other files depending on the version of the source format
pt_BR: Outros arquivos dependendo da versão do formato do fonte

note: type: itemize
en: 1.0 or 3.0 (native): \texttt{package\_version.tar.gz}
pt_BR: 1.0 ou 3.0 (nativo): \texttt{package\_version.tar.gz}

note: type: itemize
en: 1.0 (non-native):
pt_BR: 1.0 (não-nativo):

note: type: itemize
en: \texttt{pkg\_ver.orig.tar.gz}: upstream source
pt_BR: \texttt{pkg\_ver.orig.tar.gz}: fonte do original (upstream)

note: type: itemize
en: \texttt{pkg\_debver.diff.gz}: patch to add Debian-specific changes
pt_BR: \texttt{pkg\_debver.diff.gz}: patch para adicionar alterações específicas do Debian

note: type: itemize
en: \texttt{pkg\_debver.debian.tar.gz}: tarball with the Debian changes
pt_BR: \texttt{pkg\_debver.debian.tar.gz}: tarball com alterações do Debian

note: type: frame
en: (See \texttt{dpkg-source(1)} for exact details)
pt_BR: (Veja \texttt{dpkg-source(1)} para detalhes exatos)

note: type: frame{#2}
en: Source package example (wget\_1.12-2.1.dsc)
pt_BR: Exemplo de pacote fonte (wget\_1.12-2.1.dsc)

note: type: subsection{#2}
en: Retrieving source packages
pt_BR: Obtendo pacotes fonte

note: type: frame{#2}
en: Retrieving an existing source package
pt_BR: Obtendo um pacote fonte existente

note: type: itemize
en: From the Debian archive:
pt_BR: Do arquivo Debian:

note: type: itemize
en: \texttt{apt-get source \textsl{package}}
pt_BR: \texttt{apt-get source \textsl{pacote}}

note: type: itemize
en: \texttt{apt-get source \textsl{package=version}}
pt_BR: \texttt{apt-get source \textsl{pacote=versão}}

note: type: itemize
en: \texttt{apt-get source \textsl{package/release}}
pt_BR: \texttt{apt-get source \textsl{pacote/lançamento}}

note: type: itemize
en: (You need \texttt{deb-src} lines in \texttt{sources.list})
pt_BR: (Você precisa de linhas \texttt{deb-src} em \texttt{sources.list})

note: type: itemize
en: From the Internet:
pt_BR: Da Internet:

note: type: itemize
en: \texttt{dget http://snapshot.debian.org/archive/debian-archive/\\20090802T004153Z/debian/dists/bo/main/source/web/\\ wget\_1.4.4-6.dsc}\\ (\href{http://snapshot.debian.org/}{\ttfamily snapshot.d.o} provides all packages from Debian since 2005)
pt_BR: \texttt{dget http://snapshot.debian.org/archive/debian-archive/\\20090802T004153Z/debian/dists/bo/main/source/web/\\ wget\_1.4.4-6.dsc}\\ (\href{http://snapshot.debian.org/}{\ttfamily snapshot.d.o} disponibiliza todos os pacotes Debian desde 2005)

note: type: itemize
en: From the (declared) version control system:
pt_BR: Do sistema de controle de versão (declarado):

note: type: itemize
en: \texttt{debcheckout \textsl{package}}
pt_BR: \texttt{debcheckout \textsl{pacote}}

note: type: itemize
en: Once downloaded, extract with \texttt{dpkg-source -x \textsl{file.dsc}}
pt_BR: Após baixado, extraia com \texttt{dpkg-source -x \textsl{file.dsc}}

note: type: frame{#2}
en: Creating a basic source package
pt_BR: Criar um pacote fonte básico

note: type: itemize
en: Download the upstream source\\ (\textsl{upstream source} = the one from the software's original developers)
pt_BR: Baixe o fonte original (upstream)\\ (\textsl{fonte upstream} = aquele dos desenvolvedores originais do software)

note: type: itemize
en: Rename to \texttt{<\textsl{source\_package}>\_<\textsl{upstream\_version}>.orig.tar.gz}\\ (example: \texttt{simgrid\_3.6.orig.tar.gz})
pt_BR: Renomeie para \texttt{<\textsl{pacote\_fonte}>\_<\textsl{versao\_original}>.orig.tar.gz}\\ (exemplo: \texttt{simgrid\_3.6.orig.tar.gz})

note: type: itemize
en: Untar it
pt_BR: Descompacte-o

note: type: itemize
en: Rename the directory to \texttt{<\textsl{source\_package}>-<\textsl{upstream\_version}>}\\ (example: \texttt{simgrid-3.6})
pt_BR: Renomeie o diretório para \texttt{<\textsl{pacote\_fonte}>-<\textsl{versao\_original}>}\\ (exemplo: \texttt{simgrid-3.6})

note: type: itemize
en: \texttt{cd \texttt{<\textsl{source\_package}>-<\textsl{upstream\_version}>} \&\& dh\_make}\\ (from the \textbf{dh-make} package)
pt_BR: \texttt{cd \texttt{<\textsl{pacote\_fonte}>-<\textsl{versao\_original}>} \&\& dh\_make}\\ (do pacote \textbf{dh-make})

note: type: itemize
en: There are some alternatives to \texttt{dh\_make} for specific sets of packages: \textbf{dh-make-perl}, \textbf{dh-make-php}, \ldots
pt_BR: Existem algumas alternativas ao \texttt{dh\_make} para conjuntos de pacotes específicos: \textbf{dh-make-perl}, \textbf{dh-make-php}, \ldots

note: type: itemize
en: \texttt{debian/} directory created, with a lot of files in it
pt_BR: Diretório \texttt{debian/} criado, com muitos arquivos dentro dele

note: type: frame{#2}
en: Files in debian/
pt_BR: Arquivos em debian/

note: type: frame
en: All the packaging work should be made by modifying files in \texttt{debian/}
pt_BR: Todo o empacotamento deve ser feito modificando-se arquivos em \texttt{debian/}

note: type: itemize
en: Main files:
pt_BR: Arquivos principais:

note: type: itemize
en: \textbf{control} -- meta-data about the package (dependencies, etc.)
pt_BR: \textbf{control} -- meta-dados sobre o pacote (dependências, etc)

note: type: itemize
en: \textbf{rules} -- specifies how to build the package
pt_BR: \textbf{rules} -- especifica como compilar o pacote

note: type: itemize
en: \textbf{copyright} -- copyright information for the package
pt_BR: \textbf{copyright} -- informação de copyright para o pacote

note: type: itemize
en: \textbf{changelog} -- history of the Debian package
pt_BR: \textbf{changelog} -- história do pacote Debian

note: type: itemize
en: Other files:
pt_BR: Outros arquivos:

note: type: itemize
en: maintainer scripts\\ {\small *.postinst, *.prerm, \ldots}
pt_BR: scripts do mantenedor\\ {\small *.postinst, *.prerm, \ldots}

note: type: itemize
en: patches/ -- if you need to modify the upstream sources
pt_BR: patches/ -- se você precisar modificar os fontes do autor original

note: type: itemize
en: Several files use a format based on RFC 822 (mail headers)
pt_BR: Vários arquivos usam formato baseado em RFC 822 \small (cabeçalhos de email)

note: type: itemize
en: Lists the Debian packaging changes
pt_BR: Lista as alterações no empacotamento Debian

note: type: itemize
en: Gives the current version of the package
pt_BR: Determina a versão atual do pacote

note: type: tikzpicture
en: \draw (0,0) node[above right] {\large 1.2.1.1-5}; \draw [decorate,decoration={brace}] (2,0) -- (1.45,0) node[at start,below,text width=1.6cm,text centered] {\small Debian revision}; \draw [decorate,decoration={brace}] (1.4,0) -- (0,0) node[midway,below,text width=1.6cm,text centered] { \small Upstream version};
pt_BR: \draw (0,0) node[above right] {\large 1.2.1.1-5}; \draw [decorate,decoration={brace}] (2,0) -- (1.45,0) node[at start,below,text width=1.6cm,text centered] {\small Revisão Debian}; \draw [decorate,decoration={brace}] (1.4,0) -- (0,0) node[midway,below,text width=1.6cm,text centered] { \small Versão original};

note: % type: itemize
en: Edited manually or with \textttc{dch}
pt_BR: Editado manualmente ou com \textttc{dch}

note: type: itemize
en: Create a changelog entry for a new release: \textttc{dch -i}
pt_BR: Crie uma entrada no changelog para um novo lançamento: \textttc{dch -i}

note: type: itemize
en: Special format to automatically close Debian or Ubuntu bugs\\ Debian: \texttt{Closes:~\#595268}; Ubuntu: \texttt{LP:~\#616929}
pt_BR: Formato especial para fechar automaticamente bugs do Debian ou Ubuntu. Debian: \texttt{Closes:~\#595268}; Ubuntu: \texttt{LP:~\#616929}

note: type: itemize
en: Installed as \texttt{/usr/share/doc/\textit{package}/changelog.Debian.gz}
pt_BR: Instalado como \texttt{/usr/share/doc/\textit{pacote}/changelog.Debian.gz}

note: type: itemize
en: Package metadata
pt_BR: Meta-dados do pacote

note: type: itemize
en: For the source package itself
pt_BR: Para o próprio pacote fonte

note: type: itemize
en: For each binary package built from this source
pt_BR: Para cada pacote binário compilado deste fonte

note: type: itemize
en: Package name, section, priority, maintainer, uploaders, build-dependencies, dependencies, description, homepage, \ldots
pt_BR: Nome do pacote, seção, prioridade, mantenedor, desenvolvedor que faz os uploads, dependências de compilação, dependências, descrição, página do projeto, \ldots

note: type: itemize
en: Documentation: Debian Policy chapter 5\\ \url{https://www.debian.org/doc/debian-policy/ch-controlfields}
pt_BR: Documentação: Debian Policy capítulo 5\\ \url{https://www.debian.org/doc/debian-policy/ch-controlfields}

note: type: frame{#2}
en: Architecture: all or any
pt_BR: Arquitetura: todas ou alguma

note: type: frame
en: Two kinds of binary packages:
pt_BR: Dois tipos de pacotes binários:

note: type: itemize
en: Packages with different contents on each Debian architecture
pt_BR: Pacotes com conteúdos diferentes para cada arquitectura Debian

note: type: itemize
en: Example: C program
pt_BR: Exemplo: programa C

note: type: itemize
en: \texttt{Architecture:\ any} in \texttt{debian/control}
pt_BR: \texttt{Architecture:\ any} em \texttt{debian/control}

note: type: itemize
en: Or, if it only works on a subset of architectures:\\ \texttt{Architecture:\ amd64 i386 ia64 hurd-i386}
pt_BR: Ou, se apenas funcionar num sub-conjunto de arquiteturas:\\ \texttt{Architecture:\ amd64 i386 ia64 hurd-i386}

note: type: itemize
en: buildd.debian.org: builds all the other architectures for you on upload
pt_BR: buildd.debian.org: compila para todas as outras arquiteturas no upload

note: type: itemize
en: Named \texttt{\textsl{package}\_\textsl{version}\_\textsl{architecture}.deb}
pt_BR: Chamado \texttt{\textsl{pacote}\_\textsl{versão}\_\textsl{arquitetura}.deb}

note: type: itemize
en: Packages with the same content on all architectures
pt_BR: Pacotes com o mesmo conteúdo para todas as arquiteturas

note: type: itemize
en: Example: Perl library
pt_BR: Exemplo: biblioteca Perl

note: type: itemize
en: \texttt{Architecture:\ all} in \texttt{debian/control}
pt_BR: \texttt{Architecture:\ all} em \texttt{debian/control}

note: type: itemize
en: Named \texttt{\textsl{package}\_\textsl{version}\_\textbf{all}.deb}
pt_BR: Chamado \texttt{\textsl{pacote}\_\textsl{versão}\_\textbf{all}.deb}

note: type: frame
en: A source package can generate a mix of \texttt{Architecture:\ any} and \texttt{Architecture:\ all} binary packages
pt_BR: Um pacote fonte pode gerar uma mistura de pacotes binários de \texttt{Arquitecture:\ any} e \texttt{Arquitecture:\ all}

note: type: itemize
en: Interface used to build Debian packages
pt_BR: Interface usada para compilar pacotes Debian

note: type: itemize
en: Documented in Debian Policy, chapter 4.8\\ {\small \url{https://www.debian.org/doc/debian-policy/ch-source\#s-debianrules}}
pt_BR: Documentado na Debian Policy, capitulo 4.8\\ {\small \url{https://www.debian.org/doc/debian-policy/ch-source\#s-debianrules}}

note: type: itemize
en: Required targets:
pt_BR: Alvos necessários:

note: type: itemize
en: \texttt{build, build-arch, build-indep}: should perform all the configuration and compilation
pt_BR: \texttt{build, build-arch, build-indep}: deve executar toda a configuração e compilação

note: type: itemize
en: \texttt{binary, binary-arch, binary-indep}: build the binary packages
pt_BR: \texttt{binary, binary-arch, binary-indep}: compila os pacotes binários

note: type: itemize
en: \texttt{dpkg-buildpackage} will call \texttt{binary} to build all the packages, or \texttt{binary-arch} to build only the \texttt{Architecture:~any} packages
pt_BR: \texttt{dpkg-buildpackage} vai chamar \texttt{binary} para compilar todos os pacotes, ou \texttt{binary-arch} para compilar apenas os pacotes de \texttt{Arquitecture:~any}

note: type: itemize
en: \texttt{clean}: clean up the source directory
pt_BR: \texttt{clean}: limpa o diretório fonte

note: type: subsection{#2}
en: Packaging helpers
pt_BR: Ajudantes de empacotamento

note: type: frame{#2}
en: Packaging helpers -- debhelper
pt_BR: Ajudantes de empacotamento -- debhelper

note: type: itemize
en: You could write shell code in \texttt{debian/rules} directly
pt_BR: Você poderia escrever código de shell diretamente em \texttt{debian/rules}

note: type: itemize
en: See the \texttt{rsync} package for example
pt_BR: Veja o pacote \texttt{rsync} como exemplo

note: type: itemize
en: Better practice (used by most packages): use a \textsl{Packaging helper}
pt_BR: Melhor prática (mais popular): use um \textsl{Ajudante de empacotamento}

note: type: itemize
en: Most popular one: \textbf{debhelper} (used by 98\% of packages)
pt_BR: O mais popular deles: \textbf{debhelper} (usado por 98\% dos pacotes)

note: type: itemize
en: Goals:
pt_BR: Objetivos:

note: type: itemize
en: Factor the common tasks in standard tools used by all packages
pt_BR: \small Divide tarefas comuns em ferramentas padrão usadas por todos os pacotes

note: type: itemize
en: Fix some packaging bugs once for all packages
pt_BR: Corrige bugs de empacotamento de uma vez para todos os pacotes

note: type: itemize
en: Called from \texttt{debian/rules}
pt_BR: Chamado a partir de \texttt{debian/rules}

note: type: itemize
en: Configurable using command parameters or files in \texttt{debian/}
pt_BR: Configurável usando parâmetros de comandos ou arquivos em \texttt{debian/}

note: type: itemize
en: {\footnotesize \ttfamily \textsl{package}.docs, \textsl{package}.examples, \textsl{package}.install, \textsl{package}.manpages, \ldots}
pt_BR: {\footnotesize \ttfamily \textsl{package}.docs, \textsl{package}.exemplos, \textsl{package}.install, \textsl{package}.manpages, \ldots}

note: type: itemize
en: Third-party helpers for sets of packages: \textbf{python-support}, \textbf{dh\_ocaml}, \ldots
pt_BR: Ajudantes de terceiros para conjuntos de pacotes: {\scriptsize \textbf{python-support}, \textbf{dh\_ocaml}, \ldots}

note: type: itemize
en: Gotcha: \texttt{debian/compat}: Debhelper compatibility version (use "7")
pt_BR: \texttt{debian/compat}: Versão de compatibilidade do Debhelper (use "7")

note: type: frame{#2}
en: debian/rules using debhelper (1/2)
pt_BR: debian/rules usando debhelper (1/2)

note: type: frame{#2}
en: debian/rules using debhelper (2/2)
pt_BR: debian/rules usando debhelper (2/2)

note: type: itemize
en: With debhelper, still a lot of redundancy between packages
pt_BR: Com o debhelper, ainda bastante redundância entre pacotes

note: type: itemize
en: Second-level helpers that factor common functionality
pt_BR: Ajudantes de segundo-nível que dividem funcionalidades comuns

note: type: itemize
en: E.g. building with \texttt{./configure \&\& make \&\& make install} or CMake
pt_BR: \small P. ex. compilando com \texttt{./configure \&\& make \&\& make install} ou CMake

note: type: itemize
en: Introduced in 2005, based on advanced \textsl{GNU make} magic
pt_BR: \small Introduzido em 2005, baseado na magia avançada do \textsl{GNU make}

note: type: itemize
en: Documentation: \texttt{/usr/share/doc/cdbs/}
pt_BR: Documentação: \texttt{/usr/share/doc/cdbs/}

note: type: itemize
en: Support for Perl, Python, Ruby, GNOME, KDE, Java, Haskell, \ldots
pt_BR: Suporte para Perl, Python, Ruby, GNOME, KDE, Java, Haskell, \ldots

note: type: itemize
en: But some people hate it:
pt_BR: Porém existem pessoas que o detestam:

note: type: itemize
en: Sometimes difficult to customize package builds:\\ "\textsl{twisty maze of makefiles and environment variables}"
pt_BR: \small Às vezes é difícil personalizar compilações de pacotes:\\ "\textsl{labirinto enrolado de makefiles e variáveis de ambiente}"

note: type: itemize
en: Slower than plain debhelper (many useless calls to \texttt{dh\_*})
pt_BR: Mais lento que o debhelper puro (muitas chamadas desnecessárias a \texttt{dh\_*})

note: type: frame{#2}
en: Dh (aka Debhelper 7, or dh7)
pt_BR: Dh (aka Debhelper 7, ou dh7)

note: type: itemize
en: Introduced in 2008 as a \textsl{CDBS killer}
pt_BR: Introduzido em 2008 como um \textsl{matador do CDBS}

note: type: itemize
en: \textbf{dh} command that calls \texttt{dh\_*}
pt_BR: comando \textbf{dh} que chama \texttt{dh\_*}

note: type: itemize
en: Simple \textsl{debian/rules}, listing only overrides
pt_BR: \textsl{debian/rules} simples, listando apenas as sobreposições

note: type: itemize
en: Easier to customize than CDBS
pt_BR: Mais fácil de personalizar que o CDBS

note: type: itemize
en: Doc: manpages (\texttt{debhelper(7)}, \texttt{dh(1)}) + slides from DebConf9 talk\\ \url{http://kitenet.net/~joey/talks/debhelper/debhelper-slides.pdf}
pt_BR: Documentos: manpages (\texttt{debhelper(7)}, \texttt{dh(1)}) + slides da palestra na DebConf9\\ \url{http://kitenet.net/~joey/talks/debhelper/debhelper-slides.pdf}

note: source for stats: https://anonscm.debian.org/cgit/collab-qa/dhistory.git/ type: frame{#2}
en: Classic debhelper vs CDBS vs dh
pt_BR: debhelper clássico versus CDBS versus dh

note: type: itemize
en: Mind shares:\\ Classic debhelper: 15\% \hskip 1em CDBS: 15\% \hskip 1em dh: 68\%
pt_BR: Popularidade:\\ debhelper clássico: 15\% \hskip 1em CDBS: 15\% \hskip 1em dh: 68\%

note: type: itemize
en: Which one should I learn?
pt_BR: Qual deles devo aprender?

note: type: itemize
en: Probably a bit of all of them
pt_BR: Provavelmente um pouco de todos eles

note: type: itemize
en: You need to know debhelper to use dh and CDBS
pt_BR: Você precisa conhecer o debhelper para usar o dh e o CDBS

note: type: itemize
en: You might have to modify CDBS packages
pt_BR: Você pode ter que modificar pacotes CDBS

note: type: itemize
en: Which one should I use for a new package?
pt_BR: Qual deles devo usar para um pacote novo?

note: type: itemize
en: \textbf{dh} (only solution with an increasing mind share)
pt_BR: \textbf{dh} (única solução com um aumento de popularidade)

note: type: axis[#1]
en: small,label style={font=\footnotesize},xlabel={\small Time},ylabel={\small Market share (\%)}, date coordinates in=x,height=4.85cm,width=9cm,xticklabel={\year}, legend style={font=\footnotesize,at={(1.02,1)},anchor=north west},max space between ticks=82,try min ticks=5,ymin=0
pt_BR: small,label style={font=\footnotesize},xlabel={\small Tempo},ylabel={\small Fatia do mercado (\%)}, date coordinates in=x,height=4.85cm,width=9cm,xticklabel={\year}, legend style={font=\footnotesize,at={(1.02,1)},anchor=north west},max space between ticks=82,try min ticks=5,ymin=0

note: type: section{#2}
en: Building and testing packages
pt_BR: Compilando e testando pacotes

note: type: frame{#2}
en: Building packages
pt_BR: Compilando pacotes

note: type: itemize
en: \textttc{apt-get build-dep mypackage}\\ Installs the \textsl{build-dependencies} (for a package already in Debian)\\ Or \textttc{mk-build-deps -ir} (for a package not uploaded yet)
pt_BR: \textttc{apt-get build-dep mypackage}\\ Instala as \textsl{build-dependencies} (para um pacote já no Debian)\\ Ou \textttc{mk-build-deps -ir} (para um pacote ainda não submetido)

note: type: itemize
en: \textttc{debuild}: build, test with \texttt{lintian}, sign with GPG
pt_BR: \textttc{debuild}: compila, testa com \texttt{lintian}, assina com GPG

note: type: itemize
en: Also possible to call \textttc{dpkg-buildpackage} directly
pt_BR: Também é possível chamar diretamente \textttc{dpkg-buildpackage}

note: type: itemize
en: Usually with \texttt{dpkg-buildpackage -us -uc}
pt_BR: Normalmente com \texttt{dpkg-buildpackage -us -uc}

note: type: itemize
en: It is better to build packages in a clean \& minimal environment
pt_BR: É melhor compilar os pacotes num ambiente limpo \& mínimo

note: type: itemize
en: \textttc{pbuilder} -- helper to build packages in a \textsl{chroot}\\ Good documentation: \url{https://wiki.ubuntu.com/PbuilderHowto}\\ (optimization: \textttc{cowbuilder} \textttc{ccache} \textttc{distcc})
pt_BR: \textttc{pbuilder} -- ajudante para compilar pacotes num \textsl{chroot}\\ Boa documentação: \url{https://wiki.ubuntu.com/PbuilderHowto}\\ (otimização: \textttc{cowbuilder} \textttc{ccache} \textttc{distcc})

note: type: itemize
en: \textttc{schroot} and \textttc{sbuild}: used on the Debian build daemons\\ (not as simple as \texttt{pbuilder}, but allows LVM snapshots\\ see: \url{https://help.ubuntu.com/community/SbuildLVMHowto} )
pt_BR: \textttc{schroot} e \textttc{sbuild}: usados nos daemons de compilação do Debian\\ (não tão simples quanto \texttt{pbuilder}, mas permite snapshots LVM\\ veja: \url{https://help.ubuntu.com/community/SbuildLVMHowto} )

note: type: itemize
en: Generates \texttt{.deb} files and a \texttt{.changes} file
pt_BR: Gera arquivos \texttt{.deb} e um arquivo \texttt{.changes}

note: type: itemize
en: \texttt{.changes}: describes what was built; used to upload the package
pt_BR: \texttt{.changes}: descreve o que foi compilado; usado para fazer o upload do pacote

note: type: frame{#2}
en: Installing and testing packages
pt_BR: Instalando e testando pacotes

note: type: itemize
en: Install the package locally: \textttc{debi} (will use \texttt{.changes} to know what to install)
pt_BR: Instale o pacote localmente: \textttc{debi} (\texttt{.changes} vai dizer o que instalar)

note: type: itemize
en: List the content of the package: \texttt{{\color{rouge}debc} ../mypackage<TAB>.changes}
pt_BR: Liste o conteúdo do pacote: \texttt{{\color{rouge}debc} ../mypackage<TAB>.changes}

note: type: itemize
en: Compare the package with a previous version:\\ \texttt{{\color{rouge}debdiff} ../mypackage\_1\_*.changes ../mypackage\_2\_*.changes}\\ or to compare the sources:\\ \texttt{{\color{rouge}debdiff} ../mypackage\_1\_*.dsc ../mypackage\_2\_*.dsc}\\
pt_BR: Compare o pacote com a versão anterior:\\ \texttt{{\color{rouge}debdiff} ../mypackage\_1\_*.changes ../mypackage\_2\_*.changes}\\ ou para comparar os fontes:\\ \texttt{{\color{rouge}debdiff} ../mypackage\_1\_*.dsc ../mypackage\_2\_*.dsc}\\

note: type: itemize
en: Check the package with \texttt{lintian} (static analyzer):\\ \texttt{{\color{rouge}lintian} ../mypackage<TAB>.changes}\\ \texttt{lintian -i}: gives more information about the errors \\ \texttt{lintian -EviIL +pedantic}: shows more problems
pt_BR: Verifique o pacote com \texttt{lintian} (analisador estático):\\ \texttt{{\color{rouge}lintian} ../mypackage<TAB>.changes}\\ \texttt{lintian -i}: fornece mais informação sobre os erros \\ \texttt{lintian -EviIL +pedantic}: mostra mais problemas

note: type: itemize
en: Upload the package to Debian (\textttc{dput}) (needs configuration)
pt_BR: Faça o upload do pacote para o Debian (\textttc{dput}) (precisa de configuração)

note: type: itemize
en: Manage a private Debian archive with \textttc{reprepro} or \textttc{aptly}\\ Documentation: \url{https://wiki.debian.org/HowToSetupADebianRepository}
pt_BR: Gerencie um repositório Debian privado com \textttc{reprepro} ou \textttc{aptly}\\ Documentação: \url{https://wiki.debian.org/HowToSetupADebianRepository}

note: type: frame{#2}
en: Practical session 1: modifying the grep package
pt_BR: Sessão prática 1: modificando o pacote grep

note: type: enumerate
en: Go to \url{http://ftp.debian.org/debian/pool/main/g/grep/} and download version 2.12-2 of the package
pt_BR: Visite \url{http://ftp.debian.org/debian/pool/main/g/grep/} e baixe a versão 2.12-2 do pacote

note: type: itemize
en: If the source package is not unpacked automatically, unpack it with \texttt{dpkg-source~-x~grep\_*.dsc}
pt_BR: Se o pacote fonte não descompactar automaticamente, descompacte-o com \texttt{dpkg-source~-x~grep\_*.dsc}

note: type: enumerate
en: Look at the files in \texttt{debian/}.
pt_BR: Observe os arquivos em \texttt{debian/}

note: type: itemize
en: How many binary packages are generated by this source package?
pt_BR: Quantos pacotes binários são gerados por este pacote fonte?

note: type: itemize
en: Which packaging helper does this package use?
pt_BR: Qual ajudante de empacotamento este pacote usa?

note: type: itemize
en: Build the package
pt_BR: Compile o pacote

note: type: enumerate
en: We are now going to modify the package. Add a changelog entry and increase the version number.
pt_BR: Agora vamos modificar o pacote. Adicione uma entrada changelog e incremente o número da versão.

note: type: enumerate
en: Now disable perl-regexp support (it is a \texttt{./configure} option)
pt_BR: Agora desative o suporte a perl-regexp (uma opção do \texttt{./configure})

note: type: enumerate
en: Rebuild the package
pt_BR: Re-compile o pacote

note: type: enumerate
en: Compare the original and the new package with debdiff
pt_BR: Compare os pacotes original e novo com o debdiff

note: type: enumerate
en: Install the newly built package
pt_BR: instale o pacote que acaba de ser compilado

note: type: section{#2}
en: Advanced packaging topics
pt_BR: Tópicos avançados de empacotamento

note: type: itemize
en: Copyright and license information for the source and the packaging
pt_BR: Informação de copyright e licença para a fonte e o empacotamento

note: type: itemize
en: Traditionally written as a text file
pt_BR: Tradicionalmente escrito num arquivo de texto

note: type: itemize
en: New machine-readable format: {\small\url{https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/}}
pt_BR: Novo formato legível por máquina: {\small\url{https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/}}

note: type: frame{#2}
en: Modifying the upstream source
pt_BR: Modificando a fonte do original

note: type: frame
en: Often needed:
pt_BR: Muitas vezes necessário:

note: type: itemize
en: Fix bugs or add customizations that are specific to Debian
pt_BR: Corrigir bugs ou adicionar personalizações que são específicas do Debian

note: type: itemize
en: Backport fixes from a newer upstream release
pt_BR: Correções a versões anteriores (backport fixes) a partir de lançamento mais recente do autor original

note: type: frame
en: Several methods to do it:
pt_BR: Vários métodos para fazer isso:

note: type: itemize
en: Modifying the files directly
pt_BR: Modificando os arquivos diretamente

note: type: itemize
en: Simple
pt_BR: Simples

note: type: itemize
en: But no way to track and document the changes
pt_BR: Mas não permite acompanhar e documentar as alterações

note: type: itemize
en: Using patch systems
pt_BR: Utilizando sistemas de patch

note: type: itemize
en: Eases contributing your changes to upstream
pt_BR: Facilita a contribuição das suas alterações para o autor original (upstream)

note: type: itemize
en: Helps sharing the fixes with derivatives
pt_BR: Ajuda a compartilhar as correções com os derivados do Debian

note: type: itemize
en: Gives more exposure to the changes\\ \url{http://patch-tracker.debian.org/} (down currently)
pt_BR: Dá mais visibilidade às alterações\\ \url{http://patch-tracker.debian.org/} (no momento fora de serviço)

note: type: frame{#2}
en: Patch systems
pt_BR: Sistemas de patch

note: type: itemize
en: Principle: changes are stored as patches in \texttt{debian/patches/}
pt_BR: Princípio: as alterações são guardadas como patches em \texttt{debian/patches/}

note: type: itemize
en: Applied and unapplied during build
pt_BR: Aplicado e "des-aplicado" durante a compilação

note: type: itemize
en: Past: several implementations -- \textsl{simple-patchsys} (\textsl{cdbs}), \textsl{dpatch}, \textbf{\textsl{quilt}}
pt_BR: Passado: várias implementações -- \textsl{simple-patchsys} (\textsl{cdbs}), \textsl{dpatch}, \textbf{\textsl{quilt}}

note: type: itemize
en: Each supports two \texttt{debian/rules} targets:
pt_BR: Cada um suporta dois alvos \texttt{debian/rules}:

note: type: itemize
en: \texttt{debian/rules patch}: apply all patches
pt_BR: \texttt{debian/rules patch}: aplica todos os patches

note: type: itemize
en: \texttt{debian/rules unpatch}: de-apply all patches
pt_BR: \texttt{debian/rules unpatch}: retira as alterações de todos os patches

note: type: itemize
en: More documentation: \url{https://wiki.debian.org/debian/patches}
pt_BR: Mais documentação: \url{https://wiki.debian.org/debian/patches}

note: type: textbf{#1}
en: New source package format with built-in patch system: 3.0 (quilt)
pt_BR: \small Novo formato de pacote fonte com sistema de patch integrado: 3.0 (quilt)

note: type: itemize
en: Recommended solution
pt_BR: Solução recomendada

note: type: itemize
en: You need to learn \textsl{quilt}\\ \url{https://perl-team.pages.debian.net/howto/quilt.html}
pt_BR: Você precisa aprender \textsl{quilt}\\ \url{http://perl-team.pages.debian.net/howto/quilt.html}

note: type: itemize
en: Patch-system-agnostic tool in \texttt{devscripts}: \texttt{edit-patch}
pt_BR: Ferramenta em \texttt{devscripts} independente do sistema de patch usado: \texttt{edit-patch}

note: type: frame{#2}
en: Documentation of patches
pt_BR: Documentação de patches

note: type: itemize
en: Standard headers at the beginning of the patch
pt_BR: Cabeçalhos padrão no inicio do patch

note: type: itemize
en: Documented in DEP-3 - Patch Tagging Guidelines\\ \url{http://dep.debian.net/deps/dep3/}
pt_BR: Documentado em DEP-3 - Patch Tagging Guidelines\\ \url{http://dep.debian.net/deps/dep3/}

note: type: frame{#2}
en: Doing things during installation and removal
pt_BR: Tomando ações durante instalação e remoção

note: type: itemize
en: Decompressing the package is sometimes not enough
pt_BR: Descompactar o pacote às vezes não é suficiente

note: type: itemize
en: Create/remove system users, start/stop services, manage \textsl{alternatives}
pt_BR: Criar/remover usuários do sistema, iniciar/parar serviços, gerenciar \textsl{alternatives}

note: type: itemize
en: Done in \textsl{maintainer scripts}\\ \texttt{preinst, postinst, prerm, postrm}
pt_BR: Feito nos \textsl{scripts do mantenedor}\\ \texttt{preinst, postinst, prerm, postrm}

note: type: itemize
en: Snippets for common actions can be generated by debhelper
pt_BR: \small Trechos de código para ações comuns podem ser gerados pelo debhelper

note: type: itemize
en: Documentation:
pt_BR: Documentação:

note: type: itemize
en: Debian Policy Manual, chapter 6\\ {\footnotesize \url{https://www.debian.org/doc/debian-policy/ch-maintainerscripts}}
pt_BR: Manual de Políticas Debian (Debian Policy), capítulo 6\\ {\footnotesize \url{https://www.debian.org/doc/debian-policy/ch-maintainerscripts}}

note: type: itemize
en: Debian Developer's Reference, chapter 6.4\\ {\scriptsize \url{https://www.debian.org/doc/developers-reference/best-pkging-practices.html}}
pt_BR: Referência dos Desenvolvedores Debian, capítulo 6.4\\ {\scriptsize \url{https://www.debian.org/doc/developers-reference/best-pkging-practices.html}}

note: type: itemize
en: Prompting the user
pt_BR: Questionando o usuário

note: type: itemize
en: Must be done with \textbf{debconf}
pt_BR: Precisa ser feito com \textbf{debconf}

note: type: itemize
en: Documentation: \texttt{debconf-devel(7)} (\texttt{debconf-doc} package)
pt_BR: Documentação: \texttt{debconf-devel(7)} (pacote \texttt{debconf-doc})

note: type: frame{#2}
en: Monitoring upstream versions
pt_BR: Monitorando versões do autor original (upstream)

note: type: itemize
en: Specify where to look in \texttt{debian/watch} (see \texttt{uscan(1)})
pt_BR: Especifique onde procurar em \texttt{debian/watch} (veja \texttt{uscan(1)})

note: type: itemize
en: There are automated trackers of new upstream versions, that notify the maintainer on various dashboards including \url{https://tracker.debian.org/} and \url{https://udd.debian.org/dmd/}
pt_BR: Existem seguidores automáticos de novas versões do autor original, que notificam o mantenedor em vários painéis de controle incluindo \url{https://tracker.debian.org/} e \url{https://udd.debian.org/dmd/}

note: type: itemize
en: \texttt{uscan}: run a manual check
pt_BR: \texttt{uscan}: executa uma verificação manual

note: type: itemize
en: \texttt{uupdate}: try to update your package to the latest upstream version
pt_BR: \texttt{uupdate}: tenta atualizar o seu pacote para a versão mais recente do autor original

note: type: subsection{#2}
en: Packaging with a Version Control System (SVN, Git)
pt_BR: Empacotando com Sistema de Controle de Versão (SVN, Git)

note: type: frame{#2}
en: Packaging with a Version Control System
pt_BR: Empacotando com Sistema de Controle de Versão

note: type: itemize
en: Several tools to help manage branches and tags for your packaging work:\\ \texttt{svn-buildpackage}, \texttt{git-buildpackage}
pt_BR: Várias ferramentas para ajudar a gerenciar branches e tags:\\ \texttt{svn-buildpackage}, \texttt{git-buildpackage}

note: type: itemize
en: Example: \texttt{git-buildpackage}
pt_BR: Exemplo: \texttt{git-buildpackage}

note: type: itemize
en: \texttt{upstream} branch to track upstream with \texttt{upstream/\textsl{version}} tags
pt_BR: \small \texttt{upstream} branch que acompanha upstream com tags \texttt{upstream/\textsl{version}}

note: type: itemize
en: \texttt{master} branch tracks the Debian package
pt_BR: \texttt{master} branch que acompanha o pacote Debian

note: type: itemize
en: \texttt{debian/\textsl{version}} tags for each upload
pt_BR: \texttt{debian/\textsl{version}} tags para cada envio (upload)

note: type: itemize
en: \texttt{pristine-tar} branch to be able to rebuild the upstream tarball
pt_BR: \texttt{pristine-tar} branch para a recompilação do tarball original

note: type: itemize
en: Doc: \url{http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html}
pt_BR: Documento: \scriptsize \url{http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.html}

note: type: itemize
en: \texttt{Vcs-*} fields in \texttt{debian/control} to locate the repository
pt_BR: Campos \texttt{Vcs-*} em \texttt{debian/control} para localizar o repositório

note: type: itemize
en: \url{https://wiki.debian.org/Alioth/Git}
pt_BR: \small \url{https://wiki.debian.org/Alioth/Git}

note: type: itemize
en: VCS-agnostic interface: \texttt{debcheckout}, \texttt{debcommit}, \texttt{debrelease}\\
pt_BR: Interface independente de VCS: \texttt{debcheckout}, \texttt{debcommit}, \texttt{debrelease}\\

note: type: itemize
en: \texttt{debcheckout grep} $\rightarrow$ checks out the source package from Git
pt_BR: \texttt{debcheckout grep} $\rightarrow$ obtém o pacote fonte do Git

note: type: frame{#2}
en: Backporting packages
pt_BR: Portando pacotes para trás (backporting)

note: type: itemize
en: Goal: use a newer version of a package on an older system\\ e.g. use \textsl{mutt} from Debian \textsl{unstable} on Debian \textsl{stable}
pt_BR: Objetivo: usar uma nova versão de um pacote num sistema mais antigo\\ p.ex. usar \textsl{mutt} do Debian \textsl{unstable} no Debian \textsl{stable}

note: type: itemize
en: General idea:
pt_BR: Ideia geral:

note: type: itemize
en: Take the source package from Debian unstable
pt_BR: Obtenha o pacote fonte do Debian unstable

note: type: itemize
en: Modify it so that it builds and works fine on Debian stable
pt_BR: Modifique-o para que compile e funcione bem no Debian stable

note: type: itemize
en: Sometimes trivial (no changes needed)
pt_BR: Às vezes isso é trivial (sem alterações necessárias)

note: type: itemize
en: Sometimes difficult
pt_BR: Às vezes é difícil

note: type: itemize
en: Sometimes impossible (many unavailable dependencies)
pt_BR: Às vezes é impossível (muitas dependências não disponíveis)

note: type: itemize
en: Some backports are provided and supported by the Debian project\\ \url{http://backports.debian.org/}
pt_BR: Alguns "backports" são disponibilizados e suportados pelo projeto Debian\\ \url{http://backports.debian.org/}

note: type: section{#2}
en: Maintaining packages in Debian
pt_BR: Mantendo pacotes no Debian

note: type: frame{#2}
en: Debian archive and suites
pt_BR: Repositório e suites Debian

note: type: tikzpicture
en: \draw node[suite,prod] (sec) {security}; \draw node[suite,prod,right=of sec] (su) {stable-updates}; \draw node[suite,prod,right=of su] (st) {stable}; \draw node[suite,old,node distance=0.3cm,below=of st] (os) {oldstable}; \draw node[suite,veryold,node distance=0.3cm,below=of os] (ar) {archive.d.o}; \draw node[suite,prod,right=of st] (bp) {backports}; \draw node[suite,test] (spu) at ($(su) + (-0.6,2.5)$) {stable-proposed-updates}; \draw node[suite,internal] (sn) at ($(st) + (-1.8,1.4)$) {stable-new}; \draw node[suite,test,node distance=1.5cm,above=of st] (te) {testing}; \draw node[suite,devel,above=of te] (sid) {unstable}; \draw node[suite,devel] (exp) at ($(sid) + (2.5,0.5)$) {experimental}; \draw node[suite,devel] (tpu) at ($(te)!0.5!(sid) + (2.5,0)$) {testing-proposed-updates}; \draw node[people,above=of sid] (dd) {developer}; \draw node[people,node distance=3cm,left=of dd] (secteam) {security team}; \draw[arr,uploads,->] (dd) -- (sid); \draw[arr,uploads,->] (dd) -- (exp); \draw[arr,uploads,->,bend right=8] (dd) to (tpu); \draw[arr,uploads,->] (secteam) -- (sid); \draw[arr,uploads,->] (secteam) -- (sec); \draw[arr,uploads,->] (dd) to (spu); \draw[arr,uploads,->] plot [smooth, tension=0.75] coordinates { (dd.east) ($(exp.north east)+(0.1,0.1)$) ($(tpu.east)+(0.2,0)$)  ($(bp.north east) + (-0.4,0)$) }; \draw[arr,migrations,->] (tpu) -- (te); \draw[arr,migrations,->] (sid) -- (te); \draw[arr,migrations,->] (te) -- (st) node [midway,align=left,midway,right,font=\footnotesize] {stable\\ release}; \draw[arr,migrations,->] (sec) -- (sn); \draw[arr,migrations,->] (sn) to node [pos=0.2] (spulabel) {} (st); \draw node[font=\footnotesize,align=right] at ($(spulabel) + (-0.4,-0.45)$) {stable \\ point \\ release}; \draw[arr,migrations,->] (spu) to (sn); \draw[arr,migrations,->] (spu) -- (su); \draw[arr,migrations,->] (st) -- (os); \draw[arr,migrations,->] (os) -- (ar); \coordinate (legend) at (-2,-1); \draw[arr,uploads,->] (legend) -- ($(legend) + (0.7,0)$) node [right,legend] {package uploads}; \coordinate[node distance=1.1em,below=of legend] (legend2); \draw[arr,migrations,->] (legend2) -- ($(legend2) + (0.7,0)$) node [right,legend] {package migrations between suites}; \coordinate[node distance=1.5em,below=of legend2] (legend3); \draw node[right,suite,devel,legend] (ldev) at (legend3) {development}; \draw node[node distance=0.1cm,right=of ldev,suite,test,legend] (ltest) {test}; \draw node[node distance=0.1cm,right=of ltest,suite,internal,legend] (lint) {internal}; \draw node[node distance=0.1cm,right=of lint,suite,prod,legend] (lprod) {production}; \draw ($(legend.north west) + (-0.1,0.25)$) rectangle ($(lprod.south east) + (0.1,-0.1)$); \draw node[font=\bf,red!70!white,align=center] (tnext) at ($(te.east) + (2,-0.1)$) {preparation of \\ next release}; \draw node[font=\bf,green!70!black,align=center] (tsrm) at ($(sec.north east) + (1,1)$) {stable\\release\\management}; \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground}
pt_BR: \draw node[suite,prod] (sec) {security}; \draw node[suite,prod,right=of sec] (su) {stable-updates}; \draw node[suite,prod,right=of su] (st) {stable}; \draw node[suite,old,node distance=0.3cm,below=of st] (os) {oldstable}; \draw node[suite,veryold,node distance=0.3cm,below=of os] (ar) {archive.d.o}; \draw node[suite,prod,right=of st] (bp) {backports}; \draw node[suite,test] (spu) at ($(su) + (-0.6,2.5)$) {stable-proposed-updates}; \draw node[suite,internal] (sn) at ($(st) + (-1.7,1.4)$) {stable-new}; \draw node[suite,test,node distance=1.5cm,above=of st] (te) {testing}; \draw node[suite,devel,above=of te] (sid) {unstable}; \draw node[suite,devel] (exp) at ($(sid) + (2.5,0.5)$) {experimental}; \draw node[suite,devel] (tpu) at ($(te)!0.5!(sid) + (2.5,0)$) {testing-proposed-updates}; \draw node[people,above=of sid] (dd) {desenvolvedor}; \draw node[people,node distance=3cm,left=of dd] (secteam) {time de segurança}; \draw[arr,uploads,->] (dd) -- (sid); \draw[arr,uploads,->] (dd) -- (exp); \draw[arr,uploads,->,bend right=8] (dd) to (tpu); \draw[arr,uploads,->] (secteam) -- (sid); \draw[arr,uploads,->] (secteam) -- (sec); \draw[arr,uploads,->] (dd) to (spu); \draw[arr,uploads,->] plot [smooth, tension=0.75] coordinates { (dd.east) ($(exp.north east)+(0.1,0.1)$) ($(tpu.east)+(0.2,0)$)  ($(bp.north east) + (-0.4,0)$) }; \draw[arr,migrations,->] (tpu) -- (te); \draw[arr,migrations,->] (sid) -- (te); \draw[arr,migrations,->] (te) -- (st) node [midway,align=left,midway,right,font=\footnotesize] {lançamento\\da stable}; \draw[arr,migrations,->] (sec) -- (sn); \draw[arr,migrations,->] (sn) to node [pos=0.2] (spulabel) {} (st); \draw node[font=\footnotesize,align=right] at ($(spulabel) + (-0.40,-0.73)$) {lançamento \\ pontual \\ \emph{(point release)}}; \draw[arr,migrations,->] (spu) to (sn); \draw[arr,migrations,->] (spu) -- (su); \draw[arr,migrations,->] (st) -- (os); \draw[arr,migrations,->] (os) -- (ar); \coordinate (legend) at (-2,-1); \draw[arr,uploads,->] (legend) -- ($(legend) + (0.7,0)$) node [right,legend] {upload de pacotes}; \coordinate[node distance=1.1em,below=of legend] (legend2); \draw[arr,migrations,->] (legend2) -- ($(legend2) + (0.7,0)$) node [right,legend] {migração de pacotes entre suites}; \coordinate[node distance=1.5em,below=of legend2] (legend3); \draw node[right,suite,devel,legend] (ldev) at (legend3) {desenvolvimento}; \draw node[node distance=0.1cm,right=of ldev,suite,test,legend] (ltest) {teste}; \draw node[node distance=0.1cm,right=of ltest,suite,internal,legend] (lint) {interno}; \draw node[node distance=0.1cm,right=of lint,suite,prod,legend] (lprod) {produção}; \draw ($(legend.north west) + (-0.1,0.25)$) rectangle ($(lprod.south east) + (0.1,-0.1)$); \draw node[font=\bf,red!70!white,align=center] (tnext) at ($(te.east) + (2,-0.1)$) {{\small preparação do próximo} \\{\small lançamento}}; \draw node[font=\bf,green!70!black,align=center] (tsrm) at ($(sec.north east) + (1,1)$) {\small gestão de um\\ \small lançamento\\ \small da stable}; \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground}

note: type: flushright
en: \tiny Based on graph by Antoine Beaupr\'e. \url{https://salsa.debian.org/debian/package-cycle}~~~~~~~~~~~~
pt_BR: \tiny Baseado no grafo de Antoine Beaupr\'e. \url{https://salsa.debian.org/debian/package-cycle}~~~~~~~~~~~~

note: type: frame{#2}
en: Suites for development
pt_BR: Suites de desenvolvimento

note: type: itemize
en: New versions of packages are uploaded to \textbf{unstable} (\textbf{sid})
pt_BR: Novas versões de pacotes são enviadas para \textbf{unstable} (\textbf{sid})

note: type: itemize
en: Packages migrate from \textbf{unstable} to \textbf{testing} based on several criterias (e.g. has been in unstable for 10 days, and no regressions)
pt_BR: Pacotes migram da \textbf{unstable} para \textbf{testing} com base em diversos critérios (p.ex. estar na unstable por 10 dias, e sem regressão)

note: type: itemize
en: New packages can also be uploaded to:
pt_BR: Novos pacotes também podem ser submetidos para:

note: type: itemize
en: \textbf{experimental} (for more \textsl{experimental} packages, such as when the new version is not ready to replace the one currently in unstable)
pt_BR: \textbf{experimental} (para pacotes mais \textsl{experimentais}, como quando a nova versão não está pronta para substituir a que está na unstable)

note: type: itemize
en: \textbf{testing-proposed-updates}, to update the version in \textbf{testing} without going through \textbf{unstable} (this is rarely used)
pt_BR: \textbf{testing-proposed-updates}, para atualizar a versão na \textbf{testing} sem passar pela \textbf{unstable} (raramente usado)

note: type: frame{#2}
en: Freezing and releasing
pt_BR: Congelando e lançando

note: type: itemize
en: At some point during the release cycle, the release team decides to \textsl{freeze} testing: automatic migrations from \textbf{unstable} to \textbf{testing} are stopped, and replaced by manual review
pt_BR: Em algum momento do ciclo, o time de lançamento (\emph{release} team) decide congelar (\textsl{freeze}) a testing: migrações automáticas da \textbf{unstable} para \textbf{testing} são paradas e substituídas por revisão manual

note: type: itemize
en: When the release team considers \textbf{testing} to be ready for release:
pt_BR: Quando o time de release considera a \textbf{testing} pronta para lançamento:

note: type: itemize
en: The \textbf{testing} suite becomes the new \textbf{stable} suite
pt_BR: A suite \textbf{testing} torna-se a nova suite \textbf{stable}

note: type: itemize
en: Similarly, the old \textbf{stable} becomes \textbf{oldstable}
pt_BR: Similarmente, a que era \textbf{stable} torna-se \textbf{oldstable}

note: type: itemize
en: Unsupported releases are moved to \texttt{archive.debian.org}
pt_BR: Lançamentos não mais mantidos são movidos para \texttt{archive.debian.org}

note: type: itemize
en: See \url{https://release.debian.org/}
pt_BR: Veja \url{https://release.debian.org/}

note: type: frame{#2}
en: Stable release management
pt_BR: Gestão de lançamento da stable

note: type: itemize
en: Several suites are used to provide stable release packages:
pt_BR: Diversas suites proveem pacotes para o lançamento da stable:

note: type: itemize
en: \textbf{stable}: the main suite
pt_BR: \small \textbf{stable}: a suite principal

note: type: itemize
en: \textbf{security} updates suite provided on \texttt{security.debian.org}, used by the security team. Updates are announced on the \texttt{debian-security-announce} mailing list
pt_BR: suite de atualizações de \textbf{segurança} disponibilizada em \texttt{security.debian.org}, usada pelo time de segurança. Atualizações são anunciadas na lista de discussão \texttt{debian-security-announce}

note: type: itemize
en: \textbf{stable-updates}: updates that are not security related, but that should urgently be installed (without waiting for the next point release): antivirus databases, timezone-related packages, etc. Announced on the \texttt{debian-stable-announce} mailing list
pt_BR: \textbf{stable-updates}: atualizações que não de segurança, mas que deveriam ser instaladas urgentemente (sem esperar pelo próximo lançamento pontual (\emph{stable point release}): banco de dados de anti-virus, pacotes relacionados a fuso horário, etc. Anunciadas na lista de discussão \texttt{debian-stable-announce}

note: type: itemize
en: \textbf{backports}: new upstream versions, based on the version in \textbf{testing}
pt_BR: \textbf{backports}: novas versões do original, baseadas na versão em \textbf{testing}

note: type: itemize
en: The \textbf{stable} suite is updated every few months by \textsl{stable point releases} (that include only bug fixes)
pt_BR: A suite \textbf{stable} é atualizada a cada poucos meses por lançamentos pontuais (\textsl{point releases}) que incluem apenas correções de bugs

note: type: itemize
en: Packages targetting the next stable point release are uploaded to \textbf{stable-proposed-updates} and reviewed by the release team
pt_BR: \small Pacotes cujo alvo é o próximo lançamento pontual são enviados para \textbf{stable-proposed-updates} e revisados pelo time de lançamento

note: type: itemize
en: The \textbf{oldstable} release has the same set of suites
pt_BR: A versão \textbf{oldstable} tem o mesmo conjunto de suites

note: type: frame{#2}
en: Several ways to contribute to Debian
pt_BR: Várias maneiras de contribuir para Debian

note: type: itemize
en: \textbf{Worst} way to contribute:
pt_BR: \textbf{Pior} maneira de contribuir:

note: type: enumerate
en: Package your own application
pt_BR: Empacotar a sua própria aplicação

note: type: enumerate
en: Get it into Debian
pt_BR: Colocar ela no Debian

note: type: enumerate
en: Disappear
pt_BR: Desaparecer

note: type: itemize
en: \textbf{Better} ways to contribute:
pt_BR: \textbf{Melhores} maneiras de contribuir:

note: type: itemize
en: Get involved in packaging teams
pt_BR: Envolver-se com as equipes de empacotamento

note: type: itemize
en: Many teams that focus on set of packages, and need help
pt_BR: Muitas equipes focam em conjuntos de pacotes, e precisam de ajuda

note: type: itemize
en: List available at \url{https://wiki.debian.org/Teams}
pt_BR: Lista disponível em \url{https://wiki.debian.org/Teams}

note: type: itemize
en: An excellent way to learn from more experienced contributors
pt_BR: Uma excelente maneira de aprender de contribuidores mais experientes

note: type: itemize
en: Adopt existing unmaintained packages (\textsl{orphaned packages})
pt_BR: Adotar pacotes existentes não mantidos (\textsl{pacotes órfãos})

note: type: itemize
en: Bring new software to Debian
pt_BR: Trazer novo software para o Debian

note: type: itemize
en: Only if it's interesting/useful enough, please
pt_BR: Apenas se for suficientemente interessante/útil, por favor

note: type: itemize
en: Are there alternatives already packaged in Debian?
pt_BR: Existem alternativas já empacotadas no Debian?

note: type: frame{#2}
en: Adopting orphaned packages
pt_BR: Adotando pacotes órfãos

note: type: itemize
en: Many unmaintained packages in Debian
pt_BR: Muitos pacotes não mantidos no Debian

note: type: itemize
en: Full list + process: \url{https://www.debian.org/devel/wnpp/}
pt_BR: Lista completa + processo: \url{https://www.debian.org/devel/wnpp/}

note: type: itemize
en: Installed on your machine: \texttt{wnpp-alert}\\ Or better: \texttt{how-can-i-help}
pt_BR: Instalados na sua máquina: \texttt{wnpp-alert}\\ Ou melhor: \texttt{how-can-i-help}

note: type: itemize
en: Different states:
pt_BR: Estados diferentes:

note: type: itemize
en: \textbf{O}rphaned: the package is unmaintained\\ Feel free to adopt it
pt_BR: \textbf{O}rphaned: o pacote não é mantido. Sinta-se livre para o adotar.

note: type: itemize
en: \textbf{RFA}: \textbf{R}equest \textbf{F}or \textbf{A}dopter\\ Maintainer looking for adopter, but continues work in the meantime\\ Feel free to adopt it. A mail to the current maintainer is polite
pt_BR: \textbf{RFA}: \textbf{R}equest \textbf{F}or \textbf{A}dopter\\ O mantenedor procura quem adote, mas continua a trabalhar enquanto isso\\ Sinta-se livre para adotar. É cordial enviar um mail ao mantenedor atual.

note: type: itemize
en: \textbf{ITA}: \textbf{I}ntent \textbf{T}o \textbf{A}dopt\\ Someone intends to adopt the package\\ You could propose your help!
pt_BR: \textbf{ITA}: \textbf{I}ntent \textbf{T}o \textbf{A}dopt\\ Alguém tem a intenção de adotar o pacote. Você pode oferecer ajuda!

note: type: itemize
en: \textbf{RFH}: \textbf{R}equest \textbf{F}or \textbf{H}elp\\ The maintainer is looking for help
pt_BR: \textbf{RFH}: \textbf{R}equest \textbf{F}or \textbf{H}elp\\ O mantenedor procura ajuda.

note: type: itemize
en: Some unmaintained packages not detected \arr not orphaned yet
pt_BR: Alguns pacotes não mantidos e não detectados \arr ainda não estão órfãos

note: type: itemize
en: When in doubt, ask \texttt{debian-qa@lists.debian.org} \\ or \texttt{\#debian-qa} on \texttt{irc.debian.org}
pt_BR: Quando em dúvidas, pergunte a \texttt{debian-qa@lists.debian.org} \\ ou \texttt{\#debian-qa} em \texttt{irc.debian.org}

note: type: frame{#2}
en: Adopting a package: example
pt_BR: Adoptando um pacote: exemplo

note: type: itemize
en: Polite to contact the previous maintainer (especially if the package was RFAed, not orphaned)
pt_BR: Seja cortês ao contactar o mantenedor anterior (especialmente se o pacote estava em RFA, não órfão)

note: type: itemize
en: Very good idea to contact the upstream project
pt_BR: É uma boa ideia contactar o projeto original

note: type: frame{#2}
en: Getting your package in Debian
pt_BR: Colocando o seu pacote no Debian

note: type: itemize
en: You do not need any official status to get your package into Debian
pt_BR: Você não precisa de nenhum status oficial para ter o seu pacote no Debian

note: type: enumerate
en: Submit an \textbf{ITP} bug (\textbf{I}ntend \textbf{T}o \textbf{P}ackage) using \texttt{reportbug wnpp}
pt_BR: Submeta um bug \textbf{ITP} (\textbf{I}ntent \textbf{T}o \textbf{P}ackage) usando \texttt{reportbug wnpp}

note: type: enumerate
en: Prepare a source package
pt_BR: Prepare um pacote fonte

note: type: enumerate
en: Find a Debian Developer that will sponsor your package
pt_BR: Encontre um Desenvolvedor Debian que apadrinhe o seu pacote (\emph{sponsor})

note: type: itemize
en: Official status (when you are an experienced package maintainer):
pt_BR: Status oficial (quando você é um mantenedor de pacotes experiente)

note: type: itemize
en: \textbf{Debian Maintainer (DM):}\\ Permission to upload your own packages\\ See \url{https://wiki.debian.org/DebianMaintainer}
pt_BR: \textbf{Mantenedor Debian (DM):}\\ Permissão para submeter os seus próprios pacotes\\ Veja \url{https://wiki.debian.org/DebianMaintainer}

note: type: itemize
en: \textbf{Debian Developer (DD):}\\ Debian project member; can vote and upload any package
pt_BR: \textbf{Desenvolvedor Debian (DD):}\\ Membro do projeto Debian; pode votar e enviar (upload) qualquer pacote

note: type: frame{#2}
en: Things to check before asking for sponsorship
pt_BR: A verificar antes de pedir apadrinhamento

note: type: itemize
en: Debian puts \textbf{a lot of focus on quality}
pt_BR: Debian tem \textbf{muita atenção à qualidade}

note: type: itemize
en: Generally, \textbf{sponsors are hard to find and busy}
pt_BR: Geralmente, os \textbf{padrinhos são difíceis de encontrar e ocupados}

note: type: itemize
en: Make sure your package is ready before asking for sponsorship
pt_BR: Certifique-se de que seu pacote está pronto antes de pedir apadrinhamento

note: type: itemize
en: Things to check:
pt_BR: Coisas a verificar:

note: type: itemize
en: Avoid missing build-dependencies: make sure that your package build fine in a clean \textsl{sid} \textsl{chroot}
pt_BR: Evite a falta de dependências de compilação: certifique-se de que seu pacote compila bem num \textsl{chroot} \textsl{sid} limpo

note: type: itemize
en: Using \texttt{pbuilder} is recommended
pt_BR: É recomendado usar o \texttt{pbuilder}

note: type: itemize
en: Run \texttt{lintian -EviIL +pedantic} on your package
pt_BR: Rode \texttt{lintian -EviIL +pedantic} no seu pacote

note: type: itemize
en: Errors must be fixed, all other problems should be fixed
pt_BR: Os erros têm de ser corrigidos, todos os outros problemas devem ser corrigidos

note: type: itemize
en: Do extensive testing of your package, of course
pt_BR: E claro, faça testes abrangentes no seu pacote

note: type: itemize
en: In doubt, ask for help
pt_BR: Em dúvida, peça ajuda

note: type: frame{#2}
en: Where to find help?
pt_BR: Onde encontrar ajuda?

note: type: frame
en: Help you will need:
pt_BR: Ajuda que você vai precisar:

note: type: itemize
en: Advice and answers to your questions, code reviews
pt_BR: Conselhos e respostas para as suas perguntas, revisões de código

note: type: itemize
en: Sponsorship for your uploads, once your package is ready
pt_BR: Padrinhos para os seus uploads, quando o seu pacote estiver pronto

note: type: frame
en: You can get help from:
pt_BR: Você pode obter ajuda de:

note: type: textbf{#1}
en: Other members of a packaging team
pt_BR: Outros membros de uma equipe de empacotamento

note: type: itemize
en: List of teams: \url{https://wiki.debian.org/Teams}
pt_BR: Lista de equipes: \url{https://wiki.debian.org/Teams}

note: type: itemize
en: The \textbf{Debian Mentors group} (if your package does not fit in a team)
pt_BR: O grupo \textbf{Debian Mentors} (se o seu pacote não se encaixar numa equipe)

note: type: itemize
en: Mailing list: \url{debian-mentors@lists.debian.org}\\ {\small (also a good way to learn by accident)}
pt_BR: Lista de email: \url{debian-mentors@lists.debian.org}\\ {\small (também uma boa maneira de aprender por acaso)}

note: type: itemize
en: IRC: \texttt{\#debian-mentors} on \texttt{irc.debian.org}
pt_BR: IRC: \texttt{\#debian-mentors} em \texttt{irc.debian.org}

note: type: itemize
en: Documentation: \url{http://mentors.debian.net/intro-maintainers}
pt_BR: Documentação: \url{http://mentors.debian.net/intro-maintainers}

note: type: itemize
en: \textbf{Localized mailing lists} (get help in your language)
pt_BR: \textbf{Listas de email localizadas} (obtenha ajuda no seu idioma)

note: type: itemize
en: Full list: \url{https://lists.debian.org/devel.html}
pt_BR: Lista completa: \url{https://lists.debian.org/devel.html}

note: type: itemize
en: Or users lists: \url{https://lists.debian.org/users.html}
pt_BR: Ou listas de usuários: \url{https://lists.debian.org/users.html}

note: type: frame{#2}
en: More documentation
pt_BR: Mais documentação

note: type: itemize
en: Debian Developers' Corner\\ \url{https://www.debian.org/devel/}\\ {\small Links to many resources about Debian development}
pt_BR: O Canto dos Desenvolvedores Debian\\ \url{https://www.debian.org/devel/}\\ {\small Links para muitos recursos sobre o desenvolvimento do Debian}

note: type: itemize
en: Guide for Debian Maintainers\\ \url{https://www.debian.org/doc/manuals/debmake-doc/}
pt_BR: Guia para Mantenedores Debian\\ \url{https://www.debian.org/doc/manuals/debmake-doc/}

note: type: itemize
en: Debian Developer's Reference\\ \url{https://www.debian.org/doc/developers-reference/}\\ {\small Mostly about Debian procedures, but also some best packaging practices (part 6)}
pt_BR: Referência dos Desenvolvedores Debian\\ \url{https://www.debian.org/doc/developers-reference/}\\ {\small Majoritariamente sobre procedimentos no Debian, mas também algumas melhores práticas de empacotamento (parte 6)}

note: type: itemize
en: Debian Policy\\ \url{https://www.debian.org/doc/debian-policy/}\\
pt_BR: Política Debian\\ \url{https://www.debian.org/doc/debian-policy/}\\

note: type: itemize
en: {\small \begin{itemize} \item \small All the requirements that every package must satisfy \item \small Specific policies for Perl, Java, Python, \ldots \end{itemize}}
pt_BR: {\small \begin{itemize} \item \small Todos os requerimentos que cada pacote deve satisfazer \item \small Políticas específicas para Perl, Java, Python, \ldots \end{itemize}}

note: type: itemize
en: Ubuntu Packaging Guide\\ \url{http://developer.ubuntu.com/resources/tools/packaging/}
pt_BR: Guia de Empacotamento Ubuntu\\ \url{http://developer.ubuntu.com/resources/tools/packaging/}

note: type: frame{#2}
en: Debian dashboards for maintainers
pt_BR: Paineis de controle do Debian para mantenedores

note: type: itemize
en: \textbf{Source package centric}:\\ \url{https://tracker.debian.org/dpkg}
pt_BR: \textbf{Centrado no pacote fonte}:\\ \url{https://tracker.debian.org/dpkg}

note: type: itemize
en: \textbf{Maintainer/team centric}: Developer's Packages Overview (DDPO)\\ \url{https://qa.debian.org/developer.php?login=pkg-ruby-extras-maintainers@lists.alioth.debian.org}
pt_BR: \textbf{Centrado no mantenedor/equipe}: Visão Geral de Pacotes de Desenvolvedores (DDPO)\\ \url{https://qa.debian.org/developer.php?login=pkg-ruby-extras-maintainers@lists.alioth.debian.org}

note: type: itemize
en: \textbf{TODO-list oriented}: Debian Maintainer Dashboard (DMD)\\ \url{https://udd.debian.org/dmd/}
pt_BR: \textbf{Orientado a Lista-A-FAZER}: Painel de Controle do Mantenedor Debian (DMD)\\ \url{https://udd.debian.org/dmd/}

note: type: frame{#2}
en: Using the Debian Bug Tracking System (BTS)
pt_BR: Usando o Debian Bug Tracking System (BTS)

note: type: itemize
en: A quite unique way to manage bugs
pt_BR: Uma maneira única de gerenciar bugs

note: type: itemize
en: Web interface to view bugs
pt_BR: Interface web para ver os bugs

note: type: itemize
en: Email interface to make changes to bugs
pt_BR: Interface de email para fazer alterações nos bugs

note: type: itemize
en: Adding information to bugs:
pt_BR: Adicionando informação aos bugs:

note: type: itemize
en: Write to \texttt{123456@bugs.debian.org} (does not include the submitter, you need to add \texttt{123456-submitter@bugs.debian.org})
pt_BR: Escreva para \texttt{123456@bugs.debian.org} (não inclui a pessoa que submeteu, você precisa adicionar \texttt{123456-submitter@bugs.debian.org})

note: type: itemize
en: Changing bug status:
pt_BR: Alterando o estado do bug:

note: type: itemize
en: Send commands to \texttt{control@bugs.debian.org}
pt_BR: Envie comandos para \texttt{control@bugs.debian.org}

note: type: itemize
en: Command-line interface: \texttt{bts} command in \texttt{devscripts}
pt_BR: Interface de linha de comando: comando \texttt{bts} em \texttt{devscripts}

note: type: itemize
en: Documentation: \url{https://www.debian.org/Bugs/server-control}
pt_BR: Documentação: \url{https://www.debian.org/Bugs/server-control}

note: type: itemize
en: Reporting bugs: use \texttt{reportbug}
pt_BR: Reportando bugs: use \texttt{reportbug}

note: type: itemize
en: Normally used with a local mail server: install \texttt{ssmtp} or \texttt{nullmailer}
pt_BR: Normalmente usado com um servidor de email local: instale \texttt{ssmtp} ou \texttt{nullmailer}

note: type: itemize
en: Or use \texttt{reportbug -\@-template}, then send (manually) to \texttt{submit@bugs.debian.org}
pt_BR: Ou use \texttt{reportbug -\@-template}, depois envie (manualmente) para \texttt{submit@bugs.debian.org}

note: type: frame{#2}
en: Using the BTS: examples
pt_BR: Usando o BTS: exemplos

note: type: itemize
en: Sending an email to the bug and the submitter:\\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680822\#10}
pt_BR: Enviando um email para o bug e para quem o submeteu:\\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680822\#10}

note: type: itemize
en: Tagging and changing the severity:\\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680227\#10}
pt_BR: Etiquetando e alterando a severidade:\\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680227\#10}

note: type: itemize
en: Reassigning, changing the severity, retitling \ldots: \\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680822\#93}
pt_BR: Re-atribuindo, alterando a severidade, mudando o título \ldots: \\ \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=680822\#93}

note: type: itemize
en: \texttt{notfound}, \texttt{found}, \texttt{notfixed}, \texttt{fixed} are for \textbf{version-tracking} \\ See \url{https://wiki.debian.org/HowtoUseBTS\#Version\_tracking}
pt_BR: \texttt{notfound}, \texttt{found}, \texttt{notfixed}, \texttt{fixed} são para \textbf{acompanhamento de versão} \\ Veja \url{https://wiki.debian.org/HowtoUseBTS\#Version\_tracking}

note: type: itemize
en: Using usertags: \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=42;bug=642267}\\ See \url{https://wiki.debian.org/bugs.debian.org/usertags}
pt_BR: Usando usertags:\\ \small \url{https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=42;bug=642267}\\ Veja \url{https://wiki.debian.org/bugs.debian.org/usertags}

note: type: itemize
en: BTS Documentation:
pt_BR: Documentação do BTS:

note: type: frame{#2}
en: More interested in Ubuntu?
pt_BR: Mais interessado em Ubuntu?

note: type: itemize
en: Ubuntu mainly manages the divergence with Debian
pt_BR: Ubuntu majoritariamente gerencia a divergência com o Debian

note: type: itemize
en: No real focus on specific packages\\ Instead, collaboration with Debian teams
pt_BR: Nenhum foco real em pacotes específicos\\ Em vez disso, colaboração com as equipes do Debian

note: type: itemize
en: Usually recommend uploading new packages to Debian first\\ \url{https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages}
pt_BR: Normalmente é recomendado enviar os novos pacote primeiro para o Debian\\ \url{https://wiki.ubuntu.com/UbuntuDevelopment/NewPackages}

note: type: itemize
en: Possibly a better plan:
pt_BR: Possivelmente um plano melhor:

note: type: itemize
en: Get involved in a Debian team and act as a bridge with Ubuntu
pt_BR: Envolva-se numa equipe do Debian e atue como uma ponte com o Ubuntu

note: type: itemize
en: Help reduce divergence, triage bugs in Launchpad
pt_BR: Ajude a reduzir a divergência, triagem de bugs no Launchpad

note: type: itemize
en: Many Debian tools can help:
pt_BR: Muitas ferramentas do Debian podem ajudar:

note: type: itemize
en: Ubuntu column on the Developer's packages overview
pt_BR: Coluna Ubuntu na visão geral de pacotes de Desenvolvedores

note: type: itemize
en: Ubuntu box on the Package Tracking System
pt_BR: Caixa do Ubuntu no Sistema de Acompanhamento de Pacotes

note: type: itemize
en: Receive launchpad bugmail via the PTS
pt_BR: Receba bugmail do launchpad via PTS

note: type: frame{#2}
en: Conclusions
pt_BR: Conclusões

note: type: itemize
en: You now have a full overview of Debian packaging
pt_BR: Agora você tem uma visão geral do empacotamento Debian

note: type: itemize
en: But you will need to read more documentation
pt_BR: Mas você vai precisar ler mais documentação

note: type: itemize
en: Best practices have evolved over the years
pt_BR: As melhores práticas evoluíram com os anos

note: type: itemize
en: If not sure, use the \textbf{dh} packaging helper, and the \textbf{3.0 (quilt)} format
pt_BR: Em dúvida, use o ajudante de empacotamento \textbf{dh}, e o formato \textbf{3.0 (quilt)}

note: type: centerline{#1}
en: \large Feedback: \textbf{packaging-tutorial@packages.debian.org}
pt_BR: \large Comentários: \textbf{packaging-tutorial@packages.debian.org}

note: type: frame{#2}
en: Legal stuff
pt_BR: Questões legais

note: type: frame
en: {\small \textbf{This document is free software}: you can redistribute it and/or modify it under either (at your option): \hbr \begin{itemize} \item The terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\\ \url{http://www.gnu.org/licenses/gpl.html} \br \item The terms of the Creative Commons Attribution-ShareAlike 3.0 Unported License.\\ \url{http://creativecommons.org/licenses/by-sa/3.0/} \end{itemize} }
pt_BR: {\small \textbf{Este documento é software livre}: você pode redistribuí-lo e/ou modificá-lo sob (sua escolha): \hbr \begin{itemize} \item Os termos da GNU General Public License como publicada pela Free Software Foundation, ou versão 3 da licença, ou (sua escolha) qualquer versão mais recente.\\ \url{http://www.gnu.org/licenses/gpl.html} \br \item Os termos da Creative Commons Attribution-ShareAlike 3.0 Unported License.\\ \url{http://creativecommons.org/licenses/by-sa/3.0/} \end{itemize} }

note: type: frame{#2}
en: Contribute to this tutorial
pt_BR: Contribua para este manual

note: type: itemize
en: Contribute:
pt_BR: Contribuir:

note: type: itemize
en: {\small Open bugs: \url{bugs.debian.org/src:packaging-tutorial}}
pt_BR: {\small Bugs abertos: \url{bugs.debian.org/src:packaging-tutorial}}

note: type: itemize
en: Provide feedback:
pt_BR: Envie sugestões:

note: type: itemize
en: {\small What should be added to this tutorial?}
pt_BR: {\small O que deve ser adicionado a este manual?}

note: type: itemize
en: {\small What should be improved?}
pt_BR: {\small O que deve ser melhorado?}

note: type: section{#2}
en: Additional practical sessions
pt_BR: Sessões práticas adicionais

note: type: frame{#2}
en: Practical session 2: packaging GNUjump
pt_BR: Sessão prática 2: empacotando o GNUjump

note: type: enumerate
en: Download GNUjump 1.0.8 from \url{http://ftp.gnu.org/gnu/gnujump/gnujump-1.0.8.tar.gz}
pt_BR: Faça o download de GNUjump 1.0.8 de \url{http://ftp.gnu.org/gnu/gnujump/gnujump-1.0.8.tar.gz}

note: type: enumerate
en: Create a Debian package for it
pt_BR: Crie um pacote Debian para ele

note: type: itemize
en: Install build-dependencies so that you can build the package
pt_BR: Instale as dependências de compilação para poder compilar o pacote

note: type: itemize
en: Fix bugs
pt_BR: Corrija bugs

note: type: itemize
en: Get a basic working package
pt_BR: Obtenha um pacote funcional básico

note: type: itemize
en: Finish filling \texttt{debian/control} and other files
pt_BR: Termine de preencher \texttt{debian/control} e outros arquivos

note: type: enumerate
en: Enjoy
pt_BR: Aprecie

note: type: frame{#2}
en: Practical session 2: packaging GNUjump (tips)
pt_BR: Sessão prática 2: empacotando o GNUjump (dicas)

note: type: itemize
en: To get a basic working package, use \texttt{dh\_make}
pt_BR: Para obter um pacote básico funcional, use \texttt{dh\_make}

note: type: itemize
en: To start with, creating a \textsl{1.0} source package is easier than \textsl{3.0 (quilt)} (change that in \texttt{debian/source/format})
pt_BR: No começo, criar um pacote fonte \textsl{1.0} é mais fácil do que um \textsl{3.0 (quilt)} (mude isso em \texttt{debian/source/format})

note: type: itemize
en: To search for missing build-dependencies, find a missing file, and use \texttt{apt-file} to find the missing package
pt_BR: Para procurar dependências de compilação faltando, encontre um arquivo em falta, e use o \texttt{apt-file} para encontrar o pacote em falta.

note: type: itemize
en: If you encounter that error:
pt_BR: Se você encontrar esse erro:

note: type: itemize
en: You need to add \texttt{-lm} to the linker command line:\\ Edit \texttt{src/Makefile.am} and replace
pt_BR: Você precisa adicionar \texttt{-lm} à linha de comando do linker: Edite \texttt{src/Makefile.am} e substitua

note: type: itemize
en: by
pt_BR: por

note: type: itemize
en: Then run \texttt{autoreconf -i}
pt_BR: Depois rode \texttt{autoreconf -i}

note: type: frame{#2}
en: Practical session 3: packaging a Java library
pt_BR: Sessão prática 3: empacotar uma biblioteca Java

note: type: enumerate
en: Take a quick look at some documentation about Java packaging:\\
pt_BR: Faça uma leitura rápida em alguma documentação sobre empacotamento Java:\\

note: type: enumerate
en: Download IRClib from \url{http://moepii.sourceforge.net/}
pt_BR: Baixe o IRClib de \url{http://moepii.sourceforge.net/}

note: type: enumerate
en: Package it
pt_BR: Empacote-o

note: type: frame{#2}
en: Practical session 4: packaging a Ruby gem
pt_BR: Sessão prática 4: empacotando um pacote Ruby

note: type: enumerate
en: Take a quick look at some documentation about Ruby packaging:\\
pt_BR: Dê uma lida rápida em alguma documentação sobre empacotamento Ruby:\\

note: type: itemize
en: \texttt{gem2deb(1)}, \texttt{dh\_ruby(1)} (in the \texttt{gem2deb} package)
pt_BR: \texttt{gem2deb(1)}, \texttt{dh\_ruby(1)} (no pacote \texttt{gem2deb})

note: type: enumerate
en: Create a basic Debian source package from the \texttt{peach} gem:\\ \texttt{gem2deb peach}
pt_BR: Crie um pacote fonte Debian básico a partir do pacote ruby (\emph{gem}) \texttt{peach}:\\ \texttt{gem2deb peach}

note: type: enumerate
en: Improve it so that it becomes a proper Debian package
pt_BR: Melhore-o para que se torne um pacote Debian apropriado

note: type: frame{#2}
en: Practical session 5: packaging a Perl module
pt_BR: Sessão prática 5: empacotar um módulo Perl

note: type: enumerate
en: Take a quick look at some documentation about Perl packaging:\\
pt_BR: Faça uma leitura rápida em alguma documentação sobre empacotamento Perl:\\

note: type: itemize
en: \texttt{dh-make-perl(1)}, \texttt{dpt(1)} (in the \texttt{pkg-perl-tools} package)
pt_BR: \texttt{dh-make-perl(1)}, \texttt{dpt(1)} (no pacote \texttt{pkg-perl-tools})

note: type: enumerate
en: Create a basic Debian source package from the \texttt{Acme} CPAN distribution:\\ \verb|dh-make-perl --cpan Acme|
pt_BR: Crie um pacote fonte Debian básico a partir da distribuição CPAN \texttt{Acme}:\\ \verb|dh-make-perl --cpan Acme|

note: type: section{#2}
en: Answers to practical sessions
pt_BR: Respostas às sessões práticas

note: type: center
en: \LARGE Answers to
pt_BR: \LARGE Respostas às

note: type: center
en: [0.5em] practical sessions
pt_BR: [0.5em] sessões práticas

note: type: frame{#2}
en: Fetching the source
pt_BR: Obtendo o fonte

note: type: itemize
en: Use dget to download the \texttt{.dsc} file:\\ {\small \texttt{dget http://cdn.debian.net/debian/pool/main/g/grep/grep\_2.12-2.dsc}}
pt_BR: Use dget para baixar o arquivo \texttt{.dsc}:\\ {\small \texttt{dget http://cdn.debian.net/debian/pool/main/g/grep/grep\_2.12-2.dsc}}

note: type: itemize
en: If you have \texttt{deb-src} for a Debian release that has \texttt{grep} version 2.12-2 (find out on \url{https://tracker.debian.org/grep}), you can use: \texttt{apt-get source grep=2.12-2}\\ or \texttt{apt-get source grep/release} (e.g. \texttt{grep/stable}\\ or, if you feel lucky: \texttt{apt-get source grep}
pt_BR: Se você tiver \texttt{deb-src} para um lançamento Debian que tem \texttt{grep} versão 2.12-2 (descubra em \url{https://tracker.debian.org/grep}), você pode usar \texttt{apt-get source grep=2.12-2}\\ ou \texttt{apt-get source grep/release} (p.ex. \texttt{grep/stable})\\ ou, se tiver com sorte: \texttt{apt-get source grep}

note: type: itemize
en: The \texttt{grep} source package is composed of three files:
pt_BR: O pacote fonte do \texttt{grep} é composto por três arquivos:

note: type: itemize
en: This is typical of the "3.0 (quilt)" format.
pt_BR: Isto é típico do formato "3.0 (quilt)".

note: type: itemize
en: If needed, uncompress the source with\\ \texttt{dpkg-source -x grep\_2.12-2.dsc}
pt_BR: Se necessário, descompacte o fonte com\\ \texttt{dpkg-source -x grep\_2.12-2.dsc}

note: type: frame{#2}
en: Looking around and building the package
pt_BR: Observando e compilando o pacote

note: type: itemize
en: According to \texttt{debian/control}, this package only generates one binary package, named \texttt{grep}.
pt_BR: De acordo com \texttt{debian/control}, este pacote gera apenas um pacote binário, chamado \texttt{grep}.

note: type: itemize
en: According to \texttt{debian/rules}, this package is typical of \textsl{classic} debhelper packaging, without using \textsl{CDBS} or \textsl{dh}. One can see the various calls to \texttt{dh\_*} commands in \texttt{debian/rules}.
pt_BR: De acordo com \texttt{debian/rules}, este pacote é típico de empacotamento debhelper \textsl{clássico}, sem usar \textsl{CDBS} ou \textsl{dh}. Pode-se ver as várias chamadas a comandos \texttt{dh\_*} em \texttt{debian/rules}.

note: type: itemize
en: Use \texttt{apt-get build-dep grep} to fetch the build-dependencies
pt_BR: Use \texttt{apt-get build-dep grep} para obter as dependências de compilação

note: type: itemize
en: Then \texttt{debuild} or \texttt{dpkg-buildpackage -us -uc} (Takes about 1 min)
pt_BR: Depois \texttt{debuild} ou \texttt{dpkg-buildpackage -us -uc} (Demora cerca de 1 minuto)

note: type: frame{#2}
en: Editing the changelog
pt_BR: Editando o registro de alterações (\emph{changelog})

note: type: itemize
en: \texttt{debian/changelog} is a text file. You could edit it and add a new entry manually.
pt_BR: \texttt{debian/changelog} é um arquivo de texto. Você pode editá-lo e adicionar uma nova entrada manualmente.

note: type: itemize
en: Or you can use \texttt{dch -i}, which will add an entry and open the editor
pt_BR: Ou você pode usar \texttt{dch -i}, que irá adicionar uma entrada e abrir o editor

note: type: itemize
en: The name and email can be defined using the \texttt{DEBFULLNAME} and \texttt{DEBEMAIL} environment variables
pt_BR: O nome e email podem ser definidos usando as variáveis de ambiente \texttt{DEBFULLNAME} e \texttt{DEBEMAIL}

note: type: itemize
en: After that, rebuild the package: a new version of the package is built
pt_BR: Em seguida, recompile o pacote: uma nova versão do pacote é construída

note: type: itemize
en: Package versioning is detailed in section 5.6.12 of the Debian policy\\ \url{https://www.debian.org/doc/debian-policy/ch-controlfields}
pt_BR: O "versionamento" do pacote está detalhado na seção 5.6.12 da política Debian\\ \url{https://www.debian.org/doc/debian-policy/ch-controlfields}

note: type: frame{#2}
en: Disabling Perl regexp support and rebuilding
pt_BR: Desativando suporte regexp de Perl e recompilando

note: type: itemize
en: Check with \texttt{./configure -{}-help}: the option to disable Perl regexp is \texttt{-{}-disable-perl-regexp}
pt_BR: Verifique com \texttt{./configure -{}-help}: a opção para desativar Perl regexp é \texttt{-{}-disable-perl-regexp}

note: type: itemize
en: Edit \texttt{debian/rules} and find the \texttt{./configure} line
pt_BR: Edite \texttt{debian/rules} e encontre a linha do \texttt{./configure}

note: type: itemize
en: Add \texttt{-{}-disable-perl-regexp}
pt_BR: Adicione \texttt{-{}-disable-perl-regexp}

note: type: itemize
en: Rebuild with \texttt{debuild} or \texttt{dpkg-buildpackage -us -uc}
pt_BR: Recompile com \texttt{debuild} ou \texttt{dpkg-buildpackage -us -uc}

note: type: frame{#2}
en: Comparing and testing the packages
pt_BR: Comparando e testando os pacotes

note: type: itemize
en: Compare the binary packages: \texttt{debdiff ../*changes}
pt_BR: Compare os pacotes binários: \texttt{debdiff ../*changes}

note: type: itemize
en: Compare the source packages: \texttt{debdiff ../*dsc}
pt_BR: Compare os pacotes fonte: \texttt{debdiff ../*dsc}

note: type: itemize
en: Install the newly built package: \texttt{debi}\\ Or \texttt{dpkg -i ../grep\_<TAB>}
pt_BR: Instale o pacote recentemente compilado: \texttt{debi}\\ Ou \texttt{dpkg -i ../grep\_<TAB>}

note: type: itemize
en: \texttt{grep -P foo} no longer works!
pt_BR: \texttt{grep -P foo} não funciona mais!

note: type: frame
en: Reinstall the previous version of the package:
pt_BR: Reinstale a versão anterior do pacote:

note: type: itemize
en: \texttt{apt-get install -{}-reinstall grep=2.6.3-3} \textit{(= previous version)}
pt_BR: \texttt{apt-get install -{}-reinstall grep=2.6.3-3} \textit{(= versão anterior)}

note: type: frame{#2}
en: Step by step\ldots
pt_BR: Passo a passo\ldots

note: type: itemize
en: Type of package: single binary (for now)
pt_BR: Tipo de pacote: binário simples (por agora)

note: type: frame{#2}
en: Step by step\ldots (2)
pt_BR: Passo a passo\ldots (2)

note: type: itemize
en: Look at \texttt{debian/changelog}, \texttt{debian/rules}, \texttt{debian/control}\\ (auto-filled by \textbf{dh\_make})
pt_BR: Observe \texttt{debian/changelog}, \texttt{debian/rules}, \texttt{debian/control}\\ (auto-preenchido por \textbf{dh\_make})

note: type: itemize
en: In \texttt{debian/control}:\\ \texttt{Build-Depends: debhelper (>= 7.0.50~), autotools-dev}\\ Lists the \textsl{build-dependencies} = packages needed to build the package
pt_BR: Em \texttt{debian/control}:\\ \texttt{Build-Depends: debhelper (>= 7.0.50~), autotools-dev}\\ Lista as \textsl{build-dependencies} = pacotes necessários para compilar o pacote

note: type: itemize
en: Try to build the package as-is with \texttt{debuild} (thanks to \textbf{dh} magic)
pt_BR: Tente compilar o pacote como ele está com \texttt{debuild} (graças à magia do \textbf{dh})

note: type: itemize
en: And add build-dependencies, until it builds
pt_BR: E adicione as dependências de compilação, até que compile

note: type: itemize
en: Hint: use \texttt{apt-cache search} and \texttt{apt-file} to find the packages
pt_BR: Dica: use \texttt{apt-cache search} e \texttt{apt-file} para encontrar os pacotes

note: type: itemize
en: Example:
pt_BR: Exemplo:

note: type: itemize
en: $\rightarrow$ Add \textbf{libsdl1.2-dev} to Build-Depends and install it.
pt_BR: $\rightarrow$ Adicione \textbf{libsdl1.2-dev} a Build-Depends e instale-o.

note: type: itemize
en: Better: use \textbf{pbuilder} to build in a clean environment
pt_BR: Melhor: use \textbf{pbuilder} para compilar num ambiente limpo

note: type: frame{#2}
en: Step by step\ldots (3)
pt_BR: Passo a passo\ldots (3)

note: type: itemize
en: Required build-dependencies are \texttt{libsdl1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev}
pt_BR: As dependências de compilação necessárias são \texttt{libsdl1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev}

note: type: itemize
en: Then, you will probably run into another error:
pt_BR: Depois, você irá provavelmente ao encontro de outro erro:

note: type: itemize
en: This problem is caused by bitrot: gnujump has not been adjusted following linker changes.
pt_BR: Este problema é causado pelo bitrot: O gnujump não foi ajustado seguindo as alterações do linker.

note: type: itemize
en: If you are using source format version \textbf{1.0}, you can directly change upstream sources.
pt_BR: Se você estiver usando o formato de fonte versão \textbf{1.0} você pode mudar diretamente as fontes do autor.

note: type: itemize
en: Edit \texttt{src/Makefile.am} and replace
pt_BR: Edite \texttt{src/Makefile.am} e substitua

note: type: frame{#2}
en: Step by step\ldots (4)
pt_BR: Passo a passo\ldots (4)

note: type: itemize
en: If you are using source format version \textbf{3.0 (quilt)}, use \texttt{quilt} to prepare a patch. (see \url{https://wiki.debian.org/UsingQuilt})
pt_BR: Se estiver usando formato de fonte versão \textbf{3.0 (quilt)}, use \texttt{quilt} para preparar um patch. (veja \url{https://wiki.debian.org/UsingQuilt})

note: type: itemize
en: Since \texttt{src/Makefile.am} was changed, autoreconf must be called during the build. To do that automatically with \texttt{dh}, change the \texttt{dh} call in \texttt{debian/rules} from: \texttt{dh \$\@ -{}-with autotools-dev}\\ to: \texttt{dh \$\@ -{}-with autotools-dev -{}-with autoreconf}
pt_BR: Desde que o \texttt{src/Makefile.am} mudou, o autoreconf tem que ser chamado durante a compilação. Para fazer isso automaticamente com \texttt{dh}, altere a chamada \texttt{dh} em \texttt{debian/rules} de: \texttt{dh \$\@ -{}-with autotools-dev}\\ para: \texttt{dh \$\@ -{}-with autotools-dev -{}-with autoreconf}

note: type: frame{#2}
en: Step by step\ldots (5)
pt_BR: Passo a passo\ldots (5)

note: type: itemize
en: The package should now build fine.
pt_BR: O pacote agora deve compilar sem problemas.

note: type: itemize
en: Use \texttt{debc} to list the content of the generated package, and \texttt{debi} to install it and test it.
pt_BR: Use \texttt{debc} para listar o conteúdo do pacote gerado, e \texttt{debi} para o instalar e testar.

note: type: itemize
en: Test the package with \texttt{lintian}
pt_BR: Teste o pacote com \texttt{lintian}

note: type: itemize
en: While not a strict requirement, it is recommended that packages uploaded to Debian are \textsl{lintian-clean}
pt_BR: Embora não seja um requerimento estrito, é recomendado que os pacotes enviados para o Debian sejam \textsl{lintian-clean} (passem no teste do lintian)

note: type: itemize
en: More problems can be listed using \texttt{lintian -EviIL +pedantic}
pt_BR: Mais problemas podem ser listados usando \texttt{lintian -EviIL +pedantic}

note: type: itemize
en: Some hints:
pt_BR: Algumas dicas:

note: type: itemize
en: Remove the files that you don't need in \texttt{debian/}
pt_BR: Remova os arquivos que você não precisa em \texttt{debian/}

note: type: itemize
en: Fill in \texttt{debian/control}
pt_BR: Preencha \texttt{debian/control}

note: type: itemize
en: Install the executable to \texttt{/usr/games} by overriding \texttt{dh\_auto\_configure}
pt_BR: Instale o executável em \texttt{/usr/games} passando por cima do  \texttt{dh\_auto\_configure}

note: type: itemize
en: Use \textsl{hardening} compiler flags to increase security.\\ See \url{https://wiki.debian.org/Hardening}
pt_BR: Use marcadores \textsl{hardening} do compilador para aumentar a segurança.\\ Veja \url{https://wiki.debian.org/Hardening}

note: type: frame{#2}
en: Step by step\ldots (6)
pt_BR: Passo a passo\ldots (6)

note: type: itemize
en: Compare your package with the one already packaged in Debian:
pt_BR: Compare o seu pacote com aquele já empacotado no Debian:

note: type: itemize
en: It splits the data files to a second package, that is the same across all architectures ($\rightarrow$ saves space in the Debian archive)
pt_BR: Ele separa os arquivos de dados para um segundo pacote, que é o mesmo para todas as arquiteturas ($\rightarrow$ poupa espaço no repositório Debian)

note: type: itemize
en: It installs a .desktop file (for the GNOME/KDE menus) and also integrates into the Debian menu
pt_BR: Instala um arquivo .desktop (para os menus de GNOME/KDE) e também o integra ao menu Debian

note: type: itemize
en: It fixes a few minor problems using patches
pt_BR: Corrige alguns problemas menores usando patches

note: type: itemize
en: Create a basic source package: \texttt{jh\_makepkg}
pt_BR: Crie um pacote fonte básico: \texttt{jh\_makepkg}

note: type: itemize
en: Library
pt_BR: Biblioteca

note: type: itemize
en: None
pt_BR: Nenhum

note: type: itemize
en: Default Free compiler/runtime
pt_BR: Compilador/runtime livre padrão

note: type: itemize
en: Look at and fix \texttt{debian/*}
pt_BR: Observe e corrija \texttt{debian/*}

note: type: itemize
en: \texttt{dpkg-buildpackage -us -uc} or \texttt{debuild}
pt_BR: \texttt{dpkg-buildpackage -us -uc} ou \texttt{debuild}

note: type: itemize
en: Compare your result with the \texttt{libirclib-java} source package
pt_BR: Compare o seu resultado com o pacote fonte \texttt{libirclib-java}

note: type: itemize
en: Downloads the gem from rubygems.org
pt_BR: Baixa o pacote (\emph{gem}) de rubygems.org

note: type: itemize
en: Creates a suitable .orig.tar.gz archive, and untar it
pt_BR: Cria um arquivo .orig.tar.gz apropriado e descompacta-o

note: type: itemize
en: Initializes a Debian source package based on the gem's metadata
pt_BR: Inicializa um pacote fonte Debian baseado nos meta-dados do gem

note: type: itemize
en: Named \texttt{ruby-\textsl{gemname}}
pt_BR: Chamado \texttt{ruby-\textsl{gemname}}

note: type: itemize
en: Tries to build the Debian binary package (this might fail)
pt_BR: Tenta compilar o pacote binário Debian (pode falhar)

note: type: frame
en: \texttt{dh\_ruby} (included in \textsl{gem2deb}) does the Ruby-specific tasks:
pt_BR: \texttt{dh\_ruby} (incluído em \textsl{gem2deb}) faz as tarefas específicas de Ruby:

note: type: itemize
en: Build C extensions for each Ruby version
pt_BR: Compila extensões de C para cada versão de Ruby

note: type: itemize
en: Copy files to their destination directory
pt_BR: Copia os arquivos para o seu diretório de destino

note: type: itemize
en: Update shebangs in executable scripts
pt_BR: Atualiza shebangs nos scripts executáveis

note: type: itemize
en: Run tests defined in \texttt{debian/ruby-tests.rb}, \texttt{debian/ruby-tests.rake}, or \texttt{debian/ruby-test-files.yaml}, as well as various other checks
pt_BR: Roda os testes definidos em \texttt{debian/ruby-tests.rb}, \texttt{debian/ruby-tests.rake}, ou \texttt{debian/ruby-test-files.yaml}, assim como várias outras verificações

note: type: frame
en: Improve the generated package:
pt_BR: Melhore o pacote gerado

note: type: itemize
en: Run \texttt{debclean} to clean the source tree. Look at \texttt{debian/}.
pt_BR: Rode \texttt{debclean} para limpar a árvore fonte. Observe \texttt{debian/}

note: type: itemize
en: \texttt{changelog} and \texttt{compat} should be correct
pt_BR: \texttt{changelog} e \texttt{compat} devem estar corretos

note: type: itemize
en: Edit \texttt{debian/control}: improve \texttt{Description}
pt_BR: Edite \texttt{debian/control}: melhore o campo \texttt{Description}

note: type: itemize
en: Write a proper \texttt{copyright} file based on the upstream files
pt_BR: Escreva um arquivo \texttt{copyright} apropriado com base nos arquivos do autor

note: type: itemize
en: Compare your package with the \texttt{ruby-peach} package in the Debian archive
pt_BR: Compare o seu pacote com o pacote \texttt{ruby-peach} no repositório Debian

note: type: itemize
en: Downloads the tarball from the CPAN
pt_BR: Baixa o tarball a partir de CPAN

note: type: itemize
en: Creates a suitable .orig.tar.gz archive, and untars it
pt_BR: Cria um arquivo .orig.tar.gz apropriado e descompacta-o

note: type: itemize
en: Initializes a Debian source package based on the distribution's metadata
pt_BR: Inicializa um pacote fonte Debian baseado nos meta-dados da distribuição

note: type: itemize
en: Named \texttt{lib\textsl{distname}-perl}
pt_BR: Chamado \texttt{lib\textsl{distname}-perl}

note: type: itemize
en: \texttt{debian/changelog}, \texttt{debian/compat}, \texttt{debian/libacme-perl.docs}, and \texttt{debian/watch} should be correct
pt_BR: \texttt{debian/changelog}, \texttt{debian/compat}, \texttt{debian/libacme-perl.docs}, e \texttt{debian/watch} devem estar corretos

note: type: itemize
en: Edit \texttt{debian/control}: improve \texttt{Description}, and remove boilerplate at the bottom
pt_BR: Edite \texttt{debian/control}: melhore o campo \texttt{Description}, e remova o texto padrão no final

note: type: itemize
en: Edit \texttt{debian/copyright}: remove boilerplate paragraph at the top, add years of copyright to the \texttt{Files:\hspace{0.3em}*} stanza
pt_BR: Edite \texttt{debian/copyright}: remova o parágrafo de texto padrão no topo, adicione anos de copyright à estrofe de \texttt{Files:\hspace{0.3em}*}
