diff options
author | Stuart Shelton <stuart@shelton.me> | 2015-08-16 11:21:41 +0059 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2015-08-16 11:21:41 +0059 |
commit | aed664494eb81edd10227bbb004e4296c36e8dd2 (patch) | |
tree | d03fbd28adade81fe564bf7a75703fccdd19b3dd /sys-fs | |
parent | Add media-sound/teamspeak-server-bin-3.0.11.3 (diff) | |
download | srcshelton-aed664494eb81edd10227bbb004e4296c36e8dd2.tar.gz srcshelton-aed664494eb81edd10227bbb004e4296c36e8dd2.tar.bz2 srcshelton-aed664494eb81edd10227bbb004e4296c36e8dd2.zip |
Add sys-fs/mdadm-3.3.4
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mdadm/Manifest | 2 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-3.3.4.ebuild | 99 |
2 files changed, 101 insertions, 0 deletions
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest index 43980780..18a66610 100644 --- a/sys-fs/mdadm/Manifest +++ b/sys-fs/mdadm/Manifest @@ -30,6 +30,7 @@ DIST mdadm-3.2.6.tar.bz2 371525 SHA256 c44ed3b31238b41cffe67caffaf45067d01e095de DIST mdadm-3.3.1.tar.xz 407964 SHA256 d8c74112cfd77bdc1dbc1291fe8d9243c76d91bfa276fcb95f2a75ca7717ab02 SHA512 46fc1889e97d2d14b72ac26ee07eb4301467dc4a0e838ba89920253484fcd443749f3afccb3d792f7e468b20021d50dbc29dda7033d9b5a8fbaee664200f1981 WHIRLPOOL ca690bd35ab8ff475694d8f0420cd762704cc1777116edfdc9394973efa0d6decce1721dc1f7c8c84728d7434073cb6ab5161e5518c46aa8b4a7a5547ebb011d DIST mdadm-3.3.2.tar.xz 410628 SHA256 0f3a7e1a76b13892b79f9fceaf99ecb23513260389a768ac644ffa3ae06e5b8c SHA512 204363e41ec544ac44fa40ddf2758e31cbc1a88d7f038fa32a90b494b07be8e025be1bea8623029847ae495aabe3d1f2c503480db087d8a3dacd240003174936 WHIRLPOOL be7a7b77d6b53decfd03b2171e368d7162e48fe23835e664891acaa8cd1808236f9e34c27c573839c0f613be0e17ea94522df01a6537243eed132e87d3ea8d88 DIST mdadm-3.3.3.tar.xz 413140 SHA256 f5b50a6b506697fb9968d660444447473b453f9eaefaa9b7d31c184693b8a28c SHA512 f2778e48a094bdf43861da0e83473cf021c3770575be0f494178dd0d386aa493eb486c2844b3b804f757f9168b7589afaa580b71777808c1f7905568e726fc66 WHIRLPOOL 6bc5991fc9eba7a7b79c175e46534070368c922fe3f1fb8ade67c97940df95d4bba9933b7e509e0b06b0e62034d72f739c6c15830e628c0cc51984751d9be08d +DIST mdadm-3.3.4.tar.xz 413396 SHA256 8ae5f45306b873190e91f410709b00e51997b633c072b33f8efd9f7df022ca68 SHA512 4393e5d3a50ee148cc7503d48e7dda30419ed72a8098eaa9b883ff1ee81e09c66414edbe40d8c80b28d3ae7a7b5e5b11f6a8e14188a1066c19ac08ca89ddbcb6 WHIRLPOOL 41a8bcf399a11da82c9a0bdf49a31d8c71aeccfcfe2000edf78fe2933c6bdf6f10f2c5450b0589564a75e3a37195abe2e4c0dbbc42911ca9dda4e2d538618caa DIST mdadm-3.3.tar.xz 399152 SHA256 565d2d0f3114679d7ac96c31282fdc61b0e2eddbed13d3ea723a64b079899151 SHA512 09eca8a8e26f4159be3d1988925d9ade5e580eac94ea4044ee92e0c5e08fbfbc8d7ec83d34621df4eab1217b97df372b868144db20e33ad2c6ed01210911bd9a WHIRLPOOL 32f83199b9327fa1124c80c63a815a16f7423f76ef9b9d77a568e2c25e2cef8ef84ffdff25f3314f77e976c0d9ed758a3e62837a15a46c6e60932d83b7bb805b DIST mdadm_3.3-2.debian.tar.gz 127889 SHA256 c38b155e7395b35380d506458d979b82c5b853de996f21ccab50b1202d726301 SHA512 92e4c403542caba4b9afb870ba803e6bc7ade143b27efdc27e03b3407f322722a635457cce9e8c195a3ecd7cbce66fdebdd6046fc4f36836e56e27d5d838c037 WHIRLPOOL 8f8ef1142a79044093a5f55b181dc35a142b83041a59a9b71945aa6fe84cd089a7e1b183ec6b5db210a0d07e94efad0ab3a0d0341fc6cbbbf4da9d0254b5c737 EBUILD mdadm-3.1.4.ebuild 2277 SHA256 63890f88df3b70f7ccc7584f99a6c66ae7435eb4e44b4b262aab4c854bc2dd6b SHA512 46676cc4ef53536654c372ca44e4916e11bdc237ecf3d76256af9d9351796e9837febb9d2f3add958f0ae41c67ac2135494a2fa61fd70facaed9eb6bafc2b1f2 WHIRLPOOL 525fdc76f1a173a712111903dc02528611cc72946278d9460cc115d3986a48e926ced81114cf7626d79c1c8116be6cc736bd4184b8bc57574ab1479ac93429c6 @@ -41,4 +42,5 @@ EBUILD mdadm-3.3.1.ebuild 2646 SHA256 a852ababdaa971261c9ba3a1e5e243522284329345 EBUILD mdadm-3.3.2-r1.ebuild 2498 SHA256 5955203a3b84d826417a147e11b10b1747e7e171e9192cc3cb087a66cf63a605 SHA512 f5893255eea8839dbb219afcb5bf781e3ac7a2fa7140c9662333a0dfd894eadaf9ff7420518e3f3003c2647927f451b70afd3fdd90c33f13f327f6b4afc7f9fe WHIRLPOOL 3df5f413974cf2e5a12ad4f39477e11e388ca1c3ac1b62f21040bdb8ce406c8167a90b64319463e29ddacb62d8ed13c240e62fce6e3d92bb9cf2fc366be34c90 EBUILD mdadm-3.3.2.ebuild 2429 SHA256 a6d8d366b4db8d17306caeaf8a1af6903041c907ea164c5ca252a1d726050084 SHA512 585caa8b06fd7735005d03467faaf0e4376b01da0b69d0261dab1e0093d2f4016d6def489768a473d58d9fa3df697ac9eee0409afdce2dae70e01766fa5cec50 WHIRLPOOL d4e738357d6c89c83507a2e557a4ae2e65087cfd4da1cb9a2b3760800b701aa398cce29539a73df37d5d69cf35fabda791fbfb1e2291b99ba01b9b3743359b4f EBUILD mdadm-3.3.3.ebuild 2666 SHA256 305089e841ce2da48667e01d73306401f8774d9514957f411eb4fb02861a8db4 SHA512 42fd7d7d765519756499e9c9ce1bdb8617b4b942a05481463700644ba787925a22ffba76753ac643b9856ae355dda59566e58fb5aca54ceab51ccfa7b5f506b4 WHIRLPOOL f5841d65dfaeec69b6deb18597a1d1969abb872954b7201c0b121392aa2960d24a48dd7c5db023ff2605a14c3fd463da77aa5d90fabcb93c4b83aaa198c9041f +EBUILD mdadm-3.3.4.ebuild 2561 SHA256 cec1d7b247ec1833114ed87cca6303f8fe8e9ac217f1c52e4de8e82a0af7a75e SHA512 d61cce1aa29e8ba18fba583809788d6ffba2e7bc814773d3fefc33f2fe12419b5d4255b7bb465b9f890fb84138108a5efb0258e89710c154cdb99ca88600f9ab WHIRLPOOL 63308afae904db5af44ec549539414a959fc559238abdcc5fb0a65776babe630ebdb69275c152e020f860bf93828e939925db65a4d3ca2434ffb826774a3775f EBUILD mdadm-3.3.ebuild 2177 SHA256 33e178f2fb74d9dcedb3a5ee39cedf2bae65977a8fb0554e0eb14ba841074fbd SHA512 8569153fad096ace358a1383b2e83f75bea3dbd314ef871a5503586332cb33a56ee0de16261487896452814cdea10568405e54716d5c3e5898be8ff8565caa8a WHIRLPOOL 10492c5c9352d0a07bcf9364b41491fdddac8ff937613476f71714aee636765b7bda00b48a9b4d63d796471a5769a79c322866e5f06267e12d663d1ba9b8cca9 diff --git a/sys-fs/mdadm/mdadm-3.3.4.ebuild b/sys-fs/mdadm/mdadm-3.3.4.ebuild new file mode 100644 index 00000000..ea13d716 --- /dev/null +++ b/sys-fs/mdadm/mdadm-3.3.4.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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() { + local myconf=() + myconf+=( PKG_CONFIG="$(tc-getPKG_CONFIG)" ) + myconf+=( CC="$(tc-getCC)" ) + myconf+=( CWFLAGS="-Wall" ) + myconf+=( CXFLAGS="${CFLAGS}" ) + if use udev; then + myconf+=( UDEVDIR="$(get_udevdir)" ) + fi + if use systemd; then + myconf+=( SYSTEMD_DIR="$(systemd_get_unitdir)" ) + else + myconf+=( RUN_DIR="${rundir}" ) + myconf+=( MAP_DIR="${rundir}" ) + fi + emake \ + "${myconf[@]}" \ + "$@" +} + +src_compile() { + use static && append-ldflags -static + mdadm_emake all mdassemble +} + +src_test() { + mdadm_emake test + + sh ./test || die +} + +src_install() { + mdadm_emake DESTDIR="${D}" install + if use systemd; then + mdadm_emake DESTDIR="${D}" 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/default + newins "${FILESDIR}"/etc-default-mdadm mdadm + + 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 +} |