X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=315d43070fa9623f22fb3741feae7f4f4e1b8735;hp=7596c5b7cb5520ffab0c74d82900548ad5a182a9;hb=98a73bb080f55f4f5d850102bcec6da2807e3d4f;hpb=d64192f83cc67eec19cdb96ab8db4fa2f59f4621 diff --git a/Makefile b/Makefile index 7596c5b7c..315d43070 100644 --- a/Makefile +++ b/Makefile @@ -6,23 +6,25 @@ DATASOURCE = DBI:Pg:host=localhost;dbname=freeside DB_USER = freeside DB_PASSWORD= -TEMPLATE = asp -#TEMPLATE = mason +#TEMPLATE = asp +TEMPLATE = mason ASP_GLOBAL = /usr/local/etc/freeside/asp-global FREESIDE_DOCUMENT_ROOT = /var/www/freeside +INIT_FILE = /etc/init.d/freeside + HTTPD_RESTART = /etc/init.d/apache restart -QUEUED_RESTART = /etc/init.d/freeside restart +FREESIDE_RESTART = /etc/init.d/freeside restart #--- #not changable yet FREESIDE_CONF = /usr/local/etc/freeside -VERSION="1.4.0pre11" -TAG="1_4_0_PRE11" +VERSION="1.4.0pre12" +TAG="1_4_0_PRE12" help: @echo "supported targets: aspdocs masondocs alldocs docs install-docs" @@ -74,11 +76,14 @@ install-perl-modules: perl-modules cd FS; \ make install UNINST=1 -install: install-perl-modules install-docs +install-init: + [ -e ${INIT_FILE} ] || install -o root -g root -m 711 init.d/freeside-init ${INIT_FILE} + +install: install-perl-modules install-docs install-init deploy: install ${HTTPD_RESTART} - ${QUEUED_RESTART} + ${FREESIDE_RESTART} create-database: perl -e 'use DBIx::DataSource qw( create_database ); create_database( "${DATASOURCE}", "${DB_USER}", "${DB_PASSWORD}" ) or die $$DBIx::DataSource::errstr;'