summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorivan <ivan>2007-01-21 13:26:44 +0000
committerivan <ivan>2007-01-21 13:26:44 +0000
commit625f6e43b7345f04cf4ece8dd9ff963b9b09f338 (patch)
treebca9f683b3b5dd5d1a7e27ca6e2cb86afb6334e7 /Makefile
parent75d0fe9902d6fa2d5623648c13ba3676fe462810 (diff)
mod_perl v2, it finally happened
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7ae5274f6..4c23b8dba 100644
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,10 @@ FREESIDE_EXPORT = /usr/local/etc/freeside
MASON_HANDLER = ${FREESIDE_CONF}/handler.pl
MASONDATA = ${FREESIDE_CACHE}/masondata
+#yup
+APACHE_VERSION = 1
+#APACHE_VERSION = 2
+
# only mason now
TEMPLATE = mason
@@ -231,11 +235,13 @@ install-init:
${INIT_INSTALL}
install-apache:
+ [ -e ${APACHE_CONF}/freeside-base.conf ] && rm ${APACHE_CONF}/freeside-base.conf || true
[ -d ${APACHE_CONF} ] && \
- ( install -o root -m 755 htetc/freeside-base.conf ${APACHE_CONF} && \
+ ( install -o root -m 755 htetc/freeside-base${APACHE_VERSION}.conf ${APACHE_CONF} && \
( [ ${RT_ENABLED} -eq 1 ] && install -o root -m 755 htetc/freeside-rt.conf ${APACHE_CONF} || true ) && \
perl -p -i -e "\
s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
+ s'%%%MASON_HANDLER%%%'${MASON_HANDLER}'g; \
" ${APACHE_CONF}/freeside-*.conf \
) || true