Use dpkg's DEB_VERSION_UPSTREAM instead of manually parsing
[deb_dpdk.git] / debian / rules
1 #!/usr/bin/make -f
2 # See debhelper(7) (uncomment to enable)
3 # output every command that modifies files on the build system.
4 export DH_VERBOSE=1
5 export DH_OPTIONS=-v
6
7 # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
8 include /usr/share/dpkg/default.mk
9
10 DPDK_ABI := $(shell echo $(DEB_VERSION_UPSTREAM) | cut -d '.'  -f1-2)
11
12 DEB_HOST_GNU_CPU := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
13 DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
14
15 # see FEATURE AREAS in dpkg-buildflags(1)
16 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-pie
17
18 # see ENVIRONMENT in dpkg-buildflags(1)
19 DPKG_EXPORT_BUILDFLAGS = 1
20 include /usr/share/dpkg/buildflags.mk
21
22 # Support backporting to jessie
23 dpkg_version_lt = $(shell dpkg --compare-versions $$(dpkg --status dpkg-dev | grep Version | cut -d' ' -f2) lt-nl "1.18.11" && echo yes)
24 ifeq (yes, $(dpkg_version_lt))
25         # package maintainers to append CFLAGS
26         # For Debian, dpkg-dev >= 1.18.11 and gcc 6.x, dpkg-buildflags and gcc
27         # handle -fPIC and related flags relying on specs files
28         # (/usr/share/dpkg/*specs)
29         export DEB_CFLAGS_MAINT_APPEND  = -fPIC
30         export EXTRA_CFLAGS=$(CFLAGS)
31         export EXTRA_CPPFLAGS=$(CPPFLAGS)
32         export HOST_EXTRA_CFLAGS=$(CFLAGS)
33         export HOST_EXTRA_CPPFLAGS=$(CPPFLAGS)
34         # need to be stripped as DPDK build system adds them and it would be -Wl,-Wl,opt
35         export EXTRA_LDFLAGS=$(shell echo $(LDFLAGS) | sed 's/-Wl,//g')
36         # HOST_CC build system does not add -Wl ...
37         export EXTRA_HOST_LDFLAGS=$(LDFLAGS)
38 endif
39
40 export RTE_DEVEL_BUILD=n
41 export EXTRA_CFLAGS+=-g
42
43 # People rebuilding this package can overwrite DPDK_CONFIG, RTE_MACHINE and
44 # RTE_TARGET via DEB_BUILD_OPTIONS if they like
45 ifneq (,$(filter dpdk_config=%,$(DEB_BUILD_OPTIONS)))
46     DPDK_CONFIG ?= $(patsubst dpdk_config=%,%,$(filter dpdk_config=%,$(DEB_BUILD_OPTIONS)))
47 endif
48 ifneq (,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
49     RTE_MACHINE ?= $(patsubst rte_machine=%,%,$(filter rte_machine=%,$(DEB_BUILD_OPTIONS)))
50 endif
51 ifneq (,$(filter rte_target=%,$(DEB_BUILD_OPTIONS)))
52     RTE_TARGET ?= $(patsubst rte_target=%,%,$(filter rte_target=%,$(DEB_BUILD_OPTIONS)))
53 endif
54
55 ifneq (,$(filter $(DEB_HOST_ARCH), arm64))
56 DPDK_CONFIG ?= "arm64-armv8a-linuxapp-gcc"
57 RTE_MACHINE ?= "armv8a"
58 RTE_TARGET ?= "arm64-armv8a-linuxapp-gcc"
59 INCLUDE_ARCH := arm
60 else
61 ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el))
62 DPDK_CONFIG ?= "ppc_64-power8-linuxapp-gcc"
63 RTE_MACHINE ?= "power8"
64 RTE_TARGET ?= "ppc_64-power8-linuxapp-gcc"
65 INCLUDE_ARCH := ppc_64
66 else
67 DPDK_CONFIG ?= "$(DEB_HOST_GNU_CPU)-native-linuxapp-gcc"
68 RTE_MACHINE ?= "default"
69 RTE_TARGET ?= "$(DEB_HOST_GNU_CPU)-default-linuxapp-gcc"
70 INCLUDE_ARCH := x86
71 endif
72 endif
73 DPDK_STATIC_DIR = "debian/build/static-root"
74 DPDK_SHARED_DIR = "debian/build/shared-root"
75
76 # now stable with parallel comilation, so support -j
77 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
78     PAR := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
79     MAKEFLAGS += -j$(PAR)
80 endif
81
82 ifneq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))
83 BUILD_DOCS=n
84 else
85 BUILD_DOCS=y
86 endif
87
88 ifneq (,$(findstring nostatic,$(DEB_BUILD_OPTIONS)))
89 BUILD_STATIC_LIB=n
90 else
91 BUILD_STATIC_LIB=y
92 endif
93
94 # kernel_modules can be passed via DEB_BUILD_OPTIONS to enable building the
95 # optional binary kernel modules package. By default it will be built against
96 # the current kernel, or ksrc can be passed with a path to the target kernel
97 # sources instead.
98 ifeq (,$(findstring kernel_modules,$(DEB_BUILD_OPTIONS)))
99 DPDK_CONFIG_BUILD_KMOD=n
100 KSRC=""
101 else
102 ifneq (,$(filter ksrc=%,$(DEB_BUILD_OPTIONS)))
103     KSRC := $(patsubst ksrc=%,%,$(filter ksrc=%,$(DEB_BUILD_OPTIONS)))
104 else
105     KSRC := /lib/modules/$(shell uname -r)/build
106 endif
107
108 KVERS := $(shell perl debian/kernel-version $(KSRC))
109 export KVERS
110 export MODULE_CFLAGS=-fno-PIE
111
112 DPDK_CONFIG_BUILD_KMOD=y
113
114 # Since the binary module package is generated at build time depending on the
115 # local kernel version, we have to append the new package in d/control.
116 # We cannot use a separate control file since that wouldn't work with
117 # dpkg-genchanges, and also would require a lot of overrides for debhelpers.
118 get_built_using ?= $(filter-out (=),$(shell dpkg-query -f='$${source:Package} (=$${source:Version})' -W $1))
119
120 build:
121         @if [ x"$(KVERS)" = x ] ; then \
122             echo 'No version in $(KSRC)/include/linux/version.h' >&2; \
123             exit 1; \
124         fi
125         sh debian/prep-modules $(KSRC)
126         cat debian/control.modules >> debian/control
127         dh $@ --with python2,dkms
128 endif
129
130 %:
131         dh $@ --with python2,dkms
132
133 override_dh_gencontrol:
134         dh_gencontrol
135         # debian/files will not exist until dh_gencontrol has ran at least once,
136         # so we need to run gencontrol for libdpdk-dev and libdpdk-dbgsym after.
137         # The list of libraries and PMDs is everchanging, so generate the dependency
138         # list for libdpdk-dev to avoid having to maintain it manually.
139         # Same for the recommends list for dpdk, were we want the PMDs and the mempools.
140         dh_gencontrol -p libdpdk-dev -- -V"librte:Depends=`grep -E 'librte-*' ./debian/files | grep -v dbgsym | tr '_' ' ' | awk '{ print $$1,"(=",$$2 ")" }' | paste -sd ',' - | sed -e 's/,/, /g'`"
141         dh_gencontrol -p dpdk -- -V"librte:Recommends=`grep -E 'librte-(pmd|mempool).*' ./debian/files | grep -v dbgsym | tr '_' ' ' | awk '{ print $$1,"(=",$$2 ")" }' | paste -sd ',' - | sed -e 's/,/, /g'`"
142 ifneq (,$(findstring kernel_modules,$(DEB_BUILD_OPTIONS)))
143         dh_gencontrol -p dpdk-modules-$(KVERS) -- \
144                 -v`cat debian/VERSION` \
145                 -V'built:using:kernel=$(call get_built_using,linux-headers-$(KVERS))'
146 endif
147 ifneq (,$(findstring dbgsym_meta,$(DEB_BUILD_OPTIONS)))
148         ./debian/dh-dbgsym-metapkg libdpdk$(DPDK_ABI)-dbgsym
149 endif
150
151 # dbgsym_meta can be passed via DEB_BUILD_OPTIONS to enable building the
152 # optional dbgsym meta package libdpdk<ABI>-dbgsym.
153 # This is not built by default as it would go in main but depend on
154 # packages in the debian-debug archive.
155 # Debian Developers and FTP masters strongly discourage this.
156 # We provide this optional flag as a convenience for rebuilders.
157 ifneq (,$(findstring dbgsym_meta,$(DEB_BUILD_OPTIONS)))
158 override_dh_builddeb:
159         dh_builddeb
160         dh_builddeb -plibdpdk$(DPDK_ABI)-dbgsym
161 endif
162
163 override_dh_auto_clean:
164         rm -rf debian/build debian/tmp debian/dpdk-modules-* \
165                 debian/control.modules debian/VERSION
166         sed -i '/Package: dpdk-modules-/,/`tail -n1 debian/control.modules.in`/d' debian/control
167         test -L config/defconfig_$(DPDK_CONFIG) && rm -f config/defconfig_$(DPDK_CONFIG) || true
168         rm -f debian/dpdk-igb-uio-dkms.dkms debian/dpdk-rte-kni-dkms.dkms
169         rm -f debian/dpdk-dev.preinst
170
171 override_dh_auto_configure:
172         # Add support for a custom defconfig file in the debian directory.
173 ifneq (,$(filter dpdk_config=%,$(DEB_BUILD_OPTIONS)))
174         test -e config/defconfig_$(DPDK_CONFIG) || ln -fs ../debian/defconfig_$(DPDK_CONFIG) config/defconfig_$(DPDK_CONFIG)
175 endif
176         # report dpkg-buildflags status to build log
177         dpkg-buildflags --status
178         echo EXTRA_CFLAGS $$EXTRA_CFLAGS
179         echo EXTRA_LDFLAGS: $$EXTRA_LDFLAGS
180         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) T=$(DPDK_CONFIG) config
181 ifeq (,$(filter dpdk_config=%,$(DEB_BUILD_OPTIONS)))
182         sed -ri -e 's,(RTE_MACHINE=).*,\1$(RTE_MACHINE),' \
183                 -e 's,(RTE_NEXT_ABI=).*,\1n,' \
184                 -e 's,(CONFIG_RTE_EAL_IGB_UIO=).*,\1$(DPDK_CONFIG_BUILD_KMOD),' \
185                 -e 's,(CONFIG_RTE_KNI_KMOD=).*,\1$(DPDK_CONFIG_BUILD_KMOD),' \
186                 -e 's,(LIBRTE_PMD_PCAP=).*,\1y,' \
187                 -e 's,(LIBRTE_PMD_XENVIRT=).*,\1y,' \
188                 -e 's,(CONFIG_RTE_EAL_PMD_PATH=).*,\1"/usr/lib/$(DEB_HOST_MULTIARCH)/dpdk-pmds/",' \
189                 $(DPDK_STATIC_DIR)/.config
190         # xen not available on ppc64el
191 ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el))
192         sed -ri -e 's,(LIBRTE_PMD_XENVIRT=).*,\1n,' $(DPDK_STATIC_DIR)/.config
193 endif
194 endif
195         echo "CONFIG_RTE_MAJOR_ABI=\"$(DPDK_ABI)\"" >> \
196                 $(DPDK_STATIC_DIR)/.config
197         dh_auto_configure
198
199 override_dh_auto_build-indep:
200 ifeq (y,$(BUILD_DOCS))
201         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) doc-api-html doc-guides-html
202 endif
203
204 override_dh_auto_install-indep:
205         # Package: dpdk-doc
206         # All files based on the install-doc rule (includes examples)
207 ifeq (y,$(BUILD_DOCS))
208         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) prefix=/usr \
209                 DESTDIR=debian/dpdk-doc install-doc
210 endif
211
212 override_dh_auto_build-arch:
213 ifeq (y,$(BUILD_STATIC_LIB))
214         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) RTE_KERNELDIR=$(KSRC) build
215 endif
216         # Unfortunately the decision about having static or shared libraries is
217         # made for the whole build, which then produces only .a or .so files
218         # (but not both).
219         # And the target layout for target selection has no field for the
220         # type of library.
221         # Right now I hack this by doing a second build which only differs in
222         # the selection of shared libs.
223         # Shared libs should be default, so the previous static build is only
224         # used to get static libraries.
225         cp -a $(DPDK_STATIC_DIR) $(DPDK_SHARED_DIR)
226         sed -ri 's,(RTE_BUILD_SHARED_LIB=).*,\1y,' \
227                 $(DPDK_SHARED_DIR)/.config
228         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) RTE_KERNELDIR=$(KSRC) build
229 ifeq (y,$(BUILD_DOCS))
230         # need to be around for dh_installman to be picked up
231         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) RTE_KERNELDIR=$(KSRC) doc-guides-man
232 endif
233         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) RTE_KERNELDIR=$(KSRC) test-build
234
235 override_dh_auto_install-arch: LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
236 override_dh_auto_install-arch:
237         # Package: dpdk (runtime)
238 ifeq (y,$(BUILD_STATIC_LIB))
239         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_STATIC_DIR) prefix=/usr libdir=$(LIBDIR) \
240                 DESTDIR=debian/dpdk install-runtime
241 endif
242         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) prefix=/usr libdir=$(LIBDIR) \
243                 DESTDIR=debian/dpdk install-runtime
244         mkdir -p debian/dpdk/etc/dpdk
245         cp debian/dpdk.interfaces debian/dpdk/etc/dpdk/interfaces
246         rm debian/dpdk/usr/sbin/dpdk-devbind
247         mkdir -p debian/dpdk/sbin
248         ln -s /usr/share/dpdk/usertools/dpdk-devbind.py \
249                 debian/dpdk/sbin/dpdk-devbind
250         # Package: dpdk-dev (build environment)
251         # workaround to fix symbolic link creation
252         mkdir -p debian/dpdk-dev/$(LIBDIR)
253         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) prefix=/usr libdir=$(LIBDIR) \
254                 DESTDIR=debian/dpdk-dev install-sdk
255         # remove workaround
256         rm -fr debian/dpdk-dev/usr/lib
257         cp $(DPDK_SHARED_DIR)/.config debian/dpdk-dev/usr/share/dpdk/config
258         sed -e 's/SDK_TARGET/$(RTE_TARGET)/' debian/dpdk-sdk-env.sh.in > \
259                 debian/dpdk-dev/usr/share/dpdk/dpdk-sdk-env.sh
260         # include the bundled autotest suite to be usable from the dpdk-dev package
261         if grep -qs 'CONFIG_RTE_APP_TEST=y' $(DPDK_SHARED_DIR)/.config; then \
262                 mkdir -p debian/dpdk-dev/usr/share/dpdk/test; \
263                 cp -a test/test/autotest* debian/dpdk-dev/usr/share/dpdk/test; \
264                 cp $(DPDK_SHARED_DIR)/app/test debian/dpdk-dev/usr/share/dpdk/test/; \
265                 cp $(DPDK_SHARED_DIR)/app/testacl debian/dpdk-dev/usr/share/dpdk/test/; \
266                 cp $(DPDK_SHARED_DIR)/app/testpipeline debian/dpdk-dev/usr/share/dpdk/test/; \
267         fi
268         # since we move libs to multiarch dirs update the non aware symlink
269         rm debian/dpdk-dev/usr/share/dpdk/$(RTE_TARGET)/lib
270         ln -rs debian/dpdk-dev/$(LIBDIR)/ \
271                 debian/dpdk-dev/usr/share/dpdk/$(RTE_TARGET)/lib
272         # Package: libdpdk-dev (bare headers, static devel libs and linker
273         # script)
274         mkdir -p debian/libdpdk-dev/$(LIBDIR)
275         # linker script
276         mv debian/dpdk/$(LIBDIR)/libdpdk.so debian/libdpdk-dev/$(LIBDIR)/
277         # includes
278         # Some headers have architecture-specific content, but the upstream build
279         # system installs them in the same directory, breaking multiarch.
280         # Move them in /usr/include/<arch>/dpdk instead.
281         mkdir -p debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk
282         # Before moving the files, remove the symlink in usr/share/dpdk and copy them over,
283         # as the SDK subdir is architecture specific and requires the arch-specific headers
284         # in the top level
285         rm -f debian/dpdk-dev/usr/share/dpdk/$(RTE_TARGET)/include
286         mkdir -p debian/dpdk-dev/usr/share/dpdk/$(RTE_TARGET)/include
287         cp -r debian/dpdk-dev/usr/include/dpdk/* debian/dpdk-dev/usr/share/dpdk/$(RTE_TARGET)/include
288         # genereate the preinst to deal with the symlink -> directory transition smoothly
289         sed "s/@@RTE_TARGET@@/$(RTE_TARGET)/g" debian/dpdk-dev.preinst.in > debian/dpdk-dev.preinst
290         mv $(addprefix debian/dpdk-dev/usr/include/dpdk/,$(notdir $(wildcard lib/librte_eal/common/include/arch/$(INCLUDE_ARCH)/*.h))) \
291                 debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/
292         mv debian/dpdk-dev/usr/include/dpdk/rte_config.h \
293                 debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/
294         mv debian/dpdk-dev/usr/include/dpdk debian/libdpdk-dev/usr/include/
295         rmdir debian/dpdk-dev/usr/include
296         # backward compatibility: to ease things for the majority of users,
297         # which are on x86_64, symlink the x86 headers into the global
298         # directory.
299 ifeq (x86_64-linux-gnu,$(DEB_HOST_MULTIARCH))
300         ln -rs debian/libdpdk-dev/usr/include/$(DEB_HOST_MULTIARCH)/dpdk/*.h \
301                 debian/libdpdk-dev/usr/include/dpdk
302 endif
303         # have the DKMS build include the correct per-arch directory
304         sed "s/@@DEB_HOST_MULTIARCH@@/$(DEB_HOST_MULTIARCH)/g" debian/dpdk-igb-uio-dkms.dkms.in > debian/dpdk-igb-uio-dkms.dkms
305         sed "s/@@DEB_HOST_MULTIARCH@@/$(DEB_HOST_MULTIARCH)/g" debian/dpdk-rte-kni-dkms.dkms.in > debian/dpdk-rte-kni-dkms.dkms
306         # all static libs are in the dev package
307 ifeq (y,$(BUILD_STATIC_LIB))
308         mv debian/dpdk/$(LIBDIR)/lib*.a debian/libdpdk-dev/$(LIBDIR)/
309 endif
310         # symlinks to last .so's are in the non versioned libdpdk-dev as well
311         # this allows multiple libdpdk-<NAME><VER> at different VER concurrently
312         # libdpdk-dev depends on all sublibs so symlinks are never broken
313         mv debian/dpdk/$(LIBDIR)/*.so debian/libdpdk-dev/$(LIBDIR)/
314         # Package(s): libdpdk-<NAME><VER> (bare runtime libs)
315         for lib in $$(ls -1 debian/dpdk/$(LIBDIR)/*.so.*); do \
316           BN=$$(basename $${lib}); \
317           LN=$$(echo $${BN} | sed -e 's/\.so\.[0-9\.]*$$//' | tr '_' '-'); \
318           if echo $${LN} | grep -q ".*[0-9]$$"; then \
319             PKG=$${LN}-$(DPDK_ABI); \
320           else \
321             PKG=$${LN}$(DPDK_ABI); \
322           fi; \
323           LIBF="$$(basename $${lib})"; \
324           LIBD="debian/$${PKG}/$(LIBDIR)"; \
325           echo "moving $${lib} to dir $${LIBD} (PKG=$${PKG} BN=$${BN} LN={$${LN} LIBF=$${LIBF} LIBD=$${LIBD})"; \
326           mkdir -p $${LIBD}; \
327           mv $${lib} $${LIBD}; \
328           if [ "$${LIBF#librte_pmd_}x" != "$${LIBF}x" ]; then \
329             mkdir -p $${LIBD}/dpdk-pmds; \
330             echo "PMD: linking $${LIBF} into RTE_EAL_PMD_PATH at $${LIBD}/dpdk-pmds/"; \
331             ln -s --relative --target-directory=$${LIBD}/dpdk-pmds/ $${LIBD}/$${LIBF}; \
332           fi; \
333           if [ "$${LIBF#librte_mempool_}x" != "$${LIBF}x" ]; then \
334             mkdir -p $${LIBD}/dpdk-pmds; \
335             echo "MEMPOOL: linking $${LIBF} into RTE_EAL_PMD_PATH at $${LIBD}/dpdk-pmds/"; \
336             ln -s --relative --target-directory=$${LIBD}/dpdk-pmds/ $${LIBD}/$${LIBF}; \
337           fi; \
338           if [ "$${LIBF#librte_eal}x" != "$${LIBF}x" ]; then \
339             mkdir -p $${LIBD}/dpdk-pmds; \
340           fi; \
341         done
342         # pkg-config
343         mkdir -p debian/libdpdk-dev/$(LIBDIR)/pkgconfig
344         LIBS=$$(sed -e 's/GROUP ( \(.*\) )/\1/' -e 's/lib/-l/g' -e 's/\.so//g' \
345                 $(CURDIR)/debian/libdpdk-dev/$(LIBDIR)/libdpdk.so); \
346         sed -e "s/@DPDK_LIBS@/$${LIBS}/" -e "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/" \
347                 -e "s|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g" \
348                 debian/libdpdk.pc.in > debian/libdpdk-dev/$(LIBDIR)/pkgconfig/libdpdk.pc
349         # Package: dpdk-igb-uio-dkms
350         mkdir -p debian/dpdk-igb-uio-dkms/usr/src/dpdk-igb-uio-$(DEB_VERSION_UPSTREAM)
351         cp lib/librte_eal/linuxapp/igb_uio/* \
352                 debian/dpdk-igb-uio-dkms/usr/src/dpdk-igb-uio-$(DEB_VERSION_UPSTREAM)
353         # Package: dpdk-rte-kni-dkms
354         mkdir -p debian/dpdk-rte-kni-dkms/usr/src/dpdk-rte-kni-$(DEB_VERSION_UPSTREAM)
355         cp -a lib/librte_eal/linuxapp/kni/* \
356                 debian/dpdk-rte-kni-dkms/usr/src/dpdk-rte-kni-$(DEB_VERSION_UPSTREAM)
357 ifneq (,$(KVERS))
358         # Package: dpdk-modules-<kernel version>
359         $(MAKE) V=$(DH_VERBOSE) O=$(DPDK_SHARED_DIR) \
360                 kerneldir=/lib/modules/$(KVERS)/extra/dpdk \
361                 DESTDIR=debian/dpdk-modules-$(KVERS) install-kmod
362 endif
363
364 override_dh_dkms:
365         dh_dkms -V $(DEB_VERSION_UPSTREAM)
366
367 override_dh_installinit:
368         dh_installinit --no-start --no-restart-on-upgrade
369
370 override_dh_systemd_start:
371         dh_systemd_start --no-start --no-restart-on-upgrade
372
373 override_dh_auto_test:
374