diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-fs/btrfsmaintenance |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-fs/btrfsmaintenance')
-rw-r--r-- | sys-fs/btrfsmaintenance/Manifest | 3 | ||||
-rw-r--r-- | sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild | 45 | ||||
-rw-r--r-- | sys-fs/btrfsmaintenance/metadata.xml | 15 |
3 files changed, 63 insertions, 0 deletions
diff --git a/sys-fs/btrfsmaintenance/Manifest b/sys-fs/btrfsmaintenance/Manifest new file mode 100644 index 000000000000..4cfb7d88dbc3 --- /dev/null +++ b/sys-fs/btrfsmaintenance/Manifest @@ -0,0 +1,3 @@ +DIST btrfsmaintenance-0.3.1.tar.gz 19698 SHA256 e2f6a6cd433a38407c580630e3f4a0c4747390f0e129d5c9d0f91ec461cfb855 SHA512 89be6da3d6bb3f85f645ac899f173d19cb787e938dd2fc91be16b3202a6784ca33dc4a4d9f9ee78ac6a96468dbaa4f4dc7a2f2e6998d550ea44d7af24198dbfb WHIRLPOOL ee3c73da6a4b88e6b3cd63660fcb1164599e3d09d378f385b6f1ec3613b287d90d2c8be9b4d66472ea56e1755f6a1091bcaec75cb844d376ec98fc54de882f51 +EBUILD btrfsmaintenance-0.3.1.ebuild 1383 SHA256 7cd2486a19feee1a9f8cde3580aaa6b14dbc23384749884a127479f7ede1f053 SHA512 c585bb7588f7d055c8d483d335821ee10135169562654f9e38e88470d35dd2470f334e8f0ff8cc146f978535cdf6fd6f0b867cc449e673408a4af20fbc510e35 WHIRLPOOL 0182777c9b053e8b92c4a2e5a7e8053389245e612f15c6c7de95c4a675862d9675c5f97b65fd235308abfa0a68768973699ffd5eda97d2434558728620a71a60 +MISC metadata.xml 454 SHA256 ce3e6ce4d0b96bd7dabcda04b92d8bae042e6c2435ea432efd61036494e3ea16 SHA512 d23ea714ccb28d7f7266fc12c89bafb4b673025e285d1ca6faddaf74b99b39f54aefb043848e2812db5c28ef950ff86ba075d1afac51c0ce23c8c7c9691eb96e WHIRLPOOL 0c2e9ccfbd0e9cdd57bb34ea9d0d6c384b6901782e0586afe64958e6fef6a06d4f261edfc6eb02c5944c017f0613eb54ad8bf5f9cf46e3f9f2b66b79aac7a6a9 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> |