spice-vdagent: update to 0.8.1, systemd switch.

This commit is contained in:
Juan RP 2012-01-28 11:26:25 +01:00
parent 07bec478f8
commit 782694cd41
4 changed files with 21 additions and 60 deletions

View file

@ -1,18 +0,0 @@
#!/sbin/runscript
command=/sbin/spice-vdagentd
description="Agent daemon for Spice guests"
depend()
{
need localmount dbus
}
start_pre()
{
local vdagent_sock=/var/run/spice-vdagentd/spice-vdagent-sock
if [ -S $vdagent_sock ]; then
rm -f $vdagent_sock
fi
}

View file

@ -0,0 +1,10 @@
[Unit]
Description=Agent Daemon for Spice Guests
[Service]
ExecStartPre=/bin/modprobe uinput
ExecStartPre=-rm -f /var/run/spice-vdagentd/spice-vdagent-sock
ExecStart=/usr/sbin/spice-vdagentd
[Install]
WantedBy=multi-user.target

View file

@ -1,28 +0,0 @@
--- Makefile.orig 2011-02-21 21:24:40.916848965 +0100
+++ Makefile 2011-02-21 21:26:53.843354443 +0100
@@ -23,23 +23,18 @@ install: build
install -d $(DESTDIR)$(socketdir)
install -p -m 755 spice-vdagent $(DESTDIR)$(bindir)
install -p -m 755 spice-vdagentd $(DESTDIR)$(sbindir)
- install -d $(DESTDIR)$(initdir)
- install -p -m 755 spice-vdagentd.sh $(DESTDIR)$(initdir)/spice-vdagentd
install -d $(DESTDIR)$(xdgautostartdir)
- install -d $(DESTDIR)$(gdmautostartdir)
desktop-file-install --dir=$(DESTDIR)$(xdgautostartdir) \
spice-vdagent.desktop
- desktop-file-install --dir=$(DESTDIR)$(gdmautostartdir) \
- spice-vdagent.desktop
clean:
rm -f $(TARGETS) *.o *~
spice-vdagentd: vdagentd.o vdagentd-uinput.o udscs.o vdagent-virtio-port.o console-kit.o
- $(CC) -o $@ $^ $(shell pkg-config --libs dbus-1)
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) $(shell pkg-config --libs dbus-1) -o $@
spice-vdagent: vdagent.o vdagent-x11.o udscs.o
- $(CC) -o $@ $^ -lX11 -lXrandr -lXfixes
+ $(CC) $(CFLAGS) $^ $(LDFLAGS) -lX11 -lXrandr -lXfixes -o $@
tag:
@git tag -a -m "Tag as spice-vdagent-$(VERSION)" spice-vdagent-$(VERSION)

View file

@ -1,12 +1,11 @@
# Template file for 'spice-vdagent'
pkgname=spice-vdagent
version=0.6.3
version=0.8.1
distfiles="http://www.spicespace.org/download/releases/$pkgname-$version.tar.bz2"
build_style=gnu-makefile
revision=1
build_style=gnu-configure
short_desc="Spice agent for Linux"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=6553254b1b73cc2f2ff9ca4c1f4986b7efefca264158a16301098421bdae2498
checksum=99ec232805a6201da78d409e6f874ff0aa6bb25e7ffe623aa77752539ae7d7ff
long_desc="
Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
@ -17,21 +16,19 @@ Features:
* Support of copy and paste (text and images) between the active X-session
and the client"
keep_empty_dirs=yes
openrc_services="${pkgname}d default true"
systemd_services="${pkgname}d.service on"
Add_dependency run dbus
Add_dependency run ConsoleKit-x11
Add_dependency full desktop-file-utils
Add_dependency build pkg-config
Add_dependency build desktop-file-utils
Add_dependency build dbus-devel
Add_dependency build libXfixes-devel
Add_dependency build libX11-devel
Add_dependency build libXrandr-devel
Add_dependency build spice-protocol
Add_dependency full dbus
Add_dependency full ConsoleKit-x11
post_install()
{
# Install the OpenRC service.
vinstall ${FILESDIR}/${pkgname}d.rc 755 etc/init.d ${pkgname}d
post_install() {
rm -rf ${DESTDIR}/etc/rc.d
vinstall ${FILESDIR}/${pkgname}d.service 644 lib/systemd/system
}