Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE=1 |
| 5 | |
Harald Welte | 367baa3 | 2017-08-13 09:41:33 +0200 | [diff] [blame] | 6 | DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) |
| 7 | DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) |
| 8 | VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') |
| 9 | |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 10 | # This has to be exported to make some magic below work. |
Holger Hans Peter Freyther | 0576f3b | 2015-03-14 20:17:19 +0100 | [diff] [blame] | 11 | #export DH_OPTIONS |
Max | 7716860 | 2016-12-21 17:57:40 +0100 | [diff] [blame] | 12 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 13 | |
Harald Welte | e916809 | 2010-08-24 15:23:33 +0200 | [diff] [blame] | 14 | %: |
Holger Hans Peter Freyther | 0576f3b | 2015-03-14 20:17:19 +0100 | [diff] [blame] | 15 | dh $@ --with autoreconf |
Holger Hans Peter Freyther | f97f58d | 2014-09-23 16:52:19 +0200 | [diff] [blame] | 16 | |
| 17 | override_dh_strip: |
Harald Welte | 6c10aa0 | 2017-10-28 18:56:16 +0200 | [diff] [blame] | 18 | dh_strip -posmo-ggsn --dbg-package=osmo-ggsn-dbg |
Pau Espin Pedrol | e71e0f2 | 2020-01-02 20:39:39 +0100 | [diff] [blame] | 19 | dh_strip -plibgtp6 --dbg-package=libgtp-dbg |
Pau Espin Pedrol | 381b723 | 2018-09-10 12:19:45 +0200 | [diff] [blame] | 20 | |
| 21 | override_dh_auto_configure: |
Oliver Smith | 7710080 | 2021-02-19 17:34:05 +0100 | [diff] [blame^] | 22 | dh_auto_configure -- \ |
| 23 | --enable-gtp-linux \ |
| 24 | --with-systemdsystemunitdir=/lib/systemd/system \ |
| 25 | --enable-manuals |
Oliver Smith | 154f93d | 2019-05-21 15:26:06 +0200 | [diff] [blame] | 26 | |
| 27 | # Don't create .pdf.gz files (barely saves space and they can't be opened directly by most pdf readers) |
| 28 | override_dh_compress: |
| 29 | dh_compress -X.pdf |