summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-08-02 16:15:49 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-11-17 21:15:15 +0100
commitd648eecd0f63792bf8ceae1aef20100cf70bf5ea (patch)
tree8b53512933047b935f3324e87dc3b39d1f52cd75 /connectivity
parentc6a6c00a36a0b827dc5ecfe143681f002a5d351f (diff)
Apply sdbc-postgresql-oxt.diff
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/description.xml14
-rw-r--r--connectivity/source/drivers/postgresql/makefile.mk14
-rw-r--r--connectivity/source/drivers/postgresql/manifest.xml10
3 files changed, 36 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/description.xml b/connectivity/source/drivers/postgresql/description.xml
new file mode 100644
index 000000000000..3056c848fac9
--- /dev/null
+++ b/connectivity/source/drivers/postgresql/description.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<description xmlns="http://openoffice.org/extensions/description/2006" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dep="http://openoffice.org/extensions/description/2006">
+ <version value="0.7.6b" />
+ <identifier value="postgresql-sdbc" />
+ <display-name>
+ <name lang="en-US">Postgresql-SDBC Driver</name>
+ </display-name>
+ <dependencies>
+ <OpenOffice.org-minimal-version value="3.3" dep:name="OpenOffice.org 3.3"/>
+ </dependencies>
+ <publisher>
+ <name xlink:href="http://www.oracle.com/us/products/applications/open-office" lang="en">Oracle</name>
+ </publisher>
+</description>
diff --git a/connectivity/source/drivers/postgresql/makefile.mk b/connectivity/source/drivers/postgresql/makefile.mk
index b2d0816a4fb3..ad9ab0ac55ca 100644
--- a/connectivity/source/drivers/postgresql/makefile.mk
+++ b/connectivity/source/drivers/postgresql/makefile.mk
@@ -176,7 +176,7 @@ SHL2VERSIONMAP=$(SOLARENV)$/src$/component.map
SLOFILES= $(LIB1OBJFILES) $(LIB2OBJFILES)
-DRIVERNAME=postgresql-sdbc-$(PQ_SDBC_MAJOR).$(PQ_SDBC_MINOR).$(PQ_SDBC_MICRO).zip
+DRIVERNAME=postgresql-sdbc-$(PQ_SDBC_MAJOR).$(PQ_SDBC_MINOR).$(PQ_SDBC_MICRO).oxt
ALLTAR : $(DLLDEST)$/$(DRIVERNAME)
# --- Targets ------------------------------------------------------
@@ -191,19 +191,29 @@ INI_EXT=.ini
$(DLLDEST)$/$(SHL1TARGET)$(INI_EXT): $(SHL1TARGET)
+cp $? $@
-
$(DLLDEST)$/$(DRIVERNAME): \
+ $(DLLDEST)$/META-INF$/manifest.xml \
+ $(DLLDEST)$/description.xml \
$(DLLDEST)$/postgresql.xcu \
$(DLLDEST)$/$(SHL1TARGET)$(DLLPOST) \
$(DLLDEST)$/$(SHL2TARGET)$(DLLPOST) \
$(DLLDEST)$/$(SHL1TARGET)$(INI_EXT)
+cd $(DLLDEST) && \
zip -r $(DRIVERNAME) \
+ META-INF$/manifest.xml \
$(SHL1TARGET)$(DLLPOST) \
$(SHL2TARGET)$(DLLPOST) \
$(SHL1TARGET)$(INI_EXT) \
+ description.xml \
postgresql.xcu
+$(DLLDEST)$/META-INF$/manifest.xml : manifest.xml
+ -mkdir -p $(DLLDEST)$/META-INF
+ +cp $? $@
+
+$(DLLDEST)$/description.xml : description.xml
+ +cp $? $@
+
$(DLLDEST)$/postgresql.xcu : postgresql.xcu
-rm -f $@
cat postgresql.xcu > $@
diff --git a/connectivity/source/drivers/postgresql/manifest.xml b/connectivity/source/drivers/postgresql/manifest.xml
new file mode 100644
index 000000000000..0a4ddc181a25
--- /dev/null
+++ b/connectivity/source/drivers/postgresql/manifest.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE manifest:manifest PUBLIC "-//OpenOffice.org//DTD Manifest 1.0//EN" "Manifest.dtd">
+<manifest:manifest xmlns:manifest="http://openoffice.org/2001/manifest">
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=native"
+ manifest:full-path="postgresql-sdbc-impl.uno.so"/>
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.uno-component;type=native"
+ manifest:full-path="postgresql-sdbc.uno.so"/>
+ <manifest:file-entry manifest:media-type="application/vnd.sun.star.configuration-data"
+ manifest:full-path="postgresql.xcu"/>
+</manifest:manifest>