@@ -535,10 +535,9 @@ if(PHP_SAPI_FPM_SELINUX)
535535endif ()
536536
537537################################################################################
538- # Install files .
538+ # Configure man documentation .
539539################################################################################
540540
541- # Configure man documentation.
542541block()
543542 # Replace the hardcoded runstatedir with a template placeholder.
544543 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /php-fpm.8.in" content )
@@ -549,7 +548,11 @@ block()
549548 content
550549 "${content} "
551550 )
552- file (WRITE "${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/PHP/php-fpm.8.in" "${content} " )
551+ file (
552+ WRITE
553+ "${CMAKE_CURRENT_BINARY_DIR} /CMakeFiles/PHP/php-fpm.8.in"
554+ "${content} "
555+ )
553556
554557 string (CONFIGURE [[
555558 set(php_fpm_localstatedir "$<PATH:ABSOLUTE_PATH,NORMALIZE,@CMAKE_INSTALL_LOCALSTATEDIR@,${CMAKE_INSTALL_PREFIX}>")
@@ -582,7 +585,10 @@ block()
582585 )
583586endblock()
584587
588+ ################################################################################
585589# Configure php-fpm.conf.
590+ ################################################################################
591+
586592block()
587593 string (CONFIGURE [[
588594 set(prefix "${CMAKE_INSTALL_PREFIX}")
@@ -608,7 +614,10 @@ block()
608614 install (CODE "${code} " )
609615endblock()
610616
617+ ################################################################################
611618# Configure www.conf.
619+ ################################################################################
620+
612621block()
613622 string (CONFIGURE [[
614623 set(prefix "${CMAKE_INSTALL_PREFIX}")
@@ -636,7 +645,10 @@ block()
636645 install (CODE "${code} " )
637646endblock()
638647
648+ ################################################################################
639649# Configure init.d.php-fpm.
650+ ################################################################################
651+
640652block()
641653 # Replace the hardcoded runstatedir with a template placeholder.
642654 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /init.d.php-fpm.in" content )
@@ -677,7 +689,10 @@ block()
677689 install (CODE "${code} " )
678690endblock()
679691
692+ ################################################################################
680693# Configure init.d.php-fpm.
694+ ################################################################################
695+
681696block()
682697 # Replace the hardcoded runstatedir with a template placeholder.
683698 file (READ "${CMAKE_CURRENT_SOURCE_DIR} /php-fpm.service.in" content )
@@ -717,6 +732,10 @@ block()
717732 install (CODE "${code} " )
718733endblock()
719734
735+ ################################################################################
736+ # Installation.
737+ ################################################################################
738+
720739install (TARGETS php_sapi_fpm RUNTIME DESTINATION ${CMAKE_INSTALL_SBINDIR} )
721740
722741php_install(CODE "
@@ -758,7 +777,10 @@ php_install(CODE "
758777 endif()
759778" )
760779
780+ ################################################################################
761781# FPM info status HTML page.
782+ ################################################################################
783+
762784configure_file (status .html.in status .html @ONLY)
763785
764786install (
@@ -767,4 +789,8 @@ install(
767789 DESTINATION ${CMAKE_INSTALL_DATADIR} /fpm
768790)
769791
792+ ################################################################################
793+ # Configuration header.
794+ ################################################################################
795+
770796configure_file (cmake/config.h.in config.h)
0 commit comments