[pkg-java] r12929 - trunk/lucene2/debian
Jan-Pascal van Best
janpascal-guest at alioth.debian.org
Mon Aug 23 13:29:17 UTC 2010
Author: janpascal-guest
Date: 2010-08-23 13:29:16 +0000 (Mon, 23 Aug 2010)
New Revision: 12929
Added:
trunk/lucene2/debian/liblucene2-java.postinst
trunk/lucene2/debian/liblucene2-java.prerm
Removed:
trunk/lucene2/debian/liblucene2-java.manpages
Modified:
trunk/lucene2/debian/changelog
trunk/lucene2/debian/control
trunk/lucene2/debian/rules
Log:
Put lucli under control of update-alternatives, needed for coexistence with liblucene3-java-contrib
Modified: trunk/lucene2/debian/changelog
===================================================================
--- trunk/lucene2/debian/changelog 2010-08-22 21:11:35 UTC (rev 12928)
+++ trunk/lucene2/debian/changelog 2010-08-23 13:29:16 UTC (rev 12929)
@@ -1,3 +1,11 @@
+lucene2 (2.9.3+ds1-2) UNRELEASED; urgency=low
+
+ * Put lucli under update-alternatives control to allow liblucene3-java-contrib
+ to take over
+ * Bump standards version to 3.9.1 (no changes needed)
+
+ -- Jan-Pascal van Best <janpascal at vanbest.org> Mon, 23 Aug 2010 14:47:28 +0200
+
lucene2 (2.9.3+ds1-1) unstable; urgency=low
* New upstream release 2.9.3
Modified: trunk/lucene2/debian/control
===================================================================
--- trunk/lucene2/debian/control 2010-08-22 21:11:35 UTC (rev 12928)
+++ trunk/lucene2/debian/control 2010-08-23 13:29:16 UTC (rev 12929)
@@ -22,7 +22,7 @@
libcommons-compress-java (>= 1.0),
libicu4j-java (>= 3.8.1),
libjtidy-java (>= 7+svn20070309)
-Standards-Version: 3.9.0
+Standards-Version: 3.9.1
Package: liblucene2-java
Architecture: all
Deleted: trunk/lucene2/debian/liblucene2-java.manpages
===================================================================
--- trunk/lucene2/debian/liblucene2-java.manpages 2010-08-22 21:11:35 UTC (rev 12928)
+++ trunk/lucene2/debian/liblucene2-java.manpages 2010-08-23 13:29:16 UTC (rev 12929)
@@ -1 +0,0 @@
-debian/lucli.1
Added: trunk/lucene2/debian/liblucene2-java.postinst
===================================================================
--- trunk/lucene2/debian/liblucene2-java.postinst (rev 0)
+++ trunk/lucene2/debian/liblucene2-java.postinst 2010-08-23 13:29:16 UTC (rev 12929)
@@ -0,0 +1,48 @@
+#! /bin/sh
+# postinst script for liblucene2-java
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+ configure)
+ update-alternatives \
+ --install /usr/bin/lucli \
+ lucli \
+ /usr/lib/liblucene2-java/lucli \
+ 20 \
+ --slave /usr/share/man/man1/lucli.1.gz \
+ lucli.1.gz \
+ /usr/lib/liblucene2-java/lucli.1.gz
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ # dummy
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
Added: trunk/lucene2/debian/liblucene2-java.prerm
===================================================================
--- trunk/lucene2/debian/liblucene2-java.prerm (rev 0)
+++ trunk/lucene2/debian/liblucene2-java.prerm 2010-08-23 13:29:16 UTC (rev 12929)
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+#
+# prerm maintainer script for the Debian liblucene2-java package.
+#
+# summary of how this script can be called:
+# * <old-prerm> remove
+# * <old-prerm> upgrade <new-version>
+# * <new-prerm> failed-upgrade <old-version>
+# * <conflictor's-prerm> remove in-favour <package> <new-version>
+# * <deconfigured's-prerm> deconfigure in-favour <package-being-installed> <version>
+# removing <conflicting-package> <version>
+#
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+case "$1" in
+ remove|upgrade)
+ update-alternatives --remove lucli /usr/lib/liblucene2-java/lucli
+ ;;
+ *)
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
+
Modified: trunk/lucene2/debian/rules
===================================================================
--- trunk/lucene2/debian/rules 2010-08-22 21:11:35 UTC (rev 12928)
+++ trunk/lucene2/debian/rules 2010-08-23 13:29:16 UTC (rev 12929)
@@ -57,8 +57,9 @@
CONTRIB=`echo $$jarfile | sed "s/.*\\/lucene-\\([-a-z]*\\)-.*\\.jar/\\1/"` ; \
ln -s lucene-$$CONTRIB-$(UPSTREAM_VERSION).jar $(CURDIR)/debian/liblucene2-java/usr/share/java/lucene-$$CONTRIB.jar ; \
done
- install -d $(CURDIR)/debian/liblucene2-java/usr/bin/
- install contrib/lucli/run.sh $(CURDIR)/debian/liblucene2-java/usr/bin/lucli
+ install -d $(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java
+ install contrib/lucli/run.sh $(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java/lucli
+ gzip <debian/lucli.1 >$(CURDIR)/debian/liblucene2-java/usr/lib/liblucene2-java/lucli.1.gz
install/liblucene2-java-doc::
# Install the documentation into the liblucene2-java-doc package
More information about the pkg-java-commits
mailing list