[pkg-java] r15560 - trunk/maven2/debian
Damien Raude-Morvan
drazzib at alioth.debian.org
Sun Dec 18 23:33:51 UTC 2011
Author: drazzib
Date: 2011-12-18 23:33:50 +0000 (Sun, 18 Dec 2011)
New Revision: 15560
Added:
trunk/maven2/debian/maven2.postinst
trunk/maven2/debian/maven2.prerm
Removed:
trunk/maven2/debian/maven2.manpages
Modified:
trunk/maven2/debian/changelog
trunk/maven2/debian/maven2.install
trunk/maven2/debian/maven2.links
trunk/maven2/debian/rules
Log:
* Team upload.
* Use alternative to install /usr/bin/mvn.
Modified: trunk/maven2/debian/changelog
===================================================================
--- trunk/maven2/debian/changelog 2011-12-18 19:05:43 UTC (rev 15559)
+++ trunk/maven2/debian/changelog 2011-12-18 23:33:50 UTC (rev 15560)
@@ -1,3 +1,10 @@
+maven2 (2.2.1-11) UNRELEASED; urgency=low
+
+ * Team upload.
+ * Use alternative to install /usr/bin/mvn.
+
+ -- Damien Raude-Morvan <drazzib at debian.org> Sat, 17 Dec 2011 23:56:39 +0100
+
maven2 (2.2.1-10) unstable; urgency=low
* Team upload.
Modified: trunk/maven2/debian/maven2.install
===================================================================
--- trunk/maven2/debian/maven2.install 2011-12-18 19:05:43 UTC (rev 15559)
+++ trunk/maven2/debian/maven2.install 2011-12-18 23:33:50 UTC (rev 15560)
@@ -1,7 +1,10 @@
-apache-maven/src/bin/mvn usr/bin
-apache-maven/src/bin/mvnDebug usr/bin
+apache-maven/src/bin/mvn usr/share/maven2/bin/
+apache-maven/src/bin/mvnDebug usr/share/maven2/bin/
apache-maven/src/bin/m2.conf etc/maven2
apache-maven/src/conf/settings.xml /etc/maven2
debian/bash_completion.d/maven2 etc/bash_completion.d
+
+debian/mvn.1 usr/share/maven2/man/
+debian/mvnDebug.1 usr/share/maven2/man/
Modified: trunk/maven2/debian/maven2.links
===================================================================
--- trunk/maven2/debian/maven2.links 2011-12-18 19:05:43 UTC (rev 15559)
+++ trunk/maven2/debian/maven2.links 2011-12-18 23:33:50 UTC (rev 15560)
@@ -2,8 +2,5 @@
/usr/share/maven2/conf/m2.conf /usr/share/maven2/bin/m2.conf
-/usr/bin/mvn /usr/share/maven2/bin/mvn
-/usr/bin/mvnDebug /usr/share/maven2/bin/mvnDebug
-
/usr/share/java/classworlds.jar usr/share/maven2/boot/classworlds.jar
Deleted: trunk/maven2/debian/maven2.manpages
===================================================================
--- trunk/maven2/debian/maven2.manpages 2011-12-18 19:05:43 UTC (rev 15559)
+++ trunk/maven2/debian/maven2.manpages 2011-12-18 23:33:50 UTC (rev 15560)
@@ -1,2 +0,0 @@
-debian/mvn.1
-debian/mvnDebug.1
Added: trunk/maven2/debian/maven2.postinst
===================================================================
--- trunk/maven2/debian/maven2.postinst (rev 0)
+++ trunk/maven2/debian/maven2.postinst 2011-12-18 23:33:50 UTC (rev 15560)
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+set -e
+
+basedir=/usr/share/maven2
+priority=200
+
+case "$1" in
+configure)
+
+ update-alternatives \
+ --install /usr/bin/mvn mvn $basedir/bin/mvn $priority \
+ --slave \
+ /usr/bin/mvnDebug \
+ mvnDebug \
+ $basedir/bin/mvnDebug \
+ --slave \
+ /usr/share/man/man1/mvn.1.gz \
+ mvn.1.gz \
+ $basedir/man/mvn.1.gz \
+ --slave \
+ /usr/share/man/man1/mvnDebug.1.gz \
+ mvnDebug.1.gz \
+ $basedir/man/mvnDebug.1.gz
+
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Added: trunk/maven2/debian/maven2.prerm
===================================================================
--- trunk/maven2/debian/maven2.prerm (rev 0)
+++ trunk/maven2/debian/maven2.prerm 2011-12-18 23:33:50 UTC (rev 15560)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -e
+
+basedir=/usr/share/maven2
+
+case "$1" in
+deconfigure|remove)
+
+ update-alternatives --remove mvn $basedir/bin/mvn
+
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
Modified: trunk/maven2/debian/rules
===================================================================
--- trunk/maven2/debian/rules 2011-12-18 19:05:43 UTC (rev 15559)
+++ trunk/maven2/debian/rules 2011-12-18 23:33:50 UTC (rev 15560)
@@ -31,6 +31,8 @@
binary-post-install/$(PACKAGE)::
dh_install -p$(PACKAGE) apache-maven/target/maven-debian-uber.jar usr/share/maven2/lib/
+ # compress manpages
+ find $(DEB_BUILDDIR)/debian/$(PACKAGE)/usr/share/maven2/man -type f | xargs gzip -9v -n
clean::
mh_unpatchpoms -p$(PACKAGE)
More information about the pkg-java-commits
mailing list