[mpj] 01/01: Install mpj wrapper scripts and config files as well

Andreas Tille tille at debian.org
Wed May 11 09:50:25 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository mpj.

commit a1e88cce07a1d7df90d0002bfb6d91d4cba05345
Author: Andreas Tille <tille at debian.org>
Date:   Wed May 11 11:49:49 2016 +0200

    Install mpj wrapper scripts and config files as well
---
 debian/changelog |  6 ++++++
 debian/install   |  3 +++
 debian/links     |  1 +
 debian/rules     | 27 +++++++++++++++++++++++++--
 4 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f763935..c7206e8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+mpj (0.44+dfsg-2) UNRELEASED; urgency=medium
+
+  * Install mpj wrapper scripts and config files as well
+
+ -- Andreas Tille <tille at debian.org>  Wed, 11 May 2016 11:49:21 +0200
+
 mpj (0.44+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..631a787
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+conf/local*.conf	etc/mpj
+conf/mpjexpress.conf	etc/mpj
+
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..82fef6e
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+etc/mpj		usr/share/mpj/conf
diff --git a/debian/rules b/debian/rules
index 091ff84..e3c357e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,12 +1,35 @@
 #!/usr/bin/make -f
 
 JAVA_HOME=/usr/lib/jvm/default-java
+DEBPKGNAME:=lib$(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')-java
+BINDIR=debian/$(DEBPKGNAME)/usr/bin
+MPJ_HOME=/usr/share/mpj
+LIBDIR=debian/$(DEBPKGNAME)/$(MPJ_HOME)
 
 %:
 	dh $@ --with javahelper
 
-override_dh_auto_build:
-	dh_auto_build -- -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
+#override_dh_auto_build:
+#	dh_auto_build -- -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8
+
+override_dh_install:
+	dh_install
+	mkdir -p $(BINDIR)
+	for bin in bin/* ; do \
+	    realbin=`basename $${bin} .sh` ; \
+	    sed '1a export MPJ_HOME=$(MPJ_HOME)' $${bin} > $(BINDIR)/$${realbin} ; \
+	done
+
+override_dh_link:
+	dh_link
+	mkdir $(LIBDIR)/lib
+	for lib in lib/* ; do \
+	    ln -s ../../java/`basename $${lib}` $(LIBDIR)/$${lib} ; \
+	done
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod -x debian/$(DEBPKGNAME)/etc/mpj/local2.conf
 
 #override_dh_auto_test:
 #	ant -f test/build.xml

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/mpj.git



More information about the pkg-java-commits mailing list