X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=42f1b85f19e79539ecfce2e1fcea884869db6dd2;hp=1b212b387a23f3639e7d6ef5978bc9fbfc5de57b;hb=6b54ceeb39da7915624bbcac63fb16e463916709;hpb=02aea7237fa255266f7b71eb0a9114c12aa3c034 diff --git a/Makefile b/Makefile index 1b212b387..42f1b85f1 100644 --- a/Makefile +++ b/Makefile @@ -70,6 +70,7 @@ help: @echo " perl-modules install-perl-modules" @echo " install deploy" @echo " create-database" + @echo " configure-rt create-rt" @echo " clean" aspdocs: htmlman httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/* @@ -121,10 +122,10 @@ install-docs: docs [ "${TEMPLATE}" = "asp" ] && chown -R freeside ${ASP_GLOBAL} || true [ "${TEMPLATE}" = "asp" ] && cp htetc/global.asa ${ASP_GLOBAL} || true [ "${TEMPLATE}" = "mason" ] && cp htetc/handler.pl ${MASON_HANDLER} || true - [ "${TEMPLATE}" = "mason" ] && + [ "${TEMPLATE}" = "mason" ] && \ perl -p -i -e "\ - s/%%%FREESIDE_DOCUMENT_ROOT%%%/${FREESIDE_DOCUMENT_ROOT}/g; - " ${MASON_HANDLER} + s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \ + " ${MASON_HANDLER} || true [ "${TEMPLATE}" = "mason" -a ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true [ "${TEMPLATE}" = "mason" ] && chown -R freeside ${MASONDATA} || true @@ -183,6 +184,28 @@ create-config: install-perl-modules mkdir "${FREESIDE_CONF}/export.${DATASOURCE}" chown freeside "${FREESIDE_CONF}/export.${DATASOURCE}" +configure-rt: + cd rt; \ + cp config.layout.in config.layout; \ + perl -p -i -e "\ + s/%%%FREESIDE_DOCUMENT_ROOT%%%/${FREESIDE_DOCUMENT_ROOT}/g;\ + " config.layout + ./configure --with-layout=Freeside\ + --masonstatedir=${MASONDATA} \ + --with-db-type=Pg \ + --with-db-database=freeside \ + --with-db-rt-user=${DB_USER} \ + --with-db-rt-pass=${DB_PASSWORD} \ + --with-web-user=freeside \ + --with-web-group=www + +create-rt: configure-rt + cd rt; make install + rt/sbin/rt-initialize-database --action schema + rt/sbin/rt-initialize-database --action insert_initial + rt/sbin/rt-initialize-database --action insert --datafile rt/etc/initialdata + + clean: rm -rf aspdocs masondocs cd FS; \