@@ -3,45 +3,23 @@ fpm: $(SAPI_FPM_PATH)
3
3
$(SAPI_FPM_PATH ) : $(PHP_GLOBAL_OBJS ) $(PHP_SAPI_OBJS ) $(SAPI_EXTRA_DEPS )
4
4
$(BUILD_FPM )
5
5
6
- install : install-fpm
6
+ install-build : install-fpm
7
7
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 ) / "
10
10
@$(mkinstalldirs ) $(INSTALL_ROOT )$(php_fpm_bin_dir )
11
11
@$(mkinstalldirs ) $(INSTALL_ROOT )$(php_fpm_pid_dir )
12
12
@$(mkinstalldirs ) $(INSTALL_ROOT )$(php_fpm_log_dir )
13
13
@$(INSTALL ) -m 0755 $(SAPI_FPM_PATH ) $(INSTALL_ROOT )$(php_fpm_bin_path )$(program_suffix )$(EXEEXT )
14
14
15
15
@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)/ " && \
17
17
$(mkinstalldirs) $(INSTALL_ROOT)$(php_fpm_conf_dir) || :
18
18
19
19
@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 || :
22
21
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/"
28
23
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
29
24
@$(INSTALL_DATA) sapi/fpm/$(php_fpm_bin).1 $(INSTALL_ROOT)$(mandir)/man1/$(php_fpm_bin)$(program_suffix).1
30
25
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