7 ms·
First try updating an existing source package or adding a patch to one. Hell, just download one with `apt-get source` and just read it— look at the files that m
by pxc 2y ago
First try updating an existing source package or adding a patch to one. Hell, just download one with `apt-get source` and just read it— look at the files that make up the source package. Then download a few more. Maybe try and build some. Change a couple files before building and see what happens.
Once you have a feel for that stuff, use debhelper to create a new package 'from scratch' (from an upstream source tarball).
This 'tutorial'¹ presents basically the same info as the Debian packaging docs² but it feels more easily digestible to me because of how it's chopped up into slides.
Some of the manpages are also good. The debhelper manpage³ refers you to other small docs, notably dh_make⁴, which is probably your best starting point for creating a package from scratch.
--
1: https://www.debian.org/doc/manuals/packaging-tutorial/packaging-tutorial.pdf https://www.debian.org/doc/manuals/packaging-tutorial/packag...
2: https://www.debian.org/doc/manuals/debmake-doc/ch05.en.html#workflow https://www.debian.org/doc/manuals/debmake-doc/ch05.en.html#...
3: https://manpages.debian.org/bullseye/debhelper/debhelper.7.en.html https://manpages.debian.org/bullseye/debhelper/debhelper.7.e...
4: https://manpages.debian.org/testing/dh-make/dh_make.1.en.html https://manpages.debian.org/testing/dh-make/dh_make.1.en.htm...
- lagniappe 2y agothanks!