debian: don't use override_dh_* for lenny compatibility
diff --git a/openbsc/debian/control b/openbsc/debian/control
index 5b1c4ed..c131d92 100644
--- a/openbsc/debian/control
+++ b/openbsc/debian/control
@@ -2,7 +2,7 @@
 Section: net
 Priority: optional
 Maintainer: Harald Welte <laforge@gnumonks.org>
-Build-Depends: debhelper (>= 7.0.50~), autotools-dev, pkg-config, libgtp, libosmocore-dev, libosmo-sccp-dev, libdbi0-dev
+Build-Depends: debhelper (>= 7.0.0~), autotools-dev, pkg-config, libgtp, libosmocore-dev, libosmo-sccp-dev, libdbi0-dev
 Standards-Version: 3.8.4
 Homepage: http://openbsc.osmocom.org/
 Vcs-Git: git://bs11-abis.gnumonks.org/openbsc.git
diff --git a/openbsc/debian/rules b/openbsc/debian/rules
index f9aa9ce..8de0ecc 100755
--- a/openbsc/debian/rules
+++ b/openbsc/debian/rules
@@ -16,8 +16,16 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-override_dh_auto_configure:
+# this requires debhelper 7.0.50 or above, which lenny doesn't have yet!
+#override_dh_auto_configure:
+#	dh_auto_configure -- --enable-nat --enable-osmo-bsc
+
+build: build-stamp
+build-stamp:
+	dh build --before configure
 	dh_auto_configure -- --enable-nat --enable-osmo-bsc
+	dh build --after configure
+	touch build-stamp
 
 %:
 	dh $@