Skip to content

Commit f9e784a

Browse files
committed
tweak make install a bit - move FPM installation right after CLI
also remove conf backups (not supported by our shtool) and nginx conf installation (no need to be that smart)
1 parent 2b67f20 commit f9e784a

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

sapi/fpm/Makefile.frag

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,23 @@ fpm: $(SAPI_FPM_PATH)
33
$(SAPI_FPM_PATH): $(PHP_GLOBAL_OBJS) $(PHP_SAPI_OBJS) $(SAPI_EXTRA_DEPS)
44
$(BUILD_FPM)
55

6-
install: install-fpm
6+
install-build: install-fpm
77

8-
install-fpm: all
9-
@echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(php_fpm_bin_path)"
8+
install-fpm: install-sapi
9+
@echo "Installing PHP FPM binary: $(INSTALL_ROOT)$(php_fpm_bin_dir)/"
1010
@$(mkinstalldirs) $(INSTALL_ROOT)$(php_fpm_bin_dir)
1111
@$(mkinstalldirs) $(INSTALL_ROOT)$(php_fpm_pid_dir)
1212
@$(mkinstalldirs) $(INSTALL_ROOT)$(php_fpm_log_dir)
1313
@$(INSTALL) -m 0755 $(SAPI_FPM_PATH) $(INSTALL_ROOT)$(php_fpm_bin_path)$(program_suffix)$(EXEEXT)
1414

1515
@test "$(php_fpm_conf)" && \
16-
echo "Installing PHP FPM config: $(INSTALL_ROOT)$(php_fpm_conf_path)" && \
16+
echo "Installing PHP FPM config: $(INSTALL_ROOT)$(php_fpm_conf_dir)/" && \
1717
$(mkinstalldirs) $(INSTALL_ROOT)$(php_fpm_conf_dir) || :
1818

1919
@test "$(php_fpm_conf)" && \
20-
test -f "$(INSTALL_ROOT)$(php_fpm_conf_path)" && \
21-
$(INSTALL_DATA) --backup=numbered $(INSTALL_ROOT)$(php_fpm_conf_path) $(INSTALL_ROOT)$(php_fpm_conf_path).old || :
20+
$(INSTALL_DATA) sapi/fpm/conf/php-fpm.conf $(INSTALL_ROOT)$(php_fpm_conf_path).default || :
2221

23-
@test "$(php_fpm_conf)" && \
24-
$(INSTALL_DATA) sapi/fpm/conf/php-fpm.conf $(INSTALL_ROOT)$(php_fpm_conf_path).default && \
25-
ln -sf $(INSTALL_ROOT)$(php_fpm_conf_path).default $(INSTALL_ROOT)$(php_fpm_conf_path) || :
26-
27-
@echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man1/$(php_fpm_bin)$(program_suffix).1"
22+
@echo "Installing PHP FPM man page: $(INSTALL_ROOT)$(mandir)/man1/"
2823
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
2924
@$(INSTALL_DATA) sapi/fpm/$(php_fpm_bin).1 $(INSTALL_ROOT)$(mandir)/man1/$(php_fpm_bin)$(program_suffix).1
3025

31-
@test -d /etc/nginx/ && \
32-
echo "Installing NGINX sample config: /etc/nginx/nginx-site-conf.sample" && \
33-
$(mkinstalldirs) $(INSTALL_ROOT)/etc/nginx && \
34-
$(INSTALL_DATA) -b sapi/fpm/nginx-site-conf.sample $(INSTALL_ROOT)/etc/nginx/nginx-site-conf.sample || :
35-
36-
@test -d /usr/local/etc/nginx/ && \
37-
echo "Installing NGINX sample config: /usr/local/etc/nginx/nginx-site-conf.sample" && \
38-
$(mkinstalldirs) $(INSTALL_ROOT)/usr/local/etc/nginx && \
39-
$(INSTALL_DATA) -b sapi/fpm/nginx-site-conf.sample $(INSTALL_ROOT)/usr/local/etc/nginx/nginx-site-conf.sample || :
40-
41-
@test -d /usr/local/nginx/conf/ && \
42-
echo "Installing NGINX sample config: /usr/local/nginx/conf/nginx-site-conf.sample" && \
43-
$(mkinstalldirs) $(INSTALL_ROOT)/usr/local/nginx/conf && \
44-
$(INSTALL_DATA) -b sapi/fpm/nginx-site-conf.sample $(INSTALL_ROOT)/usr/local/nginx/conf/nginx-site-conf.sample || :
45-
46-
@echo "" || :
47-

0 commit comments

Comments
 (0)