diff options
author | Christopher Reimer | 2015-06-08 11:09:37 +0200 |
---|---|---|
committer | Christopher Reimer | 2015-06-08 11:09:37 +0200 |
commit | a3200e51538487e18383ed55eaaffb4d411ec8f8 (patch) | |
tree | b73b76a8f278ba9e64e2b4c58b938534341bcaa3 | |
download | aur-a3200e51538487e18383ed55eaaffb4d411ec8f8.tar.gz |
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/3bf8a4492e3b973a559fd2c53855b231e25c7e74)
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | 50-dbus2vdr.conf | 33 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..109b16db2fc4 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = vdr-dbus2vdr + pkgdesc = Expose some methods via DBus to control the vdr + pkgver = 23 + pkgrel = 2 + url = https://github.com/flensrocker/vdr-plugin-dbus2vdr + arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + license = GPL2 + makedepends = png++ + depends = dbus + depends = gcc-libs + depends = glib2 + depends = libpng + depends = vdr-api=2.2.0 + backup = etc/dbus-1/system.d/de.tvdr.vdr.conf + backup = etc/vdr/conf.avail/50-dbus2vdr.conf + backup = var/lib/vdr/plugins/dbus2vdr/network.conf + source = https://github.com/flensrocker/vdr-plugin-dbus2vdr/archive/v23.tar.gz + source = 50-dbus2vdr.conf + md5sums = 818e18b98fff2b2a937e2368226529b9 + md5sums = 52f40de6d5a5ca72528f5d65f573ccd2 + +pkgname = vdr-dbus2vdr + diff --git a/50-dbus2vdr.conf b/50-dbus2vdr.conf new file mode 100644 index 000000000000..2dfcc48a8906 --- /dev/null +++ b/50-dbus2vdr.conf @@ -0,0 +1,33 @@ +[dbus2vdr] +#--shutdown-hooks=/path/to/dir/with/shutdown-hooks +# directory with shutdown-hooks to be called by ConfirmShutdown +# usually it's /usr/share/vdr/shutdown-hooks + +#--shutdown-hooks-wrapper=/path/to/shutdown-hooks-wrapper +# path to a program that will call the shutdown-hooks with suid + +#--osd +# creates an OSD provider which will save the OSD as PNG files + +#--systemd +# use sd_notify to notify systemd + +#--upstart +# enable Upstart started/stopped events + +#--session +# connect to session D-Bus daemon + +#--no-system +# don't connect to system D-Bus daemon + +#--no-mainloop +# don't start GMainLoop (don't use this option if you don't understand) + +#--network +# enable network support for peer2peer communication +# a local dbus-daemon has to be started manually +# it has to store its address at $PLUGINDIR/network-address.conf + +#--log=n +# set plugin's loglevel
\ No newline at end of file diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..54a8135771d8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch] + +# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de> +pkgname=vdr-dbus2vdr +pkgver=23 +pkgrel=2 +_vdrapi=2.2.0 +pkgdesc="Expose some methods via DBus to control the vdr" +url="https://github.com/flensrocker/vdr-plugin-dbus2vdr" +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h') +license=('GPL2') +depends=('dbus' 'gcc-libs' 'glib2' 'libpng' "vdr-api=${_vdrapi}") +makedepends=('png++') +backup=('etc/dbus-1/system.d/de.tvdr.vdr.conf') +_plugname=$(echo $pkgname | sed 's/vdr-//g') +source=("https://github.com/flensrocker/vdr-plugin-dbus2vdr/archive/v$pkgver.tar.gz" + "50-$_plugname.conf") +backup=('etc/dbus-1/system.d/de.tvdr.vdr.conf' + "etc/vdr/conf.avail/50-$_plugname.conf" + "var/lib/vdr/plugins/$_plugname/network.conf") +md5sums=('818e18b98fff2b2a937e2368226529b9' + '52f40de6d5a5ca72528f5d65f573ccd2') + +build() { + cd "$srcdir/vdr-plugin-$_plugname-$pkgver" + make +} + +package() { + cd "$srcdir/vdr-plugin-$_plugname-$pkgver" + make DESTDIR="$pkgdir" install + + install -Dm755 "$pkgdir/usr/share/vdr-plugin-$_plugname/vdr-dbus-send.sh" \ + "$pkgdir/usr/bin/vdr-dbus-send" + + rm -r "$pkgdir/usr/share/vdr-plugin-$_plugname" + rm -r "$pkgdir/etc/init" + + install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf" + + chown -R 666:666 "$pkgdir/var/lib/vdr" +} |