diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-24 15:38:44 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-12-24 15:38:44 +0000 |
commit | b6cf4b0fa33620b8493836ba097b49b90b9cb9f6 (patch) | |
tree | 808089b8136e16d5828f3735aa6a7c1d6ba31ae5 /main/mkinitfs/APKBUILD | |
parent | 63de8495d8466889f42df21c518815e1cee358ce (diff) | |
download | aports-b6cf4b0fa33620b8493836ba097b49b90b9cb9f6.tar.bz2 aports-b6cf4b0fa33620b8493836ba097b49b90b9cb9f6.tar.xz |
main/mkinifs: allow the lvm be ontop of raid
Diffstat (limited to 'main/mkinitfs/APKBUILD')
-rw-r--r-- | main/mkinitfs/APKBUILD | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD index 03edd8f643..4d04a1f055 100644 --- a/main/mkinitfs/APKBUILD +++ b/main/mkinitfs/APKBUILD @@ -1,15 +1,16 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mkinitfs pkgver=2.2.0 -pkgrel=0 +pkgrel=1 pkgdesc="Tool to generate initramfs images for Alpine" url=http://git.alpinelinux.org/cgit/mkinitfs depends="busybox apk-tools>=2.0" triggers="$pkgname.trigger:/usr/share/kernel/*" source="http://git.alpinelinux.org/cgit/$pkgname/snapshot/$pkgname-$pkgver.tar.bz2 + 0001-init-support-lvm-ontop-of-raid-devices.patch eglibc.patch " -arch="x86 x86_64" +arch="all" license="GPL-2" prepare() { @@ -17,11 +18,20 @@ prepare() { # If we are using eglibc/glibc we need to include eglibc libs # instead of uclibc libs. - case "$CHOST" in - *-gnu) - patch -p1 -i "$srcdir"/eglibc.patch || return 1 - ;; - esac + for i in $source; do + case $i in + eglibc.patch) + case "$CHOST" in + *-gnu) + patch -p1 -i "$srcdir"/eglibc.patch || return 1 + ;; + esac + ;; + *.patch) + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done } build() { @@ -34,4 +44,5 @@ package() { make install DESTDIR="$pkgdir" || return 1 } md5sums="b3abed1ee80ae69947350b795c7211e5 mkinitfs-2.2.0.tar.bz2 +eeb2edd5c5db0b00d10eea57132e0249 0001-init-support-lvm-ontop-of-raid-devices.patch e59c2f7de496fe430b07e32fd812ebe0 eglibc.patch" |