My thanks go out to =[M.I.T.M]=
I made it It was a daily project, but it's running now.
First an update to Debian Bullseye from Buster. Then noticed that PHP was updated from 7.3 to 7.4, so other systems were no longer running ( Nextcloud ).
That was then repaired and it could finally start.
sudo mkdir /var/tmp/tvheadend
sudo mkdir /var/tmp/libdvbcsa
I downloaded the 2 patches HERE and pushed them into the tmp directory. Adjusted rights.
Git wanted to be installed:
sudo apt-get install git-all
Then like =[M.I.T.M]= starting with this:
sudo git clone https://github.com/glenvt18/libdvbcsa
cd libdvbcsa
sudo git config apply.whitespace nowarn
sudo git apply libdvbcsa.patch
./bootstrap
./configure
sudo make
sudo apt-get purge libdvbcsa-dev
sudo make install
Error
Make and Automake were not installed. So:
sudo apt-get install make automake
Again:
That worked!
Continue with:
sudo apt autoremove -y
sudo apt-get purge libdvbcsa1*
removed all the legacy stuff from Debian Buster and also removed the old TVHeadend (you should backup the .hts directories beforehand if you want to).
Then continue with the instructions of =[M.I.T.M]=
sudo git clone https://github.com/tvheadend/tvheadend.git /var/tmp/tvheadend
cd /var/tmp/tvheadend
sudo git config apply.whitespace nowarn
sudo git apply /var/tmp/tvheadend/tvheadend43.patch
sudo./configure --disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac - -enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static - -disable-hdhomerun_client --disable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --cc=cc --arch=x86_x64 --platform=linux --python=python3 --sysconfdir=/config
sudo make -j$(nproc)
A lot of things come up here. On the one hand I had to install libtools and others because of missing dependencies.
Also, I chose the
-disable-libav option instead of -enable-libav.
Otherwise there was another error.
Then the test run with
./build.linux/tvheadend –noacl
It worked!
Then the Autobuild.sh adjusted according to the specifications of =[M.I.T.M]=
cd /var/tmp/tvheadend/Autobuild
sudo nano debian.sh
add argument '-d' to dpkg-buildpackage to remove libdvbcsa-dev dependancy: dpkg-buildpackage -d -b -us -uc
save debian.sh
sudo AUTOBUILD_CONFIGURE_EXTRA="--disable-ffmpeg_static --disable-libfdkaac_static --disable-libtheora_static --disable-libopus_static --disable-libvorbis_static --disable-libvpx_static --disable-libx264_static --disable-libx265_static --disable-libfdkaac - -enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-avahi --disable-dbus_1 --disable-bintray_cache --disable-execinfo --disable-hdhomerun_static - -disable-hdhomerun_client --disable-libav --enable-pngquant --enable-trace --enable-vaapi --infodir=/usr/share/info --localstatedir=/var --mandir=/usr/share/man --prefix=/usr --cc=cc --arch=x86_x64 --platform=linux --python=python3 --sysconfdir=/config" ./Autobuild.sh -j$(nproc)
Again, disable libav.
Nevertheless, no autobuild came about. Until I figured out what was missing. So I installed
sudo apt-get install debhelper liburiparser-dev libpcre2-dev libpcre3-dev
That's it, the package is created and can be installed via:
cd /var/tmp
sudo dpkg -i tvheadend………
Finally, I can say that the SAT>IP server runs on TVHeadend and works just as well as the VLC stream.
Oh, and I didn't touch the existing OSCAM!
PS: I hope I have thought of everything.
PPS: Since I didn't give myself superuser rights beforehand, everything only worked with sudo.