diff options
author | Santana, Divan | 2015-06-29 22:30:53 +0200 |
---|---|---|
committer | Santana, Divan | 2015-06-29 22:30:53 +0200 |
commit | 8f33ce53b7bcc4e078969f7d4248bb50131a1aa0 (patch) | |
tree | 5806e3bc15e82caf64a510224df5d1c571c2522e | |
download | aur-8f33ce53b7bcc4e078969f7d4248bb50131a1aa0.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 41 | ||||
-rw-r--r-- | raid-check.install | 5 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..405da97547a3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = raid-check + pkgdesc = raid-check script, config and cronjob for data scrubbing to be used with mdadm. + pkgver = 3.3 + pkgrel = 1 + url = https://wiki.archlinux.org/index.php/RAID#Scrubbing + install = raid-check.install + arch = i686 + arch = x86_64 + arch = arm + arch = armv6h + arch = armv7h + license = GPLv3 + makedepends = rpmextract + depends = mdadm + backup = etc/cron.d/raid-check + backup = etc/conf.d/raid-check + source = http://mirror.centos.org/centos/6/os/x86_64/Packages/mdadm-3.3-6.el6.x86_64.rpm + md5sums = 487e6671a8b1e023a3ebe55ee246cef2 + +pkgname = raid-check + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..278cf5978dda --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: (divansantana) Divan Santana <divan (a) santanas co za> + +pkgname=raid-check +_pkgname=mdadm +pkgver=3.3 +_pkgver=3.3-6 +pkgrel=1 +pkgdesc="raid-check script, config and cronjob for data scrubbing to be used with mdadm." +arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h') +url="https://wiki.archlinux.org/index.php/RAID#Scrubbing" +license=('GPLv3') +depends=('mdadm') +makedepends=('rpmextract') +install="raid-check.install" +source=(http://mirror.centos.org/centos/6/os/x86_64/Packages/${_pkgname}-${_pkgver}.el6.x86_64.rpm) +md5sums=('487e6671a8b1e023a3ebe55ee246cef2') +backup=(etc/cron.d/raid-check + etc/conf.d/raid-check) + +build() { + cd $srcdir + sed -i 's/sysconfig/conf.d/g' usr/sbin/raid-check + # by default it shouldn't do anything until configured + sed -i 's/\/usr\/sbin/\/usr\/bin/g' etc/sysconfig/raid-check + sed -i 's/ENABLED=yes/ENABLED=no/g' etc/sysconfig/raid-check + sed -i 's/\/usr\/sbin/\/usr\/bin/g' etc/cron.d/raid-check + sed -i 's/ by default//g' etc/cron.d/raid-check + sed -i 's/^0/#0/g' etc/cron.d/raid-check +} + +package() { + install -Dm755 "$srcdir"/usr/sbin/raid-check "$pkgdir"/usr/bin/raid-check + install -Dm644 "$srcdir"/etc/sysconfig/raid-check "$pkgdir"/etc/conf.d/raid-check + install -Dm644 "$srcdir"/etc/cron.d/raid-check "$pkgdir"/etc/cron.d/raid-check +} + +post_install() { + echo ":: You need to edit /etc/conf.d/raid-check and /etc/cron.d/raid-check" + echo " See https://wiki.archlinux.org/index.php/Software_RAID_and_LVM#Data_Scrubbing for more info" +} + diff --git a/raid-check.install b/raid-check.install new file mode 100644 index 000000000000..afebc5a3e935 --- /dev/null +++ b/raid-check.install @@ -0,0 +1,5 @@ +post_install() { + echo ":: You need to edit /etc/cron.d/raid-check and set when you want the cronjob to run" + echo " You need to edit /etc/conf.d/raid-check set ENABLED=yes and specify your CHECK_DEVS" + echo " See https://wiki.archlinux.org/index.php/Software_RAID_and_LVM#Data_Scrubbing for more info" +} |