diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-03-02 04:29:58 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-03-02 04:29:58 +0000 |
commit | ddcedc0b308b05b08e5fea4d6c0ce075a9a5f856 (patch) | |
tree | f28a4903724748f3ec81c74b973dc19086d9c35c /sys-fs | |
parent | old (diff) | |
download | historical-ddcedc0b308b05b08e5fea4d6c0ce075a9a5f856.tar.gz historical-ddcedc0b308b05b08e5fea4d6c0ce075a9a5f856.tar.bz2 historical-ddcedc0b308b05b08e5fea4d6c0ce075a9a5f856.zip |
Move raid stuff to raid packages.
Package-Manager: portage-2.0.51.18
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mdadm/Manifest | 13 | ||||
-rw-r--r-- | sys-fs/raidtools/ChangeLog | 8 | ||||
-rw-r--r-- | sys-fs/raidtools/Manifest | 15 | ||||
-rw-r--r-- | sys-fs/raidtools/files/digest-raidtools-1.00.3-r4 | 1 | ||||
-rwxr-xr-x | sys-fs/raidtools/files/raid-start.sh | 40 | ||||
-rw-r--r-- | sys-fs/raidtools/raidtools-1.00.3-r4.ebuild | 62 |
6 files changed, 131 insertions, 8 deletions
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest new file mode 100644 index 000000000000..716bc136ff2f --- /dev/null +++ b/sys-fs/mdadm/Manifest @@ -0,0 +1,13 @@ +MD5 7b395d9681e2feac6ed6e3be4fb9ed77 ChangeLog 3165 +MD5 3db93ddb19cc37e33e7bc0d49a0a6abe mdadm-1.6.0.ebuild 991 +MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 +MD5 e4594e00c7315dc5697fd93ac2bc79b3 mdadm-1.8.1.ebuild 1174 +MD5 607c0e88ddbf26855514cb3a2e555239 mdadm-1.7.0.ebuild 1039 +MD5 38e63102c018194f702dbe0cc74e0ebc mdadm-1.9.0-r1.ebuild 1255 +MD5 ad1f1decdfd29bdc6c9777e24e0ac5df files/digest-mdadm-1.6.0 60 +MD5 77fed3360e9b6bdfd0721b77c495b750 files/mdadm.rc 849 +MD5 071af2d112127f0b1b603e6289e5cb29 files/digest-mdadm-1.7.0 59 +MD5 f85c85e2bbedc5a2ad91ec6830f342e7 files/digest-mdadm-1.8.1 60 +MD5 c0f39d9acef8dee3159359691bf76b94 files/mdadm-1.9.0-dont-make-man.patch 260 +MD5 b718865224988f8ab990420f1c598b18 files/raid-start.sh 1178 +MD5 94803322fcea6ec0f31f730af32df156 files/digest-mdadm-1.9.0-r1 59 diff --git a/sys-fs/raidtools/ChangeLog b/sys-fs/raidtools/ChangeLog index f5aab4e689e0..9c388647b288 100644 --- a/sys-fs/raidtools/ChangeLog +++ b/sys-fs/raidtools/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-fs/raidtools # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.17 2005/02/25 00:08:32 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/ChangeLog,v 1.18 2005/03/02 04:29:58 vapier Exp $ + +*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: diff --git a/sys-fs/raidtools/Manifest b/sys-fs/raidtools/Manifest index ef802be8c02e..caa4f8bc1447 100644 --- a/sys-fs/raidtools/Manifest +++ b/sys-fs/raidtools/Manifest @@ -1,11 +1,12 @@ -MD5 0cd69d47618d1f355e2ddc6425967cf9 ChangeLog 4806 +MD5 115160fde505758dd6869acff0564657 ChangeLog 4979 MD5 9a09f8d531c582e78977dbfd96edc1f2 metadata.xml 164 -MD5 d0d78187787cb995c72d48f77c616ff7 raidtools-1.00.3-r3.ebuild 1662 -MD5 ff1baef0dbbc5cd525aa9c13014242ea files/raidtools-1.00.3-PIC.patch 726 -MD5 5ff54c0c871ac497487c3bfaeffd09cb files/raidtools.cron 555 -MD5 1ed9388ea5a0f44ceea181fc7ffa2552 files/raidtools-1.00.3-s390x.patch 1515 +MD5 c6e9c4eb2665773ff62073f82c5ca1f6 raidtools-1.00.3-r4.ebuild 1760 MD5 0fa91a341c38be56295db45f2a73aade files/raidtools-1.00.3-gcc33.patch 3044 +MD5 effa29906fa5b9b7755ac3f16442c07f files/raidtools-1.00.3-raidstop.patch 2921 MD5 6c380b6473a9df4ecb051c1db32e2d40 files/raidtools-1.00.3-2.6.Headers.patch 1010 +MD5 1ed9388ea5a0f44ceea181fc7ffa2552 files/raidtools-1.00.3-s390x.patch 1515 +MD5 5ff54c0c871ac497487c3bfaeffd09cb files/raidtools.cron 555 +MD5 7ca86344f294dcab83a74c33b61d0108 files/raid-start.sh 1182 MD5 402cd2a18b3b385d4af9458ba862607b files/raidtools-1.00.3-mkraid.patch 578 -MD5 54b6277ec8d8f24e23ece051ea2e8680 files/digest-raidtools-1.00.3-r3 68 -MD5 effa29906fa5b9b7755ac3f16442c07f files/raidtools-1.00.3-raidstop.patch 2921 +MD5 ff1baef0dbbc5cd525aa9c13014242ea files/raidtools-1.00.3-PIC.patch 726 +MD5 54b6277ec8d8f24e23ece051ea2e8680 files/digest-raidtools-1.00.3-r4 68 diff --git a/sys-fs/raidtools/files/digest-raidtools-1.00.3-r4 b/sys-fs/raidtools/files/digest-raidtools-1.00.3-r4 new file mode 100644 index 000000000000..8b9f5451a2c5 --- /dev/null +++ b/sys-fs/raidtools/files/digest-raidtools-1.00.3-r4 @@ -0,0 +1 @@ +MD5 cb41f8093cd7381ee07adb2951cc53fa 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 new file mode 100755 index 000000000000..c95708b387b2 --- /dev/null +++ b/sys-fs/raidtools/files/raid-start.sh @@ -0,0 +1,40 @@ +# /lib/rcscripts/addons/raid-start.sh: Setup raid volumes at boot +# $Header: /var/cvsroot/gentoo-x86/sys-fs/raidtools/files/raid-start.sh,v 1.1 2005/03/02 04:29:58 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 d + for d in $@ ; do + d=${d/\/dev\/} + [[ -e /dev/${d} ]] && continue + mknod /dev/${d} b ${MAJOR} ${d##*md} >& /dev/null + done +} + +# Start software raid with raidtools (old school) +if [[ -x /sbin/raidstart && -f /etc/raidtab ]] ; then + create_devs $(awk '/^[[:space:]]*raiddev/ { print $2 }' /etc/raidtab) + ebegin "Starting up RAID devices (raidtools)" + output=$(raidstart -a 2>&1) + ret=$? + [[ ${ret} -ne 0 ]] && echo "${output}" + eend ${ret} +fi + +# Start software raid with mdadm (new school) +if [[ -x /sbin/mdadm && -f /etc/mdadm.conf ]] ; then + create_devs $(awk '/^[[:space:]]*ARRAY/ { print $2 }' /etc/mdadm.conf) + ebegin "Starting up RAID devices (mdadm)" + output=$(mdadm -As 2>&1) + ret=$? + [[ ${ret} -ne 0 ]] && echo "${output}" + eend ${ret} +fi + +# vim:ts=4 diff --git a/sys-fs/raidtools/raidtools-1.00.3-r4.ebuild b/sys-fs/raidtools/raidtools-1.00.3-r4.ebuild new file mode 100644 index 000000000000..101e1e0674aa --- /dev/null +++ b/sys-fs/raidtools/raidtools-1.00.3-r4.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2005 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-r4.ebuild,v 1.1 2005/03/02 04:29:58 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="build" + +RDEPEND="virtual/libc + dev-libs/popt" +DEPEND="${RDEPEND} + >=sys-apps/sed-4" + +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 + + # 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_compile() { + econf || die "configure failed" + emake -j1 || die "make failed" +} + +src_install() { + make install ROOTDIR="${D}" || die + exeinto /$(get_libdir)/rcscripts/addons + doexe "${FILESDIR}"/raid-start.sh || die "addon failed" + + if ! use build ; then + exeinto /etc/cron.daily + newexe "${FILESDIR}"/raidtools.cron raidtools + + doman *.8 *.5 + dodoc README *raidtab raidreconf-HOWTO reconf.notes retry summary + dodoc Software-RAID.HOWTO/Software-RAID.HOWTO.txt + dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.html + dohtml Software-RAID.HOWTO/Software-RAID.HOWTO.sgml + docinto config + dodoc *.sample + fi +} |