2023-12-16 12:59:18 -06:00
|
|
|
.PHONY: debian
|
|
|
|
|
2023-02-08 11:04:04 -06:00
|
|
|
run: build
|
2023-12-16 09:02:59 -06:00
|
|
|
# ./control-panel-dns >/tmp/witgui.log.stderr 2>&1
|
|
|
|
./control-panel-dns
|
2023-02-08 11:04:04 -06:00
|
|
|
|
2023-03-25 08:09:34 -05:00
|
|
|
install:
|
|
|
|
go install -v go.wit.com/control-panel-dns@latest
|
2023-12-20 15:12:26 -06:00
|
|
|
# go install -v go.wit.com/control-panel-dns@latest
|
2023-03-25 08:09:34 -05:00
|
|
|
|
2023-12-20 03:13:43 -06:00
|
|
|
gocui: build
|
2023-12-16 09:02:59 -06:00
|
|
|
./control-panel-dns -gui gocui >/tmp/witgui.log.stderr 2>&1
|
|
|
|
|
2023-03-01 11:21:47 -06:00
|
|
|
debug: build
|
|
|
|
./control-panel-dns --verbose --verbose-net --gui-debug
|
2023-02-18 23:37:11 -06:00
|
|
|
|
|
|
|
dns: build
|
|
|
|
./control-panel-dns --verbose-dns
|
|
|
|
|
2023-02-08 11:04:04 -06:00
|
|
|
build-release:
|
2023-02-18 23:37:11 -06:00
|
|
|
reset
|
2023-02-08 11:04:04 -06:00
|
|
|
go get -v -u -x .
|
|
|
|
go build
|
|
|
|
|
|
|
|
build:
|
2023-02-18 23:37:11 -06:00
|
|
|
reset
|
2023-12-16 09:02:59 -06:00
|
|
|
-mkdir -p plugins/
|
2023-12-20 15:12:26 -06:00
|
|
|
-cp ~/go/src/go.wit.com/gui/toolkit/*.so plugins/
|
2023-02-18 23:43:28 -06:00
|
|
|
# GO111MODULE="off" go get -v -x .
|
|
|
|
GO111MODULE="off" go build -v -o control-panel-dns
|
2023-02-18 23:37:11 -06:00
|
|
|
|
2023-03-25 08:09:34 -05:00
|
|
|
# ./control-panel-dns.v1: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./control-panel-dns.v1)
|
|
|
|
# ./control-panel-dns.v1: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./control-panel-dns.v1)
|
|
|
|
# compiling with CGO disabled means it compiles but then plugins don't load
|
|
|
|
GLIBC_2.34-error:
|
|
|
|
GO111MODULE="off" CGO_ENABLED=0 go build -v -o control-panel-dns
|
|
|
|
|
2023-02-18 23:37:11 -06:00
|
|
|
test:
|
|
|
|
GO111MODULE="off" go test -v
|
2023-02-08 11:04:04 -06:00
|
|
|
|
|
|
|
update:
|
|
|
|
GO111MODULE="off" go get -v -u -x .
|
2023-02-09 09:07:00 -06:00
|
|
|
|
|
|
|
clean:
|
2023-02-18 23:37:11 -06:00
|
|
|
-rm control-panel-dns
|
|
|
|
-rm -rf files/
|
|
|
|
-rm *.deb
|
|
|
|
|
2023-12-16 12:59:18 -06:00
|
|
|
debian:
|
2023-02-18 23:37:11 -06:00
|
|
|
cd debian && make
|
|
|
|
-wit mirrors
|
|
|
|
|
|
|
|
netlink:
|
|
|
|
GO111MODULE="off" go get -v -u github.com/vishvananda/netlink
|
|
|
|
|
|
|
|
|
|
|
|
####### MODULE STUFF DOWN HERE
|
|
|
|
#
|
|
|
|
# What again is the 'right' way to do this?
|
|
|
|
# It seems like it changes from year to year. This is better than 'vendor/' (that was a terrible hack)
|
|
|
|
# maybe it's settled down finally. Use GO111MODULE="off" when you are developing. (?)
|
|
|
|
# When you are ready to release, version this and all the packages correctly. (?)
|
|
|
|
#
|
|
|
|
# At least, that is what I'm going to try to do as of Feb 18 2023.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
build-with-custom-go.mod:
|
|
|
|
go build -modfile=local.go.mod ./...
|
|
|
|
|
|
|
|
# module <yourname>
|
|
|
|
# go 1.18
|
|
|
|
# require (
|
|
|
|
# github.com/versent/saml2aws/v2 v2.35.0
|
|
|
|
# )
|
|
|
|
# replace github.com/versent/saml2aws/v2 v2.35.0 => github.com/marcottedan/saml2aws/v2 master
|
|
|
|
# replace github.com/versent/saml2aws/v2 => /Users/dmarcotte/git/saml2aws/
|
2023-03-25 08:09:34 -05:00
|
|
|
#
|
2023-12-20 15:12:26 -06:00
|
|
|
# https://crt.sh/?q=check.lab.wit.com
|
2023-03-25 08:09:34 -05:00
|
|
|
# # https://letsencrypt.org/certificates/
|
2023-12-20 15:12:26 -06:00
|
|
|
# openssl s_client -connect check.lab.wit.com:443 -showcerts
|
|
|
|
# openssl s_client -CApath /etc/ssl/certs/ -connect check.lab.wit.com:443 -showcerts -trace -debug
|
|
|
|
# openssl s_client -CAfile isrgrootx1.pem -connect check.lab.wit.com:443 -showcerts
|
2023-03-25 08:09:34 -05:00
|
|
|
# cat isrgrootx1.pem lets-encrypt-r3.pem > full-chain.pem
|
|
|
|
# full-chain.pem
|
2023-12-20 15:12:26 -06:00
|
|
|
# openssl s_client -CAfile /etc/ssl/certs/wit-full-chain.pem -connect check.lab.wit.com:443 -showcerts
|
|
|
|
check-cert:
|
|
|
|
reset
|
|
|
|
openssl s_client -CApath /etc/ssl/certs/ -connect go.wit.com:443 -showcerts
|
2023-03-25 08:09:34 -05:00
|
|
|
|
|
|
|
ssl-cert-hash:
|
|
|
|
openssl x509 -hash -noout -in wit-full-chain.pem
|
|
|
|
# cd /etc/ssl/certs && ln -s wit-full-chain.pem 4042bcee.0
|
|
|
|
openssl x509 -hash -noout -in isrgrootx1.pem
|
|
|
|
openssl x509 -hash -noout -in lets-encrypt-r3.pem
|
|
|
|
|
|
|
|
sudo-cp:
|
|
|
|
sudo cp -a lets-encrypt-r3.pem 8d33f237.0 /etc/ssl/certs/
|
|
|
|
|
|
|
|
go-get:
|
2023-12-20 15:12:26 -06:00
|
|
|
go install -v go.wit.com/gui
|
2023-04-07 11:23:47 -05:00
|
|
|
|
|
|
|
log:
|
|
|
|
reset
|
|
|
|
tail -f /tmp/witgui.* /tmp/guilogfile
|
2023-12-20 18:36:58 -06:00
|
|
|
|
|
|
|
# sync repo to the github backup
|
|
|
|
github:
|
|
|
|
-git remote add github git@github.com:wit-go/control-panel-dns.git
|
|
|
|
-git branch -M main
|
|
|
|
git push origin main
|
|
|
|
git push origin devel
|
|
|
|
git push origin --tags
|
|
|
|
git push github main
|
|
|
|
git push github devel
|
|
|
|
git push github --tags
|