Generate package version numbers from PHP supported versions and changelog version
This commit is contained in:
parent
54a91d45e0
commit
858da758c7
7
debian/rules
vendored
7
debian/rules
vendored
|
@ -7,12 +7,16 @@
|
||||||
# Uncomment this to turn on verbose mode.
|
# Uncomment this to turn on verbose mode.
|
||||||
#export DH_VERBOSE=1
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
include /usr/share/dpkg/default.mk
|
||||||
|
|
||||||
PHP_DEFAULT_VERSION := 7.0
|
PHP_DEFAULT_VERSION := 7.0
|
||||||
PHP_SUPPORTED_VERSIONS := 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_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
|
SED=sed
|
||||||
|
|
||||||
export DH_OPTIONS
|
export DH_OPTIONS
|
||||||
|
@ -55,4 +59,7 @@ override_dh_fixperms-indep:
|
||||||
dh_fixperms -i -pphp-common -X/var/lib/php/sessions
|
dh_fixperms -i -pphp-common -X/var/lib/php/sessions
|
||||||
dh_fixperms -i --remaining-packages
|
dh_fixperms -i --remaining-packages
|
||||||
|
|
||||||
|
override_dh_gencontrol:
|
||||||
|
dh_gencontrol -- -v$(PHP_DEB_VERSION)
|
||||||
|
|
||||||
.PHONY: debian/control
|
.PHONY: debian/control
|
||||||
|
|
Loading…
Reference in a new issue