add tool to build tailscale debs
This commit is contained in:
parent
c0b7fbd0c9
commit
571405c4b6
2 changed files with 37 additions and 0 deletions
12
tailscale-build/README.md
Normal file
12
tailscale-build/README.md
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
This is a script to build tailscale from source and create a corresponding debian package.
|
||||||
|
|
||||||
|
To run:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone https://github.com/tailscale/tailscale/
|
||||||
|
cd tailscale
|
||||||
|
git checkout SOME_VERSION # eg v1.90.0
|
||||||
|
bash ../mk-tailscale-deb.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
A file named `conservancy-tailscale_VERSION_amd64.deb` should be created in the current directory.
|
||||||
25
tailscale-build/mk-tailscale-deb.sh
Executable file
25
tailscale-build/mk-tailscale-deb.sh
Executable file
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
eval "$(./build_dist.sh shellvars)"
|
||||||
|
ARCH=amd64
|
||||||
|
NAME=conservancy-tailscale
|
||||||
|
|
||||||
|
echo "[ ] packaging ${NAME}_${VERSION_SHORT}_${ARCH}.deb"
|
||||||
|
|
||||||
|
./build_dist.sh tailscale.com/cmd/tailscale
|
||||||
|
./build_dist.sh tailscale.com/cmd/tailscaled
|
||||||
|
|
||||||
|
go run ./cmd/mkpkg \
|
||||||
|
--out=${NAME}_${VERSION_SHORT}_${ARCH}.deb \
|
||||||
|
--name=${NAME} \
|
||||||
|
--version=${VERSION_SHORT} \
|
||||||
|
--type=deb \
|
||||||
|
--arch=${ARCH} \
|
||||||
|
--postinst=./release/deb/debian.postinst.sh \
|
||||||
|
--postrm=./release/deb/debian.postrm.sh \
|
||||||
|
--prerm=./release/deb/debian.prerm.sh \
|
||||||
|
--description="The easiest, most secure, cross platform way to use WireGuard + oauth2 + 2FA/SSO" \
|
||||||
|
--configs=./cmd/tailscaled/tailscaled.defaults:/etc/default/tailscaled \
|
||||||
|
--files=./tailscale:/usr/bin/tailscale,./tailscaled:/usr/sbin/tailscaled,./cmd/tailscaled/tailscaled.service:/lib/systemd/system/tailscaled.service
|
||||||
Loading…
Add table
Reference in a new issue