From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 17B04139694 for ; Wed, 19 Jul 2017 09:38:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5E268E0BE6; Wed, 19 Jul 2017 09:38:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2A8D2E0BE6 for ; Wed, 19 Jul 2017 09:38:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0B8693418EC for ; Wed, 19 Jul 2017 09:38:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A34BF7491 for ; Wed, 19 Jul 2017 09:38:51 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1500457126.ff72ffaee40bddf9358fb12835e36af057738344.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/btrfsmaintenance/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/btrfsmaintenance/Manifest sys-fs/btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild sys-fs/btrfsmaintenance/metadata.xml X-VCS-Directories: sys-fs/btrfsmaintenance/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ff72ffaee40bddf9358fb12835e36af057738344 X-VCS-Branch: master Date: Wed, 19 Jul 2017 09:38:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c1aaf70a-4faf-4562-8e78-b2a9109222b2 X-Archives-Hash: 35d1004d0066875126aaae9c0e831ec0 commit: ff72ffaee40bddf9358fb12835e36af057738344 Author: Martin Dummer ts fujitsu com> AuthorDate: Wed Jun 28 09:58:36 2017 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Jul 19 09:38:46 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff72ffae 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 sys-fs/btrfsmaintenance/Manifest | 1 + .../btrfsmaintenance/btrfsmaintenance-0.3.1.ebuild | 45 ++++++++++++++++++++++ sys-fs/btrfsmaintenance/metadata.xml | 15 ++++++++ 3 files changed, 61 insertions(+) diff --git a/sys-fs/btrfsmaintenance/Manifest b/sys-fs/btrfsmaintenance/Manifest new file mode 100644 index 00000000000..9516c7df80a --- /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 00000000000..d70dc711e30 --- /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 00000000000..1aba136c273 --- /dev/null +++ b/sys-fs/btrfsmaintenance/metadata.xml @@ -0,0 +1,15 @@ + + + + + martin.dummer@gmx.net + Martin Dummer + + + proxy-maint@gentoo.org + Proxy Maintainers + + + kdave/btrfsmaintenance + +