X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=e5ef70d6c0b482ef34649d4d6a1a6c2d18d4b608;hp=dc50433d23fbd6808e0a0510d7d45e3b43710d97;hb=0f10241a8a2e3d5978b17f7b3b0c579902ae2250;hpb=06f0a601e40a06106f1d603edf3657c6753279ff diff --git a/Makefile b/Makefile index dc50433d2..e5ef70d6c 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/*/*/*/*/* @@ -124,7 +125,7 @@ install-docs: docs [ "${TEMPLATE}" = "mason" ] && \ perl -p -i -e "\ s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \ - " ${MASON_HANDLER} + " ${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;\ + s'%%%MASONDATA%%%'${MASONDATA}'g;\ + " config.layout; \ + ./configure --with-layout=Freeside\ + --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-setup-database --action schema + rt/sbin/rt-setup-database --action insert_initial + rt/sbin/rt-setup-database --action insert --datafile rt/etc/initialdata + + clean: rm -rf aspdocs masondocs cd FS; \