summaryrefslogtreecommitdiff
path: root/sys-block/raid-check
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-block/raid-check
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-block/raid-check')
-rw-r--r--sys-block/raid-check/Manifest7
-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.xml15
-rw-r--r--sys-block/raid-check/raid-check-20140719-r1.ebuild33
5 files changed, 112 insertions, 0 deletions
diff --git a/sys-block/raid-check/Manifest b/sys-block/raid-check/Manifest
new file mode 100644
index 000000000000..eea9b6a29dd5
--- /dev/null
+++ b/sys-block/raid-check/Manifest
@@ -0,0 +1,7 @@
+AUX raid-check-20140719-makefile.patch 1451 SHA256 6d3e6711e91131f4aaa54df478a49adafc4e089c650094b62578aadc863cb35c SHA512 50ef4c4eafae33a0479d06cd162b54bd89c3ce89b92fb48aa286f9f1fb322ecb6c58c58d29ddbe1b7a42813a2a1fdd6ae4f65242215205eab5acbb0e9d9c9ed5 WHIRLPOOL 434bdcaa89367019b15df8fba978f8a549583c4aa0dbbbe2efb41aac5ca51c26a5ae0ad4c058d7d6f1dfb2949c87f8edeedecfcc67ba56ed8d8fa389c4652559
+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-r1.ebuild 566 SHA256 003977150c076295c5fc96ba23cdd357dd8575548ca203888349f83e0d72df61 SHA512 ad9a68cb6d65854b4ca78f162cf4ee0102247343571c0d73a4296c55061295c89622341c95ece476b3d13e27fdc6e9f028eec83ae0c8619f22bf2d0fb7bbbd29 WHIRLPOOL 6b09652e7aa1f33e8902e0abab479fa09d1b1815d45cc294808545de20fa68a9db69ae7f92780dbc9d007f71e59d04cb3db21edc932b8226fa02b25440a05e87
+MISC ChangeLog 2284 SHA256 5f89efa62418eeb6075156f91361b4297e9763fc724589ee6bd29f9683ba05f6 SHA512 63cc276bead65e1a3de0036664cbd5eb4ba8d1dbdfb0bcf77902c47e6ecc07ef7daa51af7f2d5d299e485be5d8fadf95f57bcf64ce9424f98fd4a068d8da9e03 WHIRLPOOL 6e7cca0bf955ac616c0bfab5d9d1c6ab10f49334fe7b67b0872669b1e66aadd7e37c20ebf87b652a6a1aad6878f801c5aab300a01b505b866ad922ecd091c77a
+MISC ChangeLog-2015 729 SHA256 913edd0724c384094daa19fcb8cdac773451d0226cebdbc76d7c7ffb114aa60d SHA512 217e16883d0a838718a886787a770ef65780ab6481b847200c112cdf0f728ad934b2223a35f014310468374ef56b4a35c3d26392363e3ca50554185652ca5898 WHIRLPOOL b31265314afc12e6d71c64b4d611618577f2f020a28bbfc2af0224c221cb48f18e10070a840a3d187995b8c9a44ddfb8288023c802c43af7d26b6a981263b307
+MISC metadata.xml 539 SHA256 c67ce9f7b62e8612204c4ffb0ee4f8a3ccd982d059d3f996fec5ad1b47b47b02 SHA512 6700dd1dbdb3b43e731f92e8b2e8c225ae2e0d53563d5342a9d304333b5d617c06e48d7d5aa32b05069525c509bc9511ba7825598e91aee7fbd08cf3be28b709 WHIRLPOOL fae38d9879b88dbb511b8fe1bf42b0deeb778d3cd57a7ee31643a678fcf6d899fbc5b060f4904fa540ed6181124249a005f17528ed17402ea534b1532ea77802
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..95c27ef8cc69
--- /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 -m 0644 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..6fada7444fd3
--- /dev/null
+++ b/sys-block/raid-check/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>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>
+ <upstream>
+ <remote-id type="github">fukawi2/raid-check</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sys-block/raid-check/raid-check-20140719-r1.ebuild b/sys-block/raid-check/raid-check-20140719-r1.ebuild
new file mode 100644
index 000000000000..5b6d6cd7de2c
--- /dev/null
+++ b/sys-block/raid-check/raid-check-20140719-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}