diff options
author | Stuart Shelton <stuart@shelton.me> | 2014-07-16 09:24:08 +0100 |
---|---|---|
committer | Stuart Shelton <stuart@shelton.me> | 2014-07-16 09:24:08 +0100 |
commit | f4875b36c0ed684a05c67474410d2d963fab3829 (patch) | |
tree | dddd939dd70c33231faac665cbab616bc8522544 /sys-fs | |
parent | Update sys-devel/llvm-3.4.1-r2, sys-devel/llvm-3.4.2 (diff) | |
download | srcshelton-f4875b36c0ed684a05c67474410d2d963fab3829.tar.gz srcshelton-f4875b36c0ed684a05c67474410d2d963fab3829.tar.bz2 srcshelton-f4875b36c0ed684a05c67474410d2d963fab3829.zip |
Add sys-fs/mdadm-3.3.1
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/mdadm/Manifest | 3 | ||||
-rw-r--r-- | sys-fs/mdadm/files/mdadm.weekly | 4 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-3.3.1.ebuild | 99 |
3 files changed, 106 insertions, 0 deletions
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest index 4e817043..6c3b0a4d 100644 --- a/sys-fs/mdadm/Manifest +++ b/sys-fs/mdadm/Manifest @@ -10,6 +10,7 @@ AUX mdadm.confd 205 SHA256 ec55674955af7a31da51b8b72b599e8519809287dad796a9b1615 AUX mdadm.rc 574 SHA256 3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3caffadc7 SHA512 d01f5de3ca957189d3619fda4c982c776533b20fac232832bfb7f34de5724348be572c24ad35508e5dc48b2df4710a258a4d1af39471ff7ce2c56ada13dfa7ab WHIRLPOOL 1362c4cbef50bd904092c5cb575ac3336e7e75ead2819795221406e0f2665843e5500fa7ecaf9e48e0231773ed18ea7950ffb5188f2f4e2138944931418e6b69 AUX mdadm.service 307 SHA256 fdb0c813eb72c85445269eab1182cd68c8d1ca0abfefb2ac966344812d2f29dc SHA512 afa3fad6c260f864857c25d498cfd59778744a7bb0ea2b66c22395874089ee1ec875ab8c02307277aef224f547949d37fc3247a6a1d31fe8b80dbc0ce4edeeb5 WHIRLPOOL 410a781d9ca9d578ac88dd6277286f4ef7ec294e35d1ebf825e95148f56da8b6f9ed6f8170eeaf307753dce3be48217f174145151cb95c62d4a2ded0a56012bd AUX mdadm.tmpfiles.conf 30 SHA256 6382e48282297663adbe1b1db55c1554d27badd8ab0ee5a4d2e1bbf880f62af3 SHA512 65bf1a8ce3520f74e5ca2e8167b8da5cb3c9db2135385d3a76b0fc137af6f2fa4f9237effdd3d58f6e002cf016b38b364f780911c7abcb103127627c8de9409e WHIRLPOOL be5b287655d6587dc3088118e277950e4530e2df0ea1336924ea832ba1612773ff3f0bda60f9d5de1aee567e3e220d7a20fa5ca922efdfac6b9739ed345ad56e +AUX mdadm.weekly 126 SHA256 5774fdae3f27486e4c6c6565314ebed1d24825a67712ecc2f8ea33867dc7869d SHA512 835c1d3eb50fac9eb10ad3703c5c2793c9f86bfb0e33dac55ca662dd61c060ebcb77bc51e7b61ac68778e30e914b072c675526e9eebf1ecfe916fa3413502945 WHIRLPOOL 3b247ac66864b0736edc24a8c441ad2b15581ff4ada455c9acab43c49f2e33ad1a1e99b17c000a9118a944147de005e9b457fad1c1cd12150c37621035da7964 AUX mdraid.confd 347 SHA256 96f05ece95ad9f20c5e649ff96e36c8d1cb7fc58b2ef50a870c7e7282721c1ea SHA512 5b723843ab0bbd25eb53cbcf907c6f003d34c905f44550c129d6aed8e053140fdfade533c6a20ce1b0302fb78786c72857d7b215257d0039bc02309bda8b68fb WHIRLPOOL c165fdeece86bd42319e78e145266ccced8e269df402825c7a54a32a95f2839a9899e3331ae9441ef7551746152fa1ce382428d84c5b96576afd46450f81a6f3 AUX mdraid.rc 4129 SHA256 15481e765f860105ff66da5e9110a46b04d875b89dd4df028cad8029cfdaf913 SHA512 ad127f242e5b2cb38a45fd7007f77fda516029d7750250a7a76de3b73d2ee43c5ae56f40f16468590f61198b96b9eade04d5b62fc2622ba2c62969af29a4e4e8 WHIRLPOOL 862565afffbbc795557cd1f50a9cdaf38931444b123fef3b40d6e37f3ce3125e6bbc8e5a29079f2e672ff10bf5ec6133cf2d1017b104809f999a479c2b4374cd AUX mdraid.rc-3.1.1 815 SHA256 95f759ba9d4f719bb5122546fdcce18dd9b0060df1296cf8ae17a04137e163e2 SHA512 4bf2235bdffde101d10c408de486e9629caf1eed3f574bf3ed206d7013e8a715016066069272d24894a4c428009003de4ee3d8291323e2aaae3157fbce4318ed WHIRLPOOL 65fed6723b508405ea67d4d5973a617b21c8b90ea480c69bc7da843718c16c98ed89a32013d102860c62fe0de8b8e8002180649e0176e303a887698baa7f053e @@ -17,10 +18,12 @@ AUX raid-start.sh-3.0 4110 SHA256 809f66c15bbc9837942bcf966f23768e9ca78e248a88d2 AUX raid-stop.sh 645 SHA256 167a6bd452b5831cd5235eb80bf5f91bb2e5a10db132408fce29e60eb9d200db SHA512 8ee27e586dccf75bed3026f4beb42f429b53b0f11791122674122b90482010cd278c9d714a397bf1636617068e3e440c5fbc5babd89109f3c8e7a5a04dc82c05 WHIRLPOOL 14f76b1155299e7febd95e27e878e08997f4d57d5ef14e19b973a0917305617a47c242806399d17776e4d42885a199eec61dac8e0a12286f0ddf04f345283777 DIST mdadm-3.1.4.tar.bz2 288578 SHA256 849ad0ad4ad3c1d2d8806a16b30e1f59ab2daf313cb103807207f7cba889ea63 SHA512 b668773d4f43bc90fba0ac27f01fc869aa2068d958ccc84de2bf8a64ac7e9a40cc8e461ff04a3619b17459d05478843b9fff0894868d9cbc97fc2cfa80faac73 WHIRLPOOL 28a3b43d4edfa4a097d2c410a9d67b75707dfa20d30c72870cc0584132bd2f896c02be26f97ca0d588be8cabdcf90e89d33c3f23ca727e966597ffea9af9a3a9 DIST mdadm-3.2.6.tar.bz2 371525 SHA256 c44ed3b31238b41cffe67caffaf45067d01e095de94988889ea8a94e22dc6c38 SHA512 1ebcd4c797cd9f7388f9a27372a19205dc81a4b19adc83e1d6d7cfd4ef18f40a211fddf59ed027a1bf35bd36d4b6795e88e8086c3b022c188ec6e9f68bf1a4ee WHIRLPOOL 61d07512758491326c21bb745ca457a9f3d9215292358d7b4755eb84bb72877058fb239cbffe25c8121caff066aded84e8353b9716e9d4a45d724777f01a6714 +DIST mdadm-3.3.1.tar.xz 407964 SHA256 d8c74112cfd77bdc1dbc1291fe8d9243c76d91bfa276fcb95f2a75ca7717ab02 SHA512 46fc1889e97d2d14b72ac26ee07eb4301467dc4a0e838ba89920253484fcd443749f3afccb3d792f7e468b20021d50dbc29dda7033d9b5a8fbaee664200f1981 WHIRLPOOL ca690bd35ab8ff475694d8f0420cd762704cc1777116edfdc9394973efa0d6decce1721dc1f7c8c84728d7434073cb6ab5161e5518c46aa8b4a7a5547ebb011d 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 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.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/files/mdadm.weekly b/sys-fs/mdadm/files/mdadm.weekly new file mode 100644 index 00000000..72e401d5 --- /dev/null +++ b/sys-fs/mdadm/files/mdadm.weekly @@ -0,0 +1,4 @@ +#!/bin/sh +if [ -x /usr/sbin/checkarray ] && [ $(date +\%d) -le 7 ]; then + /usr/sbin/checkarray --cron --all --idle --quiet +fi diff --git a/sys-fs/mdadm/mdadm-3.3.1.ebuild b/sys-fs/mdadm/mdadm-3.3.1.ebuild new file mode 100644 index 00000000..0a52178d --- /dev/null +++ b/sys-fs/mdadm/mdadm-3.3.1.ebuild @@ -0,0 +1,99 @@ +# 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.ebuild,v 1.1 2014/07/14 18:08:15 ssuominen Exp $ + +EAPI="4" +inherit multilib flag-o-matic 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_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 + emake \ + DESTDIR="${D}" \ + RUN_DIR="${rundir}" \ + install 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 +# Shouldn't be required since upstream has it's own .service files. Untested. -ssuominen +# wmd_newunit "${FILESDIR}"/mdadm.service-r1 mdadm.service + + # 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 +} |