mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 22:15:51 +00:00
57bbafde84
relaynode itself is not long for this world, deprecated in favour of tailscale/tailscaled. But now that the control server supports central distribution of packet filters, let's actually take advantage of it in a final, backward compatible release of relaynode.
16 lines
435 B
Plaintext
16 lines
435 B
Plaintext
exec >&2
|
|
dir=${1%/*}
|
|
pkg=${1##*/}
|
|
pkg=${pkg%.rpm}
|
|
redo-ifchange "$S/oss/version/short.txt" "$dir/$pkg.tar.gz" "$dir/$pkg.spec"
|
|
read -r pkgver junk <"$S/oss/version/short.txt"
|
|
|
|
machine=$(uname -m)
|
|
rpmbase=$HOME/rpmbuild
|
|
|
|
mkdir -p "$rpmbase/SOURCES/"
|
|
cp "$dir/$pkg.tar.gz" "$rpmbase/SOURCES/"
|
|
rm -f "$rpmbase/RPMS/$machine/$pkg-$pkgver.$machine.rpm"
|
|
rpmbuild -bb "$dir/$pkg.spec"
|
|
mv "$rpmbase/RPMS/$machine/$pkg-$pkgver.$machine.rpm" $3
|