2022-04-14 15:55:35 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2023-02-19 03:16:13 +00:00
|
|
|
VERSION=0.1.3
|
|
|
|
for ARCH in amd64 arm64; do
|
|
|
|
CGO_ENABLED=0 GOARCH=${ARCH} GOOS=linux go build -o tailscale.nginx-auth .
|
2022-04-14 15:55:35 +00:00
|
|
|
|
2023-02-19 03:16:13 +00:00
|
|
|
mkpkg \
|
|
|
|
--out=tailscale-nginx-auth-${VERSION}-${ARCH}.deb \
|
|
|
|
--name=tailscale-nginx-auth \
|
|
|
|
--version=${VERSION} \
|
|
|
|
--type=deb \
|
|
|
|
--arch=${ARCH} \
|
|
|
|
--postinst=deb/postinst.sh \
|
|
|
|
--postrm=deb/postrm.sh \
|
|
|
|
--prerm=deb/prerm.sh \
|
|
|
|
--description="Tailscale NGINX authentication protocol handler" \
|
|
|
|
--files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md
|
2022-04-20 17:06:05 +00:00
|
|
|
|
2023-02-19 03:16:13 +00:00
|
|
|
mkpkg \
|
|
|
|
--out=tailscale-nginx-auth-${VERSION}-${ARCH}.rpm \
|
|
|
|
--name=tailscale-nginx-auth \
|
|
|
|
--version=${VERSION} \
|
|
|
|
--type=rpm \
|
|
|
|
--arch=${ARCH} \
|
|
|
|
--postinst=rpm/postinst.sh \
|
|
|
|
--postrm=rpm/postrm.sh \
|
|
|
|
--prerm=rpm/prerm.sh \
|
|
|
|
--description="Tailscale NGINX authentication protocol handler" \
|
|
|
|
--files=./tailscale.nginx-auth:/usr/sbin/tailscale.nginx-auth,./tailscale.nginx-auth.socket:/lib/systemd/system/tailscale.nginx-auth.socket,./tailscale.nginx-auth.service:/lib/systemd/system/tailscale.nginx-auth.service,./README.md:/usr/share/tailscale/nginx-auth/README.md
|
|
|
|
done
|