summaryrefslogtreecommitdiff
path: root/package/postgresql
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/postgresql
Initial import
Diffstat (limited to 'package/postgresql')
-rw-r--r--package/postgresql/Config.in31
-rw-r--r--package/postgresql/Makefile62
-rw-r--r--package/postgresql/ipkg/libpq.control4
-rw-r--r--package/postgresql/ipkg/pgsql-cli.control5
4 files changed, 102 insertions, 0 deletions
diff --git a/package/postgresql/Config.in b/package/postgresql/Config.in
new file mode 100644
index 000000000..d1d0d09fe
--- /dev/null
+++ b/package/postgresql/Config.in
@@ -0,0 +1,31 @@
+config ADK_COMPILE_POSTGRESQL
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBPQ
+
+config ADK_PACKAGE_LIBPQ
+ prompt "libpq............................. PostgreSQL client library"
+ tristate
+ default n
+ select ADK_COMPILE_POSTGRESQL
+ help
+ PostgreSQL is an object-relational database management system (ORDBMS)
+ based on POSTGRES, Version 4.2, developed at the University of
+ California at Berkeley Computer Science Department. POSTGRES pioneered
+ many concepts that only became available in some commercial database
+ systems much later.
+
+ PostgreSQL is an open-source descendant of this original Berkeley code.
+ It supports SQL92 and SQL99 and offers many modern features:
+
+ * complex queries
+ * foreign keys
+ * triggers
+ * views
+ * transactional integrity
+ * multiversion concurrency control
+
+ http://www.postgresql.org/
+
+ This package contains the shared client library, needed by other programs.
+
diff --git a/package/postgresql/Makefile b/package/postgresql/Makefile
new file mode 100644
index 000000000..4b44b6f35
--- /dev/null
+++ b/package/postgresql/Makefile
@@ -0,0 +1,62 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= postgresql
+PKG_VERSION:= 8.3.7
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 6e36f3b4dd27ae0c352376ea9f843de2
+
+MASTER_SITES:= ftp://ftp7.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/ \
+ ftp://ftp8.de.postgresql.org/pub/ftp.postgresql.org/source/v${PKG_VERSION}/ \
+ ftp://ftp.be.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/ \
+ ftp://ftp.tw.postgresql.org/pub/postgresql/source/v${PKG_VERSION}/
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBPQ,libpq,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+PKG_CONFIGURE_ARGS:=\
+ --disable-integer-datetimes \
+ --without-java \
+ --without-krb4 \
+ --without-krb5 \
+ --without-openssl \
+ --without-pam \
+ --without-perl \
+ --without-python \
+ --without-readline \
+ --without-rendezvous \
+ --without-tcl \
+ --without-tk \
+ --with-zlib="yes"
+CONFIGURE_ARGS+= ${PKG_CONFIGURE_ARGS}
+
+pre-configure:
+ (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
+ ./configure \
+ --prefix=/usr \
+ ${PKG_CONFIGURE_ARGS} \
+ );
+ ${MAKE} -C "${WRKBUILD}/src/bin/pg_config" \
+ CC="${HOSTCC}" \
+ DESTDIR="${WRKINST}" \
+ all install
+
+do-build:
+ ${MAKE} -C "${WRKBUILD}/src/include" \
+ DESTDIR="${WRKINST}" \
+ all install
+ ${MAKE} -C "${WRKBUILD}/src/interfaces/libpq" \
+ DESTDIR="${WRKINST}" \
+ all install
+
+do-install:
+ ${INSTALL_DIR} ${IDIR_LIBPQ}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libpq.so.* ${IDIR_LIBPQ}/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/postgresql/ipkg/libpq.control b/package/postgresql/ipkg/libpq.control
new file mode 100644
index 000000000..ff669c6cb
--- /dev/null
+++ b/package/postgresql/ipkg/libpq.control
@@ -0,0 +1,4 @@
+Package: libpq
+Priority: optional
+Section: libs
+Description: PostgreSQL client library
diff --git a/package/postgresql/ipkg/pgsql-cli.control b/package/postgresql/ipkg/pgsql-cli.control
new file mode 100644
index 000000000..4ce03e45c
--- /dev/null
+++ b/package/postgresql/ipkg/pgsql-cli.control
@@ -0,0 +1,5 @@
+Package: pgsql-cli
+Priority: optional
+Section: libs
+Description: Command Line Interface (CLI) to PostgreSQL databases
+Depends: libpq