aboutsummaryrefslogtreecommitdiffstats
path: root/main/hvtools
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-11-07 11:12:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-11-07 11:15:46 +0000
commitef1428b0c6a5aa65442374ca24470ca12d229340 (patch)
tree48248e35acac626695931a606e204dbfa36b8b33 /main/hvtools
parent319942e85e230f88bb72c52fb6933caeb1eb82db (diff)
downloadaports-ef1428b0c6a5aa65442374ca24470ca12d229340.tar.bz2
aports-ef1428b0c6a5aa65442374ca24470ca12d229340.tar.xz
main/hvtools: move from testing
Diffstat (limited to 'main/hvtools')
-rw-r--r--main/hvtools/APKBUILD62
-rw-r--r--main/hvtools/hv_fcopy_daemon.initd10
-rw-r--r--main/hvtools/hv_kvp_daemon.initd15
-rw-r--r--main/hvtools/hv_vss_daemon.initd10
4 files changed, 97 insertions, 0 deletions
diff --git a/main/hvtools/APKBUILD b/main/hvtools/APKBUILD
new file mode 100644
index 0000000000..a0382e9f25
--- /dev/null
+++ b/main/hvtools/APKBUILD
@@ -0,0 +1,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"
diff --git a/main/hvtools/hv_fcopy_daemon.initd b/main/hvtools/hv_fcopy_daemon.initd
new file mode 100644
index 0000000000..eda7463ab0
--- /dev/null
+++ b/main/hvtools/hv_fcopy_daemon.initd
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+
+name="Hyper-V daemon: hv_fcopy_daemon"
+command=/usr/bin/hv_fcopy_daemon
+
+depend() {
+ use clock logger
+ need localmount
+}
+
diff --git a/main/hvtools/hv_kvp_daemon.initd b/main/hvtools/hv_kvp_daemon.initd
new file mode 100644
index 0000000000..71f31238f7
--- /dev/null
+++ b/main/hvtools/hv_kvp_daemon.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+
+name="Hyper-V daemon: hv_kvp_daemon"
+command=/usr/bin/hv_kvp_daemon
+
+depend() {
+ use clock logger
+ need localmount net
+}
+
+start_pre() {
+ # Delete the existing store
+ rm -rf /var/lib/hyperv
+}
+
diff --git a/main/hvtools/hv_vss_daemon.initd b/main/hvtools/hv_vss_daemon.initd
new file mode 100644
index 0000000000..049171b0a5
--- /dev/null
+++ b/main/hvtools/hv_vss_daemon.initd
@@ -0,0 +1,10 @@
+#!/sbin/openrc-run
+
+name="Hyper-V daemon: hv_vss_daemon"
+command=/usr/bin/hv_vss_daemon
+
+depend() {
+ use clock logger
+ need dev
+}
+