Skip to content

Instantly share code, notes, and snippets.

@ixti
Created July 4, 2022 22:58
Show Gist options
  • Save ixti/29c0085d647009177c3e4f02ecc922f1 to your computer and use it in GitHub Desktop.
Save ixti/29c0085d647009177c3e4f02ecc922f1 to your computer and use it in GitHub Desktop.
net-vpn/twingate-1.0.37.35359.1
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit rpm bash-completion-r1
DESCRIPTION="Crap"
HOMEPAGE="https://www.twingate.com/"
SRC_URI="https://packages.twingate.com/rpm/files/ver_1lMD38/twingate-x86_64.rpm -> ${P}.rpm"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="mirror"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
S="${WORKDIR}"
src_install() {
insinto /
doins -r etc
insinto /usr/lib
doins -r usr/lib/systemd
exeinto /usr/bin
doexe usr/bin/twingate
doexe usr/bin/twingate-notifier
exeinto /usr/sbin
doexe usr/sbin/twingated
keepdir /run/twingate
keepdir /var/lib/twingate
fperms 0700 /var/lib/twingate
dobashcomp usr/share/bash-completion/completions/twingate
}
@ixti
Copy link
Author

ixti commented Jul 4, 2022

Could not make it to work with openrc... :((

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment