diff options
-rwxr-xr-x | debian/rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 57d1d2f..8c6893c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,10 +2,14 @@ DPKG_EXPORT_BUILDFLAGS = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all -include /usr/share/dpkg/buildflags.mk +include /usr/share/dpkg/default.mk CFLAGS += -DSHADOW_PWD +ifeq (,$(findstring ^$(DEB_VERSION_UPSTREAM),^$(shell cut -d'"' -f2 patchlevel.h))) +$(error (patchlevel.h out of sync with Debian version)) +endif + %: dh $@ |