debian swirl logo

Back to the packages list mina2

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk

JAVA_HOME := /usr/lib/jvm/default-java

DEB_JARS  := slf4j-api jzlib mx4j spring3-core spring3-beans ognl \
             /usr/share/tomcat7/lib/tomcat-coyote.jar \
             RXTXcomm.jar
DEB_ANT_BUILDFILE := debian/build.xml
DEB_ANT_ARGS := -Ddeb.package=${DEB_SOURCE_PACKAGE}
DEB_ANT_BUILD_TARGET := jar.all javadoc

ALL_JARS = $(wildcard dist/*.jar)

binary-post-install/libmina2-java::
		mh_installpom -plibmina2-java -o src/pom.xml
		for MYJAR in $(ALL_JARS); do \
		BASENAME= `basename $$MYJAR .jar`; \
		SUBPATH= `echo $$BASENAME | sed -e 's/mina2/mina/'`; \
			mh_installpom -plibmina2-java src/$$SUBPATH/pom.xml ; \
			mh_installjar -plibmina2-java -n$$BASENAME -l src/$$SUBPATH/pom.xml $$MYJAR ; \
		done

binary-post-install/libmina2-java-doc::
		dh_install -plibmina2-java-doc dist/api /usr/share/doc/libmina2-java

clean::
		mh_clean

get-orig-source:
		uscan --force-download --rename


Builds:

libmina2-java-doc
java network application framework - documentation
libmina2-java
java network application framework