# Copyright 2017 CyberLeo.Net # http://wiki.cyberleo.net/wiki/CyberLeo/COPYRIGHT EAPI=6 inherit git-r3 bash-completion-r1 EGIT_REPO_URI="https://github.com/zfsnap/zfsnap.git" EGIT_COMMIT="v2.0.0-beta3" KEYWORDS="amd64" DESCRIPTION="A portable, performant script to make rolling ZFS snapshots easy." HOMEPAGE="http://www.zfsnap.org/" LICENSE="BSD" SLOT="0" DOCS=( README.md PORTABILITY ) src_test() { cd "${S}/tests" || die sh run.sh || die } src_install() { sed -i "s%# ZFSNAP_LIB_DIR='/usr/local/weird/dir'%ZFSNAP_LIB_DIR='/usr/lib/zfsnap'%" "${S}/sbin/zfsnap.sh" || die 'reinplace failed' newsbin sbin/zfsnap.sh zfsnap doman man/man8/zfsnap.8 insinto /usr/lib doins -r share/zfsnap insinto "$(get_bashcompdir)" newins completion/zfsnap-completion.bash zfsnap }