commit: 8cfe3c367df66bcb27cab3868190de3a18538fff
Author: Michael Orlitzky <michael <AT> orlitzky <DOT> com>
AuthorDate: Wed Jul 19 13:55:54 2017 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Jul 19 13:55:54 2017 +0000
URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=8cfe3c36
php-fpm.example.init.in: use @SYSCONFDIR@ from autotools.
Makefile.am | 9 +++++----
doc/php-fpm.example.init.in | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 578062e..eb3b89b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -12,19 +12,20 @@ if APACHE2
nodist_apacheconf_DATA = $(srcdir)/src/70_mod_php.conf
endif
-# The next few rules allow us to replace bindir, libdir, and
-# localstatedir within our script and conf file. The example is taken
+# The next few rules allow us to replace bindir, libdir, etc.
+# within our script and conf file. The example is taken
# from the autoconf documentation and can be found in the
# "Installation Directory Variables" section.
edit = sed -e 's|@BINDIR[@]|$(bindir)|g' \
-e 's|@LIBDIR[@]|$(libdir)|g' \
- -e 's|@LOCALSTATEDIR[@]|$(localstatedir)|g'
+ -e 's|@LOCALSTATEDIR[@]|$(localstatedir)|g' \
+ -e 's|@SYSCONFDIR[@]|$(sysconfdir)|g'
$(nodist_eselect_DATA) $(nodist_apacheconf_DATA) $(nodist_init_DATA): Makefile
rm -f $@ [email protected]
srcdir=''; \
test -f ./[email protected] || srcdir=$(srcdir)/; \
- $(edit) $${srcdir}[email protected] > [email protected]
+ $(edit) $${srcdir}[email protected] > [email protected]
mv [email protected] $@
$(srcdir)/src/php.eselect: $(srcdir)/src/php.eselect.in
diff --git a/doc/php-fpm.example.init.in b/doc/php-fpm.example.init.in
index 7969b71..912a5d8 100644
--- a/doc/php-fpm.example.init.in
+++ b/doc/php-fpm.example.init.in
@@ -11,7 +11,7 @@ set_phpvars() {
PHP_FPM_PID="/run/php-fpm.pid"
fi
- PHP_FPM_CONF="/etc/php/fpm-${PHPSLOT}/php-fpm.conf"
+ PHP_FPM_CONF="@SYSCONFDIR@/php/fpm-${PHPSLOT}/php-fpm.conf"
PHP_FPM_BIN="@LIBDIR@/${PHPSLOT}/bin/php-fpm"
}