Difference between revisions of "Basic Debian Packaging"

From FreekiWiki
Jump to navigation Jump to search
(added search for existing debian packages)
(formatting (matteo))
Line 1: Line 1:
 
this class should give a basic understanding of how to build a debian package from some common types of source tarballs or repositories.
 
this class should give a basic understanding of how to build a debian package from some common types of source tarballs or repositories.
  
prerequisites:
+
===prerequisites:===
* basic familiarity with [Basic_Linux_Command_Line_for_Builders|commandline]
+
* basic familiarity with [[Basic_Linux_Command_Line_for_Builders|commandline]]
* basic familiarity with linux: [Where_Is_Everything]
+
* basic familiarity with linux: [[Where_Is_Everything]]
  
suggestions:
+
===suggestions:===
 
* rudimentary understanding of building and compiling software
 
* rudimentary understanding of building and compiling software
 
* basic understanding of apt and dpkg
 
* basic understanding of apt and dpkg
  
topics covered:
+
===topics covered:===
* finding software
+
====finding software====
** is it already packaged:
+
* is it already packaged:
*** packages.debian.org
+
** packages.debian.org
** freshmeat.net
+
* freshmeat.net
** sourceforge.net
+
* sourceforge.net
** google.com
+
* google.com
* environment variables
+
====environment variables====
** DEBEMAIL
+
* DEBEMAIL
** DEBFULLNAME
+
* DEBFULLNAME
* dh_make
+
====dh_make====
** copyright
+
* copyright
** changelog
+
* changelog
** control
+
* control
*** dch
+
** dch
*** version
+
** version
*** release
+
** release
** rules
+
* rules
** other files
+
* other files
*** *.installi
+
** *.installi
*** *.manpages
+
** *.manpages
*** *.examples
+
** *.examples
*** *.init
+
** *.init
*** *.postinst
+
** *.postinst
** other examples: *.ex and *.EX files
+
* other examples: *.ex and *.EX files
* cdbs basics:
+
====cdbs basics:====
** magic snippet for debian/rules file:
+
* magic snippet for debian/rules file:
 
  #!/usr/bin/make -f
 
  #!/usr/bin/make -f
 
  # comment out the next line if using a makefile-based source distribution  
 
  # comment out the next line if using a makefile-based source distribution  
Line 43: Line 43:
 
* basic troubleshooting
 
* basic troubleshooting
 
** build dependencies
 
** build dependencies
* lintian
+
====lintian====
** debian policy
+
* debian policy
  
additional and related topics:
+
===additional and related topics:===
 
* [Debian_Package_Repositories]
 
* [Debian_Package_Repositories]
 
* gnupg-signed packages
 
* gnupg-signed packages
  
 
[[Category:Classes]]
 
[[Category:Classes]]

Revision as of 20:37, 8 December 2005

this class should give a basic understanding of how to build a debian package from some common types of source tarballs or repositories.

prerequisites:

suggestions:

  • rudimentary understanding of building and compiling software
  • basic understanding of apt and dpkg

topics covered:

finding software

  • is it already packaged:
    • packages.debian.org
  • freshmeat.net
  • sourceforge.net
  • google.com

environment variables

  • DEBEMAIL
  • DEBFULLNAME

dh_make

  • copyright
  • changelog
  • control
    • dch
    • version
    • release
  • rules
  • other files
    • *.installi
    • *.manpages
    • *.examples
    • *.init
    • *.postinst
  • other examples: *.ex and *.EX files

cdbs basics:

  • magic snippet for debian/rules file:
#!/usr/bin/make -f
# comment out the next line if using a makefile-based source distribution 
#include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
  • debuild
  • basic troubleshooting
    • build dependencies

lintian

  • debian policy

additional and related topics:

  • [Debian_Package_Repositories]
  • gnupg-signed packages