diff --git a/debian/rules b/debian/rules index 32dba2b..89ce1e7 100755 --- a/debian/rules +++ b/debian/rules @@ -7,12 +7,16 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/default.mk + PHP_DEFAULT_VERSION := 7.0 PHP_SUPPORTED_VERSIONS := 7.0 , := , PHP_DEV_PACKAGES := $(addprefix php,$(addsuffix -dev$(,),$(PHP_SUPPORTED_VERSIONS))), $(addprefix php,$(addsuffix -json$(,),$(PHP_SUPPORTED_VERSIONS))) +PHP_DEB_VERSION := 0:$(PHP_SUPPORTED_VERSIONS: =+)+$(DEB_VERSION) + SED=sed export DH_OPTIONS @@ -55,4 +59,7 @@ override_dh_fixperms-indep: dh_fixperms -i -pphp-common -X/var/lib/php/sessions dh_fixperms -i --remaining-packages +override_dh_gencontrol: + dh_gencontrol -- -v$(PHP_DEB_VERSION) + .PHONY: debian/control