summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2016-08-07 17:07:44 +0200
committerJoerg Bornkessel <hd_brummy@gentoo.org>2016-08-07 17:07:44 +0200
commit5fe208cb9eef577aac739040e36ef3903d94d138 (patch)
tree261576470b3ba4283b8f753bed59fab38d4552a3
parentmedia-video/vdr: repoman test wrt bug 585864 (diff)
downloaddevel-5fe208cb9eef577aac739040e36ef3903d94d138.tar.gz
devel-5fe208cb9eef577aac739040e36ef3903d94d138.tar.bz2
devel-5fe208cb9eef577aac739040e36ef3903d94d138.zip
media-tv/minisatip: initial commit
Package-Manager: portage-2.3.0 Manifest-Sign-Key: 0x93EB5F4DAA5832A1
-rw-r--r--media-tv/minisatip/Manifest28
-rw-r--r--media-tv/minisatip/files/minisatip.conf113
-rw-r--r--media-tv/minisatip/files/minisatip.init31
-rw-r--r--media-tv/minisatip/metadata.xml11
-rw-r--r--media-tv/minisatip/minisatip-0.5.56_p20160716.ebuild51
5 files changed, 234 insertions, 0 deletions
diff --git a/media-tv/minisatip/Manifest b/media-tv/minisatip/Manifest
new file mode 100644
index 0000000..06e7f52
--- /dev/null
+++ b/media-tv/minisatip/Manifest
@@ -0,0 +1,28 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX minisatip.conf 6396 SHA256 ee6e33ab40057bd28ae3b8c72e80da8ec5ea9e246766bd607d4607b3b3955062 SHA512 668601e68d24a179fa9b061f8e29be2cea27097c318e0b1a8fa5744e5ac808938e41e23b31959fe8ec9623f3d4fd5305e47e1c6594f0c2af673b219e0080db81 WHIRLPOOL c05df4209a7bd50f1cedb5619dd7291204da509e21a878615617398ea16530e3bb5956042a7496102242f0f2f4651e133a747607ec426067f8f2d72e1939f1f2
+AUX minisatip.init 638 SHA256 00a10723c29ccb5c8f8aeec4650b65f6d18dab62a03dd78d21351c3106604251 SHA512 35fce7c98c6b7eae64f4e6ab99edca79f173f187aabad580e69270bf9a55af40b70f31ffe5939d1679a064c688997d22a35968852992a8d07322189aec311d98 WHIRLPOOL 8aaafe94c6148c94d21809f14c04bdfd9e4d5ebe5fe54129cd1434d328d1746b2efce64012d2e5219e8eccbf0f1eb09662aef1a12ab3d7feafbfe87e9fbc60c7
+DIST 9cf8eedf0757b63f02148526faf67b89c29eff46.tar.gz 269628 SHA256 4ad0ae675d809b47bdb6567be8e41ca3a3decb3d273ee674119e192532ac1a00 SHA512 3cfed4888404b4c09c0151218a9e3ce366ff66825718dfbd6f692aa662a56e2792c094caebec6df17f9d61cae44f8e13842f85714053b27897d82314e29e5cef WHIRLPOOL 74a8a444953c31e48746dff8bd1b7964c57b1f26e0f79c05f90c6ea2e997a6d4cec08a4365d270655276a7f2f0047a29b964ba27ca618bacccaf4f415d7b549e
+EBUILD minisatip-0.5.56_p20160716.ebuild 1064 SHA256 beb0096328c0d042ac607b11085962df1696630e80c5266284f760ed98adb4f9 SHA512 2d76c1ca40fec3c13557237b247ed831e5c63b43218f7226acee20fdebc2b0dedbd1074ce8f5b875ce5057fc491c266804140678096a19a20962dba6c8fb776d WHIRLPOOL b2078aaa6b1abf1ad89e8cea4f8cea13c199ecb05dbf28cc93ab5e39c83fd6b914034c15b5b97eab1fea2a1b67e12fe427291f582f3fb0966b437a634022a4de
+MISC metadata.xml 324 SHA256 ba77460fc599f23bf4ed6e6901a508aa41f1b062fbfc1dfe503f4f3f02ed8572 SHA512 98e0654a35e5278c86afb03dc18674270ff68877c345be641ec4b836ae47a2ce97374184866c4980cf4b57db27c817e4316da337b8aec6b41e32e6b96f85e797 WHIRLPOOL ff20f14421e55e6bf273d32abf301a082fc06cbee6ff51614027622df926e9dbdfbbaf68c412aee1db96a7df6ee8565105883f4da268f51e092f7d49dffd5cb9
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.1
+Comment: Signed-off-by: Jörg Bornkessel <hd_brummy@gentoo.org>
+
+iQJ8BAEBCABmBQJXp065XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwRTBBQTFFRTFERjQ0MUQ3QTNGNTIxQzI5
+M0VCNUY0REFBNTgzMkExAAoJEJPrX02qWDKhNioP/jqP4RwfmAXwReT/a8Rj/hvr
+K8MAWy9it7EAAfD49Bq7uKPa8skjjNsGwVCK0fg+ByZWH9bbmlAxcUbztvlVZDMr
+BYpyCju131rABO9q7vUbKN0Kz2hRHcTiuwWykdnfVQWO5Ocvwb+L2B8tUtYxsvSe
+WCOG18PVZMCd2eXFtFgx+T14ycz66Ss8nKoCznZz5iOMvShiNWYX2Q1vRDHVMmKj
+b6bc3aoaQTBuNSFuQCTY4KnfVHzShxw+qAvaZ+B+HR3jkFBwKHaOY6N/smblWewX
+3EVYy/+hv6BdD4kWmeuLECMtCQ8cl07ENXr8SJeH0CK589PaWUcNljFa4CB68a2t
+s85smFV/7fy/u8odrbbsBytIJgrrJ6PHA2ytoF/qFOJD6xzQoSvkDF7bXZ5O5Cs4
+eTw98kpedBUQ5DbAz2kLJ0xG8l+NHMtrXrwvzhRxVjhRVpqOnvptfvBjPPnVnqyO
+AnXbq2cWseeNdfNR1P1om8K72ULHkTx0B/M0UGDV40zK0ldonzsptnK/zfCWr6Hz
+qJSThJeCvCNSRP3bCZ/KAq1SAxbLQBT3ZnlGXsA6NiPfNTq0euAqzywfJBq8Bj4m
+ODRyd5Nn9PRkfTIM0t6HqI7w9hfqxu4Ngg8OO23sRA+vMGE5SaSxM+Itso7KNNJT
+PVETNZUPYOwtsnQeJhHB
+=Ihd0
+-----END PGP SIGNATURE-----
diff --git a/media-tv/minisatip/files/minisatip.conf b/media-tv/minisatip/files/minisatip.conf
new file mode 100644
index 0000000..c8c8b94
--- /dev/null
+++ b/media-tv/minisatip/files/minisatip.conf
@@ -0,0 +1,113 @@
+#* -a x:y:z simulate x DVB-S2, y DVB-T2 and z DVB-C adapters on this box (0 means auto-detect)
+# * eg: -a 1:2:3
+# - it will report 1 dvb-s2 device, 2 dvb-t2 devices and 3 dvb-c devices
+
+#* -b --buffers X:Y : set the app adapter buffer to X Bytes (default: 25004) and set the kernel DVB buffer to Y Bytes (default: 5775360) - both multiple of 188
+# * eg: -b 18800:18988
+
+#* -c X: bandwidth capping for the output to the network [default: unlimited]
+# * eg: -c 2048 (does not allow minisatip to send more than 2048KB/s to all remote servers)
+
+#* -d --diseqc ADAPTER1:COMMITTED1-UNCOMMITTED1[,ADAPTER2:COMMITTED2-UNCOMMITTED2[,...]
+# * The first argument is the adapter number, second is the number of committed packets to send to a Diseqc 1.0 switch, third the number of uncommitted commands to sent to a Diseqc 1.1 switch
+# The higher number between the committed and uncommitted will be sent first.
+# * eg: -d 0:1-0 (which is the default for each adapter).
+# - note: * as adapter means apply to all adapters
+# - note: * before committed number enables fast-switch (only voltage/tone)
+
+#* -q --diseqc-timing ADAPTER1:BEFORE_CMD1-AFTER_CMD1-AFTER_REPEATED_CMD1-AFTER_SWITCH1-AFTER_BURST1-AFTER_TONE1[,...]
+# * All timing values are in ms, default adapter values are: 15-54-15-15-15-0
+# - note: * as adapter means apply to all adapters
+
+#* -D --device-id DVC_ID: specify the device id (in case there are multiple SAT>IP servers in the network)
+# * eg: -D 4
+
+#* -Y --delsys ADAPTER1:DELIVERY_SYSTEM1[,ADAPTER2:DELIVERY_SYSTEM2[,..]] - specify the delivery system of the adapters
+# * eg: --delsys 1:dvbt,2:dvbs
+# - specifies adapter 1 as a DVBT device, adapter 2 as DVB-S, which overrides the system detection of the adapter
+
+#* --dmx-source ADAPTER1:FRONTENDX - specifies the frontend number specified as argument for DMX_SET_SOURCE
+# * eg: --dmx-source 0:1 - enables DMX_SET_SOURCE ioctl call with parameter 1 for adapter 0
+
+#* -e --enable-adapters list_of_enabled adapters: enable only specified adapters
+# * eg: -e 0-2,5,7 (no spaces between parameters)
+# - keep in mind that the first adapters are the local ones starting with 0 after that are the satip adapters
+# if you have 3 local dvb cards 0-2 will be the local adapters, 3,4, ... will be the satip servers specified with argument -s
+
+#* -f foreground, otherwise run in background
+
+#* -g use syslog instead stdout for logging, multiple -g - print to stderr as well
+
+#* -i --priority prio: set the DVR thread priority to prio
+
+#* -l increases the verbosity (you can use multiple -l), logging to stdout in foreground mode or in /tmp/log when a daemon
+# * eg: -l -l -l
+
+#* -L --lnb specifies the adapter and LNB parameters (low, high and switch frequency)
+# * eg: -L *:9750-10600-11700 - sets all the adapters to use Universal LNB parameters (default)
+# * eg: -L *:10750-10750-10750 - sets the parameters for Sky NZ LNB using 10750 Mhz
+# * eg: -L 0:10750-10750-10750,1:9750-10600-11700 - adapter 0 has a SKY NZ LNB, adapter 1 has an Universal LNB
+
+#* -m xx: simulate xx as local mac address, generates UUID based on mac
+# * eg: -m 001122334455
+
+#* -o --dvbapi host:port - specify the hostname and port for the dvbapi server (oscam)
+# * eg: -o 192.168.9.9:9000
+# 192.168.9.9 is the host where oscam is running and 9000 is the port configured in dvbapi section in oscam.conf
+
+#* -p url: specify playlist url using X_SATIPM3U header
+# * eg: -p http://192.168.2.3:8080/playlist
+# - this will add X_SATIPM3U tag into the satip description xml
+
+#* -r --remote-rtp remote_rtp_host: send the rtp stream to remote_rtp_host instead of the ip the connection comes from
+# * eg: -r 192.168.7.9
+
+#* -R --document-root directory: document root for the minisatip web page and images
+# default gentoo install /usr/share/doc/minisatip-*/html
+
+#* -s --satip-servers DELSYS:host:port - specify the remote satip host and port with delivery system DELSYS, it is possible to use multiple -s
+# * DELSYS - can be one of: dvbs, dvbs2, dvbt, dvbt2, dvbc, dvbc2, isdbt, atsc, dvbcb ( - DVBC_ANNEX_B ) [default: dvbs2]
+# host - the server of the satip server
+# port - rtsp port for the satip server [default: 554]
+# eg: -s 192.168.1.2 -s dvbt:192.168.1.3:554 -s dvbc:192.168.1.4
+# - specifies 1 dvbs2 (and dvbs)satip server with address 192.168.1.2:554
+# - specifies 1 dvbt satip server with address 192.168.1.3:554
+# - specifies 1 dvbc satip server with address 192.168.1.4:554
+
+#* -O --satip-tcp Use RTSP over TCP instead of UDP for data transport
+
+#* -S --slave ADAPTER1,ADAPTER2-ADAPTER4[,..] - specify slave adapters
+# * Allows specifying bonded adapters (multiple adapters connected with a splitter to the same LNB)
+# Only one adapter needs to be master all others needs to have this parameter specified
+# eg: -S 1-2
+# - specifies adapter 1 to 2 as slave, in this case adapter 0 can be the master that controls the LNB
+# - the slave adapter will not control the LNB polarity or band, but it will just change the internal frequency to tune to a different transponder
+# - in this way the master will be responsible for changing the LNB polarity and band
+
+#* -t --cleanpsi clean the PSI from all CA information, the client will see the channel as clear if decrypted successfully
+
+#* -T --threads: enables/disable multiple threads (reduces memory consumptions) (default: ENABLED)
+
+#* -u --unicable unicable_string: defines the unicable adapters (A) and their slot (S), frequency (F) and optionally the PIN for the switch:
+# * The format is: A1:S1-F1[-PIN][,A2:S2-F2[-PIN][,...]]
+# eg: 2:0-1284[-1111]
+# * When * character is used before frequency, force 13V only for setup
+
+#* -j --jess jess_string - same format as -u
+
+#* -w --http-host http_server[:port]: specify the host and the port (if not 80) where the xml file can be downloaded from [default: default_local_ip_address:8080]
+# * eg: -w 192.168.1.1:8080
+
+#* -x --http-port port: port for listening on http [default: 8080]
+# * eg: -x 9090
+
+#* -X --xml PATH: the path to the xml that is provided as part of the satip protocol
+# * by default desc.xml is provided by minisatip without needing an additional file,
+# however satip.xml is included if it needs to be customized
+
+#* -y --rtsp-port rtsp_port: port for listening for rtsp requests [default: 554]
+# * eg: -y 5544
+# - changing this to a port > 1024 removes the requirement for minisatip to run as root
+
+
+MINISATIP_PARAM="-a 1"
diff --git a/media-tv/minisatip/files/minisatip.init b/media-tv/minisatip/files/minisatip.init
new file mode 100644
index 0000000..963a44a
--- /dev/null
+++ b/media-tv/minisatip/files/minisatip.init
@@ -0,0 +1,31 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $ID$
+
+description="miniSAT>IP Server"
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+
+ start-stop-daemon --start -x ${SVCNAME} -- ${MINISATIP_PARAM}
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+
+ start-stop-daemon --stop -x ${SVCNAME} --retry 10 -p /var/run/minisatip.pid
+
+ sleep 1
+
+ if [ -n "$(pidof minisatip)" ]; then
+ eerror "${SVCNAME} does not terminate normally - killing ${SVCNAME}"
+ killall -v -KILL minisatip
+ sleep 1
+ [ -f /var/run/minisatip.pid ] && rm /var/run/minisatip.pid
+ fi
+
+ eend $?
+}
diff --git a/media-tv/minisatip/metadata.xml b/media-tv/minisatip/metadata.xml
new file mode 100644
index 0000000..8854d69
--- /dev/null
+++ b/media-tv/minisatip/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hd_brummy@gentoo.org</email>
+ <name>Joerg Bornkessel</name>
+ </maintainer>
+ <use>
+ <flag name='dvbcsa'>enable libdvbcsa support</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-tv/minisatip/minisatip-0.5.56_p20160716.ebuild b/media-tv/minisatip/minisatip-0.5.56_p20160716.ebuild
new file mode 100644
index 0000000..aa038a0
--- /dev/null
+++ b/media-tv/minisatip/minisatip-0.5.56_p20160716.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit flag-o-matic
+
+GIT_VERSION="9cf8eedf0757b63f02148526faf67b89c29eff46"
+
+DESCRIPTION="minisatip, a SAT>IP server using local DVB-S2, DVB-C, DVB-T or ATSC cards"
+HOMEPAGE="https://minisatip.org/"
+SRC_URI="https://github.com/catalinii/minisatip/archive/${GIT_VERSION}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+
+IUSE="-dvbcsa"
+
+DEPEND="media-libs/libdvbcsa"
+# libdvbcsa default installed without use-flag handling,
+# as it fails on compile without it, need fixing by upstream
+
+S="${WORKDIR}/minisatip-${GIT_VERSION}"
+
+pkg_setup() {
+ append-flags -lpthread -fPIC -lrt
+}
+
+src_configure() {
+ local config_dvbcsa=""
+ ! use dvbcsa && config_dvbcsa="--disable-dvbcsa"
+
+ econf \
+ --prefix=/usr/bin \
+ ${config_dvbcsa} \
+ || die "configure failed"
+}
+
+src_install() {
+ dobin minisatip
+
+ newinitd "${FILESDIR}"/minisatip.init minisatip
+ newconfd "${FILESDIR}"/minisatip.conf minisatip
+
+ local HTML_DOCS="html/*"
+
+ einstalldocs
+}