diff options
Diffstat (limited to 'sys-fs/zfs-backup/zfs-backup-20150318.ebuild')
-rw-r--r-- | sys-fs/zfs-backup/zfs-backup-20150318.ebuild | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/sys-fs/zfs-backup/zfs-backup-20150318.ebuild b/sys-fs/zfs-backup/zfs-backup-20150318.ebuild new file mode 100644 index 00000000..8381d3f9 --- /dev/null +++ b/sys-fs/zfs-backup/zfs-backup-20150318.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +COMMIT=68dd3fb3546eafcbd59c72847cd3b820e2c80c73 + +DESCRIPTION="ZFS backup via zfs send/recv over ssh" +HOMEPAGE="https://github.com/adaugherity/zfs-backup" +SRC_URI="https://github.com/adaugherity/zfs-backup/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/zfs-backup-${COMMIT}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="" +RDEPEND="${DEPEND} + app-admin/sudo + sys-fs/zfs +" + +src_prepare() { + # Use sudo instead of pfexec + sed -i -e '/^PFEXEC/ s/which pfexec/which sudo/' zfs-backup.sh || die + + eapply_user +} + +src_install() { + newbin zfs-backup.sh zfs-backup + dodoc README example-catchup.cfg example.cfg +} |