summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile66
1 files changed, 8 insertions, 58 deletions
diff --git a/Makefile b/Makefile
index 6d3d80397..8baee0280 100644
--- a/Makefile
+++ b/Makefile
@@ -56,21 +56,13 @@ SELFSERVICE_USER = fs_selfservice
SELFSERVICE_MACHINES = localhost
# SELFSERVICE_MACHINES = web1.example.com web2.example.com
-RT_ENABLED = 0
-#RT_ENABLED = 1
-RT_DOMAIN = example.com
-RT_TIMEZONE = US/Pacific;
-#RT_TIMEZONE = US/Eastern;
-
#---
#not changable yet
FREESIDE_CONF = /usr/local/etc/freeside
-#rt/config.layout.in
-RT_PATH = /opt/rt3
-VERSION=1.5.0pre4
-TAG=freeside_1_5_0pre4
+VERSION=1.4.2beta1
+TAG=freeside_1_4_2beta1
help:
@echo "supported targets: aspdocs masondocs alldocs docs install-docs"
@@ -78,7 +70,6 @@ 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/*/*/*/*/*
@@ -129,15 +120,10 @@ install-docs: docs
[ "${TEMPLATE}" = "asp" -a ! -e ${ASP_GLOBAL} ] && mkdir ${ASP_GLOBAL} || true
[ "${TEMPLATE}" = "asp" ] && chown -R freeside ${ASP_GLOBAL} || true
[ "${TEMPLATE}" = "asp" ] && cp htetc/global.asa ${ASP_GLOBAL} || true
- [ "${TEMPLATE}" = "asp" ] && \
- perl -p -i -e "\
- s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
- " ${ASP_GLOBAL}/global.asa || true
[ "${TEMPLATE}" = "mason" ] && cp htetc/handler.pl ${MASON_HANDLER} || true
[ "${TEMPLATE}" = "mason" ] && \
perl -p -i -e "\
s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
- s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
" ${MASON_HANDLER} || true
[ "${TEMPLATE}" = "mason" -a ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true
[ "${TEMPLATE}" = "mason" ] && chown -R freeside ${MASONDATA} || true
@@ -161,7 +147,7 @@ install-init:
s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\
" ${INIT_FILE}
-install: install-perl-modules install-docs install-init install-rt
+install: install-perl-modules install-docs install-init
deploy: install
${HTTPD_RESTART}
@@ -197,43 +183,6 @@ 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 --enable-layout=Freeside\
- --with-db-type=Pg \
- --with-db-dba=${DB_USER} \
- --with-db-database=freeside \
- --with-db-rt-user=${DB_USER} \
- --with-db-rt-pass=${DB_PASSWORD} \
- --with-web-user=freeside \
- --with-web-group=freeside \
- --with-rt-group=freeside
-
-create-rt: configure-rt
- cd rt; make install
- echo -e "${DB_PASSWORD}\n\\d sessions"\
- | psql -U ${DB_USER} -W freeside 2>&1\
- | grep '^Did not find'\
- && rt/sbin/rt-setup-database --dba '${DB_USER}' \
- --dba-password '${DB_PASSWORD}' \
- --action schema \
- || true
- rt/sbin/rt-setup-database --action insert_initial \
- && rt/sbin/rt-setup-database --action insert --datafile ${RT_PATH}/etc/initialdata \
- || true
- perl -p -i -e "\
- s'%%%RT_DOMAIN%%%'${RT_DOMAIN}'g;\
- s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\
- " ${RT_PATH}/etc/RT_SiteConfig.pm
-
-install-rt:
- [ ${RT_ENABLED} -eq 1 ] && ( cd rt; make install ) || true
-
clean:
rm -rf aspdocs masondocs
cd FS; \
@@ -242,11 +191,12 @@ clean:
#these are probably only useful if you're me...
upload-docs: forcehtmlman
- ssh pouncequick.420.am rm -rf /var/www/www.sisd.com/freeside/devdocs
- scp -pr httemplate/docs pouncequick.420.am:/var/www/www.sisd.com/freeside/devdocs
+ ssh pouncequick.420.am rm -rf /var/www/www.sisd.com/freeside/docs
+ scp -pr httemplate/docs pouncequick.420.am:/var/www/www.sisd.com/freeside/docs
+#release: upload-docs update-webdemo
release: upload-docs
- cd /home/ivan/freeside
+ cd /home/ivan/freeside1.4
#cvs tag ${TAG}
cvs tag -F ${TAG}
@@ -258,7 +208,7 @@ release: upload-docs
mv freeside-${VERSION} freeside-${VERSION}.tar.gz ..
update-webdemo:
- ssh ivan@pouncequick.420.am '( cd freeside; cvs update -d -P )'
+ ssh ivan@pouncequick.420.am '( cd freeside; cvs update -r FREESIDE_1_4_BRANCH -d -P )'
#ssh root@pouncequick.420.am '( cd /home/ivan/freeside; make clean; make deploy )'
ssh root@pouncequick.420.am '( cd /home/ivan/freeside; make deploy )'