3 ms·
I store files in an appropiate strcture in my repo in a "src" folder, eg "src/usr/bin/myprog", "src/etc/cron.daily/myprog.cron" etc Then I have a "src/DEBIAN"
by iso1631 4y ago
I store files in an appropiate strcture in my repo in a "src" folder, eg "src/usr/bin/myprog", "src/etc/cron.daily/myprog.cron" etc
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)