pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases Allow PostgreSQL to build on DragonFly.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e811894a6f7c
branches:  trunk
changeset: 500572:e811894a6f7c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Oct 10 16:46:02 2005 +0000

description:
Allow PostgreSQL to build on DragonFly.

Bump revision of client to annotate PLIST change.

Based on patch from reed@.

diffstat:

 databases/postgresql80-client/Makefile  |   8 ++++----
 databases/postgresql80-client/PLIST     |   3 ++-
 databases/postgresql80-server/Makefile  |  13 ++++++++++++-
 databases/postgresql80/distinfo         |   3 ++-
 databases/postgresql80/patches/patch-al |  12 ++++++++++++
 5 files changed, 32 insertions(+), 7 deletions(-)

diffs (99 lines):

diff -r daea9bebe8aa -r e811894a6f7c databases/postgresql80-client/Makefile
--- a/databases/postgresql80-client/Makefile    Mon Oct 10 16:45:35 2005 +0000
+++ b/databases/postgresql80-client/Makefile    Mon Oct 10 16:46:02 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.8 2005/08/21 01:21:23 jlam Exp $
+# $NetBSD: Makefile,v 1.9 2005/10/10 16:46:02 joerg Exp $
 
 PKGNAME=       postgresql80-client-${BASE_VERS}
-PKGREVISION=   2
+PKGREVISION=   3
 COMMENT=       PostgreSQL database client programs
 
 .include "../../databases/postgresql80/Makefile.common"
@@ -16,9 +16,9 @@
 CONFLICTS+=    postgresql80-docs-*
 
 # The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
-# NetBSD.
+# NetBSD or DragonFly.
 #
-.if ${OPSYS} == "NetBSD"
+.if ${OPSYS} == "NetBSD" || ${OPSYS} == "DragonFly"
 PGSQL_THREAD_SAFETY?=  no
 .endif
 PGSQL_THREAD_SAFETY?=  yes
diff -r daea9bebe8aa -r e811894a6f7c databases/postgresql80-client/PLIST
--- a/databases/postgresql80-client/PLIST       Mon Oct 10 16:45:35 2005 +0000
+++ b/databases/postgresql80-client/PLIST       Mon Oct 10 16:46:02 2005 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2005/08/21 01:21:23 jlam Exp $
+@comment $NetBSD: PLIST,v 1.7 2005/10/10 16:46:02 joerg Exp $
 ${PG_SUBPREFIX}bin/clusterdb
 ${PG_SUBPREFIX}bin/createdb
 ${PG_SUBPREFIX}bin/createlang
@@ -257,6 +257,7 @@
 ${PG_SUBPREFIX}include/postgresql/server/port/cygwin.h
 ${PG_SUBPREFIX}include/postgresql/server/port/darwin.h
 ${PG_SUBPREFIX}include/postgresql/server/port/dgux.h
+${PG_SUBPREFIX}include/postgresql/server/port/dragonfly.h
 ${PG_SUBPREFIX}include/postgresql/server/port/freebsd.h
 ${PG_SUBPREFIX}include/postgresql/server/port/hpux.h
 ${PG_SUBPREFIX}include/postgresql/server/port/irix.h
diff -r daea9bebe8aa -r e811894a6f7c databases/postgresql80-server/Makefile
--- a/databases/postgresql80-server/Makefile    Mon Oct 10 16:45:35 2005 +0000
+++ b/databases/postgresql80-server/Makefile    Mon Oct 10 16:46:02 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2005/08/23 11:48:47 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2005/10/10 16:46:02 joerg Exp $
 
 PKGNAME=       postgresql80-server-${BASE_VERS}
 PKGREVISION=   2
@@ -79,6 +79,17 @@
 .endif
 
 pre-build:
+       ${TOUCH} ${WRKSRC}/src/template/dragonfly
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.c \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.c
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/backend/port/dynloader/freebsd.h \
+               ${WRKSRC}/src/backend/port/dynloader/dragonfly.h
+       ${CP} ${WRKSRC}/src/include/port/freebsd.h \
+               ${WRKSRC}/src/include/port/dragonfly.h
+       ${CP} ${WRKSRC}/src/makefiles/Makefile.freebsd \
+               ${WRKSRC}/src/makefiles/Makefile.dragonfly
        ${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}                       \
        cd ${WRKSRC}/src/backend &&                                     \
        ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${BUILD_MAKE_FLAGS}       \
diff -r daea9bebe8aa -r e811894a6f7c databases/postgresql80/distinfo
--- a/databases/postgresql80/distinfo   Mon Oct 10 16:45:35 2005 +0000
+++ b/databases/postgresql80/distinfo   Mon Oct 10 16:46:02 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.8 2005/09/19 05:52:18 jlam Exp $
+$NetBSD: distinfo,v 1.9 2005/10/10 16:46:02 joerg Exp $
 
 SHA1 (postgresql-8.0.3.tar.bz2) = 45f9a739e414e617d1e5f43779046546ee1a0d3a
 RMD160 (postgresql-8.0.3.tar.bz2) = 62e6a28c0041a3f0d456efe1e985f03778e4bdfa
@@ -17,3 +17,4 @@
 SHA1 (patch-ai) = d480379c41b73da6eaa7914a557292d4124c8bbf
 SHA1 (patch-aj) = 6f2a9ad8fab9312aef71cc9c39ed8c4478a76fea
 SHA1 (patch-ak) = 3609a313fd8969995b4fd680dd10521a0ab7ece4
+SHA1 (patch-al) = acea345a6d88241f480ffddf6774371ad96241cf
diff -r daea9bebe8aa -r e811894a6f7c databases/postgresql80/patches/patch-al
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/postgresql80/patches/patch-al   Mon Oct 10 16:46:02 2005 +0000
@@ -0,0 +1,12 @@
+$NetBSD: patch-al,v 1.1 2005/10/10 16:46:02 joerg Exp $
+
+--- configure.orig     2005-08-22 12:02:20.000000000 -0700
++++ configure  2005-08-22 12:02:43.000000000 -0700
+@@ -1394,6 +1394,7 @@
+   darwin*) template=darwin ;;
+     dgux*) template=dgux ;;
+  freebsd*) template=freebsd ;;
++ dragonfly*) template=dragonfly ;;
+     hpux*) template=hpux ;;
+     irix*) template=irix ;;
+  linux*|gnu*|k*bsd*-gnu)



Home | Main Index | Thread Index | Old Index