parent
fd09ef320f
commit
4c6c6da1b1
22
wit/Makefile
22
wit/Makefile
|
@ -1,4 +1,4 @@
|
||||||
VERSION=20230129
|
VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
|
||||||
BASENAME=wit
|
BASENAME=wit
|
||||||
|
|
||||||
all: clean extract DEBIAN build
|
all: clean extract DEBIAN build
|
||||||
|
@ -24,19 +24,19 @@ extract:
|
||||||
# makes the DEBIAN/ directory
|
# makes the DEBIAN/ directory
|
||||||
DEBIAN:
|
DEBIAN:
|
||||||
mkdir -p DEBIAN
|
mkdir -p DEBIAN
|
||||||
|
|
||||||
# make the md5sum file
|
# make the md5sum file
|
||||||
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
|
cd files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
|
||||||
mv ../md5sums DEBIAN/
|
mv md5sums DEBIAN/
|
||||||
|
|
||||||
# make the control there
|
|
||||||
mkdir -p DEBIAN
|
|
||||||
cp control DEBIAN/
|
cp control DEBIAN/
|
||||||
# echo Version: ${VERSION} >>DEBIAN/control
|
echo Version: ${VERSION} >>DEBIAN/control
|
||||||
|
echo Build-Date: `date` >>DEBIAN/control
|
||||||
cp postinst DEBIAN
|
echo Source-Date: `stat -c %z ../wit` >>DEBIAN/control
|
||||||
|
|
||||||
|
cp postinst DEBIAN/
|
||||||
|
mv DEBIAN ../files/
|
||||||
|
|
||||||
build:
|
build:
|
||||||
mv DEBIAN ../files/
|
|
||||||
cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb
|
cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb
|
||||||
cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb
|
cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
Source: wit
|
Source: wit
|
||||||
Build-Depends: golang
|
Build-Depends: golang
|
||||||
Package: wit
|
Package: wit
|
||||||
Version: 20230129
|
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Depends: info
|
Depends: screen, tcpdump, nmap, ethtool, apt-transport-https, ca-certificates, gnupg
|
||||||
Description: sets up the apt repository for wit
|
Description: sets up the apt repository for wit
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main
|
Loading…
Reference in New Issue