more accurate split of files into -webui and -lib packages
[freeside.git] / debian / rules
index f390072..38b6b0a 100755 (executable)
@@ -48,7 +48,7 @@ export MASON_HANDLER=$(TMP)-webui/usr/local/etc/freeside/handler.pl
 
 export APACHE_VERSION        := $(shell /usr/sbin/apache2 -v | grep -q '\/2\.4\.' && echo '2.4' || echo '2')
 export APACHE_DOCUMENT_ROOT  := $(shell [ ${APACHE_VERSION} = '2.4' ] && echo '/var/www/html' || echo '/var/www')
-export FREESIDE_DOCUMENT_ROOT = $(TMP)$(APACHE_DOCUMENT_ROOT)/freeside
+export FREESIDE_DOCUMENT_ROOT = $(TMP)-webui$(APACHE_DOCUMENT_ROOT)/freeside
 export INIT_FILE              = $(TMP).init
 export INIT_INSTALL           = /bin/true
 export HTTPD_RESTART          = /bin/true
@@ -78,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
 
@@ -167,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)
@@ -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.