2022-03-20 13:19:37 +01:00
|
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
# Contributor: Judd Vinet <jvinet@zeroflux.org>
|
|
|
|
|
|
|
|
pkgname=mdadm
|
2024-03-05 16:01:09 +01:00
|
|
|
pkgver=4.3
|
2022-03-31 03:00:18 +02:00
|
|
|
pkgrel=2
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgdesc='A tool for managing/monitoring Linux md device arrays, also known as Software RAID'
|
|
|
|
arch=('x86_64')
|
2024-03-05 16:01:09 +01:00
|
|
|
license=('GPL-2.0-or-later')
|
2022-03-20 13:19:37 +01:00
|
|
|
url='https://git.kernel.org/pub/scm/utils/mdadm'
|
|
|
|
makedepends=('git')
|
|
|
|
depends=('glibc' 'systemd')
|
2024-03-05 16:01:09 +01:00
|
|
|
conflicts=('mkinitcpio<38')
|
2022-03-31 03:00:18 +02:00
|
|
|
optdepends=('bash: mdcheck')
|
2022-03-20 13:19:37 +01:00
|
|
|
replaces=('raidtools')
|
|
|
|
backup=('etc/mdadm.conf')
|
2024-03-05 16:01:09 +01:00
|
|
|
validpgpkeys=('6A86B80E1D22F21D0B26BA75397D82E0531A9C91' # Jes Sorensen
|
|
|
|
'EED84966493AEEAF4B466F696F9E3E9D4EDEBB11' # Mariusz Tkaczyk
|
|
|
|
)
|
2022-03-20 13:19:37 +01:00
|
|
|
source=("git+https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git#tag=${pkgname}-${pkgver}?signed"
|
2024-03-05 16:01:09 +01:00
|
|
|
'mdadm.conf')
|
2022-03-20 13:19:37 +01:00
|
|
|
sha256sums=('SKIP'
|
2024-03-05 16:01:09 +01:00
|
|
|
'4ce1e90690282f98e4828e11576fbd61be65e97a2cdae6c7eac7035ea5ee53e5')
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd mdadm
|
|
|
|
|
|
|
|
make CXFLAGS="$CFLAGS" BINDIR=/usr/bin UDEVDIR=/usr/lib/udev
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd mdadm
|
|
|
|
|
|
|
|
make INSTALL=/usr/bin/install BINDIR=/usr/bin DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev install
|
|
|
|
make SYSTEMD_DIR="$pkgdir"/usr/lib/systemd/system install-systemd
|
|
|
|
install -D -m644 ../mdadm.conf "$pkgdir"/etc/mdadm.conf
|
2022-03-31 03:00:18 +02:00
|
|
|
install -D -m755 misc/mdcheck "$pkgdir"/usr/share/mdadm/mdcheck
|
2022-03-20 13:19:37 +01:00
|
|
|
}
|