X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=Makefile;h=c6eef91b00bce652333fe8d54f117e4d9e415728;hp=b3b556caea409a3222786614e59a1a8fec06e372;hb=29d80a8582103ead0b5910391cabc45cb85fa836;hpb=f13c9d8580d02851b150e21ea9beb6fc1dfbd3c8 diff --git a/Makefile b/Makefile index b3b556cae..c6eef91b0 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ DB_TYPE = Pg #DB_TYPE = mysql DB_USER = freeside -DB_PASSWORD=hRoVj902 +DB_PASSWORD= DATASOURCE = DBI:${DB_TYPE}:dbname=freeside @@ -27,12 +27,17 @@ MASONDATA = ${FREESIDE_CACHE}/masondata DIST_CONF = ${FREESIDE_CONF}/default_conf #mod_perl v2 1.999_22 on Apache 2.0 through 2.3 (Debian ancient through 7.x) -APACHE_VERSION=2 +#APACHE_VERSION=2 #Apache 2.4 (Debian 8.x) #APACHE_VERSION=2.4 +APACHE_VERSION := $(shell /usr/sbin/apache2 -v | grep -q '\/2\.4\.' && echo '2.4' || echo '2') + +#deb (-7 and upgrades) +#FREESIDE_DOCUMENT_ROOT = /var/www/freeside +#deb (new installs of 8+) (plus needs more work w/new auth) +#FREESIDE_DOCUMENT_ROOT = /var/www/html/freeside +FREESIDE_DOCUMENT_ROOT := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo '/var/www/html/freeside' || echo '/var/www/freeside') -#deb -FREESIDE_DOCUMENT_ROOT = /var/www/freeside #redhat, fedora, mandrake #FREESIDE_DOCUMENT_ROOT = /var/www/html/freeside #freebsd @@ -50,7 +55,7 @@ INIT_FILE = /etc/init.d/freeside #INIT_FILE = /usr/local/etc/rc.d/011.freeside.sh #deb -INIT_INSTALL = PATH=$PATH:/sbin /usr/sbin/update-rc.d freeside defaults 23 01 +INIT_INSTALL = PATH=${PATH}:/sbin /usr/sbin/update-rc.d freeside defaults 23 01 #redhat, fedora #INIT_INSTALL = /sbin/chkconfig freeside on #not necessary (freebsd) @@ -70,10 +75,11 @@ HTTPD_RESTART = /etc/init.d/apache2 restart #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+), apache2 +#APACHE_CONF = /etc/apache2/conf.d #debian unstable/8.0+, apache2.4 #APACHE_CONF = /etc/apache2/conf-available -#deb (3.1+), apache2 -APACHE_CONF = /etc/apache2/conf.d +APACHE_CONF := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo '/etc/apache2/conf-available' || echo '/etc/apache2/conf.d') INSSERV_OVERRIDE = /etc/insserv/overrides @@ -103,15 +109,15 @@ SELFSERVICE_INSTALL_USERADD = /usr/sbin/useradd #RT_ENABLED = 0 RT_ENABLED = 1 -RT_DOMAIN = localhost -RT_TIMEZONE = US/Central +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 -TORRUS_ENABLED = 0 +TORRUS_ENABLED = 1 # for auto-version updates, so we can "make release" more things automatically RPM_SPECFILE = rpm/freeside.spec @@ -123,7 +129,7 @@ RT_PATH = /opt/rt3 #only used for dev kludge now, not a big deal FREESIDE_PATH = `pwd` -PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.14.2/ +PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.22.1/ VERSION := `grep '^$$VERSION' FS/FS.pm | cut -d\' -f2` TAG := freeside_`grep '^$$VERSION' FS/FS.pm | cut -d\' -f2 | perl -pe 's/\./_/g'` @@ -188,8 +194,10 @@ install-docs: docs " ${MASON_HANDLER} || true mkdir -p ${FREESIDE_EXPORT}/profile chown freeside ${FREESIDE_EXPORT}/profile - [ ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true - chown -R freeside ${MASONDATA} + rm -rf ${MASONDATA}/* + mkdir ${MASONDATA}/cache || true + mkdir ${MASONDATA}/obj || true + chown -f -R freeside ${MASONDATA} || true dev-docs: [ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true @@ -209,6 +217,7 @@ perl-modules: perl -p -i -e "\ s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\ s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\ + s|%%%FREESIDE_LOG%%%|${FREESIDE_LOG}|g;\ s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \ s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \ s'%%%RT_PATH%%%'${RT_PATH}'g; \ @@ -262,8 +271,8 @@ dev-perl-modules: perl-modules ln -sf ${FREESIDE_PATH}/FS/blib/lib/FS ${PERL_INC_DEV_KLUDGE}/FS install-texmf: - install -D -o freeside -m 444 etc/longtable.sty \ - /usr/local/share/texmf/tex/latex/longtable.sty + install -D -o freeside -m 444 etc/*.sty \ + /usr/local/share/texmf/tex/latex/ texhash /usr/local/share/texmf install-init: @@ -393,6 +402,7 @@ create-rt: configure-rt install-rt: if [ ${RT_ENABLED} -eq 1 ]; then ( cd rt; make install ); fi + if [ ${RT_ENABLED} -eq 1 ]; then cp -r rt/share/static/images ${FREESIDE_DOCUMENT_ROOT}/rt/NoAuth/ ;fi if [ ${RT_ENABLED} -eq 1 ]; then perl -p -i -e "\ s'%%%RT_DOMAIN%%%'${RT_DOMAIN}'g;\ s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\