summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@ts.fujitsu.com>2017-06-28 11:58:36 +0200
committerMichał Górny <mgorny@gentoo.org>2017-07-19 11:38:46 +0200
commitff72ffaee40bddf9358fb12835e36af057738344 (patch)
treee73c5323c93a4a3d92bc4708b6a853a94a2b534d /sys-fs/btrfsmaintenance
parentdev-lang/gforth: remove unactive maintainer (diff)
downloadgentoo-ff72ffaee40bddf9358fb12835e36af057738344.tar.gz
gentoo-ff72ffaee40bddf9358fb12835e36af057738344.tar.bz2
gentoo-ff72ffaee40bddf9358fb12835e36af057738344.zip
sys-fs/btrfsmaintenance: new ebuild, #595762
Maintenance scripts for btrfs file systems Closes: https://github.com/gentoo/gentoo/pull/5003 Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'sys-fs/btrfsmaintenance')
-rw-r--r--sys-fs/btrfsmaintenance/Manifest1
-rw-r--r--sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild45
-rw-r--r--sys-fs/btrfsmaintenance/metadata.xml15
3 files changed, 61 insertions, 0 deletions
diff --git a/sys-fs/btrfsmaintenance/Manifest b/sys-fs/btrfsmaintenance/Manifest
new file mode 100644
index 000000000000..9516c7df80a2
--- /dev/null
+++ b/sys-fs/btrfsmaintenance/Manifest
@@ -0,0 +1 @@
+DIST btrfsmaintenance-0.3.1.tar.gz 19698 SHA256 e2f6a6cd433a38407c580630e3f4a0c4747390f0e129d5c9d0f91ec461cfb855 SHA512 89be6da3d6bb3f85f645ac899f173d19cb787e938dd2fc91be16b3202a6784ca33dc4a4d9f9ee78ac6a96468dbaa4f4dc7a2f2e6998d550ea44d7af24198dbfb WHIRLPOOL ee3c73da6a4b88e6b3cd63660fcb1164599e3d09d378f385b6f1ec3613b287d90d2c8be9b4d66472ea56e1755f6a1091bcaec75cb844d376ec98fc54de882f51
diff --git a/sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild
new file mode 100644
index 000000000000..d70dc711e301
--- /dev/null
+++ b/sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Scripts for btrfs maintenance tasks like periodic scrub, balance, trim or defrag"
+HOMEPAGE="https://github.com/kdave/btrfsmaintenance"
+SRC_URI="https://github.com/kdave/btrfsmaintenance/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="${DEPEND}
+ sys-fs/btrfs-progs
+ virtual/cron"
+
+src_install() {
+ dodoc README.md CONTRIBUTING.md btrfsmaintenance.changes
+ insinto /etc/default
+ newins sysconfig.btrfsmaintenance btrfsmaintenance
+ insinto /usr/share/btrfsmaintenance
+ doins btrfsmaintenance-functions
+ exeinto /usr/share/btrfsmaintenance
+ doexe btrfs*.sh
+ insinto /usr/lib/systemd/system
+ doins btrfsmaintenance-refresh.service
+}
+
+pkg_postinst() {
+ elog "Installing default btrfsmaintenance scripts"
+ "${EROOT%/}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh || die
+ elog "Now edit cron periods and mount points in /etc/default/btrfsmaintenance"
+ elog "then run /usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh to"
+ elog "update cron symlinks"
+}
+
+pkg_prerm() {
+ if [[ -z ${REPLACED_BY_VERSION} ]] ; then
+ elog "Removing symlinks from btrfsmaintenance cron tasks"
+ "${EROOT%/}"/usr/share/btrfsmaintenance/btrfsmaintenance-refresh-cron.sh uninstall || die
+ fi
+}
diff --git a/sys-fs/btrfsmaintenance/metadata.xml b/sys-fs/btrfsmaintenance/metadata.xml
new file mode 100644
index 000000000000..1aba136c2736
--- /dev/null
+++ b/sys-fs/btrfsmaintenance/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>martin.dummer@gmx.net</email>
+ <name>Martin Dummer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">kdave/btrfsmaintenance</remote-id>
+ </upstream>
+</pkgmetadata>