Added new dependency to libpg-java package.

* Modified debian/rules in order to a proper link to PostgreSQL Java library at /usr/share/tomcat6/lib.
* Also added lines to restart Tomcat in order to load this library.

FEA: ItEr66S03CommunityMaterialItEr65S04
This commit is contained in:
Manuel Rego Casasnovas 2010-12-21 14:23:53 +01:00
parent 479cac6bbd
commit 76b43a85b6
4 changed files with 12 additions and 8 deletions

2
debian/control vendored
View file

@ -8,6 +8,6 @@ Package: navalplan
Architecture: all
Section: web
Depends: cutycapt, postgresql-client, xvfb, dbconfig-common, ucf,
tomcat6, openjdk-6-jre-headless | openjdk-6-jre, ${misc:Depends}
tomcat6, openjdk-6-jre-headless | openjdk-6-jre, libpg-java, ${misc:Depends}
Description: Web based planner thought for naval-related companies.

View file

@ -1,3 +1,4 @@
debian/tmp/var/lib/tomcat6/webapps/navalplanner-webapp.war
debian/tmp/etc/tomcat6/policy.d/51navalplan.policy
debian/tmp/usr/share/dbconfig-common/data/navalplan/install/pgsql
debian/tmp/usr/share/tomcat6/lib/postgresql-jdbc3.jar

View file

@ -69,12 +69,12 @@ then
fi
#if [ -x /etc/init.d/tomcat5.5 ] ; then
# if [ -x "$(which invoke-rc.d 2> /dev/null)" ] ; then
# invoke-rc.d tomcat5.5 restart
# else
# /etc/init.d/tomcat5.5 restart
# fi
#fi
if [ -x /etc/init.d/tomcat6 ] ; then
if [ -x "$(which invoke-rc.d 2> /dev/null)" ] ; then
invoke-rc.d tomcat6 restart
else
/etc/init.d/tomcat6 restart
fi
fi
#DEBHELPER#

3
debian/rules vendored
View file

@ -76,6 +76,9 @@ install:
$(call CMD,mkdir -p $(CURDIR)/debian/tmp/etc/tomcat6/policy.d)
$(call CMD,cp $(CURDIR)/debian/51navalplan.policy \
$(CURDIR)/debian/tmp/etc/tomcat6/policy.d/)
# Link Java PostgreSQL library
$(call CMD,mkdir -p $(CURDIR)/debian/tmp/usr/share/tomcat6/lib)
$(call CMD,ln -s /usr/share/java/postgresql-jdbc3.jar $(CURDIR)/debian/tmp/usr/share/tomcat6/lib)
$(call CMD,dh_install)
binary-indep: build install