summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2020-01-22 12:19:33 -0500
committerMichael Orlitzky <mjo@gentoo.org>2020-01-22 17:44:15 -0500
commit5e69b74fc8c9542faa6891c56b736f1d73da3202 (patch)
treef0a8c1bb4ab1b2cca4027db2ba8eb67aa351ffd4
parentsrc/php-fpm-launcher.in: add php-fpm-launcher wrapper script. (diff)
downloadeselect-php-5e69b74fc8c9542faa6891c56b736f1d73da3202.tar.gz
eselect-php-5e69b74fc8c9542faa6891c56b736f1d73da3202.tar.bz2
eselect-php-5e69b74fc8c9542faa6891c56b736f1d73da3202.zip
src/php-fpm.conf: move the php-fpm tmpfiles.d entry "upstream."
The tmpfiles.d entry for php-fpm creates one "runstate" directory for all slots of php-fpm. Since none of that depends on the currently selected slot, we ship it as part of eselect-php rather than dev-lang/php which would either install one copy for each slot. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
-rw-r--r--Makefile.am3
-rw-r--r--src/php-fpm.conf5
2 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index fbca127..f544739 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -21,6 +21,9 @@ if FPM
nodist_conf_DATA = $(srcdir)/openrc/conf.d/php-fpm
nodist_libexec_SCRIPTS = $(srcdir)/src/php-fpm-launcher
+
+ tmpfilesdir = $(prefix)/lib/tmpfiles.d
+ dist_tmpfiles_DATA = $(srcdir)/src/php-fpm.conf
endif
# The next few rules allow us to replace bindir, libdir, etc.
diff --git a/src/php-fpm.conf b/src/php-fpm.conf
new file mode 100644
index 0000000..a49ba7b
--- /dev/null
+++ b/src/php-fpm.conf
@@ -0,0 +1,5 @@
+# tmpfiles.d entry for php-fmp
+#
+# When autoconf-2.70 is released and --runstatedir is supported,
+# we should change this /run to @RUNSTATEDIR@.
+d /run/php-fpm 755 root root