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 | |
Harald Welte | 3f70fcd | 2021-01-07 10:09:40 +0100 | [diff] [blame] | 11 | CONFIGURE_FLAGS += --with-systemdsystemunitdir=/lib/systemd/system --enable-manuals |
| 12 | override_dh_auto_configure: |
| 13 | dh_auto_configure -- $(CONFIGURE_FLAGS) |
| 14 | |
Alexander Couzens | e485cdd | 2017-08-06 21:52:02 +0000 | [diff] [blame] | 15 | # See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg |
| 16 | override_dh_strip: |
Pau Espin Pedrol | 67d32a0 | 2020-01-03 17:04:15 +0100 | [diff] [blame] | 17 | dh_strip -plibosmo-ranap3 --dbg-package=libosmo-ranap-dbg |
Pau Espin Pedrol | d5d3efb | 2020-01-03 14:43:59 +0100 | [diff] [blame] | 18 | dh_strip -plibosmo-sabp0 --dbg-package=libosmo-sabp-dbg |
Pau Espin Pedrol | d48430d | 2020-01-03 14:35:17 +0100 | [diff] [blame] | 19 | dh_strip -posmo-hnbgw --dbg-package=osmo-hnbgw-dbg |
Alexander Couzens | 5164038 | 2017-10-11 07:11:34 +0200 | [diff] [blame] | 20 | |
| 21 | # Print test results in case of a failure |
| 22 | override_dh_auto_test: |
| 23 | dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) |
Pau Espin Pedrol | a68b682 | 2018-09-10 12:09:47 +0200 | [diff] [blame] | 24 | |
Harald Welte | 3f70fcd | 2021-01-07 10:09:40 +0100 | [diff] [blame] | 25 | # Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) |
| 26 | override_dh_compress: |
| 27 | dh_compress -X.pdf |