aboutsummaryrefslogtreecommitdiffstats
path: root/testing/hvtools/APKBUILD
blob: a0382e9f25a95e171a72650e2988586a85c0446e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=hvtools
pkgver=4.4.15
_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
	hv_kvp_daemon.initd
	hv_vss_daemon.initd
	hv_fcopy_daemon.initd
	"

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
	for i in $source; do
		case $i in
		*.initd) install -Dm755 "$srcdir"/$i "$pkgdir"/etc/init.d/${i%.*} || return 1;;
		esac
	done
}

md5sums="9a78fa2eb6c68ca5a40ed5af08142599  linux-4.4.tar.xz
12786f8aef0ad2f87cbf95a68f34cb56  patch-4.4.15.xz
e32a3d8ffa326952b38bea9c8bb99c18  hv_kvp_daemon.initd
b0a970aa2050ecbe107848fcc6a3165a  hv_vss_daemon.initd
db859f35172b9994196ddbc3526a6385  hv_fcopy_daemon.initd"
sha256sums="401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2  linux-4.4.tar.xz
69fcb928e4958f87fb134d0f6acf98072655b5572dd3497c3a0844882f261bf8  patch-4.4.15.xz
023797a0d0cff285e3f08b0be17d4cb66db166c278ba0f49dfaa533ea9f4dfd8  hv_kvp_daemon.initd
1e009a2d54a8aa7750f605da01ed3fb72323640bc07597ad567d295c8af76244  hv_vss_daemon.initd
7fa3a03e938c09dd30abdc767253f722fc586ba82bcdf6ef458be05eae539acf  hv_fcopy_daemon.initd"
sha512sums="13c8459933a8b80608e226a1398e3d1848352ace84bcfb7e6a4a33cb230bbe1ab719d4b58e067283df91ce5311be6d2d595fc8c19e2ae6ecc652499415614b3e  linux-4.4.tar.xz
1522839ac4f1330db34618a20712e42ae85d4961b2d2a699723c2675f065f52b07127bb96b33944ee519448027dcd402a31503d748debb12f05fb0f2896b3d73  patch-4.4.15.xz
25590c4253da6ad248875b19e222fbc283216c4557eebfb8e471a2ed3330be19d3bd4b1bc6d7c2aa4ca7a64aa565c80887cbad711fa8e3ec477a7b56ba014166  hv_kvp_daemon.initd
afcdbc83b9c01cb2fd1d6f1844925f0860a8b3352f50e2db2e7ebf8843b338d2aea8f5b1586ef12009022249da11aa9f6cba4fbe438ff59f3a734e2d425306ce  hv_vss_daemon.initd
4f327330eb755ef04d9475a03aab625a0690efcbb8c6f614b333189aa998391d57b3ddae8baec0cfbc3b280ceca1e9271c9cfc5f68c3becb37db0fc85935422a  hv_fcopy_daemon.initd"