postgresql: import from OE

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi 2011-01-03 11:45:04 +01:00
parent ef3de09a6b
commit 982fc759b1
4 changed files with 101 additions and 0 deletions

View File

@ -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 $@

View File

@ -0,0 +1,15 @@
Index: postgresql-8.4.4/configure.in
===================================================================
--- postgresql-8.4.4.orig/configure.in
+++ postgresql-8.4.4/configure.in
@@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch un
AC_INIT([PostgreSQL], [8.4.4], [pgsql-bugs@postgresql.org])
-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.61], [], [m4_fatal([Autoconf version 2.61 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-2009, PostgreSQL Global Development Group])
AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c])
AC_CONFIG_AUX_DIR(config)

View File

@ -0,0 +1,65 @@
DESCRIPTION = "PostgreSQL is a powerful, open source relational database system."
HOMEPAGE = "http://www.postgresql.com"
LICENSE = "BSD"
DEPENDS = "zlib readline"
ARM_INSTRUCTION_SET = "arm"
#WARNING: this recipe assumes you have the timezone compiler present in /usr/sbin/zic
SRC_URI = "ftp://ftp-archives.postgresql.org/pub/source/v${PV}/${P}.tar.bz2"
LEAD_SONAME = "libpq.so"
# LDFLAGS for shared libraries
export LDFLAGS_SL = "${LDFLAGS}"
inherit autotools pkgconfig
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*"

View File

@ -0,0 +1,9 @@
require postgresql.inc
DEFAULT_PREFERENCE = "-1"
SRC_URI = "ftp://ftp.postgresql.org/pub/source/v${PV}/${P}.tar.bz2 \
file://remove.autoconf.version.check.patch"
SRC_URI[md5sum] = "4bf2448ad965bca3940df648c02194df"
SRC_URI[sha256sum] = "e66b398d565f7fb16d8ae58ae72881dcd3dbb1b88f532bbe1c2d1284812be37e"