aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2015-03-04 14:46:54 +0200
committerTimo Teräs <timo.teras@iki.fi>2015-03-04 14:48:08 +0200
commitc9add0f33f15c9a63f8939529448fb591a4f7b0b (patch)
tree4df6ae469feb4a1ff00c63ec15df1dd458043ba6 /main
parent725a5b6e0093a663522366a78ccb7ff17c5728b6 (diff)
downloadaports-c9add0f33f15c9a63f8939529448fb591a4f7b0b.tar.bz2
aports-c9add0f33f15c9a63f8939529448fb591a4f7b0b.tar.xz
main/bmd-tools: new aport
Tools for access Blackmagic Design USB video encoders https://github.com/fabled/bmd-tools
Diffstat (limited to 'main')
-rw-r--r--main/bmd-tools/APKBUILD59
-rw-r--r--main/bmd-tools/bmd-streamer.confd1
-rw-r--r--main/bmd-tools/bmd-streamer.initd10
3 files changed, 70 insertions, 0 deletions
diff --git a/main/bmd-tools/APKBUILD b/main/bmd-tools/APKBUILD
new file mode 100644
index 0000000000..9ae01e958c
--- /dev/null
+++ b/main/bmd-tools/APKBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=bmd-tools
+pkgver=0.20150304
+_commitid=1dde52e6b85c2cf485f49926f573706d10a9d43f
+pkgrel=0
+pkgdesc="Tools for Blackmagic USB video encoders"
+url="https://github.com/fabled/bmd-tools"
+arch="all"
+license="GPLv2"
+depends=""
+makedepends="libusb-dev"
+install=""
+subpackages=""
+source="bmd-tools-$pkgver.tar.gz::https://github.com/fabled/bmd-tools/archive/$_commitid.tar.gz
+
+ bmd-streamer.initd
+ bmd-streamer.confd
+ "
+
+_srcdir="$srcdir"/$pkgname-$_commitid
+
+prepare() {
+ local i
+ cd "$_srcdir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_srcdir"
+ make
+}
+
+package() {
+ cd "$_srcdir"
+
+ mkdir -p "$pkgdir"/usr/bin || return 1
+
+ install -s -m755 bmd-streamer bmd-extractfw \
+ "$pkgdir"/usr/bin || return 1
+
+ install -m755 -D "$srcdir"/bmd-streamer.initd \
+ "$pkgdir"/etc/init.d/bmd-streamer || return 1
+ install -m755 -D "$srcdir"/bmd-streamer.confd \
+ "$pkgdir"/etc/conf.d/bmd-streamer || return 1
+}
+
+md5sums="157fa464bd52272ac5648556e70210fa bmd-tools-0.20150304.tar.gz
+41b4d54b43d53b0cc47fa03b9ffd9228 bmd-streamer.initd
+c2e6e9081f9938a10279f28cc1a21aae bmd-streamer.confd"
+sha256sums="9011fe5e6be8795dfd8ef6eac6b4b509f8921d99ff3be1a5f262c55737e15df5 bmd-tools-0.20150304.tar.gz
+6bfb66456b2b68c7e33bdb14742a8f35dfe9b7f403a40f40d408cfe88458c5c8 bmd-streamer.initd
+64d5d9a2698c059eb72ac9c37fc84f971cbbb937f298f05807509bb51a51d991 bmd-streamer.confd"
+sha512sums="9c27cea2b016a9606e048385cd4d097a368bf421b77797ce9e12f512e911de1ded70e5085da80b1e0bc1e3428b8ca25b548403f374bd061f8cd2bb11453238d1 bmd-tools-0.20150304.tar.gz
+60a53ada5afb2641c5daacb67be1a551d3a9feffc9a9857ca108a7bae207c1c5e284d3fdee8eda3a9543c891eb193ad0e655ca17a5e1e6916253f4ae5cd6f7e2 bmd-streamer.initd
+e3760e4b9148d9f8467db519ff8ee2a161be1556a56bef9383a3e34a20c5960fff835a68d3e4f4a31b771e861d95f6fc4537fcb53675ac5f89d76b6ad49f8cea bmd-streamer.confd"
diff --git a/main/bmd-tools/bmd-streamer.confd b/main/bmd-tools/bmd-streamer.confd
new file mode 100644
index 0000000000..0e8c099b8c
--- /dev/null
+++ b/main/bmd-tools/bmd-streamer.confd
@@ -0,0 +1 @@
+command_args="--syslog --firmware-dir /etc/bmd-streamer --exec /etc/bmd-streamer/script --respawn --video-kbps 2200 --video-max-kbps 2400 --h264-no-bframes --fps-divider 2"
diff --git a/main/bmd-tools/bmd-streamer.initd b/main/bmd-tools/bmd-streamer.initd
new file mode 100644
index 0000000000..2cae75d860
--- /dev/null
+++ b/main/bmd-tools/bmd-streamer.initd
@@ -0,0 +1,10 @@
+#!/sbin/runscript
+
+depend() {
+ after net firewall chrony
+}
+
+description="Blackmagic streamer"
+command="/usr/bin/bmd-streamer"
+command_background="yes"
+pidfile="/var/run/bmd-streamer.pid"