mdadm: build static binary for use with initrd

This commit is contained in:
Juergen Daubert 2009-09-17 13:38:12 +02:00
parent 311b3f194c
commit acdc85a475
2 changed files with 5 additions and 2 deletions

View File

@ -4,6 +4,7 @@ drwxr-xr-x root/root lib/udev/rules.d/
-rw-r--r-- root/root lib/udev/rules.d/64-md-raid.rules
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/mdadm
-rwxr-xr-x root/root sbin/mdadm.static
-rwxr-xr-x root/root sbin/mdmon
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/man/

View File

@ -4,12 +4,14 @@
name=mdadm
version=3.0
release=1
release=2
source=(http://www.kernel.org/pub/linux/utils/raid/$name/$name-$version.tar.gz
$name-$version-vol_id.patch)
build() {
cd $name-$version
patch -p1 -i $SRC/$name-$version-vol_id.patch
make CXFLAGS="$CFLAGS" DESTDIR=$PKG MANDIR=/usr/man install
make CXFLAGS="$CFLAGS" all mdadm.static
make DESTDIR=$PKG MANDIR=/usr/man install
install -m755 mdadm.static $PKG/sbin
}