aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Shelton <stuart@shelton.me>2014-07-20 13:51:53 +0100
committerStuart Shelton <stuart@shelton.me>2014-07-20 13:51:53 +0100
commite3ea01deea4ed20eea6f0410062fa268805bdf1a (patch)
tree964e6de464fd5e4c0e8705fc5717e562d4692bd7 /sys-fs/mdadm
parentUpdate net-dns/bind-9.9.5-r3 (diff)
downloadsrcshelton-e3ea01deea4ed20eea6f0410062fa268805bdf1a.tar.gz
srcshelton-e3ea01deea4ed20eea6f0410062fa268805bdf1a.tar.bz2
srcshelton-e3ea01deea4ed20eea6f0410062fa268805bdf1a.zip
Add sys-fs/mdadm-3.3.1-r2
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r--sys-fs/mdadm/Manifest1
-rw-r--r--sys-fs/mdadm/mdadm-3.3.1-r2.ebuild116
2 files changed, 117 insertions, 0 deletions
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest
index 6c3b0a4d..ba566d25 100644
--- a/sys-fs/mdadm/Manifest
+++ b/sys-fs/mdadm/Manifest
@@ -25,5 +25,6 @@ EBUILD mdadm-3.1.4.ebuild 2277 SHA256 63890f88df3b70f7ccc7584f99a6c66ae7435eb4e4
EBUILD mdadm-3.2.6-r1.ebuild 2127 SHA256 69e03f50b77c7cc504f427da2aae850de995a46e0c41735dbe763442b24732ed SHA512 183a12a6823430ceecd34b4420e25bf70adeabf46079c306de3008c2afdea170a62f6a7696dfc76bbbb660cd8e5faf6bccca46669bb00d382faf0db419312300 WHIRLPOOL b723907e32a5fe4bc5e818eba569eed7c90006ff67b8f16114f10bb0b60994411ff1efcdc4a47f82e8f3b542880deeeea5efe8738e8e49497352e368ad3ce6fc
EBUILD mdadm-3.3-r1.ebuild 2231 SHA256 94829cee350bf6b289d3b41711021c7978bd7c9a8792fef5a7e2af426dc502fa SHA512 5b83ceb56647dbe095631e9e25a50b7f05451b0d1d6304bfb1ac6f6e4a99bd3628944114094a94f6618fed4c872b286e776ca4ce3f88fb73895692bc50e00743 WHIRLPOOL c26a7e5e533d8e9db390333b26030e9d0d20266741f480aef4828cb9a0f1118f9e8ee4e72ef4b91cf160bc3658b7596f00ac9f99bf6b8c5fa2535fe31ce450bf
EBUILD mdadm-3.3-r2.ebuild 2740 SHA256 29e2fb262e76a4f110adf7544c19619ce7953903c13a514334e14b086ff69b26 SHA512 e93361ba4c722f8e6858c3cc45cf310fee41e9fb6f3f4e34b64233dddbcdfbe1d2b37a3ed3769459bad6676082e0f9f30045a3a294b26bd6797bb85df6133256 WHIRLPOOL 8577b3e1c279b283fd23f3def7949980eeb04cab62b8bd9401576325c5a01ba736ea0af6a2abad58818d3ca960380dc5392a7499d94c46dcc7d437951cb37966
+EBUILD mdadm-3.3.1-r2.ebuild 3373 SHA256 a940a855bd0e898f0376b4638e761a79b7e983662188edaf6321389524fc7f31 SHA512 0f5b9463c5b98045e75d913a5c293fcf42d3fc626648b2a033fe12bc16ff13e068c78c6c77a429532f90acafc98168dde88a909caaf78af34cb5c942c2af202b WHIRLPOOL 6e02272051f669b04d243f4bbf3dfc907cb9321a5a66d4f411a12832297b8680b4e102352c057b8af153f1b7f85450bfc385c0a48637148ca89b6d178e2039f2
EBUILD mdadm-3.3.1.ebuild 2646 SHA256 a852ababdaa971261c9ba3a1e5e243522284329345b2488ee4dbdac2975833ca SHA512 63fe93860032e07b2c99ac1a158c999fec5e9a305ec40cacbeafc77aa8d606ff02a2393aaf6904405d3895b730c27c76a60f85ee17014f24b2a9e3bf828ea33b WHIRLPOOL 52fff288757391cd6cec09b44a486fb23c67ce76d0a17543fd51c6d26aa985a2e2e8581de1434bf0c119473c44c195448e91a8ad96eebf45ec63ecf4edb3c0e4
EBUILD mdadm-3.3.ebuild 2177 SHA256 33e178f2fb74d9dcedb3a5ee39cedf2bae65977a8fb0554e0eb14ba841074fbd SHA512 8569153fad096ace358a1383b2e83f75bea3dbd314ef871a5503586332cb33a56ee0de16261487896452814cdea10568405e54716d5c3e5898be8ff8565caa8a WHIRLPOOL 10492c5c9352d0a07bcf9364b41491fdddac8ff937613476f71714aee636765b7bda00b48a9b4d63d796471a5769a79c322866e5f06267e12d663d1ba9b8cca9
diff --git a/sys-fs/mdadm/mdadm-3.3.1-r2.ebuild b/sys-fs/mdadm/mdadm-3.3.1-r2.ebuild
new file mode 100644
index 00000000..c08b7660
--- /dev/null
+++ b/sys-fs/mdadm/mdadm-3.3.1-r2.ebuild
@@ -0,0 +1,116 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/mdadm-3.3.1-r2.ebuild,v 1.4 2014/07/18 15:32:43 ssuominen Exp $
+
+EAPI=4
+inherit eutils flag-o-matic multilib systemd toolchain-funcs udev
+
+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"
+DEB_PR=2
+SRC_URI="mirror://kernel/linux/utils/raid/mdadm/${P}.tar.xz
+ mirror://debian/pool/main/m/mdadm/${PN}_3.3-${DEB_PR}.debian.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="static systemd +udev"
+
+DEPEND="virtual/pkgconfig
+ app-arch/xz-utils"
+RDEPEND=">=sys-apps/util-linux-2.16"
+
+# The tests edit values in /proc and run tests on software raid devices.
+# Thus, they shouldn't be run on systems with active software RAID devices.
+RESTRICT="test"
+
+rundir="/dev/.mdadm"
+
+mdadm_emake() {
+ emake \
+ PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+ CC="$(tc-getCC)" \
+ CWFLAGS="-Wall" \
+ CXFLAGS="${CFLAGS}" \
+ RUN_DIR="${rundir}" \
+ MAP_DIR="${rundir}" \
+ UDEVDIR="$(get_udevdir)" \
+ SYSTEMD_DIR="$(systemd_get_unitdir)" \
+ "$@"
+}
+
+src_prepare() {
+ # These are important bugfixes from upstream git after 3.3.1 release,
+ # and before and including 17 Jul 2014:
+ epatch \
+ "${FILESDIR}"/${P}-Makefile-install-mdadm-grow-continue-.service.patch \
+ "${FILESDIR}"/${P}-Grow-fix-removal-of-line-in-wrong-case.patch \
+ "${FILESDIR}"/${P}-IMSM-use-strcpy-rather-than-pointless-strncpy.patch \
+ "${FILESDIR}"/${P}-mdmon-ensure-Unix-domain-socket-is-created-with-safe.patch \
+ "${FILESDIR}"/${P}-mdmon-allow-prepare_update-to-report-failure.patch \
+ "${FILESDIR}"/${P}-DDF-validate-metadata_update-size-before-using-it.patch \
+ "${FILESDIR}"/${P}-IMSM-validate-metadata_update-size-before-using-it.patch \
+ "${FILESDIR}"/${P}-Grow-Do-not-try-to-restart-if-reshape-is-running.patch
+}
+
+src_compile() {
+ use static && append-ldflags -static
+ mdadm_emake all mdassemble
+}
+
+src_test() {
+ mdadm_emake test
+
+ sh ./test || die
+}
+
+src_install() {
+ if ! use systemd; then
+ emake \
+ DESTDIR="${D}" \
+ RUN_DIR="${rundir}" \
+ install
+ else
+ # Use split lines because of bug #517218
+ emake \
+ DESTDIR="${D}" \
+ RUN_DIR="${rundir}" \
+ install install-systemd
+ emake \
+ DESTDIR="${D}" \
+ RUN_DIR="${rundir}" \
+ install-systemd
+ fi
+ dosbin mdassemble
+ dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV}
+
+ if ! use udev; then
+ rm -v "${ED}"/$(get_udevdir)/rules.d/*.rules
+ rmdir -p "${ED}"/$(get_udevdir)/rules.d
+ fi
+
+ insinto /etc
+ newins mdadm.conf-example mdadm.conf
+ newinitd "${FILESDIR}"/mdadm.rc mdadm
+ newconfd "${FILESDIR}"/mdadm.confd mdadm
+ newinitd "${FILESDIR}"/mdraid.rc mdraid
+ newconfd "${FILESDIR}"/mdraid.confd mdraid
+
+ # From the Debian patchset
+ dodoc "${WORKDIR}"/debian/README.checkarray
+ dosbin "${WORKDIR}"/debian/checkarray
+
+ insinto /etc/cron.weekly
+ newins "${FILESDIR}"/mdadm.weekly mdadm
+}
+
+pkg_postinst() {
+ if use systemd && ! systemd_is_booted; then
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then
+ # Only inform people the first time they install.
+ elog "If you're not relying on kernel auto-detect of your RAID"
+ elog "devices, you need to add 'mdraid' to your 'boot' runlevel:"
+ elog " rc-update add mdraid boot"
+ fi
+ fi
+}