TT#61954 Set debhelper compat level in Build-Depends instead of debian/compat

- Stop copying debian/compat into the kernel source packages.
- Use dh_installsystemd instead of deprecated dh_systemd_*.
- Disable dwz as it cannot cope with some of the plugins generated.

Change-Id: Ibdc92e94955ef3c5d89b24fc341474236c49b986
changes/33/31433/6
Guillem Jover 7 years ago
parent 55faffdcf0
commit 2868fc6f55

1
debian/compat vendored

@ -1 +0,0 @@
10

4
debian/control vendored

@ -5,7 +5,7 @@ Maintainer: Sipwise Development Team <support@sipwise.com>
Homepage: https://www.sipwise.com/
Standards-Version: 3.9.8
Build-Depends:
debhelper (>= 10~),
debhelper-compat (= 12),
default-libmysqlclient-dev,
gperf,
iptables-dev (>= 1.4),
@ -109,7 +109,7 @@ Package: ngcp-rtpengine-kernel-source
Architecture: all
Section: kernel
Depends:
debhelper (>= 5),
debhelper-compat (= 12),
module-assistant,
${misc:Depends},
Conflicts:

13
debian/rules vendored

@ -36,7 +36,7 @@ override_dh_auto_install-indep:
# Copy the needed debian/ pieces to the proper location
cp debian/*.modules.in* debian/$(psource)/usr/src/modules/$(sname)/debian
cp debian/control debian/changelog debian/copyright \
debian/compat debian/$(psource)/usr/src/modules/$(sname)/debian/
debian/$(psource)/usr/src/modules/$(sname)/debian/
install -m 0755 debian/rules.modules debian/$(psource)/usr/src/modules/$(sname)/debian/rules
cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules
@ -58,10 +58,9 @@ override_dh_install:
override_dh_strip:
dh_strip --dbgsym-migration='ngcp-rtpengine-dbg (<= 6.0.0.0+0~mr6.0.0.0)'
override_dh_systemd_enable:
dh_systemd_enable
dh_systemd_enable -pngcp-rtpengine-recording-daemon --name=ngcp-rtpengine-recording-nfs-mount
override_dh_dwz:
# Disable, as dwz cannot cope with some of the plugins generated.
override_dh_systemd_start:
dh_systemd_start
dh_systemd_start -pngcp-rtpengine-recording-daemon --name=ngcp-rtpengine-recording-nfs-mount
override_dh_installsystemd:
dh_installsystemd
dh_installsystemd -pngcp-rtpengine-recording-daemon --name=ngcp-rtpengine-recording-nfs-mount

Loading…
Cancel
Save