PKGBUILD 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # $Id$
  2. # Maintainer: Tobias Powalowski <tpowa@archlinux.org>
  3. # Contributor: Judd Vinet <jvinet@zeroflux.org>
  4. pkgname=mdadm
  5. pkgver=4.0
  6. pkgrel=1
  7. pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
  8. arch=(i686 x86_64)
  9. license=('GPL')
  10. url="http://neil.brown.name/blog/mdadm"
  11. groups=('base')
  12. conflicts=('mkinitcpio<0.7')
  13. depends=('glibc')
  14. backup=('etc/mdadm.conf')
  15. source=("ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-${pkgver}.tar."{xz,sign}
  16. mdadm.conf
  17. mdadm_install
  18. mdadm_hook
  19. mdadm_udev_install
  20. disable-werror.patch)
  21. replaces=('raidtools')
  22. validpgpkeys=('6A86B80E1D22F21D0B26BA75397D82E0531A9C91') # Jes Sorensen
  23. md5sums=('2cb4feffea9167ba71b5f346a0c0a40d'
  24. 'SKIP'
  25. '5a37c112aa07dccdde62f9fa5b888607'
  26. 'af2f73f0094ebee66f503ca4710c7142'
  27. 'fbfb7d07efcbaf5dc61af424c5f6e352'
  28. 'b6b0bfd6487c99264578630616dfe5eb'
  29. '599745ed2bec4489e83991cff89c46ee')
  30. prepare() {
  31. cd $srcdir/$pkgname-$pkgver
  32. patch -Np0 -i ../disable-werror.patch
  33. }
  34. build() {
  35. cd $srcdir/$pkgname-$pkgver
  36. make CXFLAGS="$CFLAGS" BINDIR=/usr/bin UDEVDIR=/usr/lib/udev
  37. # build static mdassemble for Arch's initramfs
  38. make MDASSEMBLE_AUTO=1 mdassemble
  39. }
  40. package() {
  41. cd $srcdir/$pkgname-$pkgver
  42. make INSTALL=/usr/bin/install BINDIR=/usr/bin DESTDIR=$pkgdir UDEVDIR=/usr/lib/udev install
  43. make SYSTEMD_DIR=$pkgdir/usr/lib/systemd/system install-systemd
  44. install -D -m755 mdassemble $pkgdir/usr/bin/mdassemble
  45. install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf
  46. install -D -m644 ../mdadm_install $pkgdir/usr/lib/initcpio/install/mdadm
  47. install -D -m644 ../mdadm_hook $pkgdir/usr/lib/initcpio/hooks/mdadm
  48. install -D -m644 ../mdadm_udev_install $pkgdir/usr/lib/initcpio/install/mdadm_udev
  49. }