diff --git a/pkg/deb/backports/buster b/pkg/deb/backports/buster index 00c884cf4..d25bd425a 100755 --- a/pkg/deb/backports/buster +++ b/pkg/deb/backports/buster @@ -21,6 +21,13 @@ sed -i -e 's/^execute_before_dh_auto_configure:/override_dh_auto_configure:/' ${ sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules + +# fix links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-recording-daemon.links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-daemon.links + # Add dwz override cat >> ${DIST}/rules <<'EOF' diff --git a/pkg/deb/backports/focal b/pkg/deb/backports/focal index 20773ff27..d50cd6e02 100755 --- a/pkg/deb/backports/focal +++ b/pkg/deb/backports/focal @@ -20,6 +20,13 @@ sed -i -e 's/debhelper-compat.*/debhelper-compat (= 12),/' ${DIST}/control sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules + +# fix links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-recording-daemon.links +sed -i -e 's#${env:deb_systemdsystemunitdir}#/lib/systemd/system/#g' \ + ${DIST}/rtpengine-daemon.links + # Add dwz override cat >> ${DIST}/rules <<'EOF'