From 709c4d66e0b107ca606941b988bad717c0b45d9b Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Tue, 17 Mar 2009 14:32:59 -0400 Subject: rename packages/ to recipes/ per earlier agreement See links below for more details: http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326 http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816 Signed-off-by: Denys Dmytriyenko Acked-by: Mike Westerhof Acked-by: Philip Balister Acked-by: Khem Raj Acked-by: Marcin Juszkiewicz Acked-by: Koen Kooi Acked-by: Frans Meulenbroeks --- recipes/postgresql/files/no-ecpg-test.patch | 12 +++++ recipes/postgresql/postgresql.inc | 71 +++++++++++++++++++++++++++++ recipes/postgresql/postgresql_8.1.4.bb | 3 ++ recipes/postgresql/postgresql_8.1.8.bb | 3 ++ recipes/postgresql/postgresql_8.2.4.bb | 7 +++ 5 files changed, 96 insertions(+) create mode 100644 recipes/postgresql/files/no-ecpg-test.patch create mode 100644 recipes/postgresql/postgresql.inc create mode 100644 recipes/postgresql/postgresql_8.1.4.bb create mode 100644 recipes/postgresql/postgresql_8.1.8.bb create mode 100644 recipes/postgresql/postgresql_8.2.4.bb (limited to 'recipes/postgresql') diff --git a/recipes/postgresql/files/no-ecpg-test.patch b/recipes/postgresql/files/no-ecpg-test.patch new file mode 100644 index 0000000000..c0f28f4258 --- /dev/null +++ b/recipes/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/recipes/postgresql/postgresql.inc b/recipes/postgresql/postgresql.inc new file mode 100644 index 0000000000..da74516830 --- /dev/null +++ b/recipes/postgresql/postgresql.inc @@ -0,0 +1,71 @@ +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" + +inherit autotools pkgconfig + +do_compile_append() { + cp /usr/sbin/zic ${S}/src/timezone/ +} + +do_stage() { + autotools_stage_includes + + oe_libinstall -a -so -C src/interfaces/libpq libpq ${STAGING_LIBDIR} + oe_libinstall -a -so -C src/interfaces/ecpg/ecpglib libecpg ${STAGING_LIBDIR} + oe_libinstall -a -so -C src/interfaces/ecpg/compatlib libecpg_compat ${STAGING_LIBDIR} + oe_libinstall -a -so -C src/interfaces/ecpg/pgtypeslib libpgtypes ${STAGING_LIBDIR} +} + +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*" +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/recipes/postgresql/postgresql_8.1.4.bb b/recipes/postgresql/postgresql_8.1.4.bb new file mode 100644 index 0000000000..cfb0162bb4 --- /dev/null +++ b/recipes/postgresql/postgresql_8.1.4.bb @@ -0,0 +1,3 @@ +require postgresql.inc + +PR = "r3" diff --git a/recipes/postgresql/postgresql_8.1.8.bb b/recipes/postgresql/postgresql_8.1.8.bb new file mode 100644 index 0000000000..cfb0162bb4 --- /dev/null +++ b/recipes/postgresql/postgresql_8.1.8.bb @@ -0,0 +1,3 @@ +require postgresql.inc + +PR = "r3" diff --git a/recipes/postgresql/postgresql_8.2.4.bb b/recipes/postgresql/postgresql_8.2.4.bb new file mode 100644 index 0000000000..9b60b2b6a7 --- /dev/null +++ b/recipes/postgresql/postgresql_8.2.4.bb @@ -0,0 +1,7 @@ +require postgresql.inc + +PR = "r3" +DEFAULT_PREFERENCE = "-1" + +SRC_URI = "http://ftp.de.postgresql.org/mirror/postgresql/source/v${PV}/${P}.tar.bz2 \ + file://no-ecpg-test.patch;patch=1" -- cgit v1.2.3