# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=6 inherit systemd DESCRIPTION="Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag on selected mountpoints or directories." HOMEPAGE="https://github.com/kdave/${PN}" SRC_URI="https://github.com/kdave/${PN}/archive/v${PV}.tar.gz" LICENSE="LGPL-2.1+" SLOT="0" KEYWORDS="amd64" DEPEND="" RDEPEND="${DEPEND} sys-fs/btrfs-progs" src_install() { exeinto /usr/share/btrfsmaintenance doexe "${S}"/btrfs-*.sh insinto /usr/share/btrfsmaintenance doins "${S}/btrfsmaintenance-functions" insinto /etc newins "${S}/sysconfig.btrfsmaintenance" "btrfsmaintenance" systemd_dounit "${FILESDIR}"/btrfs-*.service systemd_dounit "${FILESDIR}"/btrfs-*.timer }