Several new and updated ebuilds

This commit is contained in:
layman
2020-09-03 10:18:42 +02:00
parent 918593aa51
commit 4f2e133d1c
20 changed files with 613 additions and 4 deletions
@@ -0,0 +1,12 @@
diff -up ./src/queue.h.orig ./src/queue.h
--- ./src/queue.h.orig 2016-03-14 10:10:57.000000000 +0100
+++ ./src/queue.h 2016-07-04 17:47:22.480252171 +0200
@@ -5,7 +5,7 @@
#ifndef HTSQ_H
#define HTSQ_H
-#include "../vendor/include/sys/queue.h"
+#include <sys/queue.h>
/*
* Extra LIST-ops
@@ -0,0 +1,12 @@
diff -up ./src/input/mpegts/scanfile.c.orig ./src/input/mpegts/scanfile.c
--- ./src/input/mpegts/scanfile.c.orig 2017-05-16 13:15:24.000000000 +0200
+++ ./src/input/mpegts/scanfile.c 2017-06-01 22:30:29.150834135 +0200
@@ -903,7 +903,7 @@ scanfile_init ( const char *muxconf_path
#elif defined(PLATFORM_FREEBSD)
path = "/usr/local/share/dtv-scan-tables";
#else
- path = "/usr/share/dvb";
+ path = "/usr/share/dvbv5";
#endif
if (!initialized) {
+14
View File
@@ -0,0 +1,14 @@
# /etc/conf.d/tvheadend: config file for /etc/init.d/tvheadend
# See the tvheadend(1) manpage for more info.
# Run Tvheadend as this user.
TVHEADEND_USER="tvheadend"
# Run Tvheadend as this group.
TVHEADEND_GROUP="video"
# Path to Tvheadend config.
TVHEADEND_CONFIG="/etc/tvheadend"
# Other options you want to pass to Tvheadend.
TVHEADEND_OPTIONS=""
+19
View File
@@ -0,0 +1,19 @@
#!/sbin/openrc-run
depend() {
use net
}
start() {
ebegin "Starting Tvheadend"
start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \
-- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \
-c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping Tvheadend"
start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid
eend $?
}
@@ -0,0 +1,26 @@
[Unit]
Description=tvheadend
After=network.target
[Service]
Type=simple
User=tvheadend
Group=video
RuntimeDirectory=tvheadend
PIDFile=/run/tvheadend/tvheadend.pid
EnvironmentFile=/etc/conf.d/tvheadend
ExecStart=/usr/bin/tvheadend -p /run/tvheadend/tvheadend.pid -c "${TVHEADEND_CONFIG}" ${TVHEADEND_OPTIONS}
TimeoutStartSec=1m
TimeoutStopSec=20s
Restart=always
RestartSec=5s
DevicePolicy=closed
DeviceAllow=char-DVB rw
DeviceAllow=char-drm rw
RestrictAddressFamilies=AF_INET AF_INET6
ProtectSystem=yes
ProtectHome=yes
NoNewPrivileges=yes
[Install]
WantedBy=multi-user.target