summaryrefslogtreecommitdiffstats
path: root/rules/lighttpd.make
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-05-11 11:24:54 +0000
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-05-11 11:24:54 +0000
commit18f2b283d378ee223c11d412473dec1fea6f722d (patch)
treeda6da107b333e5185ca6662ed3d5919242d59204 /rules/lighttpd.make
parent60eddac8765bc20c6da320bd5e9a3ca11277f085 (diff)
downloadptxdist-18f2b283d378ee223c11d412473dec1fea6f722d.tar.gz
ptxdist-18f2b283d378ee223c11d412473dec1fea6f722d.tar.xz
[lighttpd] mangle config depending on fastcgi support
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10430 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/lighttpd.make')
-rw-r--r--rules/lighttpd.make24
1 files changed, 14 insertions, 10 deletions
diff --git a/rules/lighttpd.make b/rules/lighttpd.make
index 4cba1dcc8..b82920c8d 100644
--- a/rules/lighttpd.make
+++ b/rules/lighttpd.make
@@ -178,11 +178,21 @@ $(STATEDIR)/lighttpd.targetinstall:
done
# #
-# # config
+# # configs
# #
- @$(call install_alternative, lighttpd, 0, 0, 0644, /etc/lighttpd/lighttpd.conf, n)
-# # FIXME: withoug PTXCONF_PHP5_SAPI_CGI, we want to install
-# # $(PTXDIST_TOPDIR)/generic/etc/lighttpd/lighttpd-no_php.conf instead?
+ @$(call install_alternative, lighttpd, 0, 0, 0644, /etc/lighttpd/lighttpd.conf)
+
+ @$(call install_replace, lighttpd, /etc/lighttpd/lighttpd.conf, \
+ @CGI@, $(call ptx/ifdef, PTXCONF_PHP5_SAPI_CGI,,#))
+
+ @$(call install_replace, lighttpd, /etc/lighttpd/lighttpd.conf, \
+ @NOCGI@, $(call ptx/ifdef, PTXCONF_PHP5_SAPI_CGI,#,))
+
+ifdef PTXCONF_PHP5_SAPI_CGI
+ @$(call install_copy, lighttpd, 12, 102, 0644, \
+ $(PTXDIST_TOPDIR)/generic/etc/lighttpd/mod_fastcgi.conf, \
+ /etc/lighttpd/mod_fastcgi.conf, n)
+endif
# #
# # busybox init: start script
@@ -194,12 +204,6 @@ ifdef PTXCONF_LIGHTTPD_STARTSCRIPT
endif
endif
-ifdef PTXCONF_PHP5_SAPI_CGI
- @$(call install_copy, lighttpd, 12, 102, 0644, \
- $(PTXDIST_TOPDIR)/generic/etc/lighttpd/mod_fastcgi.conf, \
- /etc/lighttpd/mod_fastcgi.conf, n)
-endif
-
ifdef PTXCONF_LIGHTTPD__GENERIC_SITE
ifdef PTXCONF_PHP5_SAPI_CGI
@$(call install_copy, lighttpd, 12, 102, 0644, \