Skip to content

Commit

Permalink
collapse www.conf into php-fpm.conf, makes it easier to manage with M…
Browse files Browse the repository at this point in the history
…PF policy rendering/service restart with one file.
  • Loading branch information
craigcomstock committed Oct 10, 2024
1 parent 2796501 commit 78098c5
Show file tree
Hide file tree
Showing 5 changed files with 491 additions and 504 deletions.
3 changes: 0 additions & 3 deletions deps-packaging/php/cfbuild-php.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Release: 1
Source0: php-%{php_version}.tar.gz
Source1: php.ini
Source2: php-fpm.conf
Source3: www.conf
License: MIT
Group: Other
Url: http://example.com/
Expand Down Expand Up @@ -113,9 +112,7 @@ make
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{prefix}/httpd/conf
cp %{prefix}/httpd/conf/httpd.conf ${RPM_BUILD_ROOT}%{prefix}/httpd/conf
mkdir -p ${RPM_BUILD_ROOT}%{prefix}/httpd/php/etc/php-fpm.d
cp ${RPM_BUILD_ROOT}/../../SOURCES/php-fpm.conf ${RPM_BUILD_ROOT}%{prefix}/httpd/php/etc
cp ${RPM_BUILD_ROOT}/../../SOURCES/www.conf ${RPM_BUILD_ROOT}%{prefix}/httpd/php/etc/php-fpm.d

INSTALL_ROOT=${RPM_BUILD_ROOT} make install

Expand Down
1 change: 0 additions & 1 deletion deps-packaging/php/debian/cfbuild-php.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
/var/cfengine/httpd/modules/libphp.so
/var/cfengine/httpd/php/lib/php.ini
/var/cfengine/httpd/php/etc/php-fpm.conf
/var/cfengine/httpd/php/etc/php-fpm.d/www.conf
/var/cfengine/httpd/php/sbin/php-fpm
2 changes: 0 additions & 2 deletions deps-packaging/php/debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ install: build

mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/httpd/conf
cp $(PREFIX)/httpd/conf/httpd.conf $(CURDIR)/debian/tmp$(PREFIX)/httpd/conf/httpd.conf
mkdir -p $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/etc/php-fpm.d
cp $(CURDIR)/php-fpm.conf $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/etc/
cp $(CURDIR)/www.conf $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/etc/php-fpm.d/

INSTALL_ROOT=$(CURDIR)/debian/tmp CPPFLAGS="-I$(PREFIX)/include" LD_LIBRARY_PATH="$(PREFIX)/lib" LD_RUN_PATH="$(PREFIX)/lib" $(MAKE) install

Expand Down
Loading

0 comments on commit 78098c5

Please sign in to comment.