X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=Makefile;h=796bca81f03867378f8af2961098e64e85f6e569;hb=1c8f3834d38fb9fbda77eb204d9cd162f20f95ea;hp=9d6a37d9cc60d57e69511152d7964930b71fde73;hpb=1042bdaec22e1b95484ee7cfbd720f33c9b6709a;p=freeside.git diff --git a/Makefile b/Makefile index 9d6a37d9c..796bca81f 100644 --- a/Makefile +++ b/Makefile @@ -52,6 +52,10 @@ HTTPD_RESTART = /etc/init.d/apache restart #apache #HTTPD_RESTART = /usr/local/apache/bin/apachectl stop; sleep 10; /usr/local/apache/bin/apachectl startssl +#(an include directory, not a file - "Include /etc/apache/conf.d" in httpd.conf) +#deb (3.1+), +APACHE_CONF = /etc/apache/conf.d + FREESIDE_RESTART = ${INIT_FILE} restart #deb, redhat, fedora, mandrake, suse, others? @@ -78,11 +82,12 @@ SELFSERVICE_INSTALL_USER = ivan SELFSERVICE_INSTALL_USERADD = /usr/sbin/useradd #SELFSERVICE_INSTALL_USERADD = "/usr/sbin/pw useradd" -RT_ENABLED = 0 -#RT_ENABLED = 1 +#RT_ENABLED = 0 +RT_ENABLED = 1 RT_DOMAIN = example.com RT_TIMEZONE = US/Pacific; #RT_TIMEZONE = US/Eastern; +FREESIDE_URL = "http://localhost/freeside/" #for now, same db as specified in DATASOURCE... eventually, otherwise? RT_DB_DATABASE = freeside @@ -94,8 +99,8 @@ FREESIDE_CONF = /usr/local/etc/freeside #rt/config.layout.in RT_PATH = /opt/rt3 -VERSION=1.5.0pre6 -TAG=freeside_1_5_0pre6 +VERSION=1.5.7 +TAG=freeside_1_5_7 help: @echo "supported targets: aspdocs masondocs alldocs docs install-docs" @@ -184,8 +189,17 @@ install-init: " ${INIT_FILE} ${INIT_INSTALL} +install-apache: + [ -d ${APACHE_CONF} ] && \ + ( install -o root -m 755 htetc/freeside-base.conf ${APACHE_CONF} && \ + ( [ ${RT_ENABLED} -eq 1 ] && install -o root -m 755 htetc/freeside-rt.conf ${APACHE_CONF} || true ) && \ + perl -p -i -e "\ + s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \ + " ${APACHE_CONF}/freeside-*.conf \ + ) || true + install-selfservice: - [ -e ~freeside/.ssh/id_dsa.pub ] || su -c 'ssh-keygen -t dsa' - freeside + [ -e ~freeside/.ssh/id_dsa.pub ] || su - freeside -c 'ssh-keygen -t dsa' for MACHINE in ${SELFSERVICE_MACHINES}; do \ scp -r fs_selfservice/FS-SelfService ${SELFSERVICE_INSTALL_USER}@$$MACHINE:. ;\ ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; perl Makefile.PL && make" ;\ @@ -202,7 +216,7 @@ update-selfservice: ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; sudo make install" ;\ done -install: install-perl-modules install-docs install-init install-rt +install: install-perl-modules install-docs install-init install-apache install-rt deploy: install ${HTTPD_RESTART} @@ -273,6 +287,7 @@ create-rt: configure-rt perl -p -i -e "\ s'%%%RT_DOMAIN%%%'${RT_DOMAIN}'g;\ s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\ + s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\ " ${RT_PATH}/etc/RT_SiteConfig.pm install-rt: