From 8cfa90991a7dc9fcc6eb1ae5eb99c762be1f3599 Mon Sep 17 00:00:00 2001 From: Martin Sekera Date: Mon, 12 Apr 2021 20:16:01 +0200 Subject: [PATCH] add net-misc/safe-harbor --- net-misc/safe-harbor/safe-harbor-0.3.1.ebuild | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 net-misc/safe-harbor/safe-harbor-0.3.1.ebuild diff --git a/net-misc/safe-harbor/safe-harbor-0.3.1.ebuild b/net-misc/safe-harbor/safe-harbor-0.3.1.ebuild new file mode 100644 index 0000000..3a96612 --- /dev/null +++ b/net-misc/safe-harbor/safe-harbor-0.3.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info systemd + +DESCRIPTION="B-Tree Vault, an automatic snapshot and backup tool for btrfs." +HOMEPAGE="https://git.decade.cz/decade-public/${PN}" +SRC_URI="https://git.decade.cz/decade-public/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="*" +IUSE="" + +RDEPEND=" + >=dev-lang/python-3.8 + sys-apps/systemd + net-misc/openssh +" + +S="${WORKDIR}/${PN}" + +src_install() { + # upstream uses /usr/lib/${PN}, gentoo prefers /usr/libexec + sed -i 's/\/usr\/lib/\/usr\/libexec/' systemd/safe-harbor@.service + systemd_dounit systemd/safe-harbor@.service + + insinto /etc/safe-harbor + doins config.json.example + + exeinto /usr/libexec + doexe lib/safe-harbor.py +}