php-defaults/debian/rules

59 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-07-13 17:21:48 +02:00
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules for PHP defaults
# Copyright (C) 2011 Ondřej Surý
# Published under the Expat license
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
2015-12-18 09:21:50 +01:00
PHP_DEFAULT_VERSION := 7.0
2015-12-18 09:22:23 +01:00
PHP_SUPPORTED_VERSIONS := 7.0
2015-12-18 09:21:50 +01:00
, := ,
PHP_DEV_PACKAGES := $(addprefix php,$(addsuffix -dev$(,),$(PHP_SUPPORTED_VERSIONS)))
2015-11-26 15:12:30 +01:00
SED=sed
2015-07-13 17:21:48 +02:00
export DH_OPTIONS
%:
dh $@
override_dh_auto_configure:
:
override_dh_auto_make:
:
override_dh_auto_install:
:
override_dh_installcron:
dh_installcron -pphp-common --name=php
debian/control: debian/control.in debian/rules debian/changelog
2015-12-18 09:21:50 +01:00
$(SED) -e "s/@PHP_VERSION@/$(PHP_DEFAULT_VERSION)/g" \
-e "s/@PHP_DEV_PACKAGES@/$(PHP_DEV_PACKAGES)/g" \
>$@ <$<
2015-11-26 15:12:30 +01:00
echo >> $@
cat debian/modulelist | while read module description; do \
package=php-$${module}; \
depends=php$(PHP_DEFAULT_VERSION)-$${module}; \
$(SED) -e "s/@package@/$${package}/" \
-e "s/@depends@/$${depends}/" \
-e "s/@description@/$${description}/" \
-e "s/@PHP_VERSION@/$(PHP_DEFAULT_VERSION)/g" \
2015-12-18 09:21:50 +01:00
< debian/php-module.control.in \
>> $@; \
2015-11-26 15:12:30 +01:00
echo >> $@; \
done;
-wrap-and-sort -ab
override_dh_fixperms-indep:
chmod 01733 debian/php-common/var/lib/php/sessions
dh_fixperms -i -pphp-common -X/var/lib/php/sessions
dh_fixperms -i --remaining-packages
.PHONY: debian/control