aboutsummaryrefslogtreecommitdiffstats
path: root/main/mkinitfs
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-25 15:23:20 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-25 15:52:14 +0000
commitc931eb2fcf5562ce4f80965fffe9f40edd9eeb6d (patch)
tree3f393d0c190687179eac0a91ea7cf2fd78607502 /main/mkinitfs
parenta6f8e9505176aff25bddee773857859709ad87a5 (diff)
downloadaports-c931eb2fcf5562ce4f80965fffe9f40edd9eeb6d.tar.bz2
aports-c931eb2fcf5562ce4f80965fffe9f40edd9eeb6d.tar.xz
main/mkinitfs: upgrade to 2.6.0
Diffstat (limited to 'main/mkinitfs')
-rw-r--r--main/mkinitfs/APKBUILD11
-rw-r--r--main/mkinitfs/mkinitfs.pre-upgrade10
2 files changed, 16 insertions, 5 deletions
diff --git a/main/mkinitfs/APKBUILD b/main/mkinitfs/APKBUILD
index 228ebbc825..0103b02fab 100644
--- a/main/mkinitfs/APKBUILD
+++ b/main/mkinitfs/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mkinitfs
-pkgver=2.5.3
+pkgver=2.6.0
_ver=${pkgver%_git*}
-pkgrel=2
+pkgrel=0
pkgdesc="Tool to generate initramfs images for Alpine"
url=http://git.alpinelinux.org/cgit/mkinitfs
depends="busybox apk-tools>=2.0"
+install="$pkgname.pre-upgrade"
triggers="$pkgname.trigger=/usr/share/kernel/*"
source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_ver.tar.xz
eglibc.patch
@@ -44,9 +45,9 @@ package() {
cd "$_builddir"
make install DESTDIR="$pkgdir" || return 1
}
-md5sums="a39c06bd75d88fab63c37be976ff2f5e mkinitfs-2.5.3.tar.xz
+md5sums="0451285f9afb152854e6d7f40c2884b3 mkinitfs-2.6.0.tar.xz
067649665a767ff1a08578e1f4e61524 eglibc.patch"
-sha256sums="86f1b40fd0bb239a0b66b3bf5f8ddffbe7b9dcee8197bb285e8e4d545b1d0ebc mkinitfs-2.5.3.tar.xz
+sha256sums="03edcc91564dbe0bf3b10a05b4e034cc1ba86fc738821d8ee25171c924c6cbd6 mkinitfs-2.6.0.tar.xz
2db513d1a058be0f5794dc74d00418807253d8ac850c9713ea0eeb0be5f3f65a eglibc.patch"
-sha512sums="cce1cdeb932902c3649dc98f7c84c0524be033fbc42b254a4728f98d9c1495d6ab31686ca4e19c178bf3be353c47b3fbd3650b09ab4cac85d32c1cfe28ebb346 mkinitfs-2.5.3.tar.xz
+sha512sums="49751040ba0a8834ad7c957624cb9ea853e245735f4724c0816b10d89310ffbe65026f6109de3d3629616fff0311002ea6df3162557db777b2112fdd91046a99 mkinitfs-2.6.0.tar.xz
3498d9930889cd776a34863733d467b50b83679ea7f91d79963c81e4f1dc138f887ef1f2a696da6d836d1f6f862dcfd2c2fb9a55b0e3b2926e9f3fc648bc5a15 eglibc.patch"
diff --git a/main/mkinitfs/mkinitfs.pre-upgrade b/main/mkinitfs/mkinitfs.pre-upgrade
new file mode 100644
index 0000000000..d9424b887d
--- /dev/null
+++ b/main/mkinitfs/mkinitfs.pre-upgrade
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+mkdir -p /etc/mkinitfs/features.d
+for i in files modules; do
+ for j in /etc/mkinitfs/$i.d/*; do
+ [ -e "$j" ] || continue
+ mv $j /etc/mkinitfs/features.d/${j##*/}.$i
+ done
+done
+exit 0