diff --git a/pkg/deb/backports/buster b/pkg/deb/backports/buster index 847bb299d..c8a41dd75 100755 --- a/pkg/deb/backports/buster +++ b/pkg/deb/backports/buster @@ -23,6 +23,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 a1feaf7ba..6ed2827b3 100755 --- a/pkg/deb/backports/focal +++ b/pkg/deb/backports/focal @@ -22,6 +22,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'