add gcloud repo

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-01-30 11:18:32 -06:00
parent fd09ef320f
commit 4c6c6da1b1
3 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
VERSION=20230129
VERSION=$(shell git describe --tags $(git rev-list --tags --max-count=1) | sed 's/^v//')
BASENAME=wit
all: clean extract DEBIAN build
@ -24,19 +24,19 @@ extract:
# makes the DEBIAN/ directory
DEBIAN:
mkdir -p DEBIAN
# make the md5sum file
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
mv ../md5sums DEBIAN/
# make the control there
mkdir -p DEBIAN
cd files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../md5sums
mv md5sums DEBIAN/
cp control DEBIAN/
# echo Version: ${VERSION} >>DEBIAN/control
cp postinst DEBIAN
echo Version: ${VERSION} >>DEBIAN/control
echo Build-Date: `date` >>DEBIAN/control
echo Source-Date: `stat -c %z ../wit` >>DEBIAN/control
cp postinst DEBIAN/
mv DEBIAN ../files/
build:
mv DEBIAN ../files/
cd .. && dpkg-deb --build files ${BASENAME}_${VERSION}_amd64.deb
cd .. && dpkg-deb --info ${BASENAME}_${VERSION}_amd64.deb

View File

@ -1,8 +1,7 @@
Source: wit
Build-Depends: golang
Package: wit
Version: 20230129
Maintainer: Jeff Carr <jcarr@wit.com>
Architecture: amd64
Depends: info
Depends: screen, tcpdump, nmap, ethtool, apt-transport-https, ca-certificates, gnupg
Description: sets up the apt repository for wit

View File

@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main