summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO37
-rw-r--r--PKGBUILD52
-rw-r--r--add_arm_targets.diff131
-rwxr-xr-xvtunerc-driver_kmod24
-rw-r--r--vtunerc01
-rw-r--r--vtunerc@.service17
-rw-r--r--vtunerd1
-rw-r--r--vtunerd.service11
8 files changed, 274 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7496795d131
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,37 @@
+# Generated by mksrcinfo v8
+# Sun Jan 10 21:39:34 UTC 2016
+pkgbase = vtuner.apps
+ pkgdesc = access DVB devices over the network
+ pkgver = 2.1_ec05cde3
+ pkgrel = 1
+ url = http://code.google.com/p/vtuner/
+ arch = x86_64
+ arch = i686
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ license = GPL2
+ source = vtuner.apps-ec05cde34dd77678933c912a6b4abab5d81b9a5b.tar.gz::https://github.com/lecotex/vtuner.apps/archive/ec05cde34dd77678933c912a6b4abab5d81b9a5b.tar.gz
+ source = add_arm_targets.diff
+ source = vtunerc@.service
+ source = vtunerd.service
+ source = vtunerc0
+ source = vtunerd
+ source = vtunerc-driver_kmod
+ sha256sums = 7a8d3d6e8fc2c97b9f80c1a2208faecfac92aeb3bed863b9b98f66e0a25b1a4b
+ sha256sums = 86b861ddb581fe90bee4e16643289d4fec36f923f587205eda3da85b774fab22
+ sha256sums = 870e48fb79b9065b5c98056df1aa6638c4dd3c5340331aed8a91af45f2162477
+ sha256sums = 9e4568a92caf05b5add190e792b788100aea3aac783ff1681c816a7ac87c631b
+ sha256sums = d886e2aa59c122a4feebdcacbadeef8022b597c369d527328c0aea571f66f7a0
+ sha256sums = 42f3bb7ed053afa338535bd649b4738bf142a9d039010f6bd1a356cf51e80dbc
+ sha256sums = 75afc288f0cb1be62e7d719fe0d5c1fadd703f80d8b0850e9799b0f14be4a045
+
+pkgname = vtuner-client
+ pkgdesc = VTuner client for virtual DVB's
+ depends = vtuner-module
+ backup = etc/conf.d/vtunerc0
+
+pkgname = vtuner-server
+ pkgdesc = VTuner server for broadcasting local DVB devices in network
+ backup = etc/conf.d/vtunerd
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..210dd10dc74
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Tomasz Maciej Nowak <com[dot]gmail[at]tmn505>
+pkgbase=vtuner.apps
+pkgdesc="access DVB devices over the network"
+pkgname=('vtuner-client' 'vtuner-server')
+pkgver=2.1_ec05cde3
+pkgrel=1
+_gitver=ec05cde34dd77678933c912a6b4abab5d81b9a5b
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
+url="http://code.google.com/p/vtuner/"
+license=('GPL2')
+source=("${pkgbase}-${_gitver}.tar.gz::https://github.com/lecotex/vtuner.apps/archive/${_gitver}.tar.gz"
+ 'add_arm_targets.diff'
+ 'vtunerc@.service'
+ 'vtunerd.service'
+ 'vtunerc0'
+ 'vtunerd'
+ 'vtunerc-driver_kmod')
+sha256sums=('7a8d3d6e8fc2c97b9f80c1a2208faecfac92aeb3bed863b9b98f66e0a25b1a4b'
+ '86b861ddb581fe90bee4e16643289d4fec36f923f587205eda3da85b774fab22'
+ '870e48fb79b9065b5c98056df1aa6638c4dd3c5340331aed8a91af45f2162477'
+ '9e4568a92caf05b5add190e792b788100aea3aac783ff1681c816a7ac87c631b'
+ 'd886e2aa59c122a4feebdcacbadeef8022b597c369d527328c0aea571f66f7a0'
+ '42f3bb7ed053afa338535bd649b4738bf142a9d039010f6bd1a356cf51e80dbc'
+ '75afc288f0cb1be62e7d719fe0d5c1fadd703f80d8b0850e9799b0f14be4a045')
+
+prepare() {
+ cd "${srcdir}/${pkgbase}-${_gitver}"
+ patch -p1 -i "${srcdir}/add_arm_targets.diff"
+}
+
+build() {
+ cd "${srcdir}/${pkgbase}-${_gitver}"
+ make ${CARCH} LOCVER=${pkgver}
+}
+
+package_vtuner-client() {
+ pkgdesc="VTuner client for virtual DVB's"
+ depends=('vtuner-module')
+ backup=('etc/conf.d/vtunerc0')
+ install -Dm744 "${srcdir}/${pkgbase}-${_gitver}/dist/${CARCH}/vtunerc.${CARCH}" "${pkgdir}/usr/bin/vtunerc"
+ install -Dm644 "${srcdir}/vtunerc@.service" "${pkgdir}/usr/lib/systemd/system/vtunerc@.service"
+ install -Dm744 "${srcdir}/vtunerc-driver_kmod" "${pkgdir}/usr/lib/systemd/scripts/vtunerc-driver_kmod"
+ install -Dm644 "${srcdir}/vtunerc0" "${pkgdir}/etc/conf.d/vtunerc0"
+}
+
+package_vtuner-server() {
+ pkgdesc="VTuner server for broadcasting local DVB devices in network"
+ backup=('etc/conf.d/vtunerd')
+ install -Dm744 "${srcdir}/${pkgbase}-${_gitver}/dist/${CARCH}/vtunerd.${CARCH}" "${pkgdir}/usr/bin/vtunerd"
+ install -Dm644 "${srcdir}/vtunerd.service" "${pkgdir}/usr/lib/systemd/system/vtunerd.service"
+ install -Dm644 "${srcdir}/vtunerd" "${pkgdir}/etc/conf.d/vtunerd"
+}
diff --git a/add_arm_targets.diff b/add_arm_targets.diff
new file mode 100644
index 00000000000..2f4a4386dc5
--- /dev/null
+++ b/add_arm_targets.diff
@@ -0,0 +1,131 @@
+diff '--exclude=.hg' -uprN vtuner.apps/build/arm/Makefile vtuner.apps.arm/build/arm/Makefile
+--- vtuner.apps/build/arm/Makefile 2014-11-03 13:01:25.904147000 +0100
++++ vtuner.apps.arm/build/arm/Makefile 2014-11-03 12:58:28.079147000 +0100
+@@ -8,8 +8,9 @@ LDFLAGS=-lpthread -lrt
+ DRIVER=vtuner-dvb-3
+ STRIP=$(STRIP-$(ARCH))
+
+-all: ../../dist/$(ARCH)/vtunerd.$(ARCH)
++all: ../../dist/$(ARCH)/vtunerd.$(ARCH) ../../dist/$(ARCH)/vtunerc.$(ARCH)
+ $(STRIP) ../../dist/$(ARCH)/vtunerd.$(ARCH)
++ $(STRIP) ../../dist/$(ARCH)/vtunerc.$(ARCH)
+
+ -include ../../Make.rules
+
+diff '--exclude=.hg' -uprN vtuner.apps/build/armv6h/Makefile vtuner.apps.arm/build/armv6h/Makefile
+--- vtuner.apps/build/armv6h/Makefile 1970-01-01 01:00:00.000000000 +0100
++++ vtuner.apps.arm/build/armv6h/Makefile 2014-11-03 21:27:25.164147000 +0100
+@@ -0,0 +1,19 @@
++ARCH=armv6h
++-include ../../Make.config
++
++CC=$(CC-$(ARCH))
++CXX=$(CXX-$(ARCH))
++CFLAGS=-fpic -DHAVE_DVB_API_VERSION=5
++LDFLAGS=-lpthread -lrt
++DRIVER=vtuner-dvb-3
++STRIP=$(STRIP-$(ARCH))
++
++all: ../../dist/$(ARCH)/vtunerd.$(ARCH) ../../dist/$(ARCH)/vtunerc.$(ARCH)
++ $(STRIP) ../../dist/$(ARCH)/vtunerd.$(ARCH)
++ $(STRIP) ../../dist/$(ARCH)/vtunerc.$(ARCH)
++
++-include ../../Make.rules
++
++vtuner-dvb-3.o: ../../vtuner-dvb-3.c ../../vtuner-dvb-3.h
++ $(CC) $(CFLAGS) -c -o vtuner-dvb-3.o ../../vtuner-dvb-3.c
++
+diff '--exclude=.hg' -uprN vtuner.apps/build/armv7h/Makefile vtuner.apps.arm/build/armv7h/Makefile
+--- vtuner.apps/build/armv7h/Makefile 1970-01-01 01:00:00.000000000 +0100
++++ vtuner.apps.arm/build/armv7h/Makefile 2014-11-03 21:27:41.744147000 +0100
+@@ -0,0 +1,19 @@
++ARCH=armv7h
++-include ../../Make.config
++
++CC=$(CC-$(ARCH))
++CXX=$(CXX-$(ARCH))
++CFLAGS=-fpic -DHAVE_DVB_API_VERSION=5
++LDFLAGS=-lpthread -lrt
++DRIVER=vtuner-dvb-3
++STRIP=$(STRIP-$(ARCH))
++
++all: ../../dist/$(ARCH)/vtunerd.$(ARCH) ../../dist/$(ARCH)/vtunerc.$(ARCH)
++ $(STRIP) ../../dist/$(ARCH)/vtunerd.$(ARCH)
++ $(STRIP) ../../dist/$(ARCH)/vtunerc.$(ARCH)
++
++-include ../../Make.rules
++
++vtuner-dvb-3.o: ../../vtuner-dvb-3.c ../../vtuner-dvb-3.h
++ $(CC) $(CFLAGS) -c -o vtuner-dvb-3.o ../../vtuner-dvb-3.c
++
+diff '--exclude=.hg' -uprN vtuner.apps/Make.config vtuner.apps.arm/Make.config
+--- vtuner.apps/Make.config 1970-01-01 01:00:00.000000000 +0100
++++ vtuner.apps.arm/Make.config 2014-11-09 23:49:00.096577193 +0100
+@@ -0,0 +1,20 @@
++# define the CC for target i686
++CC-i686=gcc
++INCLUDE-i686=
++
++# define the CC for target x86_64
++CC-x86_64=gcc
++INCLUDE-x86_64=
++
++# define the CC for target arm
++CC-arm=gcc
++STRIP-arm=strip
++INCLUDE-arm=
++
++CC-armv6h=gcc
++STRIP-armv6h=strip
++INCLUDE-armv6h=
++
++CC-armv7h=gcc
++STRIP-armv7h=strip
++INCLUDE-armv7h=
+diff '--exclude=.hg' -uprN vtuner.apps/Make.config.sample vtuner.apps.arm/Make.config.sample
+--- vtuner.apps/Make.config.sample 2014-11-03 13:01:25.899147000 +0100
++++ vtuner.apps.arm/Make.config.sample 2014-11-09 23:48:07.225347164 +0100
+@@ -28,3 +28,11 @@ CC-sh4=/opt/STM/STLinux-2.3/devkit/sh4/b
+ CC-arm=arm-none-linux-gnueabi-gcc
+ STRIP-arm=arm-none-linux-gnueabi-strip
+ INCLUDE-arm=-I/home/hop/nessie/2.6.22/include
++
++CC-armv6h=arm-none-linux-gnueabi-gcc
++STRIP-armv6h=arm-none-linux-gnueabi-strip
++INCLUDE-armv6h=
++
++CC-armv7h=arm-none-linux-gnueabi-gcc
++STRIP-armv7h=arm-none-linux-gnueabi-strip
++INCLUDE-armv7h=
+diff '--exclude=.hg' -uprN vtuner.apps/Makefile vtuner.apps.arm/Makefile
+--- vtuner.apps/Makefile 2014-11-03 13:01:25.904147000 +0100
++++ vtuner.apps.arm/Makefile 2014-11-03 21:29:43.024147000 +0100
+@@ -1,6 +1,6 @@
+ -include ../../Make.config
+
+-all: i686 x86_64 mipsel ppc db2 sh4 mipsel15 ipkg
++all: i686 x86_64 mipsel ppc db2 sh4 mipsel15 ipkg arm armv6h armv7h
+
+ i686:
+ $(MAKE) -C build/i686 all
+@@ -27,7 +27,13 @@ ipkg: mipsel
+ $(MAKE) -C pkgs ipkg
+
+ arm:
+- $(MAKE) -C build/arm
++ $(MAKE) -C build/arm all
++
++armv6h:
++ $(MAKE) -C build/armv6h all
++
++armv7h:
++ $(MAKE) -C build/armv7h all
+
+
+ clean:
+@@ -40,3 +46,5 @@ clean:
+ $(MAKE) -C build/mipsel15 clean
+ $(MAKE) -C pkgs clean
+ $(MAKE) -C build/arm clean
++ $(MAKE) -C build/armv6h clean
++ $(MAKE) -C build/armv7h clean
diff --git a/vtunerc-driver_kmod b/vtunerc-driver_kmod
new file mode 100755
index 00000000000..ce75c5b931f
--- /dev/null
+++ b/vtunerc-driver_kmod
@@ -0,0 +1,24 @@
+#!/usr/bin/bash
+
+load() {
+ if [ `lsmod | grep -c vtunerc` -eq 0 ]; then
+ modprobe vtunerc
+ fi
+}
+
+unload() {
+ if [ -e /run/vtunerc*.pid ]; then
+ :
+ else
+ rmmod -f vtunerc
+ fi
+}
+
+case "$1" in
+ load)
+ load
+ ;;
+ unload)
+ unload
+ ;;
+esac
diff --git a/vtunerc0 b/vtunerc0
new file mode 100644
index 00000000000..1ea27490435
--- /dev/null
+++ b/vtunerc0
@@ -0,0 +1 @@
+CLIENT_ARGS=""
diff --git a/vtunerc@.service b/vtunerc@.service
new file mode 100644
index 00000000000..6a9738aa75b
--- /dev/null
+++ b/vtunerc@.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=vtuner client
+After=network.target
+After=vtunerd.service
+After=oscam.service
+Before=vdr.service
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/conf.d/vtunerc%i
+ExecStartPre=/usr/lib/systemd/scripts/vtunerc-driver_kmod load
+ExecStart=/usr/bin/vtunerc -d/dev/vtunerc%i $CLIENT_ARGS
+ExecStopPost=/usr/bin/rm /run/vtunerc%i.pid
+ExecStopPost=/usr/lib/systemd/scripts/vtunerc-driver_kmod unload
+
+[Install]
+WantedBy=multi-user.target
diff --git a/vtunerd b/vtunerd
new file mode 100644
index 00000000000..7e14c64b9df
--- /dev/null
+++ b/vtunerd
@@ -0,0 +1 @@
+SERVER_ARGS=""
diff --git a/vtunerd.service b/vtunerd.service
new file mode 100644
index 00000000000..1abf5782ec0
--- /dev/null
+++ b/vtunerd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=vtuner server
+After=network.target
+
+[Service]
+Type=simple
+EnvironmentFile=-/etc/conf.d/vtunerd
+ExecStart=/usr/bin/vtunerd $SERVER_ARGS
+
+[Install]
+WantedBy=multi-user.target