aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-04-27 09:33:52 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-04-27 09:33:59 +0000
commit9c61c34acae3bde22e4faf6f71b433a680a94648 (patch)
treeb520dac487a620b0c9cc672ae37ee62ea2149657 /main
parentd483d30d7969a5d1121386ad5d3fa437a6fa4207 (diff)
downloadaports-9c61c34acae3bde22e4faf6f71b433a680a94648.tar.bz2
aports-9c61c34acae3bde22e4faf6f71b433a680a94648.tar.xz
main/libvirt: add virtlogd and virtlockd daemon
Diffstat (limited to 'main')
-rw-r--r--main/libvirt/APKBUILD12
-rw-r--r--main/libvirt/virtlockd.initd25
-rw-r--r--main/libvirt/virtlogd.initd24
3 files changed, 60 insertions, 1 deletions
diff --git a/main/libvirt/APKBUILD b/main/libvirt/APKBUILD
index 3c25363767..09cee959c5 100644
--- a/main/libvirt/APKBUILD
+++ b/main/libvirt/APKBUILD
@@ -2,7 +2,7 @@
pkgname=libvirt
pkgver=1.3.3
_ver="${pkgver/_rc/-rc}"
-pkgrel=1
+pkgrel=2
pkgdesc="A virtualization API for several hypervisor and container systems"
url="http://libvirt.org/"
arch="all"
@@ -26,6 +26,8 @@ subpackages="$pkgname-dev $pkgname-doc $pkgname-client $pkgname-daemon
source="http://libvirt.org/sources/$pkgname-$pkgver.tar.gz
libvirt.confd
libvirt.initd
+ virtlogd.initd
+ virtlockd.initd
musl-fix-includes.patch
fix-fortify-virnetlink.patch
"
@@ -87,6 +89,8 @@ package() {
make DESTDIR="$pkgdir" install || return 1
install -D -m755 $srcdir/$pkgname.initd $pkgdir/etc/init.d/libvirtd
install -D -m755 $srcdir/$pkgname.confd $pkgdir/etc/conf.d/libvirtd
+ install -D -m755 $srcdir/virtlogd.initd $pkgdir/etc/init.d/virtlogd
+ install -D -m755 $srcdir/virtlockd.initd $pkgdir/etc/init.d/virtlockd
rm -rf "$pkgdir"/usr/lib/charset.alias
rmdir -p "$pkgdir"/usr/lib 2>/dev/null
@@ -172,15 +176,21 @@ _common_drivers() {
md5sums="698e0949a41a2b669dbe374759aaa64b libvirt-1.3.3.tar.gz
1c84a7baeafe0a7f4e9d7ae5180311b7 libvirt.confd
3e7f800197cad204e36274b54aba2be3 libvirt.initd
+e979ad068888cc824be210bd51c82f82 virtlogd.initd
+4fb24502be354972041b37186ef5406c virtlockd.initd
9da7723b114b2d87558e92828366fbcb musl-fix-includes.patch
bc6ed2ce739dcc40542bb4e6bc94c0d3 fix-fortify-virnetlink.patch"
sha256sums="99603b8dba574bc592673fdf5c77e96cf5221e21104ab0477efeb8aba133858f libvirt-1.3.3.tar.gz
851ab3f9678f0fa9c3ee03f7fc7bd00c4ee86d5f0777eecf9eb1ffe3243adfd1 libvirt.confd
d07461d86c4db3fb74e4d4af23ff7fb1ee9e7f0ec471d9a5f3fbf0dd9ca148ad libvirt.initd
+51c030d7ba9a9dad1f927020592d7aef2dc2cd4abf38bd4ca97eee60943c7901 virtlogd.initd
+552ba1f6edf92513a3041cbd3655ce782dc413c6f60995e77e6e3245ad1ef1f2 virtlockd.initd
8dfa9dbe71ee21dc53e44bd7cc0127adde1bf3371d6b393657b386bb83f8139b musl-fix-includes.patch
84132508aeb5a5946e07426337d6fbb0208b1181d51d3c4927ef9601562ce3d3 fix-fortify-virnetlink.patch"
sha512sums="79eeb2bb07429e76dbe06957494f71b6166dc4a1b78178d39dbc870eed0a19fa78297bcb1974219f1bfbbb54e678f88ce964f7678670b073ebc0866ded61a83f libvirt-1.3.3.tar.gz
9aba6ab73219a635c64a340ee8887356e644445c9128734cbce73f5d54778378da2f10a190365ad88a7db8bc95b1fb17f0c6ca41fc41bb786c09e1afe84d65dc libvirt.confd
6dadee33f6696182971d24028d6d4e1a3036f93305d54f9ae4919dcb93e813375d981037244900b6c533f46e5132dc053cf168020d1aa1c2545c28c811469553 libvirt.initd
+36b85f473d292be8df415256d01a562131d8ae61450ba3893658090a12d589ca32215382f56f286a830b4e59ffd98fbe1d92004f2ce14ca0834451b943cd8f2f virtlogd.initd
+a4c4d26e4111931acbe7594451bf963a36c8db33c64b1bc447ab4758bb92803510bebee0511d6bc16ba80c289ab6f87e74377d47bf560412f9adb9c161a206d9 virtlockd.initd
b6142256bf2700b9e5335c60fe5628e4095a24689c31d54afcab46f46a06b9c0ae676f87f77a487377eafbec11fb7afa9b994aef48a10a39e82f47c45df008ba musl-fix-includes.patch
0ef74be8c8f0e6c6ae6e3dcf6e83dc76c1371e1eaab123589f634c22f221cc26a8f0b0de6a9f5d36510b270d4a06fae42b51b749311f3e57953e65fbfc241911 fix-fortify-virnetlink.patch"
diff --git a/main/libvirt/virtlockd.initd b/main/libvirt/virtlockd.initd
new file mode 100644
index 0000000000..ebb7ecf9fd
--- /dev/null
+++ b/main/libvirt/virtlockd.initd
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="libvirt virtual machine lock manager"
+command="/usr/sbin/virtlockd"
+command_args="-d"
+pidfile="/var/run/virtlockd.pid"
+
+extra_started_commands="reload"
+description_reload="re-exec the daemon, while maintaining locks and clients"
+
+
+depend() {
+ after ntp-client ntpd nfs nfsmount corosync
+}
+
+reload() {
+ ebegin "re-exec() virtlockd"
+
+ start-stop-daemon --signal SIGUSR1 \
+ --exec "${command}" --pidfile "${pidfile}"
+}
+
diff --git a/main/libvirt/virtlogd.initd b/main/libvirt/virtlogd.initd
new file mode 100644
index 0000000000..0d3493bd56
--- /dev/null
+++ b/main/libvirt/virtlogd.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+description="libvirt virtual machine logging manager"
+command="/usr/sbin/virtlogd"
+command_args="-d"
+pidfile="/var/run/virtlogd.pid"
+
+extra_started_commands="reload"
+description_reload="re-exec the daemon, while maintaining open connections"
+
+
+depend() {
+ after ntp-client ntpd nfs nfsmount corosync
+}
+
+reload() {
+ ebegin "re-exec() virtlogd"
+
+ start-stop-daemon --signal SIGUSR1 \
+ --exec "${command}" --pidfile "${pidfile}"
+}