diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2016-01-22 14:39:58 -0500 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2016-01-22 14:39:58 -0500 |
commit | 014afaaab8d4343d2da0869392c1a262023b8712 (patch) | |
tree | e410fbb931271e4730b9145ac74ba2f87e80ea97 /Makefile.am | |
parent | Don't inherit config or multilib. (diff) | |
download | eselect-php-014afaaab8d4343d2da0869392c1a262023b8712.tar.gz eselect-php-014afaaab8d4343d2da0869392c1a262023b8712.tar.bz2 eselect-php-014afaaab8d4343d2da0869392c1a262023b8712.zip |
Add --enable-apache2 flag to the configure script.
The latest eselect-php ebuild allows users to avoid 70_mod_php.conf by
setting USE="-apache2". Now that the conf file is part of eselect-php,
we replicate that ability with --enable-apache2=no, or in fact by
default. To install the apache conf file, one passes --enable-apache2
to the configure script.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 1d1132e..f7ffabe 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,8 +1,11 @@ eselectdir = $(datadir)/eselect/modules nodist_eselect_DATA = $(srcdir)/src/php.eselect -apacheconfdir = $(sysconfdir)/apache2/modules.d -nodist_apacheconf_DATA = $(srcdir)/src/70_mod_php.conf +if APACHE2 + # Without these set, we won't try to install the conf file. + apacheconfdir = $(sysconfdir)/apache2/modules.d + 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 |