diff options
author | Mike Gilbert <floppym@gentoo.org> | 2014-07-12 20:27:07 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2014-07-12 20:27:07 +0000 |
commit | e06cab7cedda44227929a2a7c13acb5df8ca436e (patch) | |
tree | bd3b96283f877e0b42b1cb3cf5be4db4a420371d /sys-fs/mdadm | |
parent | Version bump (diff) | |
download | historical-e06cab7cedda44227929a2a7c13acb5df8ca436e.tar.gz historical-e06cab7cedda44227929a2a7c13acb5df8ca436e.tar.bz2 historical-e06cab7cedda44227929a2a7c13acb5df8ca436e.zip |
Replace cron.d file with a cron.weekly script, disabled by default. Bug 493706.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0x0BBEEA1FEA4843A4
Diffstat (limited to 'sys-fs/mdadm')
-rw-r--r-- | sys-fs/mdadm/ChangeLog | 9 | ||||
-rw-r--r-- | sys-fs/mdadm/Manifest | 12 | ||||
-rw-r--r-- | sys-fs/mdadm/files/mdadm.weekly | 4 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-3.3-r4.ebuild | 83 |
4 files changed, 102 insertions, 6 deletions
diff --git a/sys-fs/mdadm/ChangeLog b/sys-fs/mdadm/ChangeLog index c9545134de4d..16bcd0be625a 100644 --- a/sys-fs/mdadm/ChangeLog +++ b/sys-fs/mdadm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for sys-fs/mdadm # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.176 2014/04/13 08:42:21 pacho Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-fs/mdadm/ChangeLog,v 1.177 2014/07/12 20:27:02 floppym Exp $ + +*mdadm-3.3-r4 (12 Jul 2014) + + 12 Jul 2014; Mike Gilbert <floppym@gentoo.org> +files/mdadm.weekly, + +mdadm-3.3-r4.ebuild: + Replace cron.d file with a cron.weekly script, disabled by default. Bug + 493706. *mdadm-3.3-r3 (13 Apr 2014) diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest index 0d0422945076..1c27a061e559 100644 --- a/sys-fs/mdadm/Manifest +++ b/sys-fs/mdadm/Manifest @@ -8,6 +8,7 @@ AUX mdadm.rc 574 SHA256 3073b14619cb7b2c99c33f2d6cfd1e59ce5557899bffebaa65fa52f3 AUX mdadm.service 307 SHA256 fdb0c813eb72c85445269eab1182cd68c8d1ca0abfefb2ac966344812d2f29dc SHA512 afa3fad6c260f864857c25d498cfd59778744a7bb0ea2b66c22395874089ee1ec875ab8c02307277aef224f547949d37fc3247a6a1d31fe8b80dbc0ce4edeeb5 WHIRLPOOL 410a781d9ca9d578ac88dd6277286f4ef7ec294e35d1ebf825e95148f56da8b6f9ed6f8170eeaf307753dce3be48217f174145151cb95c62d4a2ded0a56012bd AUX mdadm.service-r1 184 SHA256 c7d06ef8c8f384e586a37432cd3abdb0e3109e6737b222e15257302bee5b6caa SHA512 4a1eb3926398873aa34c40c7eb7f066a985915db29689d105f3bbec18f5bb96c8132fcab55eef3b9effc34bc8e859dbb527b2f97b3e3d9f02486579d4604e1cd WHIRLPOOL 24813ec9b564688be198f557e139fe33121706cc35519018e2cfa0abe92dec8ead7b09501d67d95724808edc2a7617daf5cbb8a73b552f46c6f89091c578f701 AUX mdadm.tmpfiles.conf 30 SHA256 6382e48282297663adbe1b1db55c1554d27badd8ab0ee5a4d2e1bbf880f62af3 SHA512 65bf1a8ce3520f74e5ca2e8167b8da5cb3c9db2135385d3a76b0fc137af6f2fa4f9237effdd3d58f6e002cf016b38b364f780911c7abcb103127627c8de9409e WHIRLPOOL be5b287655d6587dc3088118e277950e4530e2df0ea1336924ea832ba1612773ff3f0bda60f9d5de1aee567e3e220d7a20fa5ca922efdfac6b9739ed345ad56e +AUX mdadm.weekly 126 SHA256 5774fdae3f27486e4c6c6565314ebed1d24825a67712ecc2f8ea33867dc7869d SHA512 835c1d3eb50fac9eb10ad3703c5c2793c9f86bfb0e33dac55ca662dd61c060ebcb77bc51e7b61ac68778e30e914b072c675526e9eebf1ecfe916fa3413502945 WHIRLPOOL 3b247ac66864b0736edc24a8c441ad2b15581ff4ada455c9acab43c49f2e33ad1a1e99b17c000a9118a944147de005e9b457fad1c1cd12150c37621035da7964 AUX mdraid.confd 225 SHA256 1b7918c4bdd024607bcb49d7cea0a77cb70502d2fbb4dbe07024bb5b5699c8e0 SHA512 645c36a445f80233e8bba141911bc2355fc932a22867df554d54f4f23cb8967a10f623de0935b18c1606dd6782e9b2f01a51960423d795c154f08607ca79e3be WHIRLPOOL ead77078688bc5db9f7c08bf97bff2634eb5f73b9197275e69d28b7f59ddd6b458cbaa2f0d243f5a07d5a1cda737b18534bab911a82a998e3be8ab23421333ab AUX mdraid.rc 838 SHA256 73303ec32b7010c7f6d4fd66dde1a5baea07e73c79d3e516dce31000abdb4089 SHA512 a80f745290ca4240d8485a686f19460c9504da5b6ed0da7b2c295b096bdbd9cb70b01c8cbfad4614ad89709b0e7d80074a69ff5248b45887273ca4d11d0dab92 WHIRLPOOL 65eff88b858082e46beca07ca2ccddbd1a116a8aac65d41c26717a3f075cca04ca278da00f0cd9a96297f95778e31a2b962923740300f1d73878b0f6eda1a7da DIST mdadm-3.2.6.tar.bz2 371525 SHA256 c44ed3b31238b41cffe67caffaf45067d01e095de94988889ea8a94e22dc6c38 SHA512 1ebcd4c797cd9f7388f9a27372a19205dc81a4b19adc83e1d6d7cfd4ef18f40a211fddf59ed027a1bf35bd36d4b6795e88e8086c3b022c188ec6e9f68bf1a4ee WHIRLPOOL 61d07512758491326c21bb745ca457a9f3d9215292358d7b4755eb84bb72877058fb239cbffe25c8121caff066aded84e8353b9716e9d4a45d724777f01a6714 @@ -16,12 +17,13 @@ DIST mdadm_3.3-2.debian.tar.gz 127889 SHA256 c38b155e7395b35380d506458d979b82c5b EBUILD mdadm-3.2.6-r1.ebuild 2061 SHA256 dcee1c9b4ae0f6c9c05c754fdd958e23bb8efca6bde82f3452a9f0a91a7e621e SHA512 4e64f5b0fccdada51e23e1ab1187d3be05300b4f08751432ac35603aa698800a67adbf483de3729d9a1f3d3ac5d579ed1dc3e02dea3555387f21d066271dd523 WHIRLPOOL 50f2a0714081ede4de6c4a4334be7cbc42e98a8dbd365479314ef76991c7d3a6d866e8527d1f3e2be30936b544fd131cc4727bb907ec7124f6595556932f1680 EBUILD mdadm-3.3-r2.ebuild 2401 SHA256 c4219e01bd58173240614e036c4042ac0187eefe5a0a5f8fa9a795752b55ac32 SHA512 1d7f8158de2ec6ea88529453570502cd3f2bbffcd424299d93a009c36c6e870420bdac3b43d34fe6303d03b1e8fdcadbccdd713f0354f35173f491e1f2c329c3 WHIRLPOOL 64e83c85aeecb088d4295a36af9eb1111309eeebca3988574706f7cc6af011e84ecef0a35a773301cc9e7e8634d061cbc48754f761a45e45c19cef1f500236e1 EBUILD mdadm-3.3-r3.ebuild 2351 SHA256 a0ab524583227ef2afa8e75e4b428f7638af1a0e745d2f70ff25bce0472da5eb SHA512 8ecc4db56e447fb22e33ec9b895394c5056938550278ee05cdb9e570661f07b1ca2452fabaa0c26996bf4dab52617a344df3bf6b84327f5d237ec54753bdb560 WHIRLPOOL f120501901f6813aba347848a49ed5bf5221b9f8de6f93568c5f83af23437b7e3b557552a9e0cbfae84d75d120d9ec1a28abe9382a317aca223cb83773a0f759 -MISC ChangeLog 27392 SHA256 d02f93cfe979c886b80a75e7f297ba2d3bde1f253312f15c036126fe9d00bab0 SHA512 d0a9f6d9811d9f598e5fc904408bbecc7bb622ebc40b9df5f44ca9206cc7c2a9dac7a8ba585e950a71c63694379cc3cd51a05ddc81437298c3caf6a705cc4fcf WHIRLPOOL f344b8335fecf7d873b5bfc00cef5fee2d9c2cf0b7bbdad2248a9f27893ce3bf2255f094ba056e27a75f8e62c5683ad708c34223b1772fd5caf876bb792cfd82 +EBUILD mdadm-3.3-r4.ebuild 2225 SHA256 4eb6215b9d04177ecb6b33f9ed9e29c235b11ee5ff7bb4fc35328a64f618a2ef SHA512 62c678932400fbaa754be7d767eff41ac81795dc77c152b78b269129746cee05eba3771a33dd0ae8dcc3160ba30e17b07c92aa074d37229b58d5ead77b476442 WHIRLPOOL 7c6c2de91896e62d06762c0b528794be8c0b32aaea14e2d553e267a642d275efd1de127ef1ed26481150f8fd7bac7c83eafa1f0ae3465d9c422a9711f00bac16 +MISC ChangeLog 27602 SHA256 1b1d7c85c5a257ef0bd8d1cb4347b77e648bc43b0bb1ee64683c1c62893b5993 SHA512 9279305721a1cd9506c70d6f8c506ea95664b4794497ad3c0ce397a2e53af14a465709da5afa04c075363cc11f490cb656ed93b9cb38613fc7f1e13c34c02404 WHIRLPOOL 50eebb583cb89a27b5329212278e731a045f78f5c6af71e9a4f81e50719844e6bd2df933ca2b8a7343587ff4dabbd6c5a0567677eeab67c67db7a9753250f7da MISC metadata.xml 164 SHA256 f5f2891f2a4791cd31350bb2bb572131ad7235cd0eeb124c9912c187ac10ce92 SHA512 8eb0d5153d388f6ea069c64b93882244816a0a09aecc0d73cb872121ce0eb24c5ccafa96aad0b620b2300f319e1af101fa7fa6c5d0d561719d49bb07da0a2eca WHIRLPOOL 11a1441bddb7a6c69653c663902b7da5767ae6ad515ac2aabfc42fe37927a1ccc21472deeee454009ff720201a41c3e4a912df42661a0a87150fb46126da2d52 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.22 (GNU/Linux) +Version: GnuPG v2 -iEYEAREIAAYFAlNKTe8ACgkQCaWpQKGI+9RGHwCbBIXknWwlESnmCgUEttFdjYDX -BCYAoICiq3MqQBOEWBYkujhyUAyO75S8 -=7fcy +iF4EAREIAAYFAlPBmhsACgkQC77qH+pIQ6TbNwEAsYBxtsc6ErTuxxIeG7Iy5Tgn +szxKXlttKef5NJ0c1UUA/0fBf+VVgFjiLisr15nTMyw55YkXvaBLQ7KFVyOv6p2i +=S6Y7 -----END PGP SIGNATURE----- diff --git a/sys-fs/mdadm/files/mdadm.weekly b/sys-fs/mdadm/files/mdadm.weekly new file mode 100644 index 000000000000..72e401d534dd --- /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-r4.ebuild b/sys-fs/mdadm/mdadm-3.3-r4.ebuild new file mode 100644 index 000000000000..e63779338d5d --- /dev/null +++ b/sys-fs/mdadm/mdadm-3.3-r4.ebuild @@ -0,0 +1,83 @@ +# 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-r4.ebuild,v 1.1 2014/07/12 20:27:02 floppym Exp $ + +EAPI="4" +inherit multilib flag-o-matic systemd toolchain-funcs + +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}_${PV}-${DEB_PR}.debian.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="static" + +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" + +mdadm_emake() { + emake \ + PKG_CONFIG="$(tc-getPKG_CONFIG)" \ + CC="$(tc-getCC)" \ + CWFLAGS="-Wall" \ + CXFLAGS="${CFLAGS}" \ + MAP_DIR=/run/mdadm \ + "$@" +} + +src_compile() { + use static && append-ldflags -static + mdadm_emake all mdassemble +} + +src_test() { + mdadm_emake test + + sh ./test || die +} + +src_install() { + emake \ + DESTDIR="${D}" \ + SYSTEMD_DIR=$(systemd_get_unitdir) \ + install install-systemd + into / + dosbin mdassemble + dodoc ChangeLog INSTALL TODO README* ANNOUNCE-${PV} + + 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 + systemd_newunit "${FILESDIR}"/mdadm.service-r1 mdadm.service + + # From the Debian patchset + into /usr + dodoc "${WORKDIR}/debian/README.checkarray" + dosbin "${WORKDIR}/debian/checkarray" + + insinto /etc/cron.weekly + newins "${FILESDIR}"/mdadm.weekly mdadm +} + +pkg_postinst() { + if ! 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 +} |