Browse Source

php7: add configuration files to conffiles

Two important configuration files, /etc/php7-fpm.conf and
/etc/php7-fpm.d/www.conf are silently overwritten on each php7-fpm
upgrade or lost on a sysupgrade.

This commit adds the conffiles section for php7-fpm and revises
the conffiles section for php7.

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
lilik-openwrt-22.03
Val Kulkov 7 years ago
parent
commit
50308e4fd7
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      lang/php7/Makefile

+ 8
- 1
lang/php7/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=php PKG_NAME:=php
PKG_VERSION:=7.1.11 PKG_VERSION:=7.1.11
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
@ -457,6 +457,7 @@ CONFIGURE_VARS+= \
define Package/php7/conffiles define Package/php7/conffiles
/etc/php.ini /etc/php.ini
/etc/php7/
endef endef
define Package/php7/install define Package/php7/install
@ -500,6 +501,12 @@ define Package/php7-fpm/install
$(INSTALL_BIN) ./files/php7-fpm.init $(1)/etc/init.d/php7-fpm $(INSTALL_BIN) ./files/php7-fpm.init $(1)/etc/init.d/php7-fpm
endef endef
define Package/php7-fpm/conffiles
/etc/php7-fpm.conf
/etc/php7-fpm.d/
/etc/config/php7-fpm
endef
define Build/Prepare define Build/Prepare
$(call Build/Prepare/Default) $(call Build/Prepare/Default)
( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force ) ( cd $(PKG_BUILD_DIR); touch configure.in; ./buildconf --force )


Loading…
Cancel
Save