Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 1 | #!/usr/bin/make -f |
Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 2 | |
| 3 | # Uncomment this to turn on verbose mode. |
| 4 | #export DH_VERBOSE=1 |
| 5 | |
Eric Butler | 010c955 | 2012-08-14 21:01:20 -0700 | [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 | |
Max | 5fa8b08 | 2016-12-19 18:41:42 +0100 | [diff] [blame] | 10 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
Holger Hans Peter Freyther | 12355ae | 2013-12-12 12:50:18 +0100 | [diff] [blame] | 11 | |
Harald Welte | 640d72a | 2010-08-24 15:33:04 +0200 | [diff] [blame] | 12 | %: |
Max | 5fa8b08 | 2016-12-19 18:41:42 +0100 | [diff] [blame] | 13 | dh $@ --sourcedirectory=openbsc --with autoreconf |
Eric Butler | a73ca05 | 2012-08-14 17:40:58 -0700 | [diff] [blame] | 14 | |
Holger Hans Peter Freyther | 93fda87 | 2012-11-06 19:26:50 +0100 | [diff] [blame] | 15 | # This is needed for debian stable (squeeze) |
| 16 | override_dh_autoreconf: |
| 17 | cd openbsc && autoreconf --install --force |
| 18 | |
Holger Hans Peter Freyther | 65f7427 | 2013-12-12 13:07:47 +0100 | [diff] [blame] | 19 | override_dh_strip: |
Holger Hans Peter Freyther | 65f7427 | 2013-12-12 13:07:47 +0100 | [diff] [blame] | 20 | dh_strip -posmocom-nitb --dbg-package=osmocom-nitb-dbg |
Ivan Kluchnikov | c6e735f | 2015-05-29 13:07:08 -0400 | [diff] [blame] | 21 | dh_strip -posmocom-meas-utils --dbg-package=osmocom-meas-utils-dbg |
Kirill Zakharenko | 800369d | 2015-10-27 19:32:50 +0300 | [diff] [blame] | 22 | dh_strip -posmocom-proxy --dbg-package=osmocom-proxy-dbg |
Holger Hans Peter Freyther | 65f7427 | 2013-12-12 13:07:47 +0100 | [diff] [blame] | 23 | |
Eric Butler | a73ca05 | 2012-08-14 17:40:58 -0700 | [diff] [blame] | 24 | override_dh_auto_configure: |
Holger Hans Peter Freyther | f3a317c | 2012-11-06 14:44:44 +0100 | [diff] [blame] | 25 | echo $(VERSION) > openbsc/.tarball-version |
Ivan Kluchnikov | cc75a7f | 2015-05-27 16:15:37 +0300 | [diff] [blame] | 26 | dh_auto_configure --sourcedirectory=openbsc -- --enable-smpp |