From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect-php:master commit in: /
Date: Wed, 26 Jul 2017 00:21:19 +0000 (UTC) [thread overview]
Message-ID: <1501028273.0b67931ad054c8d109ea89faa8844b1f5a02e8ec.mjo@gentoo> (raw)
commit: 0b67931ad054c8d109ea89faa8844b1f5a02e8ec
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 26 00:17:53 2017 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 00:17:53 2017 +0000
URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=0b67931a
Install the php-fpm init scripts conditional on --enable-fpm.
Makefile.am | 13 +++++++++----
configure.ac | 12 ++++++++++++
2 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 15b0ca8..08359dc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,9 +1,5 @@
eselectdir = $(datadir)/eselect/modules
nodist_eselect_DATA = $(srcdir)/src/php.eselect
-initdir = $(sysconfdir)/init.d
-confdir = $(sysconfdir)/conf.d
-nodist_init_SCRIPTS = $(srcdir)/openrc/php-fpm
-nodist_conf_DATA = $(srcdir)/openrc/php-fpm.conf
# Without EXTRA_DIST, these files don't wind up in the tarball.
EXTRA_DIST = $(srcdir)/src/70_mod_php.conf.in openrc/*.*
@@ -14,6 +10,15 @@ if APACHE2
nodist_apacheconf_DATA = $(srcdir)/src/70_mod_php.conf
endif
+if FPM
+ # Same as the APACHE2 conditional.
+ initdir = $(sysconfdir)/init.d
+ nodist_init_SCRIPTS = $(srcdir)/openrc/php-fpm
+
+ confdir = $(sysconfdir)/conf.d
+ nodist_conf_DATA = $(srcdir)/openrc/php-fpm.conf
+endif
+
# 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
diff --git a/configure.ac b/configure.ac
index 5e6ccfc..02aeaf2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -20,6 +20,18 @@ AC_ARG_ENABLE(
esac],[apache2=false])
AM_CONDITIONAL([APACHE2], [test x$apache2 = xtrue])
+# --enable-fpm flag, disabled by default, that decides whether or
+# not we install the php-fpm init script and config file.
+AC_ARG_ENABLE(
+ [fpm],
+ [ --enable-fpm install the php-fpm init script [[default=no]]],
+ [case "${enableval}" in
+ yes) fpm=true ;;
+ no) fpm=false ;;
+ *) AC_MSG_ERROR([bad value ${enableval} for --enable-fpm]) ;;
+ esac],[fpm=false])
+ AM_CONDITIONAL([FPM], [test x$fpm = xtrue])
+
piddir=${piddir="@LOCALSTATEDIR@"}
AC_ARG_WITH(piddir, AC_HELP_STRING([--with-piddir=DIR],
[where php-fpm PID files are placed [LOCALSTATEDIR]]),
next reply other threads:[~2017-07-26 0:21 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-26 0:21 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-12-05 20:13 [gentoo-commits] proj/eselect-php:master commit in: / Michael Orlitzky
2023-07-26 22:55 Michael Orlitzky
2021-10-25 15:17 Brian Evans
2021-08-17 12:06 Michael Orlitzky
2020-12-08 2:24 Brian Evans
2020-01-23 15:06 Michael Orlitzky
2020-01-23 15:06 Michael Orlitzky
2020-01-22 15:00 Michael Orlitzky
2020-01-22 15:00 Michael Orlitzky
2020-01-22 15:00 Michael Orlitzky
2018-04-13 17:46 Michael Orlitzky
2017-07-26 15:55 Michael Orlitzky
2017-07-26 0:05 Michael Orlitzky
2017-07-26 0:05 Michael Orlitzky
2017-07-25 23:21 Michael Orlitzky
2017-07-19 14:11 Michael Orlitzky
2017-07-11 13:56 Brian Evans
2016-07-26 21:37 Michael Orlitzky
2016-01-22 20:53 Michael Orlitzky
2016-01-22 19:59 Michael Orlitzky
2016-01-22 19:59 Michael Orlitzky
2016-01-22 19:42 Michael Orlitzky
2016-01-09 17:20 Michael Orlitzky
2016-01-09 2:24 Michael Orlitzky
2016-01-08 21:50 Michael Orlitzky
2015-12-11 0:40 Michael Orlitzky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501028273.0b67931ad054c8d109ea89faa8844b1f5a02e8ec.mjo@gentoo \
--to=mjo@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox