diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-08-07 08:36:36 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-08-29 12:51:20 +0000 |
commit | 4d1ee5eaf0fe587b93dfdd0997e2ad966f25ff03 (patch) | |
tree | 439da81d1a7fe0466b94eee82eed48d55d65a5f2 /debian/rules | |
parent | 91f10c7289dcc3e3b714c76a2950d3d3b7265653 (diff) |
rework debian packages support
Remove old leftover from split of osmo-mgw out of openbsc.
Change-Id: I77544cb38c31777c3fab52979d19488a63e52de3
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 81 |
1 files changed, 54 insertions, 27 deletions
diff --git a/debian/rules b/debian/rules index 4e187a6cf..3500fbb9d 100755 --- a/debian/rules +++ b/debian/rules @@ -1,32 +1,59 @@ #!/usr/bin/make -f - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -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 DEB_BUILD_MAINT_OPTIONS = hardening=+all - +# You must remove unused comment lines for the released package. +# See debhelper(7) (uncomment to enable) +# This is an autogenerated template for debian/rules. +# +# Output every command that modifies files on the build system. +#export DH_VERBOSE = 1 +# +# Copy some variable definitions from pkg-info.mk and vendor.mk +# under /usr/share/dpkg/ to here if they are useful. +# +# See FEATURE AREAS/ENVIRONMENT in dpkg-buildflags(1) +# Apply all hardening options +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all +# Package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# Package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +# +# With debhelper version 9 or newer, the dh command exports +# all buildflags. So there is no need to include the +# /usr/share/dpkg/buildflags.mk file here if compat is 9 or newer. +# +# These are rarely used code. (START) +# +# The following include for *.mk magically sets miscellaneous +# variables while honoring existing values of pertinent +# environment variables: +# +# Architecture-related variables such as DEB_TARGET_MULTIARCH: +#include /usr/share/dpkg/architecture.mk +# Vendor-related variables such as DEB_VENDOR: +#include /usr/share/dpkg/vendor.mk +# Package-related variables such as DEB_DISTRIBUTION +#include /usr/share/dpkg/pkg-info.mk +# +# You may alternatively set them susing a simple script such as: +# DEB_VENDOR ?= $(shell dpkg-vendor --query Vendor) +# +# These are rarely used code. (END) +# + +# main packaging script based on dh7 syntax %: - dh $@ --sourcedirectory=openbsc --with autoreconf - -# This is needed for debian stable (squeeze) -override_dh_autoreconf: - cd openbsc && autoreconf --install --force - -override_dh_strip: - dh_strip -posmocom-bsc --dbg-package=osmocom-bsc-dbg - dh_strip -posmocom-nitb --dbg-package=osmocom-nitb-dbg - dh_strip -posmocom-ipaccess-utils --dbg-package=osmocom-ipaccess-utils-dbg - dh_strip -posmocom-bs11-utils --dbg-package=osmocom-bs11-utils-dbg - dh_strip -posmocom-sgsn --dbg-package=osmocom-sgsn-dbg - dh_strip -posmocom-gbproxy --dbg-package=osmocom-gbproxy-dbg - dh_strip -posmocom-bsc-nat --dbg-package=osmocom-bsc-nat-dbg - dh_strip -posmo-gtphub --dbg-package=osmo-gtphub-dbg + dh $@ --with autoreconf +# debmake generated override targets +# Set options for ./configure +CONFIGURE_FLAGS += --enable-iu override_dh_auto_configure: - echo $(VERSION) > openbsc/.tarball-version - dh_auto_configure --sourcedirectory=openbsc -- --enable-nat --enable-osmo-bsc --enable-smpp + dh_auto_configure -- $(CONFIGURE_FLAGS) +# +# Do not install libtool archive, python .pyc .pyo +#override_dh_install: +# dh_install --list-missing -X.la -X.pyc -X.pyo +# See https://www.debian.org/doc/manuals/developers-reference/best-pkging-practices.html#bpp-dbg +override_dh_strip: + dh_strip --dbg-package=osmo-msc-dbg |