diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-07 14:59:56 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-04-07 16:39:41 +0000 |
commit | 5cbd2a94b748ca1f5ffa64ad55b11ef3c6650484 (patch) | |
tree | 2216969f31101ef384ba479512fecbb87737b3ae | |
parent | 1c16eb63cb8063c494256774dd9ab47d68c84735 (diff) | |
download | aports-5cbd2a94b748ca1f5ffa64ad55b11ef3c6650484.tar.bz2 aports-5cbd2a94b748ca1f5ffa64ad55b11ef3c6650484.tar.xz |
testing/hvtools: new aport
Hyper-v tools
http://www.kernel.org
-rw-r--r-- | testing/hvtools/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/hvtools/APKBUILD b/testing/hvtools/APKBUILD new file mode 100644 index 0000000000..d488b27ea0 --- /dev/null +++ b/testing/hvtools/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=hvtools +pkgver=4.4.6 +_kernver=${pkgver%.*} +pkgrel=0 +pkgdesc="Hyper-v tools" +url="http://www.kernel.org" +arch="all" +license="GPL2" +depends_dev="" +makedepends="$depends_dev linux-headers" +subpackages="" +source="http://ftp.kernel.org/pub/linux/kernel/v4.x/linux-$_kernver.tar.xz + http://ftp.kernel.org/pub/linux/kernel/v4.x/patch-$pkgver.xz + " + +builddir="$srcdir"/linux-${_kernver} + +prepare() { + cd "$builddir" + if [ "${pkgver%.0}" = "$pkgver" ]; then + msg "Applying patch-$pkgver.xz" + unxz -c < "$srcdir"/patch-$pkgver.xz | patch -p1 -N || return 1 + fi +} + +build() { + cd "$builddir"/tools/hv + make +} + +package() { + cd "$builddir"/tools/hv + install -d "$pkgdir"/usr/bin || return 1 + install -t "$pkgdir"/usr/bin \ + hv_kvp_daemon hv_vss_daemon hv_fcopy_daemon \ + || return 1 +} + +md5sums="9a78fa2eb6c68ca5a40ed5af08142599 linux-4.4.tar.xz +d48f09bf61f2500d70f839e190dc7c5a patch-4.4.6.xz" +sha256sums="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2 linux-4.4.tar.xz +efea93ff30955d445344a83c36678fa8e64111219eeafea2a41fd4ee11f79d68 patch-4.4.6.xz" +sha512sums="13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e linux-4.4.tar.xz +73da057476eb31d818eed4b66c883f5ceec65f18ec8ea60d64e48334c7681af4ed4cf7eb8684481f705446a59fd124de9449d22e28805bc9617b6608ecec491d patch-4.4.6.xz" |