[arch-commits] Commit in mdadm/trunk (PKGBUILD)
Christian Hesse
eworm at archlinux.org
Wed Nov 13 18:16:11 UTC 2019
Date: Wednesday, November 13, 2019 @ 18:16:11
Author: eworm
Revision: 368454
build from git, cherry-pick build fixes
Modified:
mdadm/trunk/PKGBUILD
----------+
PKGBUILD | 34 ++++++++++++++++++++++++----------
1 file changed, 24 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-13 18:13:04 UTC (rev 368453)
+++ PKGBUILD 2019-11-13 18:16:11 UTC (rev 368454)
@@ -1,5 +1,6 @@
# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
# Contributor: Judd Vinet <jvinet at zeroflux.org>
+
pkgname=mdadm
pkgver=4.1
pkgrel=1
@@ -8,25 +9,38 @@
license=('GPL')
url="https://git.kernel.org/cgit/utils/mdadm"
conflicts=('mkinitcpio<0.7')
+makedepends=('git')
depends=('glibc')
+replaces=('raidtools')
backup=('etc/mdadm.conf')
-source=("https://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-4.1.tar."{xz,sign}
- mdadm.conf
- mdadm_udev_install)
-replaces=('raidtools')
validpgpkeys=('6A86B80E1D22F21D0B26BA75397D82E0531A9C91') # Jes Sorensen
-md5sums=('51bf3651bd73a06c413a2f964f299598'
- 'SKIP'
- '5a37c112aa07dccdde62f9fa5b888607'
- 'b6b0bfd6487c99264578630616dfe5eb')
+source=("git+https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git#tag=${pkgname}-${pkgver}?signed"
+ 'mdadm.conf'
+ 'mdadm_udev_install')
+sha256sums=('SKIP'
+ '4ce1e90690282f98e4828e11576fbd61be65e97a2cdae6c7eac7035ea5ee53e5'
+ '170b0e5d548416c0adb9df4e6941bea6bc33d843419c997e45ecaf9e36a58f38')
+prepare() {
+ cd mdadm
+
+ git cherry-pick -n \
+ a4f7290c20c2ff78328c9db0b18029165cfb05b2 \
+ 7039d1f8200b9599b23db5953934fdb43b0442e0 \
+ 486720e0c2418e7e2e0a16221f7c42a308622254 \
+ 9f4218274cd4a1e1f356a1617f9a1d09960cf255 \
+ 761e3bd9f5e3aafa95ad3ae50a637dc67c8774f0
+}
+
build() {
- cd $pkgname-$pkgver
+ cd mdadm
+
make CXFLAGS="$CFLAGS" BINDIR=/usr/bin UDEVDIR=/usr/lib/udev
}
package() {
- cd $pkgname-$pkgver
+ 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
More information about the arch-commits
mailing list