Permalink
Browse files

Initial import of postgresql 9.2.0beta3 packages.

  • Loading branch information...
jperkin committed Aug 14, 2012
1 parent 924d4c6 commit 3a7c0e92da2b14b644deb5e520b683df3fa141c7
Showing with 3,796 additions and 0 deletions.
  1. +9 −0 postgresql92-client/DESCR
  2. +85 −0 postgresql92-client/Makefile
  3. +731 −0 postgresql92-client/PLIST
  4. +21 −0 postgresql92-client/buildlink3.mk
  5. +9 −0 postgresql92-docs/DESCR
  6. +23 −0 postgresql92-docs/Makefile
  7. +1,389 −0 postgresql92-docs/PLIST
  8. +20 −0 postgresql92-server/DEINSTALL
  9. +9 −0 postgresql92-server/DESCR
  10. +18 −0 postgresql92-server/MESSAGE
  11. +89 −0 postgresql92-server/Makefile
  12. +687 −0 postgresql92-server/PLIST
  13. +130 −0 postgresql92-server/files/pgsql.sh
  14. +9 −0 postgresql92/DESCR
  15. +14 −0 postgresql92/Makefile
  16. +120 −0 postgresql92/Makefile.common
  17. +2 −0 postgresql92/PLIST
  18. +18 −0 postgresql92/distinfo
  19. +20 −0 postgresql92/files/GNUmakefile.libpq
  20. +17 −0 postgresql92/files/dynloader-ltdl.h
  21. +63 −0 postgresql92/options.mk
  22. +15 −0 postgresql92/patches/patch-config_perl.m4
  23. +24 −0 postgresql92/patches/patch-configure
  24. +12 −0 postgresql92/patches/patch-contrib_dblink_Makefile
  25. +13 −0 postgresql92/patches/patch-contrib_dblink_dblink.c
  26. +40 −0 postgresql92/patches/patch-src_Makefile.shlib
  27. +15 −0 postgresql92/patches/patch-src_backend_Makefile
  28. +10 −0 postgresql92/patches/patch-src_makefiles_Makefile.solaris
  29. +21 −0 postgresql92/patches/patch-src_pl_plperl_GNUmakefile
  30. +26 −0 postgresql92/patches/patch-src_pl_plperl_plperl.h
  31. +31 −0 postgresql92/patches/patch-src_timezone_localtime.c
  32. +15 −0 postgresql92/patches/patch-src_timezone_private.h
  33. +13 −0 postgresql92/patches/patch-src_timezone_strftime.c
  34. +78 −0 postgresql92/patches/patch-src_timezone_zic.c
@@ -0,0 +1,9 @@
+PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
+derived from the Berkeley Postgres database management system. While
+PostgreSQL retains the powerful object-relational data model, rich data types
+and easy extensibility of Postgres, it replaces the PostQuel query language
+with an extended subset of SQL.
+
+PostgreSQL is free and the complete source is available.
+
+This package contains the database client programs.
@@ -0,0 +1,85 @@
+# $NetBSD: Makefile,v 1.7 2012/07/01 19:49:24 morr Exp $
+
+PKGNAME= ${DISTNAME:C/-/92-client-/}
+COMMENT= PostgreSQL database client programs
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "../../joyent/postgresql92/Makefile.common"
+
+USE_TOOLS+= gzip tar
+CONFIGURE_ARGS+= --with-openssl
+CONFIGURE_ARGS+= --with-readline
+CONFIGURE_ARGS+= --with-zlib
+
+# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
+# NetBSD earler than 4.0 or DragonFly.
+# 2. configure with --enable-thread-safety fails on OpenBSD.
+.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
+ ${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
+PGSQL_THREAD_SAFETY?= no
+.endif
+PGSQL_THREAD_SAFETY?= yes
+BUILD_DEFS+= PGSQL_THREAD_SAFETY
+
+.if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS])
+. include "../../mk/pthread.buildlink3.mk"
+. if (${PTHREAD_TYPE} == "native")
+CONFIGURE_ARGS+= --enable-thread-safety
+. endif
+.endif
+
+INSTALL_DIRS= src/include
+INSTALL_DIRS+= src/interfaces
+INSTALL_DIRS+= src/bin
+INSTALL_DIRS+= src/port
+BUILD_DIRS= ${INSTALL_DIRS}
+# Without this, the Darwin build fails (related to -bundle_loader).
+BUILD_DIRS+= src/backend
+
+.for f in pg_service.conf psqlrc
+CONF_FILES+= share/postgresql/${f}.sample ${PKG_SYSCONFDIR}/${f}
+.endfor
+
+# XXX work around core dumps with the native libedit
+USE_GNU_READLINE= yes
+
+.include "../../devel/readline/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+
+SUBST_CLASSES+= pgxs
+SUBST_STAGE.pgxs= post-build
+SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile
+SUBST_FILES.pgxs= src/Makefile.global
+SUBST_SED.pgxs= -e 's,${TOOLS_CMD.bison},${TOOLS_PATH.bison},'
+SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.lex},${TOOLS_PATH.lex},'
+SUBST_SED.pgxs+= -e 's,${TOOLS_CMD.mkdir},${TOOLS_PATH.mkdir},'
+SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper/bin/ld,${LD},'
+SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper,${PREFIX},'
+SUBST_SED.pgxs+= -e 's,${WRKSRC},/dev/null,'
+
+INSTALLATION_DIRS+= lib${LIBARCHSUFFIX}/postgresql/pgxs
+INSTALLATION_DIRS+= lib${LIBARCHSUFFIX}/postgresql/pgxs/config
+INSTALLATION_DIRS+= lib${LIBARCHSUFFIX}/postgresql/pgxs/src
+INSTALLATION_DIRS+= lib${LIBARCHSUFFIX}/postgresql/pgxs/src/makefiles
+
+DEST_PGXS= ${DESTDIR}${PREFIX}/lib${LIBARCHSUFFIX}/postgresql/pgxs
+PGXS_FILES= config/install-sh
+PGXS_FILES+= src/makefiles/pgxs.mk src/Makefile.global
+PGXS_FILES+= src/Makefile.port src/Makefile.shlib
+PGXS_FILES+= src/nls-global.mk
+
+# On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
+# and "/usr/include/crypt.h" -- we want the definitions in the former.
+.if ${OPSYS} == "SunOS"
+post-wrapper:
+ touch ${BUILDLINK_DIR}/include/crypt.h
+.endif
+
+post-install:
+.for file in ${PGXS_FILES}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DEST_PGXS}/${file}
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
Oops, something went wrong.

0 comments on commit 3a7c0e9

Please sign in to comment.