#FREESIDE_DOCUMENT_ROOT = /usr/local/www/data/freeside
#openbsd
#FREESIDE_DOCUMENT_ROOT = /var/www/htdocs/freeside
+#suse
+#FREESIDE_DOCUMENT_ROOT = /srv/www/htdocs/freeside
-#deb, redhat, mandrake, others?
+#deb, redhat, mandrake, suse, others?
INIT_FILE = /etc/init.d/freeside
#freebsd
#INIT_FILE = /usr/local/etc/rc.d/011.freeside.sh
-#deb
+#deb, suse
HTTPD_RESTART = /etc/init.d/apache restart
#redhat, mandrake
#HTTPD_RESTART = /etc/init.d/httpd restart
FREESIDE_RESTART = ${INIT_FILE} restart
-#deb, redhat, mandrake, others?
+#deb, redhat, mandrake, suse, others?
INSTALLGROUP = root
#freebsd, openbsd
#INSTALLGROUP = wheel
@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/*/*/*/*/*
[ "${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" ] && \
+ perl -p -i -e "\
+ 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
create-config: install-perl-modules
[ -e ${FREESIDE_CONF} ] && mv ${FREESIDE_CONF} ${FREESIDE_CONF}.`date +%Y%m%d%H%M%S` || true
- mkdir ${FREESIDE_CONF}
- chown freeside ${FREESIDE_CONF}
+ install -d -o freeside ${FREESIDE_CONF}
touch ${FREESIDE_CONF}/secrets
chown freeside ${FREESIDE_CONF}/secrets
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; \
#these are probably only useful if you're me...
upload-docs: forcehtmlman
- ssh cleanwhisker.420.am rm -rf /var/www/www.sisd.com/freeside/devdocs
- scp -pr httemplate/docs cleanwhisker.420.am:/var/www/www.sisd.com/freeside/devdocs
+ 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
release: upload-docs
cd /home/ivan/freeside
cvs export -r ${TAG} -d freeside-${VERSION} freeside
tar czvf freeside-${VERSION}.tar.gz freeside-${VERSION}
- scp freeside-${VERSION}.tar.gz ivan@cleanwhisker.420.am:/var/www/sisd.420.am/freeside/
+ scp freeside-${VERSION}.tar.gz ivan@pouncequick.420.am:/var/www/sisd.420.am/freeside/
mv freeside-${VERSION} freeside-${VERSION}.tar.gz ..
update-webdemo: