Skip to content

Commit 9eaf551

Browse files
dagelfkrakjoe
authored andcommitted
pull-request/2393:
stop make install from clobbering default dot d configuration
1 parent 593a4d8 commit 9eaf551

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Makefile.global

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ install-headers:
5353
paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \
5454
done; \
5555
$(mkinstalldirs) $$paths && \
56-
echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
56+
echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \
5757
for i in `echo $(INSTALL_HEADERS)`; do \
5858
if test "$(PHP_PECL_EXTENSION)"; then \
5959
src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \

sapi/fpm/Makefile.frag

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ install-fpm: $(SAPI_FPM_PATH)
1010
@$(mkinstalldirs) $(INSTALL_ROOT)$(localstatedir)/run
1111
@$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(sbindir)/$(program_prefix)php-fpm$(program_suffix)$(EXEEXT)
1212

13-
@echo "Installing PHP FPM config: $(INSTALL_ROOT)$(sysconfdir)/" && \
14-
$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d || :
15-
@$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default || :
16-
@$(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default || :
17-
13+
@if test -f "$(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf"; then \
14+
echo "Installing PHP FPM defconfig: skipping"; \
15+
else \
16+
echo "Installing PHP FPM defconfig: $(INSTALL_ROOT)$(sysconfdir)/" && \
17+
$(mkinstalldirs) $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d; \
18+
$(INSTALL_DATA) sapi/fpm/php-fpm.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.conf.default; \
19+
$(INSTALL_DATA) sapi/fpm/www.conf $(INSTALL_ROOT)$(sysconfdir)/php-fpm.d/www.conf.default; \
20+
fi
21+
1822
@echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man8/"
1923
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man8
2024
@$(INSTALL_DATA) sapi/fpm/php-fpm.8 $(INSTALL_ROOT)$(mandir)/man8/php-fpm$(program_suffix).8

0 commit comments

Comments
 (0)