X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=36165a4fc7198b60454d2dbb9d4d1def47b88db1;hb=1313896e5b0cd551fc4449fe6dd8c863d5d1de4a;hp=30bd292e8f1b312567aff1a11b4a5712a77b8825;hpb=75af5c1aaf6a47371cea5e6aa4097ee8919aa3ff;p=freeside.git diff --git a/debian/rules b/debian/rules index 30bd292e8..36165a4fc 100755 --- a/debian/rules +++ b/debian/rules @@ -53,6 +53,7 @@ export INIT_FILE = $(TMP).init export INIT_INSTALL = /bin/true export HTTPD_RESTART = /bin/true export APACHE_CONF := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo "$(TMP)-webui/etc/apache2/conf-available" || echo "$(TMP)-webui/etc/apache2/conf.d") +export TORRUS_CONF := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo "$(TMP)-torrus/etc/apache2/conf-available" || echo "$(TMP)-torrus/etc/apache2/conf.d") export FREESIDE_RESTART = /bin/true #XXX root? @@ -77,6 +78,8 @@ export FREESIDE_URL = http://$(HOSTNAME)/freeside/ # (but leaving it for now, otherwise can't get RT to put files where we need em) export RT_PATH = $(TMP)/opt/rt3 +export TEXMF_PATH = $(TMP)-lib/usr/local/share/texmf/tex/latex + # This has to be exported to make some magic below work. export DH_OPTIONS @@ -166,9 +169,8 @@ install-stamp: build-stamp $(MAKE) -e DESTDIR=$(TMP)-webui install-docs # Install tex - install -D -o freeside -m 444 etc/longtable.sty \ - $(TMP)-lib/usr/local/share/texmf/tex/latex/longtable.sty - texhash $(TMP)-lib/usr/local/share/texmf + install -d ${TEXMF_PATH} + install -o freeside -m 444 etc/*.sty ${TEXMF_PATH} # Create Apache configurations install -d $(APACHE_CONF) @@ -227,12 +229,16 @@ install-stamp: build-stamp # Torrus - install -d ${TMP}-torrus$(APACHE_DOCUMENT_ROOT)/ + install -d ${TORRUS_CONF} + install -o root -m 755 htetc/freeside-torrus.conf $(TORRUS_CONF)/ ( cd torrus; \ torrus_user=freeside var_user=freeside var_group=freeside ./configure; \ $(MAKE) -e DESTDIR=${TMP}-torrus/; \ - $(MAKE) -e DESTDIR=${TMP}-torrus/ install ) + $(MAKE) -e DESTDIR=${TMP}-torrus/ install; \ + perl -p -i -e "\ + s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\ + " ${TMP}-torrus/usr/local/etc/torrus/conf/torrus-siteconfig.pl ) #RT Config @@ -260,6 +266,7 @@ install-stamp: build-stamp install -d $(RT_PATH)/share ( cd rt; $(MAKE) config-install dirs files-install fixperms instruct ) + cp -r rt/share/static/images ${FREESIDE_DOCUMENT_ROOT}/rt/NoAuth/ ##hack the build dir out of RT. yeah, sucky.