Alexander Couzens | e485cdd | 2017-08-06 21:52:02 +0000 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 4 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 5 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 6 | |
| 7 | # main packaging script based on dh7 syntax |
| 8 | %: |
| 9 | dh $@ --with autoreconf |
| 10 | |
Alexander Couzens | e485cdd | 2017-08-06 21:52:02 +0000 | [diff] [blame] | 11 | # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg |
| 12 | override_dh_strip: |
| 13 | dh_strip --dbg-package=libosmo-ranap-dbg |
| 14 | dh_strip --dbg-package=osmo-hnbgw |
Alexander Couzens | 5164038 | 2017-10-11 07:11:34 +0200 | [diff] [blame] | 15 | |
| 16 | # Print test results in case of a failure |
| 17 | override_dh_auto_test: |
| 18 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |
Pau Espin Pedrol | a68b682 | 2018-09-10 12:09:47 +0200 | [diff] [blame] | 19 | |
| 20 | override_dh_auto_configure: |
| 21 | dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system |