put Build-Date & Source-Date in the .deb package

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-01-28 18:25:11 -06:00
parent 380c3a0d0a
commit e30d96cbaa
2 changed files with 12 additions and 0 deletions

10
README.md Normal file
View File

@ -0,0 +1,10 @@
=Info=
Packages up various stuff using the bare minimum of interaction to make a .deb package.
.deb packages are 'ar' files. You can create them with 'ar', but the recommended way
seems to be to use dpkg-deb.
The packages themselves you can browse and/or download here:
http://mirrors.wit.org/wit/pool/main/

View File

@ -46,6 +46,8 @@ control:
mkdir -p DEBIAN
cp control DEBIAN/
echo Version: ${VERSION}.${MINOR} >>DEBIAN/control
echo Build-Date: `stat -c %z ~/go/src/github.com/coredns/coredns/coredns` >>DEBIAN/control
echo Source-Date: `cd ~/go/src/github.com/coredns/coredns/ && git log -1 --format=%cd` >>DEBIAN/control
md5sum:
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums