summaryrefslogtreecommitdiff
path: root/sys-fs
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-05-05 07:55:54 +0000
committerMike Frysinger <vapier@gentoo.org>2007-05-05 07:55:54 +0000
commit9120313f38bc9ff15ff0af4a702c392978ccab5c (patch)
tree4d1d14555c44de90ae65c2e58801e56637c2d5aa /sys-fs
parentcode from Fabian Groffen to simplify emktemp() for all userlands #174061 (diff)
downloadgentoo-2-9120313f38bc9ff15ff0af4a702c392978ccab5c.tar.gz
gentoo-2-9120313f38bc9ff15ff0af4a702c392978ccab5c.tar.bz2
gentoo-2-9120313f38bc9ff15ff0af4a702c392978ccab5c.zip
use mdadm
Diffstat (limited to 'sys-fs')
-rw-r--r--sys-fs/raidtools/ChangeLog161
-rw-r--r--sys-fs/raidtools/Manifest70
-rw-r--r--sys-fs/raidtools/files/digest-raidtools-1.00.3-r63
-rwxr-xr-xsys-fs/raidtools/files/raid-start.sh55
-rw-r--r--sys-fs/raidtools/files/raid-stop.sh28
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-2.6.Headers.patch50
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch28
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-build.patch15
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-gcc33.patch59
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-mkraid.patch15
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-quiet-raidstart.patch54
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-raidstop.patch114
-rw-r--r--sys-fs/raidtools/files/raidtools-1.00.3-s390x.patch41
-rwxr-xr-xsys-fs/raidtools/files/raidtools.cron18
-rw-r--r--sys-fs/raidtools/metadata.xml5
-rw-r--r--sys-fs/raidtools/raidtools-1.00.3-r6.ebuild56
16 files changed, 0 insertions, 772 deletions
diff --git a/sys-fs/raidtools/ChangeLog b/sys-fs/raidtools/ChangeLog
deleted file mode 100644
index 7429b63cad60..000000000000
--- a/sys-fs/raidtools/ChangeLog
+++ /dev/null
@@ -1,161 +0,0 @@
-# ChangeLog for sys-fs/raidtools
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.26 2006/11/10 00:27:10 vapier Exp $
-
- 10 Nov 2006; Mike Frysinger <vapier@gentoo.org> files/raid-start.sh,
- files/raid-stop.sh:
- Check both /etc/mdadm/mdadm.conf and /etc/mdadm.conf #150050 by Henning Schild.
-
- 09 Mar 2006; Mike Frysinger <vapier@gentoo.org>
- +files/raidtools-1.00.3-build.patch, raidtools-1.00.3-r6.ebuild:
- Dont let install strip files for us #125586 by Diego Pettenò.
-
- 17 Sep 2005; Ciaran McCreesh <ciaranm@gentoo.org> ChangeLog:
- Converted to UTF-8, fixed encoding screwups
-
- 10 Jun 2005; Mike Frysinger <vapier@gentoo.org> files/raid-start.sh:
- Tweak device node creation to handle subpaths #95593 by Milan Holzäpfel.
-
- 10 Jun 2005; Mike Frysinger <vapier@gentoo.org> +files/raid-stop.sh,
- raidtools-1.00.3-r6.ebuild:
- Add a raid-stop script by Milan Holzäpfel #95594.
-
-*raidtools-1.00.3-r6 (28 May 2005)
-
- 28 May 2005; Mike Frysinger <vapier@gentoo.org>
- files/raidtools-1.00.3-PIC.patch, +raidtools-1.00.3-r6.ebuild:
- Update the lseek patch to fix mkraid issues on amd64 #93694 by Radek "rush"
- Senfeld.
-
-*raidtools-1.00.3-r5 (19 May 2005)
-
- 19 May 2005; Mike Frysinger <vapier@gentoo.org>
- +files/raidtools-1.00.3-quiet-raidstart.patch, files/raid-start.sh,
- +raidtools-1.00.3-r5.ebuild:
- Dont be so noisy during bootup #93039.
-
- 07 Apr 2005; <plasmaroo@gentoo.org>
- files/raidtools-1.00.3-2.6.Headers.patch:
- Fix compile on IA64.
-
-*raidtools-1.00.3-r4 (01 Mar 2005)
-
- 01 Mar 2005; Mike Frysinger <vapier@gentoo.org> +files/raid-start.sh,
- +raidtools-1.00.3-r4.ebuild:
- Move raid stuff to raid packages.
-
- 25 Feb 2005; <plasmaroo@gentoo.org>
- files/raidtools-1.00.3-2.6.Headers.patch:
- Fix #82495 on 2.6.10 headers.
-
- 22 Feb 2005; Mike Frysinger <vapier@gentoo.org> +files/raidtools.cron,
- raidtools-1.00.3-r3.ebuild:
- Add a simple cron job for scanning for failed harddrives #82942 by Guilherme
- Barile.
-
-*raidtools-1.00.3-r3 (11 Feb 2005)
-
- 11 Feb 2005; Mike Frysinger <vapier@gentoo.org>
- +files/raidtools-1.00.3-PIC.patch, +files/raidtools-1.00.3-gcc33.patch,
- +files/raidtools-1.00.3-mkraid.patch,
- +files/raidtools-1.00.3-raidstop.patch,
- +files/raidtools-1.00.3-s390x.patch, +raidtools-1.00.3-r3.ebuild:
- Add misc patches from Fedora, including one to fix #46847 by Vlastimil
- Holer. Do not generate device nodes since there is no point and it makes
- selinux angry #73928 by Bryan Stine. Clean up the ebuild in general and
- change the -fPIC filter to a proper PIC patch.
-
- 06 Sep 2004; Daniel Drake <dsd@gentoo.org> raidtools-1.00.3-r1.ebuild,
- raidtools-1.00.3-r2.ebuild:
- 1.00.3-r2 stable on same archs as -r1. Remove -r1 due to segfault problems.
-
- 06 Sep 2004; Sven Wegener <swegener@gentoo.org> raidtools-1.00.3-r2.ebuild:
- Added patch from 1.00.3-r1 to 1.00.3-r2 that fixes compile errors with
- linux26-headers. Closes bug #62703.
-
- 04 Sep 2004; Jon Hood <squinky86@gentoo.org> raidtools-1.00.3-r2.ebuild:
- Change virtual/glibc --> virtual/libc.
-
- 03 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
- raidtools-1.00.3-r2.ebuild:
- Masked raidtools-1.00.3-r2.ebuild stable for ppc
-
-*raidtools-1.00.3-r2 (01 Sep 2004)
-
- 01 Sep 2004; Daniel Drake <dsd@gentoo.org> raidtools-1.00.3-r2.ebuild:
- Increase default buffer size, fixing segfault thanks to Adam Hixson
- <chixson@public.tzam.net> in bug #15835
-
- 18 Aug 2004; Aron Griffis <agriffis@gentoo.org> raidtools-1.00.3-r1.ebuild:
- stable on alpha
-
- 18 Jul 2004; <plasmaroo@gentoo.org> raidtools-1.00.3-r1.ebuild,
- +files/raidtools-1.00.3-2.6.Headers.patch:
- Compile fix for 2.6 headers; bug #57096.
-
- 01 Jul 2004; Jeremy Huddleston <eradicator@gentoo.org>
- raidtools-0.90-r2.ebuild, raidtools-1.00.3-r1.ebuild:
- virtual/glibc -> virtual/libc
-
- 27 Jun 2004; Aron Griffis <agriffis@gentoo.org> raidtools-0.90-r2.ebuild,
- raidtools-1.00.3-r1.ebuild:
- QA - fix use invocation
-
- 27 Apr 2004; Aron Griffis <agriffis@gentoo.org> raidtools-1.00.3-r1.ebuild:
- Add inherit eutils
-
- 21 Jan 2004; Sven Blumenstein <bazik@gentoo.org> raidtools-1.00.3-r1.ebuild:
- Marked sparc. Raid0 for everyone!
-
- 29 Nov 2003; <solar@gentoo.org> raidtools-1.00.3-r1.ebuild:
- raidtools is not compatible with poison independent code/executables so for
- now we filter fPIC till a workaround is available
-
-*raidtools-1.00.3-r1 (15 Sep 2003)
-
- 15 Sep 2003; Seemant Kulleen <seemant@gentoo.org> raidtools-0.90-r2.ebuild,
- raidtools-1.00.3-r1.ebuild, files/mkraid.c-gcc33.patch:
- moved to sys-fs
-
- 13 Aug 2003; Will Woods <wwoods@gentoo.org> raidtools-0.90-r2.ebuild,
- raidtools-1.00.3-r1.ebuild:
- Marked 0.90 stable for alpha and 1.00.3 ~alpha
-
- 07 Jul 2003; Caleb Tennis <caleb@gentoo.org> raidtools-1.00.3-r1.ebuild:
- Applied Redhat gcc33 compile patch - closes bug #24033
-
-*raidtools-1.00.3-r1 (17 Feb 2003)
-
- 02 Jul 2003; Guy Martin <gmsoft@gentoo.org> raidtools-1.00.3-r1.ebuild :
- Marked stable on hppa.
-
- 25 Mar 2003; Guy Martin <gmsoft@gentoo.org> raidtools-1.00.3-r1.ebuild :
- Added ~hppa to KEYWORDS.
-
- 17 Feb 2003; Mike Frysinger <vapier@gentoo.org> :
- Makefile install works now so changed over to fix #15826.
-
-*raidtools-1.00.3 (16 Feb 2003)
-
- 16 Feb 2003; Mike Frysinger <vapier@gentoo.org> :
- Version bump/updates.
-
-*raidtools-0.90-r2 (22 Jun 2002)
-
- 14 Jul 2002; phoen][x <phoenix@gentoo.org> raidtools-0.90-r2.ebuild :
- Added LICENSE, KEYWORDS, SLOT.
-
- 22 June 2002; Mark Guertin <gerk@gentoo.org> raidtools-0.90-r2.ebuild :
- Adjusted bad sed command which was breaking G4 CFLAGS
- (was stripping all "-g" now strips " -g" to " ")
-
- 12 Mar 2002; Seemant Kulleen <seemant@gentoo.org> raidtools-0.90-r2.ebuild :
- HTML documentation no longer gets gzipped. Does not require a revision bump
- though. Thanks to stefan@mdy.univie.ac.at for pointing it out.
-
- 1 Feb 2002; G.Bevin <gbevin@gentoo.org> ChangeLog :
- Added initial ChangeLog which should be updated whenever the package is
- updated in any way. This changelog is targetted to users. This means that the
- comments should well explained and written in clean English. The details about
- writing correct changelogs are explained in the skel.ChangeLog file which you
- can find in the root directory of the portage repository.
diff --git a/sys-fs/raidtools/Manifest b/sys-fs/raidtools/Manifest
deleted file mode 100644
index fc950fee2b9f..000000000000
--- a/sys-fs/raidtools/Manifest
+++ /dev/null
@@ -1,70 +0,0 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-AUX raid-start.sh 1610 RMD160 611fcfd7c9d866f3cc29c05bc4a31d72d9b43f4c SHA1 216b1b4bcfa837f928b3922b35214f899764310c SHA256 3d277146ed52c82be323ce9d4067eacd7fab5cd31b9d150c6f45cb13c5a890d7
-MD5 5e1d10011c26bf585ef2fe6d4df8014f files/raid-start.sh 1610
-RMD160 611fcfd7c9d866f3cc29c05bc4a31d72d9b43f4c files/raid-start.sh 1610
-SHA256 3d277146ed52c82be323ce9d4067eacd7fab5cd31b9d150c6f45cb13c5a890d7 files/raid-start.sh 1610
-AUX raid-stop.sh 899 RMD160 28c4fef361cbd3324577b5a7fef7ce5606be1697 SHA1 4a692fae9aafce61190978495bb42b29ee4205ae SHA256 8bdd034f715f18b6ab15474ac839d16805ab73b0605e82d1d2b7a48374a14465
-MD5 ff28f5ff3ba78365236be37842cb4787 files/raid-stop.sh 899
-RMD160 28c4fef361cbd3324577b5a7fef7ce5606be1697 files/raid-stop.sh 899
-SHA256 8bdd034f715f18b6ab15474ac839d16805ab73b0605e82d1d2b7a48374a14465 files/raid-stop.sh 899
-AUX raidtools-1.00.3-2.6.Headers.patch 1511 RMD160 f9fd7a03ac49d81254b0b85150e57590c3eb18aa SHA1 ab7e728458ef05fde1d3c1df0ccaaf4a76ebd4b6 SHA256 6761216667a9e1ba10bd0f1bbe469604bb5ff648642dc73eaee45c9e38a0c422
-MD5 435ff32ca3b1b4451c986fe8f68fa819 files/raidtools-1.00.3-2.6.Headers.patch 1511
-RMD160 f9fd7a03ac49d81254b0b85150e57590c3eb18aa files/raidtools-1.00.3-2.6.Headers.patch 1511
-SHA256 6761216667a9e1ba10bd0f1bbe469604bb5ff648642dc73eaee45c9e38a0c422 files/raidtools-1.00.3-2.6.Headers.patch 1511
-AUX raidtools-1.00.3-PIC.patch 954 RMD160 8392c6a10fc76e42e9a5d5bbce182b91a5dde91a SHA1 9058343824bb124a0fd741fc5678d83f530af81f SHA256 5c70fd352a86755fbae9023785bfea1de102c78781f12a1596108561ff38420d
-MD5 709b59b7f6b66ab6515513ef420d0d07 files/raidtools-1.00.3-PIC.patch 954
-RMD160 8392c6a10fc76e42e9a5d5bbce182b91a5dde91a files/raidtools-1.00.3-PIC.patch 954
-SHA256 5c70fd352a86755fbae9023785bfea1de102c78781f12a1596108561ff38420d files/raidtools-1.00.3-PIC.patch 954
-AUX raidtools-1.00.3-build.patch 437 RMD160 0723ea8511c8f7323a3c9a1ca0e9381c20b22423 SHA1 08576ac2810ec1c023aec8e581865c852f8a949d SHA256 bfbc5c35dbaaced519afaf01c2780a44841212318009f39a2fdb09d0743ce330
-MD5 bbd5fee7e83715432cb5a96946382def files/raidtools-1.00.3-build.patch 437
-RMD160 0723ea8511c8f7323a3c9a1ca0e9381c20b22423 files/raidtools-1.00.3-build.patch 437
-SHA256 bfbc5c35dbaaced519afaf01c2780a44841212318009f39a2fdb09d0743ce330 files/raidtools-1.00.3-build.patch 437
-AUX raidtools-1.00.3-gcc33.patch 3044 RMD160 bcff3b4fa9c961d4616722af19ac49a71cc9a227 SHA1 8aab2aeeda0ab33b6295ba23fff98cccbe8e2691 SHA256 079c40e87c3faface03b72f4764d8f8d36cda318c99f050e62859754210f4f1e
-MD5 0fa91a341c38be56295db45f2a73aade files/raidtools-1.00.3-gcc33.patch 3044
-RMD160 bcff3b4fa9c961d4616722af19ac49a71cc9a227 files/raidtools-1.00.3-gcc33.patch 3044
-SHA256 079c40e87c3faface03b72f4764d8f8d36cda318c99f050e62859754210f4f1e files/raidtools-1.00.3-gcc33.patch 3044
-AUX raidtools-1.00.3-mkraid.patch 578 RMD160 9736141a4562ef43e4b8cd3cf4fb0216538d2bc3 SHA1 d62d1a36b0db2744ae1b93d4599bd245a380614e SHA256 f778d6f4536dcff0b945c5ba7647efd20e66aba0c1a0c40be693a6e66cde7f20
-MD5 402cd2a18b3b385d4af9458ba862607b files/raidtools-1.00.3-mkraid.patch 578
-RMD160 9736141a4562ef43e4b8cd3cf4fb0216538d2bc3 files/raidtools-1.00.3-mkraid.patch 578
-SHA256 f778d6f4536dcff0b945c5ba7647efd20e66aba0c1a0c40be693a6e66cde7f20 files/raidtools-1.00.3-mkraid.patch 578
-AUX raidtools-1.00.3-quiet-raidstart.patch 1824 RMD160 7f2d15673f78176fc7852979103f98789b5c6fe5 SHA1 336b8a9535cd3fa83274a239c4b250afed15322c SHA256 7db7185e4515d55d196b0f837e743f1ced7a8b2664ab0ed2556e3b216c0e9e3a
-MD5 6d940ee820e10c9e01a1fe6f25424740 files/raidtools-1.00.3-quiet-raidstart.patch 1824
-RMD160 7f2d15673f78176fc7852979103f98789b5c6fe5 files/raidtools-1.00.3-quiet-raidstart.patch 1824
-SHA256 7db7185e4515d55d196b0f837e743f1ced7a8b2664ab0ed2556e3b216c0e9e3a files/raidtools-1.00.3-quiet-raidstart.patch 1824
-AUX raidtools-1.00.3-raidstop.patch 2921 RMD160 26fa92efec1e6a166eab3dece1f8f02728cf18a8 SHA1 da602a79bd1a23fc30a76d0bdd80a6bcbe7b191f SHA256 487c8cfd77b2d380aefa1abefda47cbafda91e564853d79c66ede9b59b13b7b8
-MD5 effa29906fa5b9b7755ac3f16442c07f files/raidtools-1.00.3-raidstop.patch 2921
-RMD160 26fa92efec1e6a166eab3dece1f8f02728cf18a8 files/raidtools-1.00.3-raidstop.patch 2921
-SHA256 487c8cfd77b2d380aefa1abefda47cbafda91e564853d79c66ede9b59b13b7b8 files/raidtools-1.00.3-raidstop.patch 2921
-AUX raidtools-1.00.3-s390x.patch 1515 RMD160 97da5e302f8bbe5c61de6cf91e41b3b097b583e0 SHA1 916cb083b195a054e2c02674ff12199eb482bb5d SHA256 607c5b727426aa6eeb1b51cb2531b1096094ebf5b90a235907f2b49a3f0c40bb
-MD5 1ed9388ea5a0f44ceea181fc7ffa2552 files/raidtools-1.00.3-s390x.patch 1515
-RMD160 97da5e302f8bbe5c61de6cf91e41b3b097b583e0 files/raidtools-1.00.3-s390x.patch 1515
-SHA256 607c5b727426aa6eeb1b51cb2531b1096094ebf5b90a235907f2b49a3f0c40bb files/raidtools-1.00.3-s390x.patch 1515
-AUX raidtools.cron 555 RMD160 308e4e7b8af8dae07acc77e605656035b206323b SHA1 397f40ced8527a53c0ec258d73578201166b1c44 SHA256 0b3e1b6a0115864127236feb93a65649f9b79c07828adfb03605038cf3bbf249
-MD5 5ff54c0c871ac497487c3bfaeffd09cb files/raidtools.cron 555
-RMD160 308e4e7b8af8dae07acc77e605656035b206323b files/raidtools.cron 555
-SHA256 0b3e1b6a0115864127236feb93a65649f9b79c07828adfb03605038cf3bbf249 files/raidtools.cron 555
-DIST raidtools-1.00.3.tar.gz 167779 RMD160 74619f9c87422fe8a8593ba369c3f3688141f46f SHA1 db6a05e371622e4b83e054355d906b0a48e76844 SHA256 1894f13b3e295a83f27e951d10442fc8fefe33284b0db637c83dd95bdc44b1f5
-EBUILD raidtools-1.00.3-r6.ebuild 1743 RMD160 ce9a02da066aeb53172d8e6edfd22fe0ba1fb8cf SHA1 81a161ab39754434d65c2f23b38a1e98e294ff03 SHA256 622286e332e6641fac241e0ccb2659f56a994b7d7d01ecf9778bbdf9f6d3dd36
-MD5 889fa242d449d2e30d62d8ce1b6d1c0f raidtools-1.00.3-r6.ebuild 1743
-RMD160 ce9a02da066aeb53172d8e6edfd22fe0ba1fb8cf raidtools-1.00.3-r6.ebuild 1743
-SHA256 622286e332e6641fac241e0ccb2659f56a994b7d7d01ecf9778bbdf9f6d3dd36 raidtools-1.00.3-r6.ebuild 1743
-MISC ChangeLog 6327 RMD160 209ab937f22255553375fefa9de988a527701e2f SHA1 d0a4a4661d8553bcd5abf895ad867c23c7fcb16f SHA256 be0cfaa747650db2fd25fa85f5af1fb2514d94f5e06f5112600e91206a9f0bb8
-MD5 e572937c30948f629dda2bb4915cc640 ChangeLog 6327
-RMD160 209ab937f22255553375fefa9de988a527701e2f ChangeLog 6327
-SHA256 be0cfaa747650db2fd25fa85f5af1fb2514d94f5e06f5112600e91206a9f0bb8 ChangeLog 6327
-MISC metadata.xml 164 RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 SHA1 9c213f5803676c56439df3716be07d6692588856 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92
-MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164
-RMD160 f43cbec30b7074319087c9acffdb9354b17b0db3 metadata.xml 164
-SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 metadata.xml 164
-MD5 e69d5da48d4c56580c8be92440dcf842 files/digest-raidtools-1.00.3-r6 250
-RMD160 82c11e27076d3382c56a775201109641c63d2098 files/digest-raidtools-1.00.3-r6 250
-SHA256 eba934c2b3e4039fe97082fafce7c43aa02c8d8a210363db9cd855af47c3a78c files/digest-raidtools-1.00.3-r6 250
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.5 (GNU/Linux)
-
-iD8DBQFFU8ePamhnQswr0vIRAvIpAKC8wDj+FJUoDiN9yJhqHze3l1CISQCfXhAc
-KU+IPrX2pp8ogWqz76K+Fd8=
-=taBW
------END PGP SIGNATURE-----
diff --git a/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6 b/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6
deleted file mode 100644
index 15fe15d9a1ea..000000000000
--- a/sys-fs/raidtools/files/digest-raidtools-1.00.3-r6
+++ /dev/null
@@ -1,3 +0,0 @@
-MD5 cb41f8093cd7381ee07adb2951cc53fa raidtools-1.00.3.tar.gz 167779
-RMD160 74619f9c87422fe8a8593ba369c3f3688141f46f raidtools-1.00.3.tar.gz 167779
-SHA256 1894f13b3e295a83f27e951d10442fc8fefe33284b0db637c83dd95bdc44b1f5 raidtools-1.00.3.tar.gz 167779
diff --git a/sys-fs/raidtools/files/raid-start.sh b/sys-fs/raidtools/files/raid-start.sh
deleted file mode 100755
index dcd695febf84..000000000000
--- a/sys-fs/raidtools/files/raid-start.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-# /lib/rcscripts/addons/raid-start.sh: Setup raid volumes at boot
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/files/raid-start.sh,v 1.6 2006/11/10 00:27:10 vapier Exp $
-
-[[ -f /proc/mdstat ]] || exit 0
-
-# We could make this dynamic, but eh
-#[[ -z ${MAJOR} ]] && export MAJOR=$(awk '$2 == "md" { print $1 }' /proc/devices)
-MAJOR=9
-
-# Try to make sure the devices exist before we use them
-create_devs() {
- local node dir minor
- for node in $@ ; do
- [[ ${node} != /dev/* ]] && node=/dev/${node}
- [[ -e ${node} ]] && continue
-
- dir=${node%/*}
- [[ ! -d ${dir} ]] && mkdir -p "${dir}"
-
- minor=${node##*/}
- mknod "${node}" b ${MAJOR} ${minor##*md} &> /dev/null
- done
-}
-
-# Start software raid with raidtools (old school)
-if [[ -x /sbin/raidstart && -f /etc/raidtab ]] ; then
- devs=$(awk '/^[[:space:]]*raiddev/ { print $2 }' /etc/raidtab)
- if [[ -n ${devs} ]] ; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (raidtools)"
- output=$(raidstart -aq 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-# Start software raid with mdadm (new school)
-mdadm_conf="/etc/mdadm/mdadm.conf"
-[[ -e /etc/mdadm.conf ]] && mdadm_conf="/etc/mdadm.conf"
-if [[ -x /sbin/mdadm && -f ${mdadm_conf} ]] ; then
- devs=$(awk '/^[[:space:]]*ARRAY/ { print $2 }' ${mdadm_conf})
- if [[ -n ${devs} ]] ; then
- create_devs ${devs}
- ebegin "Starting up RAID devices (mdadm)"
- output=$(mdadm -As 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
- fi
-fi
-
-# vim:ts=4
diff --git a/sys-fs/raidtools/files/raid-stop.sh b/sys-fs/raidtools/files/raid-stop.sh
deleted file mode 100644
index 7b66efc53770..000000000000
--- a/sys-fs/raidtools/files/raid-stop.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-# /lib/rcscripts/addons/raid-stop.sh: Stop raid volumes at shutdown
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/files/raid-stop.sh,v 1.2 2006/11/10 00:27:10 vapier Exp $
-
-[[ -f /proc/mdstat ]] || exit 0
-
-# Stop software raid with raidtools (old school)
-if [[ -x /sbin/raidstop && -f /etc/raidtab ]] ; then
- ebegin "Shutting down RAID devices (raidtools)"
- output=$(raidstop -a 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
-fi
-
-# Stop software raid with mdadm (new school)
-mdadm_conf="/etc/mdadm/mdadm.conf"
-[[ -e /etc/mdadm.conf ]] && mdadm_conf="/etc/mdadm.conf"
-if [[ -x /sbin/mdadm && -f ${mdadm_conf} ]] ; then
- ebegin "Shutting down RAID devices (mdadm)"
- output=$(mdadm -Ss 2>&1)
- ret=$?
- [[ ${ret} -ne 0 ]] && echo "${output}"
- eend ${ret}
-fi
-
-# vim:ts=4
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-2.6.Headers.patch b/sys-fs/raidtools/files/raidtools-1.00.3-2.6.Headers.patch
deleted file mode 100644
index c790149bb057..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-2.6.Headers.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -ur raidtools-1.00.3/list.h raidtools-1.00.3.plasmaroo/list.h
---- raidtools-1.00.3/list.h 2003-01-15 08:58:25.000000000 +0000
-+++ raidtools-1.00.3.plasmaroo/list.h 2004-07-18 12:25:15.000000000 +0100
-@@ -14,6 +14,11 @@
- * using the generic single-entry routines.
- */
-
-+#define _LINUX_LIST_H
-+struct hlist_node {
-+ struct hlist_node *next, **pprev;
-+};
-+
- struct list_head {
- struct list_head *next, *prev;
- };
-diff -ur raidtools-1.00.3/lsraid.c raidtools-1.00.3.plasmaroo/lsraid.c
---- raidtools-1.00.3/lsraid.c 2003-01-15 08:58:25.000000000 +0000
-+++ raidtools-1.00.3.plasmaroo/lsraid.c 2004-07-18 12:25:19.000000000 +0100
-@@ -40,16 +40,15 @@
- #include <unistd.h>
- #include <errno.h>
-
-+/* Local copies of things I use - Clean up later */
-+#include "list.h"
-+
- #include <linux/types.h>
- #include <linux/major.h>
- #include <linux/fs.h>
- #include <linux/raid/md_u.h>
- #include <linux/raid/md_p.h>
-
--/* Local copies of things I use - Clean up later */
--#include "list.h"
--
--
- /*
- * Defines
- */
-diff -ur raidtools-1.00.3/raid_io.h raidtools-1.00.3.plasmaroo/raid_io.h
---- raidtools-1.00.3/raid_io.h.old 2005-04-07 15:25:24.937871896 -0600
-+++ raidtools-1.00.3/raid_io.h 2005-04-07 15:25:35.315801456 -0600
-@@ -12,7 +12,7 @@
- #include "common.h"
- #include "raidlib.h"
-
--void progress (unsigned long blocks, unsigned long current);
-+void progress (unsigned long blocks, unsigned long _current_);
-
- long long raidseek (unsigned int fd, unsigned long blk);
- extern void print_sb (mdp_super_t *sb);
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch b/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch
deleted file mode 100644
index 65518a2836f9..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-PIC.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Fix building with -fPIC
-http://bugs.gentoo.org/show_bug.cgi?id=34712
-(note: this is outdated since we fixed the PIC issues in our linux-headers
-ebuilds when doing syscall()'s on x86)
-
-Fix running on amd64
-http://bugs.gentoo.org/show_bug.cgi?id=93694
-
---- raidtools-1.00.3/raid_io.c
-+++ raidtools-1.00.3/raid_io.c
-@@ -81,7 +81,7 @@
- }
- #undef F
-
--#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__))
-+#if !(defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__))
- # ifndef __NR__llseek
- # ifdef __sparc__
- # define __NR__llseek 236
-@@ -105,7 +105,7 @@
- long long result;
- int retval;
-
--#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__)
-+#if defined(__alpha__) || defined(__sparc_v9__) || defined(__ia64__) || defined(__x86_64__) || defined(__PIC__)
- return lseek(fd, offset, SEEK_SET);
- #else
- retval = _llseek (fd, ((unsigned long long) offset) >> 32,
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-build.patch b/sys-fs/raidtools/files/raidtools-1.00.3-build.patch
deleted file mode 100644
index 6979edddb668..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-build.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-we'll take care of stripping thank you very much
-
-http://bugs.gentoo.org/125586
-
---- raidtools/Makefile.in
-+++ raidtools/Makefile.in
-@@ -98,7 +98,7 @@
- install_bin:
- [ -d $(ROOTDIR)/$(SBIN) ] || mkdir -p $(ROOTDIR)/$(SBIN)
- for n in $(BINARIES); do \
-- install -s -m755 $$n $(ROOTDIR)/$(SBIN)/$$n ;\
-+ install -m755 $$n $(ROOTDIR)/$(SBIN)/$$n ;\
- done
- for i in $(RAIDSTARTLINKS); do \
- rm -f $(ROOTDIR)/$(SBIN)/$$i ;\
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-gcc33.patch b/sys-fs/raidtools/files/raidtools-1.00.3-gcc33.patch
deleted file mode 100644
index d8a78901dfda..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-gcc33.patch
+++ /dev/null
@@ -1,59 +0,0 @@
---- raidtools-1.00.3/mkraid.c.gcc33 2003-05-22 15:59:57.000000000 -0400
-+++ raidtools-1.00.3/mkraid.c 2003-05-22 16:00:38.000000000 -0400
-@@ -171,31 +171,31 @@
- if (old_force_flag && (func == mkraid)) {
- fprintf(stderr,
-
--"
-- WARNING!
--
-- NOTE: if you are recovering a double-disk error or some other failure mode
-- that made your array unrunnable but data is still intact then it's strongly
-- recommended to use the lsraid utility and to read the lsraid HOWTO.
--
-- If your RAID array holds useful and not yet backed up data then --force
-- and the hot-add/hot-remove functionality should be used with extreme care!
-- If your /etc/raidtab file is not in sync with the real array configuration,
-- then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use
-- -f if the array is in degraded mode.
--
-- If your /etc/raidtab file matches the real layout of on-disk data then
-- recreating the array will not hurt your data, but be aware of the risks
-- of doing this anyway: freshly created RAID1 and RAID5 arrays do a full
-- resync of their mirror/parity blocks, which, if the raidtab is incorrect,
-- the resync will wipe out data irrecoverably. Also, if your array is in
-- degraded mode then the raidtab must match the degraded config exactly,
-- otherwise you'll get the same kind of data destruction during resync.
-- (see the failed-disk raidtab option.) You have been warned!
--
-- [ If your array holds no data, or you have it all backed up, or if you
-- know precisely what you are doing and you still want to proceed then use
-- the --really-force (or -R) flag. ]
-+"\n\
-+ WARNING!\n\
-+\n\
-+ NOTE: if you are recovering a double-disk error or some other failure mode\n\
-+ that made your array unrunnable but data is still intact then it's strongly\n\
-+ recommended to use the lsraid utility and to read the lsraid HOWTO.\n\
-+\n\
-+ If your RAID array holds useful and not yet backed up data then --force\n\
-+ and the hot-add/hot-remove functionality should be used with extreme care!\n\
-+ If your /etc/raidtab file is not in sync with the real array configuration,\n\
-+ then --force might DESTROY ALL YOUR DATA. It's especially dangerous to use\n\
-+ -f if the array is in degraded mode.\n\
-+\n\
-+ If your /etc/raidtab file matches the real layout of on-disk data then\n\
-+ recreating the array will not hurt your data, but be aware of the risks\n\
-+ of doing this anyway: freshly created RAID1 and RAID5 arrays do a full\n\
-+ resync of their mirror/parity blocks, which, if the raidtab is incorrect,\n\
-+ the resync will wipe out data irrecoverably. Also, if your array is in\n\
-+ degraded mode then the raidtab must match the degraded config exactly,\n\
-+ otherwise you'll get the same kind of data destruction during resync.\n\
-+ (see the failed-disk raidtab option.) You have been warned!\n\
-+\n\
-+ [ If your array holds no data, or you have it all backed up, or if you\n\
-+ know precisely what you are doing and you still want to proceed then use\n\
-+ the --really-force (or -R) flag. ]\n\
- ");
- return EXIT_FAILURE;
- }
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-mkraid.patch b/sys-fs/raidtools/files/raidtools-1.00.3-mkraid.patch
deleted file mode 100644
index f3391b936a69..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-mkraid.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-ripped from Fedora
-https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=73365
-http://bugs.gentoo.org/show_bug.cgi?id=46847
-
---- raidtools-1.00.3/mkraid.c.cfg 2003-08-22 18:47:10.000000000 -0400
-+++ raidtools-1.00.3/mkraid.c 2003-08-22 18:47:31.000000000 -0400
-@@ -244,7 +244,7 @@
- while (*args) {
- for (p = cfg_head; p; p = p->next) {
- if (strcmp(p->md_name, *args)) continue;
-- if (check_active(cfg))
-+ if (check_active(p))
- goto abort;
- if (force_flag) {
- fprintf(stderr, "DESTROYING the contents of %s in 5 seconds, Ctrl-C if unsure!\n", *args);
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-quiet-raidstart.patch b/sys-fs/raidtools/files/raidtools-1.00.3-quiet-raidstart.patch
deleted file mode 100644
index 07395d7749b1..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-quiet-raidstart.patch
+++ /dev/null
@@ -1,54 +0,0 @@
-Allow people to run `raidstart -aq` and not have raidtools bitch when
-it tries to start devices that are already started. This allows us to
-simplify raidstarting at boot up. If the user has all their devices
-autostart by the kernel, running `raidstart -a` would display a bunch
-of ugly warnings about the devices already being started. Now we can
-just run `raidstart -aq` and let raidtools figure out whether it needs
-to start any of the devices or not.
-
-Note that this patch isn't exactly "clean", it's a shortcut approach
-to keep patch size/maintenance down to a minimal.
-
-http://bugs.gentoo.org/93039
-
-vapier@gentoo.org
-
---- raid_io.c
-+++ raid_io.c
-@@ -517,3 +517,3 @@
-
--int check_active (md_cfg_entry_t *p)
-+int _check_active (md_cfg_entry_t *p, int quiet)
- {
-@@ -531,3 +531,4 @@
- if (strstr(line, buffer) && !strstr(line, "inactive")) {
-- fprintf(stderr, "%s: array is active -- run raidstop first.\n", p->md_name);
-+ if (!quiet)
-+ fprintf(stderr, "%s: array is active -- run raidstop first.\n", p->md_name);
- fclose(fp);
---- raid_io.h
-+++ raid_io.h
-@@ -22,3 +22,4 @@
- extern int init_set (md_cfg_entry_t * p);
--extern int check_active (md_cfg_entry_t *p);
-+extern int _check_active (md_cfg_entry_t *p, int quiet);
-+#define check_active(p) _check_active(p,0)
- extern int read_sb (md_cfg_entry_t *p);
---- raidstart.c
-+++ raidstart.c
-@@ -22,2 +22,3 @@
- #include "raidlib.h"
-+#include "raid_io.h"
- #include "version.h"
-@@ -45,3 +46,5 @@
- char * configFile = RAID_CONFIG;
-+ int quiet = 0;
- struct poptOption optionsTable[] = {
-+ { "quiet", 'q', 0, &quiet, 0 },
- { "all", 'a', 0, &all, 0 },
-@@ -229,3 +232,4 @@
- for (p = cfg_head; p; p = p->next)
-- exit_status += handleOneConfig(func, p);
-+ if (!_check_active(p, quiet))
-+ exit_status += handleOneConfig(func, p);
- } else {
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-raidstop.patch b/sys-fs/raidtools/files/raidtools-1.00.3-raidstop.patch
deleted file mode 100644
index 423e261c5e86..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-raidstop.patch
+++ /dev/null
@@ -1,114 +0,0 @@
-Index: raidstart.c
-===================================================================
-RCS file: /cvs/devel/raidtools/raidstart.c,v
-retrieving revision 1.2
-retrieving revision 1.3
-diff -u -r1.2 -r1.3
---- raidtools-1.00.3/raidstart.c 23 Mar 2002 16:27:05 -0000 1.2
-+++ raidtools-1.00.3/raidstart.c 23 May 2003 00:38:27 -0000 1.3
-@@ -96,34 +96,9 @@
- return (EXIT_VERSION);
- }
-
-- fp = fopen(configFile, "r");
-- if (fp == NULL) {
-- fprintf(stderr, "Couldn't open %s -- %s\n", configFile, strerror(errno));
-- exit(EXIT_FAILURE);
-- }
--
- if (prepare_raidlib())
- return EXIT_FAILURE;
-
-- if (readwrite) {
-- int fd;
-- if (func != raidstart) {
-- fprintf(stderr, "Can do --readwrite only with raidstart!\n");
-- return EXIT_FAILURE;
-- }
-- args = (char **)poptGetArgs(optCon);
-- if (!args) {
-- usage(namestart);
-- exit(EXIT_FAILURE);
-- }
--
-- fd = open_or_die(*args);
--
-- if (do_raidstart_rw (fd, *args))
-- exit(EXIT_FAILURE);
-- exit(0);
-- }
--
- if (readonly) {
- if (func != raidstop) {
- fprintf(stderr, "Can do --readonly only with raidstop!\n");
-@@ -137,8 +112,60 @@
- * without parsing the config
- */
- if ((func == raidstop) || (func == raidstop_ro)) {
-- int fd;
-+ if (!all) {
-+ int fd;
-+
-+ args = (char **)poptGetArgs(optCon);
-+ if (!args) {
-+ usage(namestart);
-+ exit(EXIT_FAILURE);
-+ }
-+
-+ fd = open_or_die(*args);
-+
-+ if (do_raidstop (fd, *args, func == raidstop ? 0:1))
-+ exit(EXIT_FAILURE);
-+ exit(0);
-+ } else {
-+ char buf[16], *md_dev;
-+ int md_num, fd;
-+
-+ md_dev = &buf[0];
-+ /* scan all possible md devs we have on our one major */
-+ for(md_num = 0; md_num < 256; md_num++) {
-+ sprintf(md_dev, "/dev/md%d", md_num);
-+ fd = open(md_dev, O_RDWR);
-+ if (fd != -1) {
-+ struct stat s;
-+ mdu_array_info_t info;
-+
-+ fstat (fd, &s);
-+ if (major (s.st_rdev) != MD_MAJOR ||
-+ ioctl(fd, GET_ARRAY_INFO, &info) != 0) {
-+ close (fd);
-+ continue;
-+ }
-+
-+ if (do_raidstop (fd, md_dev, func == raidstop ? 0:1) == 0)
-+ fprintf (stderr, "%s: successfully stopped.\n", md_dev);
-+ close (fd);
-+ }
-+ }
-+ }
-+ }
-+
-+ fp = fopen(configFile, "r");
-+ if (fp == NULL) {
-+ fprintf(stderr, "Couldn't open %s -- %s\n", configFile, strerror(errno));
-+ exit(EXIT_FAILURE);
-+ }
-
-+ if (readwrite) {
-+ int fd;
-+ if (func != raidstart) {
-+ fprintf(stderr, "Can do --readwrite only with raidstart!\n");
-+ return EXIT_FAILURE;
-+ }
- args = (char **)poptGetArgs(optCon);
- if (!args) {
- usage(namestart);
-@@ -147,7 +174,7 @@
-
- fd = open_or_die(*args);
-
-- if (do_raidstop (fd, *args, func == raidstop ? 0:1))
-+ if (do_raidstart_rw (fd, *args))
- exit(EXIT_FAILURE);
- exit(0);
- }
diff --git a/sys-fs/raidtools/files/raidtools-1.00.3-s390x.patch b/sys-fs/raidtools/files/raidtools-1.00.3-s390x.patch
deleted file mode 100644
index b3a17c93e9ce..000000000000
--- a/sys-fs/raidtools/files/raidtools-1.00.3-s390x.patch
+++ /dev/null
@@ -1,41 +0,0 @@
-ripped from Fedora.
-
-cvs log: Fixed s390x BLKGETSIZE problem.
-
---- raidtools-1.00.3/raid_io.c.s390x 2002-12-11 18:35:14.000000000 +0100
-+++ raidtools-1.00.3/raid_io.c 2003-03-25 15:18:50.000000000 +0100
-@@ -363,7 +363,7 @@
- md_raid_info_t *array;
- mdu_disk_info_t *disk;
- struct stat stat_buf;
-- __u32 nr_blocks;
-+ unsigned long nr_blocks;
-
- if (!cfg)
- return 1;
-@@ -454,14 +454,14 @@
- }
- nr_blocks >>= 1;
- if (nr_blocks < MD_RESERVED_BLOCKS * 2) {
-- fprintf(stderr, "%s: device too small (%dkB)\n", cfg->device_name[i], nr_blocks);
-+ fprintf(stderr, "%s: device too small (%ldkB)\n", cfg->device_name[i], nr_blocks);
- close(fd);
- return 1;
- }
-
- cfg->sb_block_offset[i] = MD_NEW_SIZE_BLOCKS(nr_blocks);
- if (!cfg->array.param.not_persistent) {
-- printf("disk %d: %s, %ukB, raid superblock at %dkB\n", i, cfg->device_name[i], nr_blocks, cfg->sb_block_offset[i]);
-+ printf("disk %d: %s, %lukB, raid superblock at %dkB\n", i, cfg->device_name[i], nr_blocks, cfg->sb_block_offset[i]);
- if (sanity_checks(cfg->device_name[i], fd,
- cfg->sb_block_offset[i], forceSanity,
- upgradeArray, cfg, 0)) {
-@@ -495,7 +495,7 @@
- }
- nr_blocks >>= 1;
- if (nr_blocks < MD_RESERVED_BLOCKS * 2) {
-- fprintf(stderr, "%s: device too small (%dkB)\n", cfg->device_name[i], nr_blocks);
-+ fprintf(stderr, "%s: device too small (%ldkB)\n", cfg->device_name[i], nr_blocks);
- close(fd);
- return 1;
- }
diff --git a/sys-fs/raidtools/files/raidtools.cron b/sys-fs/raidtools/files/raidtools.cron
deleted file mode 100755
index e06c42b6fd32..000000000000
--- a/sys-fs/raidtools/files/raidtools.cron
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/bash
-# Cron job to check that raid devices are functional.
-# On error cron will mail the fauly mdstat to root.
-# md.c appends (F) to a faulty device
-# raid1.c and raid5.c list devices as U (operational) or _ (not)
-# a _ device may be either hot, standby or bad
-# Merlin Hughes <merlin@merlin.org>
-
-[ -e /proc/mdstat ] || exit 0
-
-mdstat=$(</proc/mdstat)
-
-if [ "${mdstat/(F)}" != "${mdstat}" ] ; then
- echo 'WARNING: Some disks in your RAID arrays seem to have failed!'
- echo 'Below is the content of /proc/mdstat:'
- echo
- echo "$mdstat"
-fi
diff --git a/sys-fs/raidtools/metadata.xml b/sys-fs/raidtools/metadata.xml
deleted file mode 100644
index 96a2d586367d..000000000000
--- a/sys-fs/raidtools/metadata.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>base-system</herd>
-</pkgmetadata>
diff --git a/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild b/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild
deleted file mode 100644
index 598c1a8f83f8..000000000000
--- a/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild
+++ /dev/null
@@ -1,56 +0,0 @@
-# Copyright 1999-2006 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/raidtools-1.00.3-r6.ebuild,v 1.3 2006/03/09 23:56:50 vapier Exp $
-
-inherit flag-o-matic eutils
-
-DESCRIPTION="Linux RAID 0/1/4/5 utilities"
-HOMEPAGE="http://people.redhat.com/mingo/raidtools/"
-SRC_URI="http://people.redhat.com/mingo/raidtools/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86"
-IUSE=""
-
-# We link statically with popt so that libpopt can
-# live in /usr but keep critical raid binaries in /
-DEPEND="dev-libs/popt"
-RDEPEND=""
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-gcc33.patch
- epatch "${FILESDIR}"/${P}-2.6.Headers.patch
- epatch "${FILESDIR}"/${P}-mkraid.patch
- epatch "${FILESDIR}"/${P}-s390x.patch
- epatch "${FILESDIR}"/${P}-raidstop.patch
- epatch "${FILESDIR}"/${P}-PIC.patch
- epatch "${FILESDIR}"/${P}-build.patch #125586
- epatch "${FILESDIR}"/${P}-quiet-raidstart.patch
-
- # Buffer overflow fix
- sed -i -e "/define MAX_LINE_LENGTH/s:100:1000:" common.h
- # Don't create device nodes (pisses off selinux) #73928
- sed -i \
- -e '/^CFLAGS/s:-O2:@CFLAGS@:' \
- -e "s:mknod:echo mknod means MonKey NOD:" \
- Makefile.in || die "sed Makefile.in failed"
-}
-
-src_install() {
- make install ROOTDIR="${D}" || die
- insinto /$(get_libdir)/rcscripts/addons
- doins "${FILESDIR}"/raid-{start,stop}.sh || die "addon failed"
-
- exeinto /etc/cron.daily
- newexe "${FILESDIR}"/raidtools.cron raidtools
-
- doman *.8 *.5
- dodoc README *raidtab raidreconf-HOWTO reconf.notes retry summary \
- Software-RAID.HOWTO/Software-RAID.HOWTO.txt
- dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.html
- docinto config
- dodoc *.sample
-}