X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=20b70af676a053961d91ce6f4665ab664792129d;hp=ba1f5cd1725852a89e610a1fcc399f275f61a890;hb=d5097ef7712573de5faf223de8c9ec0a43ffcff0;hpb=4060bc129c8b4e2ea1b699b48fb8bf69608c4b0c diff --git a/Makefile b/Makefile index ba1f5cd17..20b70af67 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/*/*/*/*/* @@ -183,6 +184,24 @@ create-config: install-perl-modules mkdir "${FREESIDE_CONF}/export.${DATASOURCE}" chown freeside "${FREESIDE_CONF}/export.${DATASOURCE}" +configure-rt: + cd rt; \ + ./configure --htmldir=${FREESIDE_DOCUMENT_ROOT}/rt \ + --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; \