blob: fa087ed11db0671a7d2096e928f8d04f625b0bf5 [file] [log] [blame]
Harald Weltee9168092010-08-24 15:23:33 +02001#!/usr/bin/make -f
Harald Weltee9168092010-08-24 15:23:33 +02002
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
Harald Welte367baa32017-08-13 09:41:33 +02006DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
7DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
8VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
9
Harald Weltee9168092010-08-24 15:23:33 +020010# This has to be exported to make some magic below work.
Holger Hans Peter Freyther0576f3b2015-03-14 20:17:19 +010011#export DH_OPTIONS
Max77168602016-12-21 17:57:40 +010012export DEB_BUILD_MAINT_OPTIONS = hardening=+all
Harald Weltee9168092010-08-24 15:23:33 +020013
Harald Weltee9168092010-08-24 15:23:33 +020014%:
Holger Hans Peter Freyther0576f3b2015-03-14 20:17:19 +010015 dh $@ --with autoreconf
Holger Hans Peter Freytherf97f58d2014-09-23 16:52:19 +020016
17override_dh_strip:
Harald Welte6c10aa02017-10-28 18:56:16 +020018 dh_strip -posmo-ggsn --dbg-package=osmo-ggsn-dbg
Pau Espin Pedrol36c4fac2018-05-04 11:22:04 +020019 dh_strip -plibgtp3 --dbg-package=libgtp-dbg
Pau Espin Pedrol381b7232018-09-10 12:19:45 +020020
21override_dh_auto_configure:
22 dh_auto_configure -- --with-systemdsystemunitdir=/lib/systemd/system