mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
community/libvirt to 3.10.0-1
This commit is contained in:
parent
2d7e6e1e7d
commit
c16a682789
4 changed files with 11 additions and 19 deletions
|
@ -8,8 +8,8 @@
|
|||
# - removed qemu makedepend
|
||||
|
||||
pkgname=libvirt
|
||||
pkgver=3.9.0
|
||||
pkgrel=2
|
||||
pkgver=3.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="API for controlling virtualization engines (openvz,kvm,qemu,virtualbox,xen,etc)"
|
||||
arch=('x86_64')
|
||||
url="http://libvirt.org/"
|
||||
|
@ -67,12 +67,12 @@ validpgpkeys=('C74415BA7C9C7F78F02E1DC34606B8A5DE95BC1F')
|
|||
source=("https://libvirt.org/sources/$pkgname-$pkgver.tar.xz" #{,.asc}
|
||||
libvirtd.conf.d
|
||||
libvirtd-guests.conf.d
|
||||
libvirt.tmpfiles.d)
|
||||
libvirt.sysusers.d)
|
||||
# "ae102b5d7bccd29bc6015a3e0acefeaa90d097ac.patch::https://libvirt.org/git/?p=libvirt.git;a=patch;h=ae102b5d7bccd29bc6015a3e0acefeaa90d097ac")
|
||||
sha256sums=('89fc63213291d329d537ea96e363fd609160da080322973bd1126d431ff63424'
|
||||
sha256sums=('dff109cae2cc915b3ed5ba7e460502b85eb9a5058cda4f356d7bb7b1e3196b0e'
|
||||
'9d0597bbf2bd7892420cebaf0563236fe1483b83ae95ee6263c1ce7f44a44134'
|
||||
'0896c30100e9e40aee1eb4a2cf0cac2c0bdd5fd7b077b9d2680d90e77435ea66'
|
||||
'5c26353833944db8dc97aa63843734519d6521bd8d88497d94d910ee9d3169d8')
|
||||
'6dc7907d6d4d883ac5ea15c195af673c97cff13f4c0493d23196e94bc87f04db')
|
||||
# 'd81aba4b0e97af7d4ddf96470165e17f05243d7638b88173f88c921d2623a65a')
|
||||
|
||||
prepare() {
|
||||
|
@ -88,8 +88,6 @@ prepare() {
|
|||
tools/{libvirt-guests.service,libvirt-guests.sh,virt-pki-validate}.in \
|
||||
src/locking/virtlockd.service.in
|
||||
sed -i 's|@sbindir@|/usr/bin|g' src/locking/virtlockd.service.in
|
||||
# 78 is kvm group: https://wiki.archlinux.org/index.php/DeveloperWiki:UID_/_GID_Database
|
||||
sed -i 's|#group =.*|group="78"|' src/qemu/qemu.conf
|
||||
sed -i 's|/usr/libexec/qemu-bridge-helper|/usr/lib/qemu/qemu-bridge-helper|g' \
|
||||
src/qemu/qemu{.conf,_conf.c} \
|
||||
src/qemu/test_libvirtd_qemu.aug.in
|
||||
|
@ -109,7 +107,7 @@ build() {
|
|||
[ -f Makefile ] || ./configure --prefix=/usr --libexec=/usr/lib/"$pkgname" --sbindir=/usr/bin \
|
||||
--with-storage-lvm --without-xen --with-udev --without-hal --disable-static \
|
||||
--with-init-script=systemd \
|
||||
--with-qemu-user=nobody --with-qemu-group=nobody \
|
||||
--with-qemu-user=nobody --with-qemu-group=kvm \
|
||||
--with-netcf --with-interface --with-lxc --with-storage-iscsi
|
||||
# --with-audit
|
||||
make
|
||||
|
@ -122,18 +120,16 @@ package() {
|
|||
|
||||
install -D -m644 "$srcdir"/libvirtd.conf.d "$pkgdir"/etc/conf.d/libvirtd
|
||||
install -D -m644 "$srcdir"/libvirtd-guests.conf.d "$pkgdir"/etc/conf.d/libvirt-guests
|
||||
install -D -m644 "$srcdir"/libvirt.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/libvirt.conf
|
||||
|
||||
chown -R 0:78 "$pkgdir"/var/lib/libvirt/qemu
|
||||
chmod 0770 "$pkgdir"/var/lib/libvirt/qemu
|
||||
install -D -m644 "$srcdir"/libvirt.sysusers.d "$pkgdir"/usr/lib/sysusers.d/libvirt.conf
|
||||
|
||||
chown 0:102 "$pkgdir"/usr/share/polkit-1/rules.d
|
||||
chmod 0750 "$pkgdir"/usr/share/polkit-1/rules.d
|
||||
|
||||
rm -rf \
|
||||
"$pkgdir"/var/run \
|
||||
"$pkgdir"/etc/sysconfig \
|
||||
"$pkgdir"/etc/rc.d
|
||||
"$pkgdir"/var/lib/libvirt/qemu \
|
||||
"$pkgdir"/var/cache/libvirt/qemu \
|
||||
"$pkgdir"/etc/sysconfig
|
||||
|
||||
rm -f "$pkgdir"/etc/libvirt/qemu/networks/autostart/default.xml
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
post_install() {
|
||||
groupadd -r -f libvirt
|
||||
echo ">>> libvirt runs qemu from nobody:kvm by default"
|
||||
echo ">>> change the USER if desired in /etc/libvirt/qemu.conf"
|
||||
echo ">>> See https://wiki.archlinux.org/index.php/Libvirt for more info"
|
||||
|
|
1
community/libvirt/libvirt.sysusers.d
Normal file
1
community/libvirt/libvirt.sysusers.d
Normal file
|
@ -0,0 +1 @@
|
|||
g libvirt - -
|
|
@ -1,4 +0,0 @@
|
|||
d /run/libvirt/qemu 0755 root root -
|
||||
d /run/libvirt/lxc 0755 root root -
|
||||
d /run/libvirt/uml 0755 root root -
|
||||
d /run/libvirt/network 0755 root root -
|
Loading…
Reference in a new issue