summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-03-27 03:34:21 +0000
committerMike Frysinger <vapier@gentoo.org>2011-03-27 03:34:21 +0000
commit84644d685485c33dfa7cd1f018e5fc5ff428acb3 (patch)
tree7e111fdf428e5bd3ab121b653bfe9fc5dbabc498 /sys-fs/mdadm
parenttweak syntax for older bash versions (diff)
downloadgentoo-2-84644d685485c33dfa7cd1f018e5fc5ff428acb3.tar.gz
gentoo-2-84644d685485c33dfa7cd1f018e5fc5ff428acb3.tar.bz2
gentoo-2-84644d685485c33dfa7cd1f018e5fc5ff428acb3.zip
old
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r--sys-fs/mdadm/files/mdadm-3.0.2-fix-null-dereference-in-set_member_info.patch51
-rw-r--r--sys-fs/mdadm/files/mdraid.rc27
-rw-r--r--sys-fs/mdadm/files/udev-145-64-md-raid.rules36
-rw-r--r--sys-fs/mdadm/mdadm-3.0.2-r1.ebuild63
-rw-r--r--sys-fs/mdadm/mdadm-3.0.2.ebuild62
-rw-r--r--sys-fs/mdadm/mdadm-3.0.3.ebuild62
-rw-r--r--sys-fs/mdadm/mdadm-3.0.ebuild62
-rw-r--r--sys-fs/mdadm/mdadm-3.1.1-r1.ebuild64
-rw-r--r--sys-fs/mdadm/mdadm-3.1.1.ebuild59
-rw-r--r--sys-fs/mdadm/mdadm-3.1.3.ebuild67
10 files changed, 0 insertions, 553 deletions
diff --git a/sys-fs/mdadm/files/mdadm-3.0.2-fix-null-dereference-in-set_member_info.patch b/sys-fs/mdadm/files/mdadm-3.0.2-fix-null-dereference-in-set_member_info.patch
deleted file mode 100644
index c740421487b0..000000000000
--- a/sys-fs/mdadm/files/mdadm-3.0.2-fix-null-dereference-in-set_member_info.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-http://bugs.gentoo.org/287338
-
-From 2b9aa337af7291d3f141322da96c9f667c99d53c Mon Sep 17 00:00:00 2001
-From: NeilBrown <neilb@suse.de>
-Date: Thu, 1 Oct 2009 12:51:04 +1000
-Subject: [PATCH] Fix null-dereference in set_member_info
-
-set_member_info would try to dereference ->metadata_version, without
-checking that it isn't NULL.
-
-Signed-off-by: NeilBrown <neilb@suse.de>
----
- mapfile.c | 15 +++++++++------
- 1 files changed, 9 insertions(+), 6 deletions(-)
-
-diff --git a/mapfile.c b/mapfile.c
-index a3038be..ed59db5 100644
---- a/mapfile.c
-+++ b/mapfile.c
-@@ -303,19 +303,22 @@ struct map_ent *map_by_name(struct map_ent **map, char *name)
- */
- static void set_member_info(struct supertype *st, struct mdstat_ent *ent)
- {
-- char version[strlen(ent->metadata_version)+1];
-
- st->subarray[0] = '\0';
-
-- if (strncmp(ent->metadata_version, "external:", 9) != 0)
-+ if (ent->metadata_version == NULL ||
-+ strncmp(ent->metadata_version, "external:", 9) != 0)
- return;
-
-- strcpy(version, ent->metadata_version);
--
-- if (is_subarray(&version[9])) {
-- char *subarray = strrchr(version, '/');
-+ if (is_subarray(&ent->metadata_version[9])) {
-+ char version[strlen(ent->metadata_version)+1];
-+ char *subarray;
- char *name = &version[10];
-
-+ strcpy(version, ent->metadata_version);
-+ subarray = strrchr(version, '/');
-+ name = &version[10];
-+
- if (!subarray)
- return;
- *subarray++ = '\0';
---
-1.6.5.rc2
-
diff --git a/sys-fs/mdadm/files/mdraid.rc b/sys-fs/mdadm/files/mdraid.rc
deleted file mode 100644
index eaf314c7bfbf..000000000000
--- a/sys-fs/mdadm/files/mdraid.rc
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/files/mdraid.rc,v 1.4 2008/06/28 16:44:39 vapier Exp $
-
-depend() {
- if [ ! -e /sbin/functions.sh ] ; then
- # on baselayout-1 this could cause
- # dependency-cycles with checkroot (before *)
- before checkfs fsck
- after modules
- fi
-}
-
-start() {
- if [ -e /sbin/functions.sh ] ; then
- eerror "The ${SVCNAME} init script is written for baselayout-2"
- eerror "Please do not use it with baselayout-1"
- return 1
- fi
-
- start_addon raid
-}
-
-stop() {
- stop_addon raid
-}
diff --git a/sys-fs/mdadm/files/udev-145-64-md-raid.rules b/sys-fs/mdadm/files/udev-145-64-md-raid.rules
deleted file mode 100644
index 6ba93b661ef9..000000000000
--- a/sys-fs/mdadm/files/udev-145-64-md-raid.rules
+++ /dev/null
@@ -1,36 +0,0 @@
-# do not edit this file, it will be overwritten on update
-
-SUBSYSTEM!="block", GOTO="md_end"
-ACTION!="add|change", GOTO="md_end"
-
-# import data from a raid member and activate it
-#ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
-# import data from a raid set
-KERNEL!="md*", GOTO="md_end"
-
-# partitions have no md/{array_state,metadata_version}
-ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
-
-# container devices have a metadata version of e.g. 'external:ddf' and
-# never leave state 'inactive'
-ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"
-TEST!="md/array_state", GOTO="md_end"
-ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
-LABEL="md_ignore_state"
-
-IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
-ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}", OPTIONS+="string_escape=replace"
-ENV{DEVTYPE}=="disk", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
-ENV{DEVTYPE}=="disk", ENV{MD_DEVNAME}=="?*", SYMLINK+="md/$env{MD_DEVNAME}"
-ENV{DEVTYPE}=="partition", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}-part%n", OPTIONS+="string_escape=replace"
-ENV{DEVTYPE}=="partition", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}-part%n"
-ENV{DEVTYPE}=="partition", ENV{MD_DEVNAME}=="*[^0-9]", SYMLINK+="md/$env{MD_DEVNAME}%n"
-ENV{DEVTYPE}=="partition", ENV{MD_DEVNAME}=="*[0-9]", SYMLINK+="md/$env{MD_DEVNAME}p%n"
-
-IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
-OPTIONS+="link_priority=100"
-OPTIONS+="watch"
-ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
-ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
-
-LABEL="md_end"
diff --git a/sys-fs/mdadm/mdadm-3.0.2-r1.ebuild b/sys-fs/mdadm/mdadm-3.0.2-r1.ebuild
deleted file mode 100644
index e5820ce92c34..000000000000
--- a/sys-fs/mdadm/mdadm-3.0.2-r1.ebuild
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.0.2-r1.ebuild,v 1.1 2009/10/05 08:00:46 vapier Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- epatch "${FILESDIR}"/${P}-fix-null-dereference-in-set_member_info.patch #287338
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
-
- insinto /etc/udev/rules.d/
- newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.0.2.ebuild b/sys-fs/mdadm/mdadm-3.0.2.ebuild
deleted file mode 100644
index b1992c554be4..000000000000
--- a/sys-fs/mdadm/mdadm-3.0.2.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.0.2.ebuild,v 1.1 2009/09/30 03:19:27 vapier Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
-
- insinto /etc/udev/rules.d/
- newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.0.3.ebuild b/sys-fs/mdadm/mdadm-3.0.3.ebuild
deleted file mode 100644
index dc7a6b485618..000000000000
--- a/sys-fs/mdadm/mdadm-3.0.3.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.0.3.ebuild,v 1.1 2009/11/01 19:59:48 vapier Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
-
- insinto /etc/udev/rules.d/
- newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.0.ebuild b/sys-fs/mdadm/mdadm-3.0.ebuild
deleted file mode 100644
index c086d6c2f051..000000000000
--- a/sys-fs/mdadm/mdadm-3.0.ebuild
+++ /dev/null
@@ -1,62 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.0.ebuild,v 1.9 2009/12/07 11:18:36 ssuominen Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
-
- insinto /etc/udev/rules.d/
- newins "${FILESDIR}"/udev-145-64-md-raid.rules 64-md-raid.rules || die
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.1.1-r1.ebuild b/sys-fs/mdadm/mdadm-3.1.1-r1.ebuild
deleted file mode 100644
index 5793e6cb3e90..000000000000
--- a/sys-fs/mdadm/mdadm-3.1.1-r1.ebuild
+++ /dev/null
@@ -1,64 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.1-r1.ebuild,v 1.1 2010/01/24 22:20:56 robbat2 Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc-3.1.1 mdraid || die "installing mdraid.rc failed"
-
- # do not rely on /lib -> /libXX link
- sed -i \
- -e "s-/lib/rcscripts/-/$(get_libdir)/rcscripts/-" \
- "${D}"/etc/init.d/*
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.1.1.ebuild b/sys-fs/mdadm/mdadm-3.1.1.ebuild
deleted file mode 100644
index c7902790289d..000000000000
--- a/sys-fs/mdadm/mdadm-3.1.1.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.1.ebuild,v 1.2 2009/11/30 22:01:15 vapier Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die "make install failed"
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die "addon failed"
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die "addon failed"
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die "installing mdadm.rc failed"
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die "installing mdadm.confd failed"
- newinitd "${FILESDIR}"/mdraid.rc mdraid || die "installing mdraid.rc failed"
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}
diff --git a/sys-fs/mdadm/mdadm-3.1.3.ebuild b/sys-fs/mdadm/mdadm-3.1.3.ebuild
deleted file mode 100644
index 06a6ccd47934..000000000000
--- a/sys-fs/mdadm/mdadm-3.1.3.ebuild
+++ /dev/null
@@ -1,67 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.1.3.ebuild,v 1.2 2010/08/09 22:57:48 flameeyes Exp $
-
-inherit eutils flag-o-matic
-
-DESCRIPTION="A useful tool for running RAID systems - it can be used as a replacement for the raidtools"
-HOMEPAGE="http://neil.brown.name/blog/mdadm"
-SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="static"
-
-DEPEND=""
-RDEPEND=">=sys-apps/util-linux-2.16"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${PN}-3.0-dont-make-man.patch
- epatch "${FILESDIR}"/${PN}-2.6-syslog-updates.patch
- epatch "${FILESDIR}"/${PN}-2.6.4-mdassemble.patch #211426
- use static && append-ldflags -static
-
- sed -i -e 's:-z now::' Makefile || die #331653
-}
-
-src_compile() {
- emake \
- CROSS_COMPILE=${CHOST}- \
- CWFLAGS="-Wall" \
- CXFLAGS="${CFLAGS}" \
- all mdassemble \
- || die "emake failed"
-}
-
-src_install() {
- emake DESTDIR="${D}" install || die
- into /
- dosbin mdassemble || die
- dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
-
- exeinto /$(get_libdir)/rcscripts/addons
- newexe "${FILESDIR}"/raid-start.sh-3.0 raid-start.sh || die
- newexe "${FILESDIR}"/raid-stop.sh raid-stop.sh || die
-
- insinto /etc
- newins mdadm.conf-example mdadm.conf
- newinitd "${FILESDIR}"/mdadm.rc mdadm || die
- newconfd "${FILESDIR}"/mdadm.confd mdadm || die
- newinitd "${FILESDIR}"/mdraid.rc-3.1.1 mdraid || die
- newconfd "${FILESDIR}"/mdraid.confd mdraid || die
-
- # do not rely on /lib -> /libXX link
- sed -i \
- -e "s-/lib/rcscripts/-/$(get_libdir)/rcscripts/-" \
- "${D}"/etc/init.d/*
-}
-
-pkg_postinst() {
- elog "If using baselayout-2 and not relying on kernel auto-detect"
- elog "of your RAID devices, you need to add 'mdraid' to your 'boot'"
- elog "runlevel. Run the following command:"
- elog "rc-update add mdraid boot"
-}