mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-23 17:43:12 +08:00
update qemu 2.4.1
This commit is contained in:
parent
942c5d54c0
commit
fa6f24c1e9
27
celt0.5.1/PKGBUILD
Normal file
27
celt0.5.1/PKGBUILD
Normal file
@ -0,0 +1,27 @@
|
||||
# Contributor: Lauri Niskanen <ape@ape3000.com>
|
||||
# Contributor: Ray Rashif <schivmeister@gmail.com>
|
||||
# Contributor: Jon Nordby <jononor@gmail.com>
|
||||
|
||||
pkgname=celt0.5.1
|
||||
_basename=celt
|
||||
pkgver=0.5.1.3
|
||||
pkgrel=1
|
||||
pkgdesc="Low-latency audio communication codec - SPICE version"
|
||||
arch=(i686 x86_64)
|
||||
url="http://www.celt-codec.org"
|
||||
license=('BSD')
|
||||
depends=('libogg')
|
||||
source=(http://downloads.us.xiph.org/releases/celt/celt-$pkgver.tar.gz)
|
||||
md5sums=('67e7b5e45db57a6f1f0a6962f5ecb190')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/celt-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/celt-$pkgver"
|
||||
make DESTDIR="$pkgdir" install
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/BSD"
|
||||
}
|
80
ceph/PKGBUILD
Normal file
80
ceph/PKGBUILD
Normal file
@ -0,0 +1,80 @@
|
||||
# Contributor: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
|
||||
|
||||
pkgname=ceph
|
||||
pkgver=0.94.5
|
||||
pkgrel=1
|
||||
pkgdesc='Distributed, fault-tolerant storage platform delivering object, block, and file system'
|
||||
arch=('x86_64')
|
||||
url='http://ceph.com/'
|
||||
license=('GPL')
|
||||
makedepends=('boost' 'systemd' 'xfsprogs')
|
||||
depends=('boost-libs'
|
||||
'curl'
|
||||
'expat'
|
||||
'fcgi'
|
||||
'fuse'
|
||||
'gcc-libs'
|
||||
'glibc'
|
||||
'gperftools'
|
||||
'keyutils'
|
||||
'leveldb'
|
||||
'libaio'
|
||||
'libatomic_ops'
|
||||
'libedit'
|
||||
'systemd'
|
||||
'util-linux'
|
||||
'ncurses'
|
||||
'nss'
|
||||
'python2'
|
||||
'snappy')
|
||||
optdepends=('xfsprogs: support xfs backend')
|
||||
options=('emptydirs')
|
||||
source=("http://ceph.com/download/$pkgname-$pkgver.tar.bz2"
|
||||
'ceph-osd@.service'
|
||||
'ceph-mon@.service'
|
||||
'ceph-mds@.service')
|
||||
md5sums=('e7c35581f8d36d34f7cde16a862e54fb'
|
||||
'9104b5b90349d2aa7802eb89158456e8'
|
||||
'63a584aa2a4e2b0efbee4e8fd32593f0'
|
||||
'd2411c41208d95743baa6d899cc1e0b0')
|
||||
|
||||
#prepare() {
|
||||
# patch -p1 -d $pkgname-$pkgver < 01-boost-158.patch
|
||||
#}
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
export PYTHON=/usr/bin/python2
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--libexecdir=/usr/lib \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--with-radosgw
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
make -C $pkgname-$pkgver DESTDIR="$pkgdir" install
|
||||
|
||||
cd "$pkgdir"
|
||||
|
||||
# systemd
|
||||
install -dm755 usr/lib/{systemd/system,udev/rules.d}
|
||||
install -Dm644 "$srcdir"/ceph-{osd,mon,mds}@.service usr/lib/systemd/system
|
||||
install -Dm644 "$srcdir"/$pkgname-$pkgver/udev/* usr/lib/udev/rules.d
|
||||
|
||||
# fix directories path
|
||||
mv sbin/* usr/bin
|
||||
rmdir sbin
|
||||
install -d -m 755 usr/share/bash-completion
|
||||
mv etc/bash_completion.d usr/share/bash-completion/completions
|
||||
|
||||
# fix python2 shebang, did not do it in prepare() anymore because it
|
||||
# confuse automake
|
||||
find . -type f -exec \
|
||||
sed -i '1s,^#! \?/usr/bin/\(env \|\)python$,#!/usr/bin/python2,' {} \;
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
9
ceph/ceph-mds@.service
Normal file
9
ceph/ceph-mds@.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Ceph MDS %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ceph-mds -f -i %i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
9
ceph/ceph-mon@.service
Normal file
9
ceph/ceph-mon@.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Ceph MON %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ceph-mon -f -i %i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
9
ceph/ceph-osd@.service
Normal file
9
ceph/ceph-osd@.service
Normal file
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Ceph OSD %i
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/ceph-osd -f -i %i
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
63
glusterfs/PKGBUILD
Normal file
63
glusterfs/PKGBUILD
Normal file
@ -0,0 +1,63 @@
|
||||
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributors:
|
||||
# Andrei Antoukh - niwi@niwi.be - http://www.niwi.be
|
||||
# henning mueller <henning@orgizm.net>
|
||||
|
||||
pkgname=glusterfs
|
||||
pkgver=3.7.4
|
||||
pkgrel=1
|
||||
pkgdesc='Is a cluster file-system capable of scaling to several peta-bytes.'
|
||||
arch=(x86_64)
|
||||
url='http://www.gluster.org/'
|
||||
license=(GPL2 LGPL3)
|
||||
install=glusterfs.install
|
||||
depends=(fuse python2 libxml2 libaio liburcu)
|
||||
makedepends=(flex bison)
|
||||
optdepends=('rpcbind: NFS'
|
||||
'glib2: qemu-block')
|
||||
#source=($pkgname-$pkgver.tar.gz::https://github.com/gluster/glusterfs/archive/v$pkgver.tar.gz)
|
||||
source=(https://download.gluster.org/pub/gluster/glusterfs/${pkgver%.?}/$pkgver/glusterfs-$pkgver.tar.gz)
|
||||
md5sums=('3e2ab64a35a54a43413c2d88971fe32b')
|
||||
|
||||
prepare() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
find -type f -name '*.py' -exec sed -i \
|
||||
-e 's:env\ python:env\ python2:' \
|
||||
-e 's:/usr/bin/python:/usr/bin/python2:' {} \;
|
||||
}
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
./autogen.sh
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
--with-mountutildir=/usr/bin \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/share/man \
|
||||
--libexecdir=/usr/lib/$pkgname \
|
||||
--with-systemddir=/usr/lib/systemd/system \
|
||||
PYTHON=python2 LEXLIB=
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
make -j1 DESTDIR=$pkgdir install
|
||||
|
||||
mkdir -p $pkgdir/usr/lib/tmpfiles.d
|
||||
echo "d /var/run/glusterfs 0755 root root -" >$pkgdir/usr/lib/tmpfiles.d/glusterfs.conf
|
||||
|
||||
install -D -m 644 \
|
||||
$srcdir/$pkgname-$pkgver/{README.md,INSTALL,COPYING*} \
|
||||
$pkgdir/usr/share/doc/glusterfs/
|
||||
|
||||
cp -rf \
|
||||
$srcdir/$pkgname-$pkgver/doc/* \
|
||||
$pkgdir/usr/share/doc/glusterfs/
|
||||
rm -rf $pkgdir/var/run
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
8
glusterfs/glusterfs.install
Normal file
8
glusterfs/glusterfs.install
Normal file
@ -0,0 +1,8 @@
|
||||
post_install() {
|
||||
systemd-tmpfiles --create glusterfs.conf
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
systemd-tmpfiles --create glusterfs.conf
|
||||
echo "-- Read http://www.gluster.org/community/documentation/index.php/Upgrade_to_3.7 page!"
|
||||
}
|
34
libcap-ng/PKGBUILD
Normal file
34
libcap-ng/PKGBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Contributor: Ionut Biru <ibiru@archlinux.org>
|
||||
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
|
||||
|
||||
pkgname=libcap-ng
|
||||
pkgver=0.7.7
|
||||
pkgrel=1
|
||||
pkgdesc="A library making programming with POSIX capabilities easier than traditional libcap"
|
||||
arch=('x86_64')
|
||||
url="http://people.redhat.com/sgrubb/libcap-ng/"
|
||||
license=('GPL2' 'LGPL2.1')
|
||||
depends=('glibc')
|
||||
source=(http://people.redhat.com/sgrubb/$pkgname/$pkgname-$pkgver.tar.gz)
|
||||
md5sums=('3d7d126b29e2869a0257c17c8b0d9b2e')
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
./configure --prefix=/usr --enable-static=no --with-python=no
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
make DESTDIR=$pkgdir install
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
31
libiscsi/PKGBUILD
Normal file
31
libiscsi/PKGBUILD
Normal file
@ -0,0 +1,31 @@
|
||||
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
||||
# Contributor: Patryk Kowalczyk <patryk@kowalczyk.ws>
|
||||
pkgname=libiscsi
|
||||
pkgver=1.13.0
|
||||
pkgrel=1
|
||||
makedepends=('git')
|
||||
depends=('glibc' 'popt' 'libgcrypt')
|
||||
pkgdesc="Clientside library to implement the iSCSI protocol"
|
||||
arch=(x86_64)
|
||||
url="https://github.com/sahlberg/libiscsi"
|
||||
license=('LGPL')
|
||||
source=(libiscsi::git+https://github.com/sahlberg/libiscsi.git#commit=646c8b963d87f758c6c8c5cf78c654a9da31e6ad)
|
||||
md5sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --disable-static --libdir=/usr/lib
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
make check
|
||||
}
|
||||
|
||||
package () {
|
||||
cd "${srcdir}/${pkgname}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
}
|
||||
md5sums=('SKIP')
|
25
liburcu/PKGBUILD
Normal file
25
liburcu/PKGBUILD
Normal file
@ -0,0 +1,25 @@
|
||||
# Contributor: Sergej Pupykin <arch+pub@sergej.pp.ru>
|
||||
# Contributor: Christian Babeux <christian.babeux@0x80.ca>
|
||||
# Contributor: Yggdrasil <tetzank at web dot de>
|
||||
|
||||
pkgname=liburcu
|
||||
pkgver=0.8.7
|
||||
pkgrel=1
|
||||
pkgdesc="LGPLv2.1 userspace RCU (read-copy-update) library"
|
||||
arch=('x86_64')
|
||||
url="http://lttng.org/urcu"
|
||||
license=('LGPL2.1')
|
||||
source=(http://lttng.org/files/urcu/userspace-rcu-${pkgver}.tar.bz2)
|
||||
depends=('glibc')
|
||||
sha1sums=('5306999b8a3296f3dea91246d92e0a993d732898')
|
||||
|
||||
build() {
|
||||
cd ${srcdir}/userspace-rcu-${pkgver}
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/userspace-rcu-${pkgver}
|
||||
make install DESTDIR=${pkgdir}
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
KERNEL=="kvm", GROUP="kvm", MODE="0660"
|
||||
KERNEL=="vhost-net", GROUP="kvm", MODE="0660", TAG+="uaccess", OPTIONS+="static_node=vhost-net"
|
||||
KERNEL=="vhost-net", GROUP="kvm", MODE="0660", TAG+="uaccess", OPTIONS+="static_node=vhost-net"
|
||||
|
235
qemu/PKGBUILD
235
qemu/PKGBUILD
@ -1,64 +1,189 @@
|
||||
pkgname=qemu
|
||||
_pkgname=kvm
|
||||
pkgver=2.3.0
|
||||
pkgrel=2
|
||||
pkgdesc="Generic and open source processor emulator using dynamic translation to improve speed."
|
||||
arch=('x86_64')
|
||||
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
||||
# Contributor: Sébastien "Seblu" Luttringer <seblu@seblu.net>
|
||||
|
||||
pkgbase=qemu
|
||||
pkgname=('qemu'
|
||||
'qemu-arch-extra'
|
||||
'qemu-block-iscsi'
|
||||
'qemu-block-rbd'
|
||||
'qemu-block-gluster'
|
||||
'qemu-guest-agent'
|
||||
'libcacard')
|
||||
pkgver=2.4.1
|
||||
pkgrel=1
|
||||
arch=('i686' 'x86_64')
|
||||
license=('GPL2' 'LGPL2.1')
|
||||
url="http://wiki.qemu.org/Index.html"
|
||||
depends=('alsa-lib' 'bluez' 'curl' 'gnutls>=2.4.1' 'libjpeg' 'libpng' 'libpulse' 'libsasl' 'sdl' 'util-linux-ng' 'vde2' 'pixman' 'libaio' 'libseccomp')
|
||||
makedepends=('git' 'iasl' 'perl' 'python2' 'texi2html' 'bluez-libs')
|
||||
backup=('etc/qemu/target-x86_64.conf')
|
||||
provides=("qemu-kvm=${pkver}")
|
||||
conflicts=("qemu-kvm<${pkgver}")
|
||||
replaces=("qemu-kvm<${pkgver}")
|
||||
categories=('system')
|
||||
options=(!strip)
|
||||
install='qemu-kvm.install'
|
||||
source=("http://wiki.qemu.org/download/${pkgname}-${pkgver}.tar.bz2"
|
||||
"65-kvm.rules")
|
||||
md5sums=('2fab3ea4460de9b57192e5b8b311f221'
|
||||
'6c511f3ea77bde6b1a790c246da79b75')
|
||||
url='http://wiki.qemu.org/'
|
||||
makedepends=('pixman' 'libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2'
|
||||
'gnutls' 'bluez-libs' 'vde2' 'util-linux' 'curl' 'libsasl'
|
||||
'libgl' 'libpulse' 'seabios' 'libcap-ng' 'libaio' 'libseccomp'
|
||||
'libiscsi' 'libcacard' 'spice' 'spice-protocol' 'python2'
|
||||
'usbredir' 'ceph' 'glusterfs' 'libssh2' 'lzo2' 'snappy')
|
||||
source=(http://wiki.qemu.org/download/${pkgname}-${pkgver}.tar.bz2
|
||||
qemu.sysusers
|
||||
qemu-ga.service
|
||||
65-kvm.rules)
|
||||
md5sums=('a895e93ec1dafc34bc64ed676f0d55a6'
|
||||
'49778d11c28af170c4bebcc648b0ace1'
|
||||
'44ee242d758f9318c6a1ea1dae96aa3a'
|
||||
'33ab286a20242dda7743a900f369d68a')
|
||||
|
||||
build() {
|
||||
cd $srcdir/$pkgname-$pkgver
|
||||
|
||||
./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='pa alsa sdl'\
|
||||
_extra_arches=(aarch64 alpha arm armeb cris lm32 m68k microblaze microblazeel mips
|
||||
mips64 mips64el mipsel mipsn32 mipsn32el or32 ppc ppc64 ppc64abi32 ppc64le s390x
|
||||
sh4 sh4eb sparc sparc32plus sparc64 moxie ppcemb tricore unicore32 xtensa xtensaeb)
|
||||
_extra_blob=(QEMU,cgthree.bin QEMU,tcx.bin bamboo.dtb openbios-ppc
|
||||
openbios-sparc32 openbios-sparc64 palcode-clipper petalogix-ml605.dtb
|
||||
petalogix-s3adsp1800.dtb ppc_rom.bin s390-ccw.img s390-zipl.rom slof.bin
|
||||
spapr-rtas.bin u-boot.e500)
|
||||
|
||||
prepare() {
|
||||
for _p in *.patch; do
|
||||
[[ -e "$_p" ]] || continue
|
||||
msg2 "Patching $_p"
|
||||
patch -p1 -d ${pkgname}-${pkgver} < "$_p"
|
||||
done
|
||||
}
|
||||
|
||||
build ()
|
||||
{
|
||||
cd ${pkgname}-${pkgver}
|
||||
# qemu vs. make 4 == bad
|
||||
export ARFLAGS="rv"
|
||||
# http://permalink.gmane.org/gmane.comp.emulators.qemu/238740
|
||||
export CFLAGS+=' -fPIC'
|
||||
# gtk gui breaks keymappings at the moment
|
||||
./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='pa alsa sdl' \
|
||||
--python=/usr/bin/python2 --smbd=/usr/bin/smbd \
|
||||
--libexecdir=/usr/lib/qemu \
|
||||
--disable-gtk \
|
||||
--enable-linux-aio --enable-seccomp \
|
||||
--enable-bluez --enable-modules \
|
||||
--localstatedir=/var
|
||||
make
|
||||
--enable-docs --libexecdir=/usr/lib/qemu \
|
||||
--disable-gtk --enable-linux-aio --enable-seccomp \
|
||||
--enable-spice --localstatedir=/var \
|
||||
--enable-tpm \
|
||||
--enable-modules --enable-{rbd,glusterfs,libiscsi,curl}
|
||||
make V=99
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
package_qemu() {
|
||||
pkgdesc='A generic and open source processor emulator which achieves a good emulation speed by using dynamic translation'
|
||||
depends=('glibc' 'pixman' 'libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2'
|
||||
'gnutls' 'bluez-libs' 'vde2' 'util-linux' 'libsasl' 'libgl'
|
||||
'seabios' 'libcap' 'libcap-ng' 'libaio' 'libseccomp' 'libcacard'
|
||||
'spice' 'usbredir' 'lzo2' 'snappy' 'gcc-libs' 'zlib' 'bzip2' 'nspr'
|
||||
'ncurses' 'libx11' 'libusb' 'libpulse' 'libssh2' 'curl')
|
||||
replaces=('qemu-kvm')
|
||||
optdepends=('samba: SMB/CIFS server support'
|
||||
'qemu-arch-extra: extra architectures support'
|
||||
'qemu-block-iscsi: iSCSI block support'
|
||||
'qemu-block-rbd: RBD block support'
|
||||
'qemu-block-gluster: glusterfs block support')
|
||||
options=(!strip)
|
||||
install=qemu.install
|
||||
|
||||
chmod u+s "${pkgdir}/usr/lib/qemu/qemu-bridge-helper"
|
||||
# add sample config
|
||||
echo "allow br0" > ${pkgdir}/etc/qemu/bridge.conf.sample
|
||||
make -C ${pkgname}-${pkgver} DESTDIR="${pkgdir}" libexecdir="/usr/lib/qemu" install
|
||||
|
||||
# symbolic link for backwards compatibility
|
||||
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu-kvm"
|
||||
# symbolic link for to qemu binary for emulator apps
|
||||
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/qemu"
|
||||
# symbolic link for to qemu binary for emulator apps
|
||||
#ln -s qemu-system-x86_64 "${pkgdir}/usr/bin/kvm"
|
||||
cd "${pkgdir}"
|
||||
|
||||
# remove conflicting /var/run directory
|
||||
rm -r "${pkgdir}/var"
|
||||
|
||||
# install udev rules
|
||||
install -D -m644 "${srcdir}/65-kvm.rules" \
|
||||
"${pkgdir}/usr/lib/udev/rules.d/65-kvm.rules"
|
||||
# strip scripts directory
|
||||
find "${pkgdir}/usr/bin" -type f -perm -u+w 2>/dev/null | while read binary ; do
|
||||
case "$(file -bi "$binary")" in
|
||||
*application/x-executable*) # Binaries
|
||||
/usr/bin/strip $STRIP_BINARIES "$binary";;
|
||||
esac
|
||||
done
|
||||
# provided by seabios package
|
||||
rm usr/share/qemu/bios.bin
|
||||
rm usr/share/qemu/acpi-dsdt.aml
|
||||
rm usr/share/qemu/q35-acpi-dsdt.aml
|
||||
rm usr/share/qemu/bios-256k.bin
|
||||
rm usr/share/qemu/vgabios-cirrus.bin
|
||||
rm usr/share/qemu/vgabios-qxl.bin
|
||||
rm usr/share/qemu/vgabios-stdvga.bin
|
||||
rm usr/share/qemu/vgabios-vmware.bin
|
||||
|
||||
# remove conflicting /var/run directory
|
||||
rm -r var
|
||||
|
||||
# systemd stuff
|
||||
install -D -m644 "${srcdir}/65-kvm.rules" usr/lib/udev/rules.d/65-kvm.rules
|
||||
install -D -m644 "${srcdir}/qemu.sysusers" usr/lib/sysusers.d/qemu.conf
|
||||
|
||||
# bridge_helper needs suid
|
||||
# https://bugs.archlinux.org/task/32565
|
||||
chmod u+s usr/lib/qemu/qemu-bridge-helper
|
||||
|
||||
# remove libcacard files
|
||||
rm -r usr/include/cacard
|
||||
rm usr/lib/libcacard*
|
||||
rm usr/lib/pkgconfig/libcacard.pc
|
||||
rm usr/bin/vscclient
|
||||
|
||||
# remove splitted block modules
|
||||
rm usr/lib/qemu/block-{iscsi,rbd,gluster}.so
|
||||
|
||||
# remove guest agent
|
||||
rm usr/bin/qemu-ga
|
||||
|
||||
# remove extra arch
|
||||
for _arch in "${_extra_arches[@]}"; do
|
||||
rm -f usr/bin/qemu-${_arch} usr/bin/qemu-system-${_arch}
|
||||
done
|
||||
for _blob in "${_extra_blob[@]}"; do
|
||||
rm usr/share/qemu/${_blob}
|
||||
done
|
||||
}
|
||||
|
||||
package_qemu-arch-extra() {
|
||||
pkgdesc='QEMU with full support for non x86 architectures'
|
||||
depends=('glibc' 'gcc-libs' 'glib2' 'qemu')
|
||||
options=(!strip)
|
||||
|
||||
cd qemu-${pkgver}
|
||||
install -dm755 "${pkgdir}"/usr/bin
|
||||
for _arch in "${_extra_arches[@]}"; do
|
||||
install -m755 ${_arch}-*/qemu-*${_arch} "${pkgdir}"/usr/bin
|
||||
done
|
||||
|
||||
cd pc-bios
|
||||
for _blob in "${_extra_blob[@]}"; do
|
||||
install -Dm644 ${_blob} "${pkgdir}"/usr/share/qemu/${_blob}
|
||||
done
|
||||
|
||||
# manually stripping
|
||||
find "${pkgdir}"/usr/bin -type f -exec strip {} \;
|
||||
}
|
||||
|
||||
package_qemu-block-iscsi() {
|
||||
pkgdesc='QEMU iSCSI block module'
|
||||
depends=('glibc' 'glib2' 'libiscsi')
|
||||
|
||||
install -D qemu-${pkgver}/block-iscsi.so "${pkgdir}"/usr/lib/qemu/block-iscsi.so
|
||||
}
|
||||
|
||||
package_qemu-block-rbd() {
|
||||
pkgdesc='QEMU RBD block module'
|
||||
depends=('glibc' 'glib2' 'ceph')
|
||||
|
||||
install -D qemu-${pkgver}/block-rbd.so "${pkgdir}"/usr/lib/qemu/block-rbd.so
|
||||
}
|
||||
|
||||
package_qemu-block-gluster() {
|
||||
pkgdesc='QEMU GlusterFS block module'
|
||||
depends=('glibc' 'glib2' 'glusterfs')
|
||||
|
||||
install -D qemu-${pkgver}/block-gluster.so "${pkgdir}"/usr/lib/qemu/block-gluster.so
|
||||
}
|
||||
|
||||
package_qemu-guest-agent() {
|
||||
pkgdesc='QEMU Guest Agent'
|
||||
depends=('glibc' 'gcc-libs' 'glib2')
|
||||
|
||||
install -D qemu-${pkgver}/qemu-ga "${pkgdir}"/usr/bin/qemu-ga
|
||||
install -Dm644 qemu-ga.service "${pkgdir}"/usr/lib/systemd/system/qemu-ga.service
|
||||
}
|
||||
|
||||
package_libcacard() {
|
||||
pkgdesc='Common Access Card (CAC) Emulation'
|
||||
depends=('glibc' 'nss' 'nspr' 'glib2')
|
||||
|
||||
cd "${pkgdir}"
|
||||
install -d usr/{bin,lib/pkgconfig,include/cacard}
|
||||
cp -a "${srcdir}"/qemu-${pkgver}/libcacard/*.h usr/include/cacard/
|
||||
cp -a "${srcdir}"/qemu-${pkgver}/libcacard.pc usr/lib/pkgconfig/
|
||||
cp -a "${srcdir}"/qemu-${pkgver}/.libs/vscclient usr/bin/
|
||||
cp -a "${srcdir}"/qemu-${pkgver}/.libs/libcacard.so* usr/lib/
|
||||
}
|
||||
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
||||
|
8
qemu/qemu-ga.service
Normal file
8
qemu/qemu-ga.service
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=QEMU Guest Agent
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/qemu-ga
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
26
qemu/qemu.install
Normal file
26
qemu/qemu.install
Normal file
@ -0,0 +1,26 @@
|
||||
# Arg 1: the new package version
|
||||
post_install() {
|
||||
# create kvm group
|
||||
systemd-sysusers qemu.conf
|
||||
|
||||
# trigger events on modules files when already loaded
|
||||
for _f in /sys/devices/virtual/misc/{kvm,vhost-net}; do
|
||||
[[ -e "$_f" ]] && udevadm trigger "$_f"
|
||||
done
|
||||
:
|
||||
}
|
||||
|
||||
# arg 1: the new package version
|
||||
# arg 2: the old package version
|
||||
post_upgrade() {
|
||||
if (( "$(vercmp $2 0.11)" < 0 )); then
|
||||
echo "With the release of qemu and qemu-kvm 0.12.X, the kqemu kernel module"
|
||||
echo "is no longer supported and will be removed from the repositories. You"
|
||||
echo "can safely uninstall it from your system."
|
||||
fi
|
||||
if (( "$(vercmp $2 1.3.1)" < 0 )); then
|
||||
echo "With the release of qemu 1.3.0, qemu-kvm binary is removed."
|
||||
echo "You need to change the emulator path, if you use libvirt by using:"
|
||||
echo "'virsh edit <vm-name>'"
|
||||
fi
|
||||
}
|
1
qemu/qemu.sysusers
Normal file
1
qemu/qemu.sysusers
Normal file
@ -0,0 +1 @@
|
||||
g kvm 78 -
|
75
seabios/PKGBUILD
Normal file
75
seabios/PKGBUILD
Normal file
@ -0,0 +1,75 @@
|
||||
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
pkgname=seabios
|
||||
pkgver=1.9.0
|
||||
pkgrel=1
|
||||
pkgdesc="A 16-bit x86 bios"
|
||||
arch=('any')
|
||||
url="http://www.coreboot.org/SeaBIOS"
|
||||
license=('GPL3' 'LGPL3')
|
||||
makedepends=('iasl' 'python2' 'inetutils')
|
||||
options=('!makeflags' '!strip')
|
||||
source=(http://code.coreboot.org/p/seabios/downloads/get/${pkgname}-${pkgver}.tar.gz
|
||||
config.coreboot
|
||||
config.seabios-128k
|
||||
config.seabios-256k
|
||||
config.vga.isavga
|
||||
config.vga.stdvga
|
||||
config.csm
|
||||
config.vga.cirrus
|
||||
config.vga.qxl
|
||||
config.vga.vmware)
|
||||
sha1sums=('810c8f2ab6e61133e3ebe03f783bfb2b9d7e8606'
|
||||
'5f2adb09c9006def1719b8cbd4792f14a7c7f7c9'
|
||||
'39c2f98d3662933d3ce3360bc89421ec9c42612f'
|
||||
'05b912a291994226049103cbe6754976cc03532d'
|
||||
'd56482f6ee0bf9633c551b10e99e24c74d9ece1e'
|
||||
'54d4edf6eccf30883aedca348b9d2f125502fcdb'
|
||||
'590739c1d5dc6cb63bdf311ee1cfbcde6c0ccc0f'
|
||||
'84a44c04e74a09affae0d1a6e50800d10997108f'
|
||||
'5a1316a0081f91acc300f57372de18fa9c67415e'
|
||||
'5b017b16aec445df873618aaebd154aa97107148')
|
||||
|
||||
# build routine from fedora
|
||||
build_bios() {
|
||||
make clean distclean
|
||||
cp $1 .config
|
||||
make oldnoconfig V=1
|
||||
|
||||
make V=1 $4
|
||||
|
||||
cp out/$2 binaries/$3
|
||||
}
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
rm -rf binaries
|
||||
sed -i 's/python/python2/g' Makefile
|
||||
mkdir binaries
|
||||
}
|
||||
|
||||
build() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
# seabios
|
||||
build_bios ${srcdir}/config.csm Csm16.bin bios-csm.bin
|
||||
build_bios ${srcdir}/config.coreboot bios.bin.elf bios-coreboot.bin
|
||||
build_bios ${srcdir}/config.seabios-128k bios.bin bios.bin
|
||||
build_bios ${srcdir}/config.seabios-256k bios.bin bios-256k.bin
|
||||
cp out/src/fw/*dsdt*.aml binaries
|
||||
# seavgabios
|
||||
for config in ${srcdir}/{config.vga.isavga,config.vga.stdvga,config.vga.cirrus,config.vga.qxl,config.vga.vmware}; do
|
||||
name=${config#*config.vga.}
|
||||
build_bios ${config} vgabios.bin vgabios-${name}.bin out/vgabios.bin
|
||||
done
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
install -Dm644 binaries/bios.bin "${pkgdir}/usr/share/qemu/bios.bin"
|
||||
install -Dm644 binaries/bios-256k.bin "${pkgdir}/usr/share/qemu/bios-256k.bin"
|
||||
install -Dm644 binaries/bios-csm.bin "${pkgdir}/usr/share/qemu/bios-csm.bin"
|
||||
install -Dm644 binaries/bios-coreboot.bin "${pkgdir}/usr/share/qemu/bios-coreboot.bin"
|
||||
install -Dm644 binaries/*.aml "${pkgdir}/usr/share/qemu"
|
||||
install -Dm644 binaries/vgabios*.bin "${pkgdir}/usr/share/qemu"
|
||||
}
|
||||
|
2
seabios/config.coreboot
Normal file
2
seabios/config.coreboot
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_QEMU_HARDWARE=y
|
||||
CONFIG_COREBOOT=y
|
2
seabios/config.csm
Normal file
2
seabios/config.csm
Normal file
@ -0,0 +1,2 @@
|
||||
CONFIG_QEMU_HARDWARE=y
|
||||
CONFIG_CSM=y
|
9
seabios/config.seabios-128k
Normal file
9
seabios/config.seabios-128k
Normal file
@ -0,0 +1,9 @@
|
||||
# for qemu machine types 1.7 + older
|
||||
# need to turn off features (xhci,debug) to make it fit into 128k
|
||||
CONFIG_QEMU=y
|
||||
CONFIG_ROM_SIZE=128
|
||||
CONFIG_XEN=n
|
||||
CONFIG_USB_XHCI=n
|
||||
CONFIG_USB_UAS=n
|
||||
CONFIG_DEBUG_LEVEL=0
|
||||
CONFIG_DEBUG_IO=n
|
3
seabios/config.seabios-256k
Normal file
3
seabios/config.seabios-256k
Normal file
@ -0,0 +1,3 @@
|
||||
# for qemu machine types 2.0 + newer
|
||||
CONFIG_QEMU=y
|
||||
CONFIG_ROM_SIZE=256
|
3
seabios/config.vga.cirrus
Normal file
3
seabios/config.vga.cirrus
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_BUILD_VGABIOS=y
|
||||
CONFIG_VGA_CIRRUS=y
|
||||
CONFIG_VGA_PCI=y
|
3
seabios/config.vga.isavga
Normal file
3
seabios/config.vga.isavga
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_BUILD_VGABIOS=y
|
||||
CONFIG_VGA_BOCHS=y
|
||||
CONFIG_VGA_PCI=n
|
6
seabios/config.vga.qxl
Normal file
6
seabios/config.vga.qxl
Normal file
@ -0,0 +1,6 @@
|
||||
CONFIG_BUILD_VGABIOS=y
|
||||
CONFIG_VGA_BOCHS=y
|
||||
CONFIG_VGA_PCI=y
|
||||
CONFIG_OVERRIDE_PCI_ID=y
|
||||
CONFIG_VGA_VID=0x1b36
|
||||
CONFIG_VGA_DID=0x0100
|
3
seabios/config.vga.stdvga
Normal file
3
seabios/config.vga.stdvga
Normal file
@ -0,0 +1,3 @@
|
||||
CONFIG_BUILD_VGABIOS=y
|
||||
CONFIG_VGA_BOCHS=y
|
||||
CONFIG_VGA_PCI=y
|
6
seabios/config.vga.vmware
Normal file
6
seabios/config.vga.vmware
Normal file
@ -0,0 +1,6 @@
|
||||
CONFIG_BUILD_VGABIOS=y
|
||||
CONFIG_VGA_BOCHS=y
|
||||
CONFIG_VGA_PCI=y
|
||||
CONFIG_OVERRIDE_PCI_ID=y
|
||||
CONFIG_VGA_VID=0x15ad
|
||||
CONFIG_VGA_DID=0x0405
|
24
spice-protocol/PKGBUILD
Normal file
24
spice-protocol/PKGBUILD
Normal file
@ -0,0 +1,24 @@
|
||||
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
|
||||
|
||||
pkgname=spice-protocol
|
||||
pkgver=0.12.10
|
||||
pkgrel=1
|
||||
pkgdesc="Headers for SPICE protocol"
|
||||
arch=(any)
|
||||
url="http://spice-space.org"
|
||||
license=('BSD' 'LGPL2.1')
|
||||
source=(http://spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||||
}
|
||||
md5sums=('1fb9d0dcdd42dce1b476ae8aa7569bcc')
|
25
spice/PKGBUILD
Normal file
25
spice/PKGBUILD
Normal file
@ -0,0 +1,25 @@
|
||||
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Patryk Kowalczyk < patryk at kowalczyk dot ws>
|
||||
|
||||
pkgname=spice
|
||||
pkgver=0.12.6
|
||||
pkgrel=1
|
||||
pkgdesc="SPICE client and server"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://spice-space.org"
|
||||
license=('LGPL2.1')
|
||||
depends=(alsa-lib celt0.5.1 libcacard libjpeg-turbo libsasl libxinerama libxfixes libxrandr pixman)
|
||||
makedepends=(python2-pyparsing python2-six qemu spice-protocol)
|
||||
source=(http://spice-space.org/download/releases/$pkgname-$pkgver.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
PYTHON=python2 ./configure --prefix=/usr --disable-static --enable-smartcard --enable-client
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
md5sums=('605a8c8ea80bc95076c4b3539c6dd026')
|
26
usbredir/PKGBUILD
Normal file
26
usbredir/PKGBUILD
Normal file
@ -0,0 +1,26 @@
|
||||
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
||||
# Contributor: Stefano Facchini <stefano.facchini@gmail.com>
|
||||
|
||||
pkgname=usbredir
|
||||
pkgver=0.7
|
||||
pkgrel=1
|
||||
pkgdesc="USB traffic redirection protocol"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://spice-space.org/page/UsbRedir"
|
||||
license=('GPL2' 'LGPL2.1')
|
||||
depends=('libusb')
|
||||
source=(http://spice-space.org/download/usbredir/$pkgname-$pkgver.tar.bz2)
|
||||
sha256sums=('0a63a0712b5dc62be9cca44f97270fea5d1ec1fe7dde0c11dc74a01c8e2006aa')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./configure --prefix=/usr --sbindir=/usr/bin
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
make DESTDIR="$pkgdir/" install
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
Loading…
Reference in New Issue
Block a user