X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=Makefile;h=9d6a37d9cc60d57e69511152d7964930b71fde73;hb=a06550f5269b610009cf89b3698eed2bd13be261;hp=9eaa2bbf9ab23ab7506a125919c37472cb488aa5;hpb=bb60bac36854bcd609563dd4b1500bfcdc1449ec;p=freeside.git diff --git a/Makefile b/Makefile index 9eaa2bbf9..9d6a37d9c 100644 --- a/Makefile +++ b/Makefile @@ -34,14 +34,21 @@ INIT_FILE = /etc/init.d/freeside #freebsd #INIT_FILE = /usr/local/etc/rc.d/011.freeside.sh +#deb +INIT_INSTALL = /usr/sbin/update-rc.d freeside defaults 21 20 +#redhat, fedora +#INIT_INSTALL = /sbin/chkconfig freeside on +#not necessary (freebsd) +#INIT_INSTALL = /usr/bin/true + #deb, suse HTTPD_RESTART = /etc/init.d/apache restart #redhat, fedora, mandrake #HTTPD_RESTART = /etc/init.d/httpd restart #freebsd -#HTTPD_RESTART = /usr/local/etc/rc.d/apache.sh stop; sleep 1; /usr/local/etc/rc.d/apache.sh start +#HTTPD_RESTART = /usr/local/etc/rc.d/apache.sh stop || true; sleep 10; /usr/local/etc/rc.d/apache.sh start #openbsd -#HTTPD_RESTART = kill -TERM `cat /var/www/logs/httpd.pid`; sleep 1; /usr/sbin/httpd -u -DSSL +#HTTPD_RESTART = kill -TERM `cat /var/www/logs/httpd.pid`; sleep 10; /usr/sbin/httpd -u -DSSL #apache #HTTPD_RESTART = /usr/local/apache/bin/apachectl stop; sleep 10; /usr/local/apache/bin/apachectl startssl @@ -77,6 +84,9 @@ RT_DOMAIN = example.com RT_TIMEZONE = US/Pacific; #RT_TIMEZONE = US/Eastern; +#for now, same db as specified in DATASOURCE... eventually, otherwise? +RT_DB_DATABASE = freeside + #--- #not changable yet @@ -84,8 +94,8 @@ FREESIDE_CONF = /usr/local/etc/freeside #rt/config.layout.in RT_PATH = /opt/rt3 -VERSION=1.5.0pre5 -TAG=freeside_1_5_0pre5 +VERSION=1.5.0pre6 +TAG=freeside_1_5_0pre6 help: @echo "supported targets: aspdocs masondocs alldocs docs install-docs" @@ -99,9 +109,6 @@ help: aspdocs: htmlman httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/* httemplate/*/*/*/*/* rm -rf aspdocs cp -pr httemplate aspdocs - perl -p -i -e "\ - s/%%%VERSION%%%/${VERSION}/g;\ - " aspdocs/index.html touch aspdocs @@ -111,9 +118,6 @@ masondocs: htmlman httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/* ( cd masondocs; \ ../bin/masonize; \ ) - perl -p -i -e "\ - s/%%%VERSION%%%/${VERSION}/g;\ - " masondocs/index.html touch masondocs alldocs: aspdocs masondocs @@ -160,7 +164,10 @@ install-docs: docs perl-modules: cd FS; \ [ -e Makefile ] || perl Makefile.PL; \ - make + make; \ + perl -p -i -e "\ + s/%%%VERSION%%%/${VERSION}/g;\ + " blib/lib/FS.pm install-perl-modules: perl-modules cd FS; \ @@ -175,6 +182,7 @@ install-init: s/%%%SELFSERVICE_USER%%%/${SELFSERVICE_USER}/g;\ s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\ " ${INIT_FILE} + ${INIT_INSTALL} install-selfservice: [ -e ~freeside/.ssh/id_dsa.pub ] || su -c 'ssh-keygen -t dsa' - freeside @@ -240,7 +248,7 @@ configure-rt: ./configure --enable-layout=Freeside\ --with-db-type=Pg \ --with-db-dba=${DB_USER} \ - --with-db-database=freeside \ + --with-db-database=${RT_DB_DATABASE} \ --with-db-rt-user=${DB_USER} \ --with-db-rt-pass=${DB_PASSWORD} \ --with-web-user=freeside \ @@ -248,9 +256,12 @@ configure-rt: --with-rt-group=freeside create-rt: configure-rt + [ -d /opt ] || mkdir /opt #doh + [ -d /opt/rt3 ] || mkdir /opt/rt3 # + [ -d /opt/rt3/share ] || mkdir /opt/rt3/share # cd rt; make install echo -e "${DB_PASSWORD}\n\\d sessions"\ - | psql -U ${DB_USER} -W freeside 2>&1\ + | psql -U ${DB_USER} -W ${RT_DB_DATABASE} 2>&1\ | grep '^Did not find'\ && rt/sbin/rt-setup-database --dba '${DB_USER}' \ --dba-password '${DB_PASSWORD}' \ @@ -275,8 +286,8 @@ 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 cd /home/ivan/freeside