X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=debian%2Frules;h=e7f5bd8a0af5c33a17016a396818c7050a131093;hp=2faf1bd0156c82066c9b7973272df3b18551af99;hb=4324774d690f418e1c6ddfcdf12f5c222a073144;hpb=458f6fc84389aa3d4679380bb15aad74bdec0cb3 diff --git a/debian/rules b/debian/rules index 2faf1bd01..e7f5bd8a0 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,17 +229,16 @@ install-stamp: build-stamp # Torrus - install -d ${TMP}-torrus$(APACHE_DOCUMENT_ROOT)/ - install -o root -m 755 htetc/freeside-torrus.conf ${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 ) - - perl -p -i -e "\ - s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\ - " ${TMP}-torrus/usr/local/etc/torrus/conf/torrus-siteconfig.pl; \ + $(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 @@ -265,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_PATH}/share/static/images ${FREESIDE_DOCUMENT_ROOT}/rt/NoAuth/ ##hack the build dir out of RT. yeah, sucky.