#!/usr/bin/make -f # # $HeadURL$ # $LastChangedRevision$ # $LastChangedDate$ # $LastChangedBy$ java_home := /usr/lib/jvm/java-6-sun ant := JAVA_HOME=$(java_home) /usr/bin/ant rootdir := $(shell pwd) upstream_version := $(shell dpkg-parsechangelog | sed -n \ -e 's/^Version: \(.\+\)-[^-]\+$$/\1/p' \ -e 's/^Version: \([^-]\+\)$$/\1/p') p_central := cwolf-central install_code_base := usr/share/$(p_central) install_conf_base := etc/$(p_central) install_war := $(install_code_base)/war install_warinf := $(install_war)/WEB-INF install_warlib := $(install_warinf)/lib lib_distro_dir := usr/share/java s_appl := build/dist/$(p_central) s_applwebinf := $(s_appl)/WEB-INF s_applwebinflib := $(s_applwebinf)/lib s_applreg := $(s_appl)/reg lib_bundled_dir := ./lib lib_activation := activation.jar lib_antlr := antlr-2.7.6.jar lib_asm_attrs := asm-attrs.jar lib_asm := asm.jar lib_axis_ant := axis-ant.jar lib_axis := axis.jar lib_bcprov := bcprov-jdk15-132.jar lib_cglib := cglib-2.1.3.jar lib_commons_collections := commons-collections-2.1.1.jar lib_commons_discovery := commons-discovery-0.2.jar lib_commons_logging := commons-logging-1.0.4.jar lib_commons_httpclient := commons-httpclient-3.0-rc2.jar lib_commons_codec := commons-codec-1.3.jar lib_dom4j := dom4j-1.6.1.jar lib_hibernate3 := hibernate3.jar lib_jaxrpc := jaxrpc.jar lib_jta := jta.jar lib_junit := junit.jar lib_log4j := log4j-1.2.8.jar lib_postgresql := postgresql-8.3-603.jdbc3.jar lib_saaj := saaj.jar lib_wsdl4j := wsdl4j-1.5.1.jar lib_cog_jglobus := cog-jglobus.jar lib_jsr173 := jsr173_1.0_api.jar lib_netscan := netscan.jar lib_wss4j := wss4j-1.5.3.jar lib_xalan := xalan-2.7.0.jar lib_xbean := xbean.jar lib_xmlsec := xmlsec-1.4.0.jar lib_mail := mail.jar ant_props := -Dlib.activation='/$(lib_bundled_dir)/$(lib_activation)' \ -Dlib.antlr='/$(lib_bundled_dir)/$(lib_antlr)' \ -Dlib.asm-attrs='/$(lib_bundled_dir)/$(lib_asm_attrs)' \ -Dlib.asm='/$(lib_bundled_dir)/$(lib_asm)' \ -Dlib.axis-ant='$(lib_bundled_dir)/$(lib_axis_ant)' \ -Dlib.axis='$(lib_bundled_dir)/$(lib_axis)' \ -Dlib.bcprov='/$(lib_bundled_dir)/$(lib_bcprov)' \ -Dlib.cglib='$(lib_bundled_dir)/$(lib_cglib)' \ -Dlib.commons-collections='/$(lib_bundled_dir)/$(lib_commons_collections)' \ -Dlib.commons-discovery='/$(lib_bundled_dir)/$(lib_commons_discovery)' \ -Dlib.commons-logging='/$(lib_bundled_dir)/$(lib_commons_logging)' \ -Dlib.commons-httpclient='/$(lib_bundled_dir)/$(lib_commons_httpclient)' \ -Dlib.commons-codec='/$(lib_bundled_dir)/$(lib_commons_codec)' \ -Dlib.dom4j='/$(lib_bundled_dir)/$(lib_dom4j)' \ -Dlib.hibernate3='$(lib_bundled_dir)/$(lib_hibernate3)' \ -Dlib.jaxrpc='$(lib_bundled_dir)/$(lib_jaxrpc)' \ -Dlib.jta='/$(lib_bundled_dir)/$(lib_jta)' \ -Dlib.junit='/$(lib_bundled_dir)/$(lib_junit)' \ -Dlib.log4j='/$(lib_bundled_dir)/$(lib_log4j)' \ -Dlib.postgresql='/$(lib_bundled_dir)/$(lib_postgresql)' \ -Dlib.saaj='$(lib_bundled_dir)/$(lib_saaj)' \ -Dlib.wsdl4j='$(lib_bundled_dir)/$(lib_wsdl4j)' \ -Dlib.cog-jglobus='$(lib_bundled_dir)/$(lib_cog_jglobus)' \ -Dlib.jsr173='$(lib_bundled_dir)/$(lib_jsr173)' \ -Dlib.netscan='$(lib_bundled_dir)/$(lib_netscan)' \ -Dlib.wss4j='$(lib_bundled_dir)/$(lib_wss4j)' \ -Dlib.xalan='$(lib_bundled_dir)/$(lib_xalan)' \ -Dlib.xbean='$(lib_bundled_dir)/$(lib_xbean)' \ -Dlib.xmlsec='$(lib_bundled_dir)/$(lib_xmlsec)' \ -Dlib.mail='$(lib_bundled_dir)/$(lib_mail)' bundled_jars := $(lib_cog_jglobus) $(lib_jsr173) $(lib_netscan) $(lib_wss4j) $(lib_xalan) $(lib_xbean) $(lib_xmlsec) $(lib_axis_ant) $(lib_axis) $(lib_cglib) $(lib_hibernate3) $(lib_wsdl4j) $(lib_jaxrpc) $(lib_saaj) $(lib_mail) $(lib_bcprov) $(lib_activation) $(lib_antlr) $(lib_asm_attrs) $(lib_asm) $(lib_commons_collections) $(lib_commons_discovery) $(lib_commons_logging) $(lib_dom4j) $(lib_jta) $(lib_junit) $(lib_log4j) $(lib_postgresql) built_jars := wol-core.jar wol-mon.jar wol-persistent.jar wol-sample.jar wol-utils.jar reg-servlets.jar dist_jars := webinf_aux := classes webinf_config := web.xml WolServerConfig.xml client-config.wsdd server-config.wsdd log4j.properties classes_config := central.client.crypto.properties crypto.properties keystores := serverKey.p12 trustedCAs.jks trustedClients.jks build: dh_testdir $(ant) \ $(ant_props) \ build-central touch $@ clean: dh_testdir dh_testroot rm -f build-stamp -$(ant) \ $(ant_props) \ clean dh_clean binary-indep: build dh_testdir dh_testroot dh_installchangelogs -i dh_installdocs -i dh_installdirs -i for jar in $(bundled_jars); do \ dh_install -p$(p_central) "$(lib_bundled_dir)/$$jar" "$(install_warlib)"; \ done for jar in $(built_jars); do \ dh_install -p$(p_central) "$(s_applwebinflib)/$$jar" "$(install_warlib)"; \ done for jar in $(dist_jars); do \ dh_link -p$(p_central) "$(lib_distro_dir)/$$jar" "$(install_warlib)/$$jar"; \ done for aux in $(webinf_aux); do \ dh_install -Xgateway.serv.crypto.properties -p$(p_central) "$(s_applwebinf)/$$aux" "$(install_warinf)"; \ done for config in $(webinf_config); do \ dh_link -p$(p_central) "$(install_conf_base)/$$config" "$(install_warinf)/$$config"; \ done for config in $(classes_config); do \ dh_link -p$(p_central) "$(install_conf_base)/$$config" "$(install_warinf)/classes/$$config"; \ done for keystore in $(keystores); do \ dh_link -p$(p_central) "$(install_conf_base)/keystores/$$keystore" "$(install_warinf)/classes/$$keystore"; \ done dh_install -p$(p_central) "$(s_applreg)" "$(install_war)"; \ dh_compress -i dh_fixperms -i dh_installdeb -i dh_gencontrol -i dh_md5sums -i dh_builddeb -i binary-arch: binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install