first commit
build / test (push) Canceled after 0s
build / deb (amd64) (push) Canceled after 0s
build / deb (arm64) (push) Canceled after 0s
build / deb (armhf) (push) Canceled after 0s

This commit is contained in:
Mateusz Gruszczyński committed 2026-11-16 16:19:21 +01:00
commit c30064b531
93 files changed
+26367

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ]; then
if ! getent group simply-dvb >/dev/null; then
addgroup --system simply-dvb >/dev/null
fi
if ! getent passwd simply-dvb >/dev/null; then
adduser --system --ingroup simply-dvb --home /var/lib/simply-dvb \
--no-create-home --shell /usr/sbin/nologin \
--gecos "simply-dvb" simply-dvb >/dev/null
fi
for g in video render; do
if getent group "$g" >/dev/null; then
adduser simply-dvb "$g" >/dev/null 2>&1 || true
fi
done
install -d -o simply-dvb -g simply-dvb -m 0750 /var/lib/simply-dvb
if [ ! -f /var/lib/simply-dvb/simply-dvb.db ]; then
echo "simply-dvb: after the first start the 'admin' account password is in"
echo " /var/lib/simply-dvb/initial-admin-password.txt (or: journalctl -u simply-dvb)"
echo "Panel: http://<server-address>:9980/ Streams (tvheadend-compatible): http://<server-address>:9981/playlist"
fi
fi
#DEBHELPER#
exit 0
+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -e
#DEBHELPER#
if [ "$1" = "purge" ]; then
rm -rf /var/lib/simply-dvb
if getent passwd simply-dvb >/dev/null; then
deluser --system simply-dvb >/dev/null 2>&1 || true
fi
if getent group simply-dvb >/dev/null; then
delgroup --system simply-dvb >/dev/null 2>&1 || true
fi
fi
exit 0
+17
View File
@@ -0,0 +1,17 @@
# simply-dvb service configuration (systemd: EnvironmentFile)
# One VARIABLE=value per line; put comments on their own lines (systemd keeps "# ..." after a value).
# Web panel + API (streams are available here too)
SIMPLY_DVB_LISTEN=0.0.0.0:9980
# Separate tvheadend-compatible stream/playlist/EPG port (no panel). "off" = disabled.
# While tvheadend still holds this port, simply-dvb waits and takes it over once tvheadend is stopped.
SIMPLY_DVB_STREAM_LISTEN=0.0.0.0:9981
# HTSP (tvheadend binary protocol: Kodi HTSP client, TVHClient, PVR apps). "off" = disabled.
SIMPLY_DVB_HTSP_LISTEN=0.0.0.0:9982
# Data directory (database, icons, recordings). If changed, also add it to ReadWritePaths (systemctl edit simply-dvb).
SIMPLY_DVB_DATA_DIR=/var/lib/simply-dvb
# DVB device directory
SIMPLY_DVB_DEV_ROOT=/dev/dvb
# Virtual adapter with .ts files (testing without a card), e.g. /var/lib/simply-dvb/virtual
#SIMPLY_DVB_VIRTUAL_DIR=
# Log level
#RUST_LOG=simply_dvb=debug,warn
+42
View File
@@ -0,0 +1,42 @@
[Unit]
Description=simply-dvb – DVB-T/T2/C server (HLS, M3U, EPG)
Documentation=file:///usr/share/doc/simply-dvb/README.md
Wants=network-online.target
After=network-online.target systemd-udev-settle.service
[Service]
Type=simple
User=simply-dvb
Group=simply-dvb
SupplementaryGroups=video
EnvironmentFile=-/etc/default/simply-dvb
Environment=RUST_LOG=simply_dvb=info,warn
ExecStart=/usr/bin/simply-dvb serve
Restart=on-failure
RestartSec=3
StateDirectory=simply-dvb
StateDirectoryMode=0750
WorkingDirectory=/var/lib/simply-dvb
UMask=0027
# Access only to DVB devices (and DRM – ffmpeg/VAAPI acceleration)
DevicePolicy=closed
DeviceAllow=char-DVB rw
DeviceAllow=char-drm rw
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/simply-dvb
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=true
SystemCallArchitectures=native
[Install]
WantedBy=multi-user.target