From 047c382537b76df4ac582230b72c98ef5aa6cbc8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 6 Nov 2024 13:42:55 -0600 Subject: build for debian --- .gitignore | 3 +++ Makefile | 9 +++++++++ control | 12 ++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 control diff --git a/.gitignore b/.gitignore index 9449fc6..8adf904 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ +go.sum +go.mod + /networkQuality diff --git a/Makefile b/Makefile index 23de0af..d13b27e 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,12 @@ golines: clean: go clean -testcache rm -f *.o core + +apple: + ./networkQuality --config mensura.cdn-apple.com --port 443 --path /api/v1/gm/config + +# makes a .deb package +debian: + # you have to symlink this if you are building it from somewhere else + # ln -s ~/go/src/github.com/network-quality/goresponsiveness -> ../../go.wit.com/apps/networkQuality + ~/go/bin/go-deb --ldflags "$(PKG)/utilities.GitVersion=$(GIT_VERSION)" --no-gui --repo go.wit.com/apps/networkQuality diff --git a/control b/control new file mode 100644 index 0000000..b2db835 --- /dev/null +++ b/control @@ -0,0 +1,12 @@ +Source: networkQuality +Build-Depends: golang +Package: networkQuality +Maintainer: Jeff Carr +Architecture: amd64 +Recommends: +Depends: +URL: https://github.com/network-quality/goresponsiveness +Description: does a speed test of your internet connection + To test against apple.com: + networkQuality --config mensura.cdn-apple.com --port 443 --path /api/v1/gm/config + This is a debian package of: https://github.com/network-quality/goresponsiveness -- cgit v1.2.3