[oe] [PATCH 07/10] Add recipe for postgresql 9.0.2

Yauhen Kharuzhy yauhen.kharuzhy at promwad.com
Wed Jan 25 10:56:20 UTC 2012


From: Vladimir Redzhepoff <vladimir.redzhepoff at promwad.com>

Recipe for this package has been taken from Openembedded-classic project.

Signed-off-by: Vladimir Redzhepoff <vladimir.redzhepoff at promwad.com>
---
 .../postgresql/files/no-ecpg-test.patch            |   12 ++++
 .../remove.autoconf.version.check.patch            |   13 ++++
 meta/recipes-support/postgresql/postgresql.inc     |   69 ++++++++++++++++++++
 .../recipes-support/postgresql/postgresql_9.0.2.bb |    8 ++
 4 files changed, 102 insertions(+), 0 deletions(-)
 create mode 100644 meta/recipes-support/postgresql/files/no-ecpg-test.patch
 create mode 100644 meta/recipes-support/postgresql/postgresql-9.0.2/remove.autoconf.version.check.patch
 create mode 100644 meta/recipes-support/postgresql/postgresql.inc
 create mode 100644 meta/recipes-support/postgresql/postgresql_9.0.2.bb

diff --git a/meta/recipes-support/postgresql/files/no-ecpg-test.patch b/meta/recipes-support/postgresql/files/no-ecpg-test.patch
new file mode 100644
index 0000000..c0f28f4
--- /dev/null
+++ b/meta/recipes-support/postgresql/files/no-ecpg-test.patch
@@ -0,0 +1,12 @@
+diff --git a/src/interfaces/ecpg/Makefile b/src/interfaces/ecpg/Makefile
+index dcd578f..1428423 100644
+--- a/src/interfaces/ecpg/Makefile
++++ b/src/interfaces/ecpg/Makefile
+@@ -8,7 +8,6 @@ all install installdirs uninstall dep depend distprep:
+ 	$(MAKE) -C ecpglib $@
+ 	$(MAKE) -C compatlib $@
+ 	$(MAKE) -C preproc $@
+-	$(MAKE) -C test $@
+ 
+ clean distclean maintainer-clean:
+ 	-$(MAKE) -C include $@
diff --git a/meta/recipes-support/postgresql/postgresql-9.0.2/remove.autoconf.version.check.patch b/meta/recipes-support/postgresql/postgresql-9.0.2/remove.autoconf.version.check.patch
new file mode 100644
index 0000000..70985d1
--- /dev/null
+++ b/meta/recipes-support/postgresql/postgresql-9.0.2/remove.autoconf.version.check.patch
@@ -0,0 +1,13 @@
+--- postgresql-9.0.2.orig/configure.in	2011-12-10 10:40:41.954161101 +0100
++++ postgresql-9.0.2/configure.in	2011-12-10 10:41:52.203851668 +0100
+@@ -19,10 +19,6 @@
+ 
+ AC_INIT([PostgreSQL], [9.0.2], [pgsql-bugs at postgresql.org])
+ 
+-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.63], [], [m4_fatal([Autoconf version 2.63 is required.
+-Untested combinations of 'autoconf' and PostgreSQL versions are not
+-recommended.  You can remove the check from 'configure.in' but it is then
+-your responsibility whether the result works or not.])])
+ AC_COPYRIGHT([Copyright (c) 1996-2010, PostgreSQL Global Development Group])
+ AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
+ AC_CONFIG_AUX_DIR(config)
diff --git a/meta/recipes-support/postgresql/postgresql.inc b/meta/recipes-support/postgresql/postgresql.inc
new file mode 100644
index 0000000..17c552f
--- /dev/null
+++ b/meta/recipes-support/postgresql/postgresql.inc
@@ -0,0 +1,69 @@
+DESCRIPTION = "PostgreSQL is a powerful, open source relational database system."
+HOMEPAGE = "http://www.postgresql.com"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=7c1fe1ba5f31ccabfa4f6508eee09dc0"
+DEPENDS = "zlib readline tzcode-native"
+INC_PR = "r6"
+
+ARM_INSTRUCTION_SET = "arm"
+
+#WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic
+
+SRC_URI = "ftp://ftp.postgresql.org/pub/source/v${PV}/${P}.tar.bz2"
+
+LEAD_SONAME = "libpq.so"
+
+# LDFLAGS for shared libraries
+export LDFLAGS_SL = "${LDFLAGS}"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF_sh4 = "--disable-spinlocks"
+
+do_compile_append() {
+         cp /usr/sbin/zic ${S}/src/timezone/
+}
+
+PACKAGES =+ "${PN}-client ${PN}-server-dev ${PN}-timezone \
+             libecpg-compat-dbg libecpg-compat \
+             libecpg-dbg libecpg libecpg-dev \
+             libpq-dbg libpq libpq-dev \ 
+             libpgtypes-dbg libpgtypes "
+
+FILES_${PN}-client = "${bindir}/clusterdb \
+                ${bindir}/createdb \
+                ${bindir}/createlang \
+                ${bindir}/createuser \
+                ${bindir}/dropdb \
+                ${bindir}/droplang \
+                ${bindir}/dropuser \
+                ${bindir}/pg_dump \
+                ${bindir}/pg_dumpall \
+                ${bindir}/pg_restore \
+                ${bindir}/psql \
+                ${bindir}/reindexdb \
+                ${bindir}/vacuumdb \
+                ${bindir}/vacuumlo \
+                ${datadir}/${PN}/psqlrc.sample"
+
+FILES_${PN}-doc += "${prefix}/doc/"
+FILES_${PN}-timezone = "${datadir}/${PN}/timezone"
+FILES_${PN}-server-dev = "${includedir}/${PN}/server"
+
+FILES_libecpg = "${libdir}/libecpg*.so.*"
+FILES_libecpg-dbg = "${libdir}/.debug/libecpg*"
+FILES_libecpg-dev = "${libdir}/libecpg*.a ${libdir}/libecpg*.so \
+                     ${libdir}/libpgtypes*.a ${libdir}/libpgtypes*.so \
+                     ${includedir}/ecpg*.h ${includedir}/${PN}/ecpg*.h \
+                     ${includedir}/pgtypes*.h ${includedir}/${PN}/informix \
+                     ${includedir}/sql3types.h ${includedir}/sqlca.h"
+
+FILES_libpq = "${libdir}/libpq*.so.*"
+FILES_libpq-dbg = "${libdir}/.debug/libpq* ${libdir}/${PN}/pgxs/src/test/regress/.debug/*"
+FILES_libpq-dev = "${libdir}/libpq*.a ${libdir}/libpq*.so ${libdir}/libpgport.a \
+                   ${includedir}"
+
+FILES_libecpg-compat = "${libdir}/libecpg_compat*.so.*"
+FILES_libecpg-compat-dbg = "${libdir}/.debug/libecpg_compat*"
+FILES_libpgtypes = "${libdir}/libpgtypes*.so.*"
+FILES_libpgtypes-dbg = "${libdir}/.debug/libpgtypes*"
diff --git a/meta/recipes-support/postgresql/postgresql_9.0.2.bb b/meta/recipes-support/postgresql/postgresql_9.0.2.bb
new file mode 100644
index 0000000..814dc72
--- /dev/null
+++ b/meta/recipes-support/postgresql/postgresql_9.0.2.bb
@@ -0,0 +1,8 @@
+require postgresql.inc
+
+PR = "${INC_PR}.0"
+
+SRC_URI += "file://remove.autoconf.version.check.patch"
+
+SRC_URI[md5sum] = "fc79ef32b602f75f2ccd37647bc008e9"
+SRC_URI[sha256sum] = "ffb58195850aa0ec9b7b3dcdac51a6dee0c76ea3387b76c805e1c4d186fe2af5"
-- 
1.7.6.4





More information about the Openembedded-devel mailing list