diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-02-14 00:13:14 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-02-14 00:13:14 +0000 |
commit | 4fda045f90a4e301329bddb766e2e12a0b4401de (patch) | |
tree | 1d486767bfd9de15d6c11d341408385eb7f7debe /sys-fs | |
parent | 965058196f44550f3bc491dd85064071e085b776 (diff) |
gentoo auto-resync : 14:02:2025 - 00:13:14
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/Manifest.gz | bin | 22232 -> 22224 bytes | |||
-rw-r--r-- | sys-fs/mdadm/Manifest | 10 | ||||
-rw-r--r-- | sys-fs/mdadm/files/mdadm-4.3-do-not-call-gcc-directly.patch | 53 | ||||
-rw-r--r-- | sys-fs/mdadm/files/mdadm-4.3-musl-basename.patch | 19 | ||||
-rw-r--r-- | sys-fs/mdadm/files/mdadm-4.3-musl-include.patch | 14 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-4.3-r1.ebuild | 7 | ||||
-rw-r--r-- | sys-fs/mdadm/mdadm-4.4.ebuild | 122 | ||||
-rw-r--r-- | sys-fs/mdadm/metadata.xml | 1 |
8 files changed, 222 insertions, 4 deletions
diff --git a/sys-fs/Manifest.gz b/sys-fs/Manifest.gz Binary files differindex f2a831657456..22c9d09f6b20 100644 --- a/sys-fs/Manifest.gz +++ b/sys-fs/Manifest.gz diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest index 09b47f6f77bf..d7262fb5055f 100644 --- a/sys-fs/mdadm/Manifest +++ b/sys-fs/mdadm/Manifest @@ -2,8 +2,11 @@ AUX etc-default-mdadm 320 BLAKE2B 9da106687798a145b523bad7a696b2aa83b16b74f66bd5 AUX mdadm-3.4-sysmacros.patch 859 BLAKE2B 7ad91f1bb06ef6ddba5f3d1a4f7c2a542e57c10d0e28d619bd858ea74afdbd1c2f1dc59657f5ceb206c6a9ab93989c29d9b33e7c7394571204786c96ccd16f31 SHA512 47564bba9d45dfb39d63df9e6cd96ad03b37b314e794af180911481feb4e038035aa1ea6d3de2061982f46b51d1a205168f98e6f0a092f55f6f8e760dbabdae6 AUX mdadm-4.2-in_initrd-collision.patch 785 BLAKE2B 70767e678b08ff656c6b39915282c0723a0c99ab0712c9ba042d431c38f88158f1b1a064ce6879748cb0088d099a4596ce58bbf8211e0580b7170026a9902e60 SHA512 f891d357f64b9d3c12f6a88174b9889dfbef500920bcaf5a54826aaf507b3824b8b2ac56a7e4870ea73536890e173bb3642c96963a8b3776692552fce14468a8 AUX mdadm-4.2-mdadm_env.patch 1509 BLAKE2B b236c602cdb0a77ceb963ad401c6334fc3fa8d05494a1793eb97f0b0bc38d338b80cd9329fc81b81d9919e3c19cd0f671edef0e097214d33ac677d0285487a14 SHA512 1454e0fa585afa0e9db60aa37ec5b7ba9a38ed7d544b5870261ddab35d5291085de815c0ec90964d4a46da00c2a53bab28f0026955f2d8b9b5623f99bb8a26ac +AUX mdadm-4.3-do-not-call-gcc-directly.patch 1909 BLAKE2B ac1d81e040d3e3e374eb2e980096d00fbd5575ccb87a64f9c17165ff414b33ec31274ce9eac570b881c3462b4aa559b0cc3051f7c12f5cdc321d9d308bd8ce29 SHA512 e9538e0d8cea97c7f62a640cda5ad3d33b8abc1a835ad9aeb3be4aa6bd37bcb7705ec2e7782a875bca1a78fd0473a7eed5c57a292a385194761787dfe02c4b61 AUX mdadm-4.3-in_initrd-collision.patch 1000 BLAKE2B 23811ea654f4c11ed83a725d1f7e7c7e203cb642c27845e87cff69b38121e24610cfede2d4cf71cf54ecc275bd48e106eebc846339140918ad1925fd1de48faf SHA512 56c5fa51755dbc815833273435599a1be4fbe86f4cd9aaf094af5cc93315f37f5fa4d1da37c8ba4dd59c381125d3e1e315c42fe71f1a947dde0b0ca25f3ce87a AUX mdadm-4.3-ldflags.patch 334 BLAKE2B 26a0c8c98ea9e1154e6c1c8d84f022ef2276db3db8bb9dbfeb8f69c0253ea072f901c32d2c5b8e48013f2aabea97b02d14e8c5082fa1570c7c427b1178efa6c0 SHA512 8ff09d2e6652236c58580f95e60d9522ea6a647ef82bc975399f5ee837e531552c5af68602ab127a1d051729f4768ec6a90271d20418a5018ad4847a67aeca39 +AUX mdadm-4.3-musl-basename.patch 612 BLAKE2B 910fc8a327f52fdb30a238c18c8a82280f6aae6cc5a7782b50e3032d683cf00ca4830b437bb5433379f9099d93c191bbf80de6b4ac76453c2600732675af79a4 SHA512 80359488f50490303c91625ed68a178a75085cec7214645a53f7d010f5de09b375d753857b1259203926ec9f5d3756647da247c598b149d7cb20a68e3472cd7a +AUX mdadm-4.3-musl-include.patch 319 BLAKE2B 2a45fc0d730402458b8f34b7a64c64fb4ed7c652246001fb7a2be7b427df016f02d92bb6e1b4149554f9d9de3d0041486eda45c8513101c91b7a25034022a391 SHA512 2afd750bf1694d55290d88e22c47682a64d76ba597e5943e4c9f4a8485821d47cc5b1d646a353605da2a06b104562e976fe13038545cae5cf0edb3e43b1a3deb AUX mdadm-4.3-musl125-1.patch 1383 BLAKE2B ee094a31f4b9668af93fa57f0f59823bf36fb6382dd4dc38409982992427bb061cb3a1b076f8d2701de94272df26ad8e48f2af2e9a8269603cb2821d21064653 SHA512 45f40a06f562729143dba083471b0e676e2886f80b2a5bee54de8fa20a48610644e6835c35ca7d8c04c154620297d73d049510e86c6e3c28b5033a75fe5e5476 AUX mdadm-4.3-no-udev.patch 832 BLAKE2B 76f24ebd05f6ba1df8697fadcbfae53efd80b00a1e93e445fd1cd4fd484b84e963b9cf06c60a1bd7efb1adc64313217068d95dc17281275425773a587edbc0e6 SHA512 1b98decf6777182417c86974d6891af59fc8eb83c183d1c50305c3803c6bc4be0414c6770b0aab05f4dafece6f5456bac530427817225cd2e597c5454536a980 AUX mdadm.confd 205 BLAKE2B 3ce0a158e1b9621a034442cdc7f643ee39a3cc9ea62697b6d1d090ae28c07e1b2ee192a33bdbdc36b95ec1e997f375764cddfde7e247b0a4830121a5216736ac SHA512 7bf66898000b3d02bbf0704a8032b0f4fc045380501dc8d2bbbb31d33b122d9c35879b25714663079eeadd207c9da87c9d9af8464e76146bf5b68594e73fd92c @@ -13,9 +16,12 @@ AUX mdraid.confd 383 BLAKE2B c61fd2c072a0d12ca21ad4f8a60a55101b4e452f9acc8cdcdf9 AUX mdraid.rc 759 BLAKE2B 41f1b4cb9dd29411d56bea656dddc2cb2fd3cc14b183d05c502fb5e29407d1d816de9595e13349ef7e03240308cf4395578be31149f59d1960d1feee0165506d SHA512 d76190646b393d1480607b0d89d08ce4196738295fbb7790fa1035c53a041b5cb88fe857bb2070920a9c3ae21b9fb8f7838dde240fa0e275e5915add9c113021 DIST mdadm-4.2.tar.xz 453624 BLAKE2B de7c4318dc5479de41378233869ab84ca2cd0e8a42310157b1acb969e7152af61556fbbe6f17bf6af4dfaf5543e49b1c982d2baeedf1c39b000032f4db7f5502 SHA512 57897a2b7fb8b0b88bece50501099872bb45ddb076cfc323d563588096d2b66b1ecba3724534943f651ace2bfe591482570700616500dc3398552e4f9ff0c37d DIST mdadm-4.3.tar.xz 465820 BLAKE2B 3b6955339adb6c254a69d698e3b807838f8840e37f7f94280f4a1fbffb082ee694309f4b6f9adc8edfa2071fde324bf00ae0493d5b2e6c8d87796783dfa3ee1c SHA512 e44977f2f80d2471cb313803a60c92dafe8282ac06bbbfd41ae90ca493c64a3da94db924538788d045fd7f0667333912dabedb0b070f9abf5c0540b32e0fa08f +DIST mdadm-4.4.tar.gz 619823 BLAKE2B d368681d94e31db2127a1114ad21b76647ee4b62f701705a93ca8482a58ec10d9cd58c5394bb346da0c58339f759fa6168441250a504931e43c0943b74ceef85 SHA512 08682b27f41a230f188d3b61e22e95ff8808b36c8fc2cba1dff443d39a72b35ba2eaf29ed64c7e5583c177fe6b71df983ec9a80a4128d8f07d58b7435d4700f6 DIST mdadm_4.2~rc2-7.debian.tar.xz 89904 BLAKE2B dd04f2dd044d0bca85920eaf5c79a288d69c47a7ad7e36509a126c01ef63bd045d7e0530450650028de39d74ad852995ca080c3a73dbcb1cf1b3783118109f35 SHA512 3d36533d2713b663606919b2bfec18b15e18a6a0194e333e38e4a58f175da96af7b1fe16f0c36ee148e14492a4e0710b9fad6ac7856495b63c0176ebb7333be6 DIST mdadm_4.3-1.debian.tar.xz 86972 BLAKE2B 52af9ddacc402d8c3318bac31b4cd5ac3045e564832546146ba0a18d6a43866ae2c21270ac15f48df98c4f76af0eeae41679ea9e0e265dad44914bd58f27d689 SHA512 1c5203523f0c7fe271d850ab4ad376a449e870f8f1549dc4460adede1f59a1a364e741562954297e7848bae19d1cfe273a31f1bfaf739dd37559a0666abd8517 +DIST mdadm_4.4-3.debian.tar.xz 88948 BLAKE2B 48d2af9477b420f1bbaffebbeaf2389038f8f58846264fcda5f25d72c64c5543a2cd73eb3fba4c7dc834810e3367f571628bdcc43989724f773fc3789514c765 SHA512 8be55fb40e21ad4026339e8e03df1c4889b66f36d4c41627dd60528dc424e5faa10cb20e8e3fbe737eb9af4705eed10bd4e7017353e773ac73cbeaaa3670d2ff EBUILD mdadm-4.2-r3.ebuild 2755 BLAKE2B 357a4ce0b9984794d58d3166ac86a5bbf12bb6023bca09bf9110679ed98fd2e77023abb958669539248a0cadbedabe24b5df70cd8249163af5775ecb4eb8b337 SHA512 fbd1eee99aabf7f10a8c9487a0e6752bf2c461d48b9ee358b9bd91374a7f3527a1fa14925bcddde68c8ecc644d340246abd6a9e27941feb6f75c1f3b98895d5d -EBUILD mdadm-4.3-r1.ebuild 3444 BLAKE2B d59d2d7c2bb587760f4a24ff8e80126668e100483120601f729089bb5c3cc5d334c79fbdd9818fdb0b4de7c6110ca1921363d76cadf1413cb74d8dc85f354e9c SHA512 4ffb891f009f735d1e4d460d85839190b8c2343d99a90204ca7037528903e39e0e61e62fb5038a346bbf38ece2c1d01d7210303438a72abbbbfe94870a8a03b7 +EBUILD mdadm-4.3-r1.ebuild 3594 BLAKE2B 3f01cd2e67f704b21bdca3d825446f101d1e28432af01ab534cacd4c00138ea2701a7fb534dcc18363ea06b4bc92cacc6912de547cde99db8f11b3b69919fee5 SHA512 2c164ff4b41110a97b885020e16279d281cca2011ffa43f9fa50a3d6a1f16c23b7b220f68d2de3506ffb293d5ca7eaa69e816558f77fadffaadee57869841254 EBUILD mdadm-4.3.ebuild 3468 BLAKE2B 74e6729c7e8206417186705de2ea9bd948f9976522a8329aff54cc4575d62f66b32720b6624f4ca1319400fe899a7a49621f2896a83ca1f8dc715c06edf1363d SHA512 6f09c484979142d741e3175b667fdf8512bb4109f9ee0499e71fa61aeec47d5d759ff1a969e71be789c47b87f96ea8f162048576a8da5757ef6636e8c27072b0 -MISC metadata.xml 418 BLAKE2B de9c0675d188ad6ad98f008b9d07967018bc9b97e28f30681693f3003a3b99e46d10af48944034fc5e6c401d0ac662473b20cd369f53ab38b80c2d2839604ff7 SHA512 a3889c19874875d1e511fbf192ef69b870da79e0e1a60026d135c2b45a5f7aa26456bc22a2fd8d4167fc968f08f1c297d4dbbe1cb21c68f61976534675f38c3b +EBUILD mdadm-4.4.ebuild 2885 BLAKE2B 1989695d19c0c5fcb125ae24644b3541a887fb64985a91e1fba174bbe1e7e915b4ce5f6d4d8f7159152c55a110de04e76b70ae5e4e9289a7e00ea028376fdf93 SHA512 0a20c7c4d0d99091a665646e30969be53723de99d0f26e89fe23d967bde841ee5f6227b5a2e5fa1dff0f42f9f3de1d2dfa726e7e8775186629a54f66f5e2ba2d +MISC metadata.xml 480 BLAKE2B 95eb128ef37a0fbd10b2f424b85b9e0c6c13bb6986788f98c0b0e7b9229bc6bff086c8fe379ec0706dd75a213b9d863f1faaffe29f0866cc6284048fd9befb84 SHA512 54f7d349c492e492a67a5de8606e4635eaabc80ec3a1d45b7db705181b70fd3d1e7a79d4be13d94a76604e1cbcba9502d09e852049a73cc6b29fc8fa1fbb4948 diff --git a/sys-fs/mdadm/files/mdadm-4.3-do-not-call-gcc-directly.patch b/sys-fs/mdadm/files/mdadm-4.3-do-not-call-gcc-directly.patch new file mode 100644 index 000000000000..0ba8c45284c1 --- /dev/null +++ b/sys-fs/mdadm/files/mdadm-4.3-do-not-call-gcc-directly.patch @@ -0,0 +1,53 @@ +https://bugs.gentoo.org/931972 +https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=027b2d37a8cd56973d117107acc25a64cfe0a92f + +From b7028334f2dfbb0b11cf1fa34ecb89d5287c367b Mon Sep 17 00:00:00 2001 +From: Gwendal Grignou <gwendal@chromium.org> +Date: Wed, 15 May 2024 14:30:59 -0700 +Subject: [PATCH] Makefile: Do not call gcc directly + +When mdadm is compiled with clang, direct gcc will fail. +Make sure to use $(CC) variable instead. + +Note that Clang does not support --help=warnings -- +-print-diagnostic-options should be used instead. +So with Clang, the compilation will go through, but the +extra warning flags will never be added. + +Signed-off-by: Gwendal Grignou <gwendal@chromium.org> +--- + Makefile | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/Makefile b/Makefile +index adac7905..ec8c4226 100644 +--- a/Makefile ++++ b/Makefile +@@ -56,21 +56,21 @@ CWFLAGS += -Wp -O3 + endif + + ifeq ($(origin FALLTHROUGH), undefined) +- FALLTHROUGH := $(shell gcc -Q --help=warnings 2>&1 | grep "implicit-fallthrough" | wc -l) ++ FALLTHROUGH := $(shell $(CC) $(CFLAGS) -Q --help=warnings 2>&1 | grep "implicit-fallthrough" | wc -l) + ifneq "$(FALLTHROUGH)" "0" + CWFLAGS += -Wimplicit-fallthrough=0 + endif + endif + + ifeq ($(origin FORMATOVERFLOW), undefined) +- FORMATOVERFLOW := $(shell gcc -Q --help=warnings 2>&1 | grep "format-overflow" | wc -l) ++ FORMATOVERFLOW := $(shell $(CC) $(CFLAGS) -Q --help=warnings 2>&1 | grep "format-overflow" | wc -l) + ifneq "$(FORMATOVERFLOW)" "0" + CWFLAGS += -Wformat-overflow + endif + endif + + ifeq ($(origin STRINGOPOVERFLOW), undefined) +- STRINGOPOVERFLOW := $(shell gcc -Q --help=warnings 2>&1 | grep "stringop-overflow" | wc -l) ++ STRINGOPOVERFLOW := $(shell $(CC) $(CFLAGS) -Q --help=warnings 2>&1 | grep "stringop-overflow" | wc -l) + ifneq "$(STRINGOPOVERFLOW)" "0" + CWFLAGS += -Wstringop-overflow + endif +-- +2.45.0.215.g3402c0e53f-goog + diff --git a/sys-fs/mdadm/files/mdadm-4.3-musl-basename.patch b/sys-fs/mdadm/files/mdadm-4.3-musl-basename.patch new file mode 100644 index 000000000000..b8d0c3a7ca5c --- /dev/null +++ b/sys-fs/mdadm/files/mdadm-4.3-musl-basename.patch @@ -0,0 +1,19 @@ +https://bugs.gentoo.org/926289#c6 +https://github.com/md-raid-utilities/mdadm/commit/9dbd11e091f84eb0bf9d717283774816c4c4453d +--- a/mdadm.h ++++ b/mdadm.h +@@ -223,6 +223,14 @@ struct dlm_lksb { + struct __una_u16 { __u16 x; } __attribute__ ((packed)); + struct __una_u32 { __u32 x; } __attribute__ ((packed)); + ++/* ++ * Ensure GNU basename behavior on GLIBC less systems. ++ */ ++#ifndef __GLIBC__ ++#define basename(path) \ ++ (strrchr((path), '/') ? strrchr((path),'/') + 1 : (path)) ++#endif ++ + static inline __u16 __get_unaligned16(const void *p) + { + const struct __una_u16 *ptr = (const struct __una_u16 *)p; diff --git a/sys-fs/mdadm/files/mdadm-4.3-musl-include.patch b/sys-fs/mdadm/files/mdadm-4.3-musl-include.patch new file mode 100644 index 000000000000..da9efc9a0171 --- /dev/null +++ b/sys-fs/mdadm/files/mdadm-4.3-musl-include.patch @@ -0,0 +1,14 @@ +https://bugs.gentoo.org/926289#c7 +https://github.com/md-raid-utilities/mdadm/commit/8bda86099089b44129ef6206764f9de47a45f0db +--- a/util.c ++++ b/util.c +@@ -36,7 +36,7 @@ + #include <ctype.h> + #include <dirent.h> + #include <dlfcn.h> +- ++#include <limits.h> + + /* + * following taken from linux/blkpg.h because they aren't + diff --git a/sys-fs/mdadm/mdadm-4.3-r1.ebuild b/sys-fs/mdadm/mdadm-4.3-r1.ebuild index 65917537ec28..140f5323f71f 100644 --- a/sys-fs/mdadm/mdadm-4.3-r1.ebuild +++ b/sys-fs/mdadm/mdadm-4.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -14,7 +14,7 @@ SRC_URI="https://www.kernel.org/pub/linux/utils/raid/mdadm/${P/_/-}.tar.xz LICENSE="GPL-2" SLOT="0" [[ "${PV}" = *_rc* ]] || \ -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc x86" IUSE="static systemd +udev corosync" REQUIRED_USE="static? ( !udev )" @@ -36,6 +36,9 @@ PATCHES=( "${FILESDIR}/${PN}"-4.3-ldflags.patch "${FILESDIR}/${PN}"-4.3-no-udev.patch "${FILESDIR}/${PN}"-4.3-musl125-1.patch + "${FILESDIR}/${PN}"-4.3-do-not-call-gcc-directly.patch # 931972 + "${FILESDIR}/${PN}"-4.3-musl-basename.patch + "${FILESDIR}/${PN}"-4.3-musl-include.patch "${WORKDIR}/debian/patches/debian/0001-fix-manpages.patch" "${WORKDIR}/debian/patches/debian/0003-host-name-in-default-mailfrom.patch" "${WORKDIR}/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch" diff --git a/sys-fs/mdadm/mdadm-4.4.ebuild b/sys-fs/mdadm/mdadm-4.4.ebuild new file mode 100644 index 000000000000..5c84dc344eee --- /dev/null +++ b/sys-fs/mdadm/mdadm-4.4.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic systemd toolchain-funcs udev + +DEB_PF="4.4-3" +DESCRIPTION="Tool for running RAID systems - replacement for the raidtools" +HOMEPAGE="https://github.com/md-raid-utilities/mdadm https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/" +SRC_URI="https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/snapshot/${P}.tar.gz" +SRC_URI+=" mirror://debian/pool/main/m/mdadm/${PN}_${DEB_PF}.debian.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" +fi +IUSE="static systemd +udev corosync" +REQUIRED_USE="static? ( !udev )" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + udev? ( virtual/libudev:= ) + corosync? ( sys-cluster/corosync ) +" +RDEPEND=" + ${DEPEND} + >=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" + +PATCHES=( + "${WORKDIR}/debian/patches/debian" +) + +mdadm_emake() { + # We should probably make libdlm into USE flags (bug #573782) + local args=( + PKG_CONFIG="$(tc-getPKG_CONFIG)" + CC="$(tc-getCC)" + CWFLAGS="-Wall -fPIE" + CXFLAGS="${CFLAGS}" + LDFLAGS="${LDFLAGS}" + UDEVDIR="$(get_udevdir)" + SYSTEMD_DIR="$(systemd_get_systemunitdir)" + COROSYNC="$(usev !corosync '-DNO_COROSYNC')" + DLM="-DNO_DLM" + + # bug #732276 + STRIP= + + "$@" + ) + + emake "${args[@]}" +} + +src_compile() { + use static && append-ldflags -static + + # CPPFLAGS won't work for this + use udev || append-cflags -DNO_LIBUDEV + + # bug 907082 + use elibc_musl && append-cppflags -D_LARGEFILE64_SOURCE + + mdadm_emake all +} + +src_test() { + mdadm_emake test + + sh ./test || die +} + +src_install() { + mdadm_emake DESTDIR="${D}" install install-systemd + + einstalldocs + + # install mdcheck_start.service, needed for systemd units (bug #833000) + exeinto /usr/share/mdadm/ + doexe misc/mdcheck + + insinto /etc + newins documentation/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 + into /usr + dodoc "${WORKDIR}"/debian/local/doc/README.checkarray + dosbin "${WORKDIR}"/debian/local/bin/checkarray + insinto /etc/default + newins "${FILESDIR}"/etc-default-mdadm mdadm + + exeinto /etc/cron.weekly + newexe "${FILESDIR}"/mdadm.weekly mdadm +} + +pkg_postinst() { + udev_reload + + 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 +} + +pkg_postrm() { + udev_reload +} diff --git a/sys-fs/mdadm/metadata.xml b/sys-fs/mdadm/metadata.xml index 1ce6bb33ddd3..c5395c9d1926 100644 --- a/sys-fs/mdadm/metadata.xml +++ b/sys-fs/mdadm/metadata.xml @@ -10,5 +10,6 @@ </use> <upstream> <remote-id type="cpe">cpe:/a:mdadm_project:mdadm</remote-id> + <remote-id type="github">md-raid-utilities/mdadm</remote-id> </upstream> </pkgmetadata> |