diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /sys-fs/mdadm | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'sys-fs/mdadm')
| -rw-r--r-- | sys-fs/mdadm/Manifest | 6 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/etc-default-mdadm | 9 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/mdadm.confd | 7 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/mdadm.rc | 25 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/mdadm.weekly | 5 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/mdraid.confd | 11 | ||||
| -rw-r--r-- | sys-fs/mdadm/files/mdraid.rc | 52 | ||||
| -rw-r--r-- | sys-fs/mdadm/mdadm-4.4-r1.ebuild | 122 | ||||
| -rw-r--r-- | sys-fs/mdadm/mdadm-4.5-r1.ebuild | 122 | ||||
| -rw-r--r-- | sys-fs/mdadm/mdadm-4.6-r1.ebuild | 118 | ||||
| -rw-r--r-- | sys-fs/mdadm/metadata.xml | 15 |
11 files changed, 492 insertions, 0 deletions
diff --git a/sys-fs/mdadm/Manifest b/sys-fs/mdadm/Manifest new file mode 100644 index 000000000000..c9c5d912abba --- /dev/null +++ b/sys-fs/mdadm/Manifest @@ -0,0 +1,6 @@ +DIST mdadm-4.4.tar.gz 619823 BLAKE2B d368681d94e31db2127a1114ad21b76647ee4b62f701705a93ca8482a58ec10d9cd58c5394bb346da0c58339f759fa6168441250a504931e43c0943b74ceef85 SHA512 08682b27f41a230f188d3b61e22e95ff8808b36c8fc2cba1dff443d39a72b35ba2eaf29ed64c7e5583c177fe6b71df983ec9a80a4128d8f07d58b7435d4700f6 +DIST mdadm-4.5.tar.gz 623840 BLAKE2B 6cfa80514b4d51c2e8c5e3275ec3dce1a59c509fd83dbc41d395e47ed59c19df30b0382cf6dc5f3c6faf973296e341bc5e461303b3a0f6ce58da887ef0e8a418 SHA512 2b13cca2ffb8d3d4a80120016f3f646c61afa42c8c074502aaa7b1cd1fa908614f2080e575ab03d21f6fb954bc7663706622bba787af653c51ba3f8f741e8e6f +DIST mdadm-4.6.tar.gz 625532 BLAKE2B 5a2c523670cc659397b0d36f1026f944e630d422e16d3830bb5d94a03ac84118d99553f7f7d555e3f8cd445908cb2519725bc56d9516de24dd837ecdea0be3bc SHA512 d11eefdffedefecea0786f7ec034305339b7d93d75916eb9501726de0a296dc668c8d0091d1c130805a5d47122ad6d944e46bd723430c15414a360c35d8b06be +DIST mdadm_4.4-3.debian.tar.xz 88948 BLAKE2B 48d2af9477b420f1bbaffebbeaf2389038f8f58846264fcda5f25d72c64c5543a2cd73eb3fba4c7dc834810e3367f571628bdcc43989724f773fc3789514c765 SHA512 8be55fb40e21ad4026339e8e03df1c4889b66f36d4c41627dd60528dc424e5faa10cb20e8e3fbe737eb9af4705eed10bd4e7017353e773ac73cbeaaa3670d2ff +DIST mdadm_4.5-5.debian.tar.xz 92056 BLAKE2B da078b4d7f718ff57ad67cc8aaf572cab3e0bf434eb91fb581f71d41d6087f8c807731d1336e35e6cdc3e6dbbdfd1f8f62138b5a60e6de969d04c143b72cfbf9 SHA512 53e31549b3140ad049d76b57a5f5c8de2b46fdaebdac001ceb29e5aaade00e6dae681928eb9bd4572068506a420397e824d43e757a6c628fb21b111a2732e0e5 +DIST mdadm_4.6-1.debian.tar.xz 89472 BLAKE2B f56e2c5f9203b8c5538e15ae6c9d87d26a47efb224eb20204f504c3ebe7c71684a798477b3e38f6cf16d2c66761d0b2d88268557134fcab7c37180bc63e9812b SHA512 8e035346a5cf050d6a8819d93f8f9aac6a3f1477b151e5bef446f05918ed639e7259ced76359aeb2aa309ee738f5170cdb52e5f6ecb8f51d79b1c92bb2b4db42 diff --git a/sys-fs/mdadm/files/etc-default-mdadm b/sys-fs/mdadm/files/etc-default-mdadm new file mode 100644 index 000000000000..921c70b19482 --- /dev/null +++ b/sys-fs/mdadm/files/etc-default-mdadm @@ -0,0 +1,9 @@ +# Based on Debian /etc/default/mdadm + +# Gentoo comment: The cronjob checks for this value to decide to actually +# validate arrays. If missing, it does NOT actually do anything. +# AUTOCHECK: +# should mdadm run periodic redundancy checks over your arrays? See +# /etc/cron.weekly/mdadm + +#AUTOCHECK=true diff --git a/sys-fs/mdadm/files/mdadm.confd b/sys-fs/mdadm/files/mdadm.confd new file mode 100644 index 000000000000..a4ead14dc34e --- /dev/null +++ b/sys-fs/mdadm/files/mdadm.confd @@ -0,0 +1,7 @@ +# /etc/conf.d/mdadm: config file for /etc/init.d/mdadm + +# Misc options to pass to mdadm in monitor mode. +# For more info, run `mdadm --monitor --help` or see +# the mdadm(8) manpage. + +MDADM_OPTS="--syslog" diff --git a/sys-fs/mdadm/files/mdadm.rc b/sys-fs/mdadm/files/mdadm.rc new file mode 100644 index 000000000000..c5bd38b13a14 --- /dev/null +++ b/sys-fs/mdadm/files/mdadm.rc @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use logger dns net +} + +start() { + ebegin "Starting mdadm monitor" + mdadm --monitor --scan \ + --daemonise \ + --pid-file /var/run/mdadm.pid \ + ${MDADM_OPTS} + eend $? +} + +stop() { + local ret + ebegin "Stopping mdadm monitor" + start-stop-daemon --stop --pidfile /var/run/mdadm.pid + ret=$? + rm -f /var/run/mdadm.pid + eend ${ret} +} diff --git a/sys-fs/mdadm/files/mdadm.weekly b/sys-fs/mdadm/files/mdadm.weekly new file mode 100644 index 000000000000..e2b35b550fce --- /dev/null +++ b/sys-fs/mdadm/files/mdadm.weekly @@ -0,0 +1,5 @@ +#!/bin/sh +# This requires that AUTOCHECK is true in /etc/default/mdadm +if [ -x /usr/sbin/checkarray ] && [ $(date +\%d) -le 7 ]; then + /usr/sbin/checkarray --cron --all --idle --quiet +fi diff --git a/sys-fs/mdadm/files/mdraid.confd b/sys-fs/mdadm/files/mdraid.confd new file mode 100644 index 000000000000..5694d732d006 --- /dev/null +++ b/sys-fs/mdadm/files/mdraid.confd @@ -0,0 +1,11 @@ +# /etc/conf.d/mdraid: config file for /etc/init.d/mdraid + +# For people who run raid on top of some other layer (like +# dmcrypt), use rc_need to specify that requirement. See +# the runscript(8) man page for more information. + +# Most configuration happens in /etc/mdadm.conf. + +# Pass additional options when assembling raids. +# Note: This applies to all raids. +MDADM_ASSEMBLE_OPTS="" diff --git a/sys-fs/mdadm/files/mdraid.rc b/sys-fs/mdadm/files/mdraid.rc new file mode 100644 index 000000000000..6fbe4a26ea13 --- /dev/null +++ b/sys-fs/mdadm/files/mdraid.rc @@ -0,0 +1,52 @@ +#!/sbin/openrc-run +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + before checkfs fsck + after modules +} + +assemble() { + local rv + mdadm -As ${MDADM_ASSEMBLE_OPTS} 2>&1 + rv=$? + if [ ${rv} -eq 2 ]; then + # mdadm exits with status 2 when there is nothing to assemble. + # This is undocumented. + # https://bugs.gentoo.org/295397 + return 0 + fi + return "${rv}" +} + +start() { + local output + + ebegin "Starting up RAID devices" + output=$(assemble) + eend $? "${output}" + + local pat="/dev/md_d*" + set -- ${pat} + if [ "$*" != "${pat}" ] ; then + ebegin "Creating RAID device partitions" + blockdev "$@" + eend $? + # wait because vgscan runs next, and we want udev to fire + sleep 1 + fi + + return 0 +} + +stop() { + local output + + # XXX: Maybe drop this check ? + [ ! -e /etc/mdadm/mdadm.conf ] && [ ! -e /etc/mdadm.conf ] && return 0 + + ebegin "Shutting down RAID devices (mdadm)" + output=$(mdadm -Ss 2>&1) + eend $? "${output}" +} diff --git a/sys-fs/mdadm/mdadm-4.4-r1.ebuild b/sys-fs/mdadm/mdadm-4.4-r1.ebuild new file mode 100644 index 000000000000..3e0c88d505a1 --- /dev/null +++ b/sys-fs/mdadm/mdadm-4.4-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2026 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/mdadm-4.5-r1.ebuild b/sys-fs/mdadm/mdadm-4.5-r1.ebuild new file mode 100644 index 000000000000..7911df8b5b25 --- /dev/null +++ b/sys-fs/mdadm/mdadm-4.5-r1.ebuild @@ -0,0 +1,122 @@ +# Copyright 1999-2026 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.5-5" +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/mdadm-4.6-r1.ebuild b/sys-fs/mdadm/mdadm-4.6-r1.ebuild new file mode 100644 index 000000000000..e34c42a6ab27 --- /dev/null +++ b/sys-fs/mdadm/mdadm-4.6-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2026 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.6-1" +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 ~s390 ~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 + + 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 new file mode 100644 index 000000000000..1275011d0119 --- /dev/null +++ b/sys-fs/mdadm/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>base-system@gentoo.org</email> + <name>Gentoo Base System</name> + </maintainer> + <use> + <flag name="corosync">Support for corosync cluster engine</flag> + </use> + <upstream> + <remote-id type="cpe">cpe:/a:mdadm_project:mdadm</remote-id> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
