If you are using quilt, run quilt pop -a before commit.Ĭlean build with sbuild. Run debclean or clean before running git commit to ensure files generated by dpkg-buildpackage are not committed. Commit only the files that are edited or added (verify only the required files are getting committed). bug fixes), if there are any, should be made as patch files in this folder (this can be done with the help of tools like quilt, dpatch, etc). It should be noted that all the packaging work should be made by modifying files in the debian directory. We can use the package libconfig-model-dpkg-perl for this:Ĭommit related changes one by one. Update debian/copyright with any missing information. Changelog file can be edited using the following command which will warn us if we make mistakes in formatting:.Every time we make a change to any file inside debian directory, run dpkg-buildpackage and lintian commands to make sure the warning(s)/error(s) are actually fixed. Run lintian command and make sure to fix all the errors and warnings (lines starting with E: or W:) shown. Delete the debian tag by running the following command (we can add the tag later after making all necessary changes):.You may run git branch and git tag commands to see the default branches and tag. Pristine-tar: contains essential data to recreate the exact upstream tarball used during import (line-endings for text files in different architectures may create tarballs with different checksum). Upstream: contains the original source as provided by the upstream. Master: contains upstream source along with the debian directory. This repo will have 3 branches as follows: The above command will create a new directory (repo) called which is git tracked. This is useful to track all changes we make to the package. Import package to git using git-buildpackage. deb file(s) (based on the configuration in the control file). The above command will generate one or more. Build the binary package using the following command:.The above command will generate a tarball of the debian folder ( _. and _.dsc file in the parent directory). Create Debian source package using the following command:.We could write shell code directly or use any packaging helper like debhelper for this purpose. Rules: specifies how to build the package. After installation this will go to /usr/share/doc/package/.Ĭontrol: meta-data about the package such as package name, section, description, dependencies, maintainer, etc.Ĭopyright: copyright information for the package. The debian directory must have the following files:Ĭhangelog: history of the Debian package, can be edited manually or using dch tool.Run this following commands and this should run fine (you can choose one of debmake or dh_make) are preferred over debmake if they could be used. But specialized tools like npm2deb (for node packages), gem2deb (for ruby packages), dh-make-golang, dh-make-perl, dh-make-php (for go, perl and php respectively), etc. This will create debian directory with all necessary files in it.ĭebmake will give us a generic debian folder if we give it any kind of tarball. cd node-pretty-hrtime-1.0.3) and run debmake.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |