From 460e1b7387ded53bd2ba320d3108196dc7100d40 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Fri, 1 Apr 2016 16:46:42 +0200 Subject: debian: Create initial packaging for the osmo-bts-trx This is only with osmo-bts-trx as others require headers that are not packaged yet. --- debian/rules | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 debian/rules (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules new file mode 100755 index 00000000..f7f941b3 --- /dev/null +++ b/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +DEBIAN := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2) +DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1) +VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g') + +#export DH_VERBOSE=1 +export DEB_BUILD_HARDENING=1 + + +%: + dh $@ --with=systemd --with autoreconf --fail-missing + +override_dh_strip: + dh_strip --dbg-package=osmo-bts-trx-dbg + +override_dh_autoreconf: + echo $(VERSION) > .tarball-version + dh_autoreconf + +override_dh_auto_configure: + dh_auto_configure -- --enable-trx -- cgit v1.2.3