@@ -504,10 +504,9 @@ if(PHP_SAPI_FPM_SELINUX)
504504endif ()
505505
506506################################################################################
507- # Install files .
507+ # Configure man documentation .
508508################################################################################
509509
510- # Configure man documentation.
511510block()
512511 # Replace the hardcoded runstatedir with a template placeholder.
513512 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /php-fpm.8.in" content )
@@ -518,7 +517,11 @@ block()
518517 content
519518 "${content} "
520519 )
521- file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/PHP/php-fpm.8.in" "${content} " )
520+ file (
521+ WRITE
522+ "${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/PHP/php-fpm.8.in"
523+ "${content} "
524+ )
522525
523526 string (CONFIGURE [[
524527 set(php_fpm_localstatedir "$<PATH:ABSOLUTE_PATH,NORMALIZE,@CMAKE_INSTALL_LOCALSTATEDIR@,${CMAKE_INSTALL_PREFIX}>")
@@ -551,7 +554,10 @@ block()
551554 )
552555endblock()
553556
557+ ################################################################################
554558# Configure php-fpm.conf.
559+ ################################################################################
560+
555561block()
556562 string (CONFIGURE [[
557563 set(prefix "${CMAKE_INSTALL_PREFIX}")
@@ -577,7 +583,10 @@ block()
577583 install (CODE "${code} " )
578584endblock()
579585
586+ ################################################################################
580587# Configure www.conf.
588+ ################################################################################
589+
581590block()
582591 string (CONFIGURE [[
583592 set(prefix "${CMAKE_INSTALL_PREFIX}")
@@ -605,7 +614,10 @@ block()
605614 install (CODE "${code} " )
606615endblock()
607616
617+ ################################################################################
608618# Configure init.d.php-fpm.
619+ ################################################################################
620+
609621block()
610622 # Replace the hardcoded runstatedir with a template placeholder.
611623 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /init.d.php-fpm.in" content )
@@ -646,7 +658,10 @@ block()
646658 install (CODE "${code} " )
647659endblock()
648660
661+ ################################################################################
649662# Configure init.d.php-fpm.
663+ ################################################################################
664+
650665block()
651666 # Replace the hardcoded runstatedir with a template placeholder.
652667 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /php-fpm.service.in" content )
@@ -686,6 +701,10 @@ block()
686701 install (CODE "${code} " )
687702endblock()
688703
704+ ################################################################################
705+ # Installation.
706+ ################################################################################
707+
689708install (TARGETS php_sapi_fpm RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} )
690709
691710php_install(CODE "
@@ -727,7 +746,10 @@ php_install(CODE "
727746 endif()
728747" )
729748
749+ ################################################################################
730750# FPM info status HTML page.
751+ ################################################################################
752+
731753configure_file (status .html.in status .html @ONLY)
732754
733755install (
@@ -736,4 +758,8 @@ install(
736758 DESTINATION ${CMAKE_INSTALL_DATADIR} /fpm
737759)
738760
761+ ################################################################################
762+ # Configuration header.
763+ ################################################################################
764+
739765configure_file (cmake/config.h.in config.h)
0 commit comments