It's easier to compile the linux kernel from scratch than it is to build a debian package from scratch.
It's mind-blowing how complicated it is; at the end of the day it's just an archive. I hate having to do it.
It's mind-blowing how complicated it is; at the end of the day it's just an archive. I hate having to do it.
Then I have a "src/DEBIAN" folder with a control file and maybe things like conffiles, postinst, etc.
Control file looks like
Package: mypackage
Version: 1.0.__datestamp__
Architecture: all
Maintainer: My Name <my.name@email.com>
Depends: perl, libcgi-pm-perl, libtimedate-perl, apache2
Section: web
Priority: optional
Installed-Size: 1000
Description: My fun package which does good stuff
Do wonderful things like existing
sed replaces the __datestamp__ line with yyyy.mm.dd.hh.mm.ss, then fakeroot dpkg-deb --build ./src
builds a deb.(I have a larger script which does things like checking out from git, tagging, etc)
- default: https://vaporup.github.io/books/the-pragmatic-sysadmin/debian-packaging/
- quick: https://nfpm.goreleaser.com/usage/