mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 18:42:14 +08:00
9be04abd32
* dmraid: bump to 1.0.0.rc16.3 * mdadm: rebuild against new initscripts * initscripts: update tarball
53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=mdadm
|
|
pkgver=3.2.1
|
|
pkgrel=3
|
|
pkgdesc="A tool for managing/monitoring Linux md device arrays, also known as Software RAID"
|
|
arch=(i686 x86_64)
|
|
license=('GPL')
|
|
url="http://www.cse.unsw.edu.au/~neilb/source/mdadm/"
|
|
groups=('base')
|
|
conflicts=('mkinitcpio<0.5.99')
|
|
depends=('glibc')
|
|
backup=('etc/mdadm.conf')
|
|
source=(ftp://ftp.kernel.org/pub/linux/utils/raid/mdadm/mdadm-$pkgver.tar.bz2
|
|
mdadm
|
|
mdadm.conf
|
|
mdadm_install
|
|
mdadm_hook
|
|
segfault-3.2.1.patch)
|
|
install=mdadm.install
|
|
replaces=('raidtools')
|
|
|
|
md5sums=('d1e2549202bd79d9e99f1498d1109530'
|
|
'6df172c8f77b280018cf87eb3d313f29'
|
|
'00cbed931db4f15b6ce49e3e7d433966'
|
|
'865c3d39e5f5dae58388160b563981f1'
|
|
'1a3eb63832cecd6550f5b0a21d58cfdb'
|
|
'2fd25605bd1836a33c689ac442cb73ed')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
patch -Np1 -i ../segfault-3.2.1.patch
|
|
make CXFLAGS="$CFLAGS"
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make INSTALL=/bin/install DESTDIR=$pkgdir install
|
|
install -D -m644 ../mdadm.conf $pkgdir/etc/mdadm.conf
|
|
install -D -m755 ../mdadm $pkgdir/etc/rc.d/mdadm
|
|
install -D -m644 ../mdadm_install $pkgdir/lib/initcpio/install/mdadm
|
|
install -D -m644 ../mdadm_hook $pkgdir/lib/initcpio/hooks/mdadm
|
|
# symlink for backward compatibility
|
|
ln -sf /lib/initcpio/hooks/mdadm $pkgdir/lib/initcpio/hooks/raid
|
|
# build static mdassemble for Arch's initramfs
|
|
make MDASSEMBLE_AUTO=1 mdassemble
|
|
install -D -m755 mdassemble $pkgdir/sbin/mdassemble
|
|
}
|