summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-support/postgresql/files/no-ecpg-test.patch12
-rw-r--r--recipes-support/postgresql/postgresql-8.4.4/remove.autoconf.version.check.patch15
-rw-r--r--recipes-support/postgresql/postgresql.inc65
-rw-r--r--recipes-support/postgresql/postgresql_8.4.4.bb9
4 files changed, 101 insertions, 0 deletions
diff --git a/recipes-support/postgresql/files/no-ecpg-test.patch b/recipes-support/postgresql/files/no-ecpg-test.patch
new file mode 100644
index 0000000000..c0f28f4258
--- /dev/null
+++ b/recipes-support/postgresql/files/no-ecpg-test.patch
@@ -0,0 +1,12 @@
1diff --git a/src/interfaces/ecpg/Makefile b/src/interfaces/ecpg/Makefile
2index dcd578f..1428423 100644
3--- a/src/interfaces/ecpg/Makefile
4+++ b/src/interfaces/ecpg/Makefile
5@@ -8,7 +8,6 @@ all install installdirs uninstall dep depend distprep:
6 $(MAKE) -C ecpglib $@
7 $(MAKE) -C compatlib $@
8 $(MAKE) -C preproc $@
9- $(MAKE) -C test $@
10
11 clean distclean maintainer-clean:
12 -$(MAKE) -C include $@
diff --git a/recipes-support/postgresql/postgresql-8.4.4/remove.autoconf.version.check.patch b/recipes-support/postgresql/postgresql-8.4.4/remove.autoconf.version.check.patch
new file mode 100644
index 0000000000..d027061d89
--- /dev/null
+++ b/recipes-support/postgresql/postgresql-8.4.4/remove.autoconf.version.check.patch
@@ -0,0 +1,15 @@
1Index: postgresql-8.4.4/configure.in
2===================================================================
3--- postgresql-8.4.4.orig/configure.in
4+++ postgresql-8.4.4/configure.in
5@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch un
6
7 AC_INIT([PostgreSQL], [8.4.4], [pgsql-bugs@postgresql.org])
8
9-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.61], [], [m4_fatal([Autoconf version 2.61 is required.
10-Untested combinations of 'autoconf' and PostgreSQL versions are not
11-recommended. You can remove the check from 'configure.in' but it is then
12-your responsibility whether the result works or not.])])
13 AC_COPYRIGHT([Copyright (c) 1996-2009, PostgreSQL Global Development Group])
14 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
15 AC_CONFIG_AUX_DIR(config)
diff --git a/recipes-support/postgresql/postgresql.inc b/recipes-support/postgresql/postgresql.inc
new file mode 100644
index 0000000000..54a046e568
--- /dev/null
+++ b/recipes-support/postgresql/postgresql.inc
@@ -0,0 +1,65 @@
1DESCRIPTION = "PostgreSQL is a powerful, open source relational database system."
2HOMEPAGE = "http://www.postgresql.com"
3LICENSE = "BSD"
4DEPENDS = "zlib readline"
5
6ARM_INSTRUCTION_SET = "arm"
7
8#WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic
9
10SRC_URI = "ftp://ftp-archives.postgresql.org/pub/source/v${PV}/${P}.tar.bz2"
11
12LEAD_SONAME = "libpq.so"
13
14# LDFLAGS for shared libraries
15export LDFLAGS_SL = "${LDFLAGS}"
16
17inherit autotools pkgconfig
18
19do_compile_append() {
20 cp /usr/sbin/zic ${S}/src/timezone/
21}
22
23PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
24 libecpg-compat-dbg libecpg-compat \
25 libecpg-dbg libecpg libecpg-dev \
26 libpq-dbg libpq libpq-dev \
27 libpgtypes-dbg libpgtypes "
28
29FILES_${PN}-client = "${bindir}/clusterdb \
30 ${bindir}/createdb \
31 ${bindir}/createlang \
32 ${bindir}/createuser \
33 ${bindir}/dropdb \
34 ${bindir}/droplang \
35 ${bindir}/dropuser \
36 ${bindir}/pg_dump \
37 ${bindir}/pg_dumpall \
38 ${bindir}/pg_restore \
39 ${bindir}/psql \
40 ${bindir}/reindexdb \
41 ${bindir}/vacuumdb \
42 ${bindir}/vacuumlo \
43 ${datadir}/${PN}/psqlrc.sample"
44
45FILES_${PN}-doc += "${prefix}/doc/"
46FILES_${PN}-timezone = "${datadir}/${PN}/timezone"
47FILES_${PN}-server-dev = "${includedir}/${PN}/server"
48
49FILES_libecpg = "${libdir}/libecpg*.so.*"
50FILES_libecpg-dbg = "${libdir}/.debug/libecpg*"
51FILES_libecpg-dev = "${libdir}/libecpg*.a ${libdir}/libecpg*.so \
52 ${libdir}/libpgtypes*.a ${libdir}/libpgtypes*.so \
53 ${includedir}/ecpg*.h ${includedir}/${PN}/ecpg*.h \
54 ${includedir}/pgtypes*.h ${includedir}/${PN}/informix \
55 ${includedir}/sql3types.h ${includedir}/sqlca.h"
56
57FILES_libpq = "${libdir}/libpq*.so.*"
58FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${PN}/pgxs/src/test/regress/.debug/*"
59FILES_libpq-dev = "${libdir}/libpq*.a ${libdir}/libpq*.so ${libdir}/libpgport.a \
60 ${includedir}"
61
62FILES_libecpg-compat = "${libdir}/libecpg_compat*.so.*"
63FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*"
64FILES_libpgtypes = "${libdir}/libpgtypes*.so.*"
65FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*"
diff --git a/recipes-support/postgresql/postgresql_8.4.4.bb b/recipes-support/postgresql/postgresql_8.4.4.bb
new file mode 100644
index 0000000000..0ec1769ebf
--- /dev/null
+++ b/recipes-support/postgresql/postgresql_8.4.4.bb
@@ -0,0 +1,9 @@
1require postgresql.inc
2
3DEFAULT_PREFERENCE = "-1"
4
5SRC_URI = "ftp://ftp.postgresql.org/pub/source/v${PV}/${P}.tar.bz2 \
6 file://remove.autoconf.version.check.patch"
7
8SRC_URI[md5sum] = "4bf2448ad965bca3940df648c02194df"
9SRC_URI[sha256sum] = "e66b398d565f7fb16d8ae58ae72881dcd3dbb1b88f532bbe1c2d1284812be37e"