Files
guru/net-vpn/cloudflare-warp/cloudflare-warp-2023.3.470.ebuild
Julien Roy 6e6262ebb7 net-vpn/cloudflare-warp: quote variable
Signed-off-by: Julien Roy <julien@jroy.ca>
2024-02-17 16:06:10 -05:00

51 lines
1.3 KiB
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit rpm systemd xdg desktop
DESCRIPTION="Cloudflare Warp Client"
HOMEPAGE="https://1.1.1.1"
SRC_URI="https://pkg.cloudflareclient.com/rpm/x86_64/${P}-1.x86_64.rpm"
LICENSE="all-rights-reserved"
RESTRICT="bindist mirror"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd +systray"
QA_PREBUILT="/bin/warp-cli /bin/warp-diag /bin/warp-svc /bin/warp-taskbar"
S="${WORKDIR}"
src_install() {
into /
dobin bin/warp-cli
dobin bin/warp-diag
dobin bin/warp-svc
doinitd "${FILESDIR}"/warp-svc
systemd_dounit opt/cloudflare-warp/warp-svc.service
if use systray; then
dobin bin/warp-taskbar
systemd_douserunit usr/lib/systemd/user/warp-taskbar.service
doicon -s scalable \
usr/share/icons/hicolor/scalable/apps/zero-trust.svg \
usr/share/icons/hicolor/scalable/apps/zero-trust-error.svg \
usr/share/icons/hicolor/scalable/apps/zero-trust-connected.svg \
usr/share/icons/hicolor/scalable/apps/zero-trust-disconnected.svg
desktopfile=$(\
usex systemd \
usr/share/applications/com.cloudflare.WarpTaskbar.desktop \
"${FILESDIR}"/com.cloudflare.WarpTaskbar.desktop\
)
domenu $desktopfile
insinto /etc/xdg/autostart
doins $desktopfile
fi
}