<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Summary</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Debian Binary Package Building HOWTO" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Double Check" HREF="x121.html"><LINK REL="NEXT" TITLE="What Else" HREF="x231.html"></HEAD ><BODY CLASS="sect1" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Debian Binary Package Building HOWTO</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="x121.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="x231.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="sect1" ><H1 CLASS="sect1" ><A NAME="AEN169" ></A >6. Summary</H1 ><P > Not to get confused, let us recapture all steps we have taken to build our binary Debian package.</P ><P > Prerequisite files: </P ><P ></P ><OL TYPE="1" ><LI ><P >one or more binary executable or shell script files</P ></LI ><LI ><P >a man page for each executable file</P ></LI ><LI ><P >a 'control' file</P ></LI ><LI ><P >a 'copyright' file</P ></LI ><LI ><P >a 'changelog' and 'changelog.Debian' file</P ></LI ></OL ><P > Setup temporary 'debian' directories: </P ><P ></P ><OL TYPE="1" ><LI ><P >create '<TT CLASS="literal" >debian/usr/bin</TT >' directory (or wherever you plan to place your executable files)</P ></LI ><LI ><P >create '<TT CLASS="literal" >debian/usr/share/man/man1</TT >' (or whatever section your man page belongs into)</P ></LI ><LI ><P >create '<TT CLASS="literal" >debian/DEBIAN</TT >' directory</P ></LI ><LI ><P >create '<TT CLASS="literal" >debian/usr/share/doc/<package_name></TT >'</P ></LI ><LI ><P >make sure all sub directories of '<TT CLASS="literal" >debian</TT >' have file permission 0755</P ></LI ></OL ><P > Copy files into temporary 'debian' tree: </P ><P ></P ><OL TYPE="1" ><LI ><P >copy executable file into '<TT CLASS="literal" >debian/usr/bin</TT >' directory (or wherever you plan to place your executable files)</P ></LI ><LI ><P >copy man page file into '<TT CLASS="literal" >debian/usr/share/man/man1</TT >' directory</P ></LI ><LI ><P >copy 'control' file into '<TT CLASS="literal" >debian/DEBIAN</TT >' directory</P ></LI ><LI ><P >copy 'copyright', 'changelog', and 'changelog.Debian' files into '<TT CLASS="literal" >debian/usr/share/doc/<package_name></TT >'</P ></LI ><LI ><P >gzip man page, 'copyright', 'changelog', and 'changelog.Debian' files with option '--best' inside the temporary '<TT CLASS="literal" >debian</TT >' tree</P ></LI ></OL ><P > Build and check binary Debian package: </P ><P ></P ><OL TYPE="1" ><LI ><P >invoke '<TT CLASS="literal" >dpkg-deb --build</TT >' using '<TT CLASS="literal" >fakeroot</TT >' on the '<TT CLASS="literal" >debian</TT >' directory</P ></LI ><LI ><P >rename resulting '<TT CLASS="literal" >debian.deb</TT >' file to its final package name including version and architecture information</P ></LI ><LI ><P >check resulting .deb package file for Debian policy compliance using '<TT CLASS="literal" >lintian</TT >'</P ></LI ></OL ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="x121.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="x231.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Double Check</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >What Else</TD ></TR ></TABLE ></DIV ></BODY ></HTML >