Changes between Version 13 and Version 14 of AnatomyOfAPackage


Ignore:
Timestamp:
01/23/13 18:07:46 (9 years ago)
Author:
jdreed
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AnatomyOfAPackage

    v13 v14  
    1111 * '''`debian/copyright`''':  A human-readable description of the copyright status of the package.   See [wiki:Copyright] for what to use in the Athena repository. 
    1212 * '''`debian/rules`''': The executable makefile used to build the binary package.  See [wiki:Rules]. 
     13 * '''`debian/source/format`''': If present, it contains the version of the source package (either 1.0 or 3.0).  If absent, debuild will generally create a version 1.0 source package. 
    1314 
    1415N.B. The control file can be generated from the control.in file with the following invocation, from within the package's root directory: 
     
    2930 * `debian/`''`package`''`.postinst`,  `debian/`''`package`''`.preinst`, `debian/`''`package`''`.postrm`, `debian/`''`package`''`.prerm`: The package's maintainer scripts.  See MaintainerScripts for more information. 
    3031 
     32== Creating a package == 
     33 
     34While you can create all the special files listed above from scratch, Debhelper provides a tool to make things easy for you.  Assuming you have a piece of software in a directory whose name is of the format ''package-version'' (e.g. `foobar-1.0`), you can use the `dh_make` command: 
     35 
     36{{{ 
     37dh_make -c gpl -s --createorig 
     38}}} 
     39 
     40That will create a single binary (`-s`) package with the GPL license (`-c gpl`), and will create a .orig tarball for you in the parent directory (`--createorig`).  It will create all the required files for you in the `debian` directory, and then a variety of optional example files (with the `.ex` extension), which you can either customize or delete.   
     41 
    3142Next: [wiki:BuildingAPackage]