Some fix on Debian package folder.

* Removed rules file for Squeeze as the change is also valid for Ubuntu.
* Used just one control file using the minimum standards version.

FEA: ItEr69S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2011-02-01 09:35:37 +01:00
parent 90cf23039d
commit 49db11f855
5 changed files with 2 additions and 174 deletions

2
debian/control vendored
View file

@ -4,7 +4,7 @@ Priority: optional
Maintainer: Adrian Perez <aperez@igalia.com> Maintainer: Adrian Perez <aperez@igalia.com>
Build-Depends: debhelper (>= 7.0.50), maven2, python-docutils, Build-Depends: debhelper (>= 7.0.50), maven2, python-docutils,
gettext (>= 0.17), texlive-latex-recommended, pgf, openjdk-6-jdk gettext (>= 0.17), texlive-latex-recommended, pgf, openjdk-6-jdk
Standards-Version: 3.9.1 Standards-Version: 3.8.4
Homepage: http://www.navalplan.org/en/ Homepage: http://www.navalplan.org/en/
Package: navalplan Package: navalplan

23
debian/control.lucid vendored
View file

@ -1,23 +0,0 @@
Source: navalplan
Section: web
Priority: optional
Maintainer: Adrian Perez <aperez@igalia.com>
Build-Depends: debhelper (>= 7.0.50), maven2, python-docutils,
gettext (>= 0.17), texlive-latex-recommended, pgf, openjdk-6-jdk
Standards-Version: 3.8.4
Homepage: http://www.navalplan.org/en/
Package: navalplan
Architecture: any
Depends: cutycapt, postgresql, postgresql-client, xvfb, dbconfig-common, ucf,
tomcat6, openjdk-6-jre-headless | openjdk-6-jre, libpg-java, ttf-freefont,
${misc:Depends}
Description: Web application for project management.
NavalPlan is a planning tool for users based on some concepts: company and
multi-project overview, criteria assignments, tasks tagging, resources
management, resource allocation (specific and generic), company load control,
external integration, etc.
.
Although its name is clearly related to shipbuilding, NavalPlan is a fully
useful planning tool for any type of company whose workflow requires project
and order administration and scheduling.

View file

@ -1,23 +0,0 @@
Source: navalplan
Section: web
Priority: optional
Maintainer: Adrian Perez <aperez@igalia.com>
Build-Depends: debhelper (>= 7.0.50), maven2, python-docutils,
gettext (>= 0.17), texlive-latex-recommended, pgf, openjdk-6-jdk
Standards-Version: 3.8.4
Homepage: http://www.navalplan.org/en/
Package: navalplan
Architecture: any
Depends: cutycapt, postgresql, postgresql-client, xvfb, dbconfig-common, ucf,
tomcat6, openjdk-6-jre-headless | openjdk-6-jre, libpg-java, ttf-freefont,
${misc:Depends}
Description: Web application for project management.
NavalPlan is a planning tool for users based on some concepts: company and
multi-project overview, criteria assignments, tasks tagging, resources
management, resource allocation (specific and generic), company load control,
external integration, etc.
.
Although its name is clearly related to shipbuilding, NavalPlan is a fully
useful planning tool for any type of company whose workflow requires project
and order administration and scheduling.

2
debian/rules vendored
View file

@ -9,7 +9,7 @@ JAVA_HOME := /usr/lib/jvm/java-6-openjdk
MAVEN_REPO := $(CURDIR)/debian/maven-repo MAVEN_REPO := $(CURDIR)/debian/maven-repo
MAVEN_OPTS := -Pprod,postgresql,-liquibase-update \ MAVEN_OPTS := -Pprod,postgresql,-liquibase-update \
-DdataSource.jndiName=jdbc/navalplan-ds \ -DdataSource.jndiName=java:comp/env/jdbc/navalplan-ds \
-Dmaven.test.skip=true -B \ -Dmaven.test.skip=true -B \
-s $(CURDIR)/debian/maven-settings.xml -s $(CURDIR)/debian/maven-settings.xml

126
debian/rules.squeeze vendored
View file

@ -1,126 +0,0 @@
#! /usr/bin/make -f
#export DH_VRBOSE=1
export DH_OPTIONS
export CURDIR
MAKEFLAGS += s
JAVA_HOME := /usr/lib/jvm/java-6-openjdk
MAVEN_REPO := $(CURDIR)/debian/maven-repo
MAVEN_OPTS := -Pprod,postgresql,-liquibase-update \
-DdataSource.jndiName=java:comp/env/jdbc/navalplan-ds \
-Dmaven.test.skip=true -B \
-s $(CURDIR)/debian/maven-settings.xml
define NFO
@echo "$1"
endef
ifneq ($V,0)
define CMD
@echo "$1"
@$1
endef
else
define CMD
@$1
endef
endif
configure: configure-stamp
configure-stamp:
$(call NFO,Configuring...)
$(call CMD,dh_testdir)
# Configure package here
$(call CMD,touch $@)
build: build-arch
build-arch: build-arch-stamp
build-arch-stamp: configure-stamp
$(call NFO,Building sources...)
# Build arch-dependant stuff
$(call CMD,mkdir -p $(MAVEN_REPO))
$(call CMD,mvn $(MAVEN_OPTS) install)
$(call CMD,touch $@)
clean:
$(call NFO,Cleaning up...)
$(call CMD,dh_testdir)
$(call CMD,dh_testroot)
# Cleanup commands
$(call CMD,$(RM) build-arch-stamp build-indep-stamp configure-stamp)
$(call CMD,mkdir -p $(MAVEN_REPO))
# This is likely to fail, e.g. needs to be reviewed
-$(call CMD,mvn $(MAVEN_OPTS) -npu clean)
$(call CMD,$(RM) -r $(CURDIR)/maven-repo)
$(call CMD,dh_clean)
install:
$(call NFO,Installing objects...)
$(call CMD,dh_testdir)
$(call CMD,dh_testroot)
$(call CMD,dh_clean -k)
$(call CMD,dh_installdirs)
# Copy SQL installation file
$(call CMD,mkdir -p $(CURDIR)/debian/tmp/usr/share/dbconfig-common/data/navalplan/install/)
$(call CMD,cp $(CURDIR)/scripts/database/install.sql \
$(CURDIR)/debian/tmp/usr/share/dbconfig-common/data/navalplan/install/pgsql)
# Commands to install arch-dependant stuff
$(call CMD,mkdir -p $(CURDIR)/debian/tmp/var/lib/tomcat6/webapps/)
$(call CMD,cp $(CURDIR)/navalplanner-webapp/target/navalplanner-webapp.war \
$(CURDIR)/debian/tmp/var/lib/tomcat6/webapps/navalplan.war)
# Copy SQL upgrade script for version 1.0.0
$(call CMD,mkdir -p $(CURDIR)/debian/tmp/usr/share/dbconfig-common/data/navalplan/upgrade/pgsql/)
$(call CMD,cp $(CURDIR)/scripts/database/upgrade_1.0.0.sql \
$(CURDIR)/debian/tmp/usr/share/dbconfig-common/data/navalplan/upgrade/pgsql/1.0.0)
# Install Policy file
$(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 -sf /usr/share/java/postgresql-jdbc3.jar $(CURDIR)/debian/tmp/usr/share/tomcat6/lib)
$(call CMD,dh_install)
binary-indep: build install
binary-arch: build install
$(call NFO,Making binary package...)
$(call CMD,dh_testdir)
$(call CMD,dh_testroot)
$(call CMD,dh_installchangelogs)
$(call CMD,dh_installdocs)
$(call CMD,dh_installexamples)
# $(call CMD,dh_installmenu)
$(call CMD,dh_installdebconf)
# $(call CMD,dh_installlogrotate)
# $(call CMD,dh_installemacsen)
# $(call CMD,dh_installpam)
# $(call CMD,dh_installmime)
# $(call CMD,dh_python)
# $(call CMD,dh_installinit)
# $(call CMD,dh_installcron)
# $(call CMD,dh_installinfo)
$(call CMD,dh_installman)
$(call CMD,dh_link)
$(call CMD,dh_strip)
$(call CMD,dh_compress)
$(call CMD,dh_fixperms)
# $(call CMD,dh_perl)
$(call CMD,dh_makeshlibs)
$(call CMD,dh_installdeb)
$(call CMD,dh_shlibdeps)
$(call CMD,dh_gencontrol)
$(call CMD,dh_md5sums)
$(call CMD,dh_builddeb)
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install install-indep
.PHONY: install-arch configure