summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2014-08-29 18:01:14 +0000
committerPatrick McLean <chutzpah@gentoo.org>2014-08-29 18:01:14 +0000
commit55d6ee932146fc32010e957861e2476f207d5f25 (patch)
tree46718bb32d4bb7ea919b194155c65cad21a0e157 /sys-block
parentold (diff)
downloadgentoo-2-55d6ee932146fc32010e957861e2476f207d5f25.tar.gz
gentoo-2-55d6ee932146fc32010e957861e2476f207d5f25.tar.bz2
gentoo-2-55d6ee932146fc32010e957861e2476f207d5f25.zip
New package, Script to do "scrubbing" on software RAID systems
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
Diffstat (limited to 'sys-block')
-rw-r--r--sys-block/raid-check/ChangeLog11
-rw-r--r--sys-block/raid-check/Manifest6
-rw-r--r--sys-block/raid-check/files/raid-check-20140719-makefile.patch48
-rw-r--r--sys-block/raid-check/files/raid-check-20140719-path.patch9
-rw-r--r--sys-block/raid-check/metadata.xml12
-rw-r--r--sys-block/raid-check/raid-check-20140719.ebuild34
6 files changed, 120 insertions, 0 deletions
diff --git a/sys-block/raid-check/ChangeLog b/sys-block/raid-check/ChangeLog
new file mode 100644
index 000000000000..d72772b1e577
--- /dev/null
+++ b/sys-block/raid-check/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for sys-block/raid-check
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/raid-check/ChangeLog,v 1.1 2014/08/29 18:01:14 chutzpah Exp $
+
+*raid-check-20140719 (29 Aug 2014)
+
+ 29 Aug 2014; Patrick McLean <chutzpah@gentoo.org>
+ +raid-check-20140719.ebuild, +files/raid-check-20140719-makefile.patch,
+ +files/raid-check-20140719-path.patch, +metadata.xml:
+ Initial commit, bug #493334
+
diff --git a/sys-block/raid-check/Manifest b/sys-block/raid-check/Manifest
new file mode 100644
index 000000000000..ebefbecd7872
--- /dev/null
+++ b/sys-block/raid-check/Manifest
@@ -0,0 +1,6 @@
+AUX raid-check-20140719-makefile.patch 1443 SHA256 a173e316fae0e4bbf537edf4add257b4c70883228baa24f712acd5c1d0d66f74 SHA512 8ccb96bea63c0655a09a1a99a79be304cd4ae58335b9b005a753d8e0c2de4169dfe5869229245987fa62ca7b4e62cafe724843312d7e37408a3d84f8f0fb5521 WHIRLPOOL 167021bc20077a0e010c328fa23ece048fb75fc213daa099cb9f201846815fd15abdc1116109ee49d1d65b454d5307a8c8c43dfeeeff500c82bb8bd0749882be
+AUX raid-check-20140719-path.patch 293 SHA256 894b8622eca9955071afa8af1effe2055d17bc4594311a5eb331a56f3a22ee22 SHA512 7b9939b9ac05d6c04af5a1422713a316ac18826b7d6f9ed1d5b66e4d557e0069f91e4e04e627a827070c676a845af53eeb2ef7be8bc15455229117727bd4e1e2 WHIRLPOOL d115f0858416c68f5c06e2612ab3eb1e869d2e54ff834bb876f75e3f2504d52f2a3b347177c844822812daa1c2920cb8b9f7f8bbfdb2303dcd0820f67478f06c
+DIST raid-check-20140719.tar.xz 4000 SHA256 6da3e52012411fe2de109f83f2557da21b2975060e78d992a9475b01a5de6348 SHA512 dc7b4c6e784b3ef2ca89e9dac0bbe3e47056439dfe48615b79922b47cb3b0df7f157ae52ab9de0b9abf5373bd769090088fc8712b492b0aa5327aeaeaee52edb WHIRLPOOL cb09a9d5fc17d68ca303c835d5cc458cada860f7fa6f9149f24fca31fc23f8c52f37b06bf8891beea84ac6e4e27dde83734309b4e2c56e6c6615837b85d1f88a
+EBUILD raid-check-20140719.ebuild 579 SHA256 85829613dc4504624f2060b6c5623a36f3ddbba354169f339883dc3a494b29ca SHA512 22081d118fb032d86ba597ea786ccab996dbc6524056b54dc6020890cdefb5f90a2da978d7a07248d830b7d9f07be8d0ee9ef99f0f8c0b302abc8013c523e649 WHIRLPOOL 8591f597dd9b7904254468cc05d21b4fde034d659ce63b9d453380d6184fc1142928cc738f18ea413a04839c830919599a15f2429ec2d41a9addee0ec0766ea7
+MISC ChangeLog 370 SHA256 d6a5b1e9da048f4d7cf96ceb0779e4ce7f30d426b3c97b6713aa8eab2a3951ab SHA512 3194d0715269e2601ca9413a4b8ce575e0eb1e8929f99933215049b0f10a43b9f83c96cbea02e184c3524eacfe3e46886ad6186fc7375d168c27c570b005df02 WHIRLPOOL eb15ebaddd6e22c911a2dc3863cd141623e9cf232e4183b0a6e1af18bcc7ccf549c1b283bb0fb2b65abc152db85d9aa539f304e9488c2b22471c45403cd18284
+MISC metadata.xml 442 SHA256 7035f64f2d64df8930f4eb7f0d1f72ef8b1b9ecd6807dd80c0d53361685fdc3a SHA512 fb6a790cc70b321e5cf2fba4b0b2b2aa7ef58ba123c77da101730e11592a9650ab3d75daeba99aa773f4a65cfd95e238d3e6e37a893ed49547b5172cfef4d079 WHIRLPOOL e496b85ce98a1f7174c567f311a376fa06a82f6daf33874fde70c0b014893d6e227c8c736a5e87889e47143ac63dfc80706855d26b09b479bc2107203bc63284
diff --git a/sys-block/raid-check/files/raid-check-20140719-makefile.patch b/sys-block/raid-check/files/raid-check-20140719-makefile.patch
new file mode 100644
index 000000000000..63f7314728dc
--- /dev/null
+++ b/sys-block/raid-check/files/raid-check-20140719-makefile.patch
@@ -0,0 +1,48 @@
+diff --git a/Makefile b/Makefile
+index 0c9ec8a..6bc0bb5 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,9 +1,6 @@
+ ### The project name
+ PROJECT=raid-check
+
+-### Dependencies
+-DEP_BINS=grep cat sleep awk ps renice ionice logger
+-
+ ### Destination Paths
+ D_BIN=/usr/local/sbin
+ D_CNF=/etc
+@@ -15,16 +12,11 @@ F_CONF=raid-check.conf raid-check.cron
+
+ all: install
+
+-install: test bin config
++bin install: $(PROJECT).sh config
+ # install the actual script
+- install -D --owner root --group root -m 0755 $(PROJECT).sh $(DESTDIR)$(D_BIN)/$(PROJECT)
++ install -D $(PROJECT).sh $(DESTDIR)$(D_BIN)/$(PROJECT)
+
+ test:
+- @echo "==> Checking for required external dependencies"
+- for bindep in $(DEP_BINS) ; do \
+- which $$bindep > /dev/null || { echo "$$bindep not found"; exit 1;} ; \
+- done
+-
+ @echo "==> Checking for valid script syntax"
+ bash -n raid-check.sh
+
+@@ -32,12 +24,8 @@ bin: $(PROJECT).sh test
+
+ config: $(F_CONF)
+ # Install (without overwriting) configuration files
+- if [ ! -e $(DESTDIR)$(D_CNF)/raid-check.conf ] ; then \
+- install -D -m 0644 raid-check.conf $(DESTDIR)$(D_CNF)/raid-check.conf ; \
+- fi
+- if [ ! -e $(DESTDIR)$(D_CNF)/cron.d/raid-check ] ; then \
+- install -D -m 0644 raid-check.cron $(DESTDIR)$(D_CNF)/cron.d/raid-check ; \
+- fi
++ install -D raid-check.conf $(DESTDIR)$(D_CNF)/raid-check.conf
++ install -D raid-check.cron $(DESTDIR)$(D_CNF)/cron.d/raid-check
+
+ uninstall:
+ rm -f $(DESTDIR)$(D_BIN)/$(PROJECT)
diff --git a/sys-block/raid-check/files/raid-check-20140719-path.patch b/sys-block/raid-check/files/raid-check-20140719-path.patch
new file mode 100644
index 000000000000..4c8680f4c01c
--- /dev/null
+++ b/sys-block/raid-check/files/raid-check-20140719-path.patch
@@ -0,0 +1,9 @@
+diff --git a/raid-check.cron b/raid-check.cron
+index 92aa48b..d7f23fd 100644
+--- a/raid-check.cron
++++ b/raid-check.cron
+@@ -1,3 +1,2 @@
+ # Run system wide raid-check once a week on Sunday at 1am by default
+-0 1 * * Sun root /usr/local/sbin/raid-check
+-
++0 1 * * Sun root /usr/sbin/raid-check
diff --git a/sys-block/raid-check/metadata.xml b/sys-block/raid-check/metadata.xml
new file mode 100644
index 000000000000..20afeb35b830
--- /dev/null
+++ b/sys-block/raid-check/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <longdescription lang="en">
+ Script that should be run regularly on systems running software RAID (mdadm) to
+ perform "scrubbing" (http://en.wikipedia.org/wiki/Data_scrubbing#In_RAID)
+ </longdescription>
+</pkgmetadata>
diff --git a/sys-block/raid-check/raid-check-20140719.ebuild b/sys-block/raid-check/raid-check-20140719.ebuild
new file mode 100644
index 000000000000..f74542d88c66
--- /dev/null
+++ b/sys-block/raid-check/raid-check-20140719.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/raid-check/raid-check-20140719.ebuild,v 1.1 2014/08/29 18:01:14 chutzpah Exp $
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Script to do \"scrubbing\" on software RAID systems"
+HOMEPAGE="https://github.com/fukawi2/raid-check"
+SRC_URI="mirror://gentoo/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-makefile.patch
+ "${FILESDIR}"/${P}-path.patch
+)
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_compile() { :; }
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake DESTDIR="${D}" D_BIN=/usr/sbin install
+}