Commit e846f47e authored by Иван Мажукин's avatar Иван Мажукин Committed by Vitaly Lipatov

epm play: add headscale (eterbug #18220)

parent c3af80dc
#!/bin/sh
PKGNAME=headscale
SUPPORTEDARCHES="x86_64 aarch64 armhf i586"
VERSION="$2"
DESCRIPTION="An open source, self-hosted implementation of the Tailscale control server"
URL="https://github.com/juanfont/headscale"
. $(dirname $0)/common.sh
case "$(epm print info -a)" in
x86_64)
arch="amd64" ;;
aarch64)
arch="arm64" ;;
armhf)
arch="armv7l" ;;
i586)
arch="386" ;;
esac
if [ "$VERSION" = "*" ] ; then
PKGURL=$(get_github_url "https://github.com/juanfont/headscale/" "${PKGNAME}_.${VERSION}_linux_$arch.deb")
else
PKGURL="https://github.com/juanfont/headscale/releases/download/v$VERSION/${PKGNAME}_${VERSION}_linux_$arch.deb"
fi
install_pkgurl
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
. $(dirname $0)/common.sh
subst "s|User=headscale|User=root|" $BUILDROOT/usr/lib/systemd/system/headscale.service
subst "s|Group=headscale|Group=root|" $BUILDROOT/usr/lib/systemd/system/headscale.service
add_libs_requires
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment