summaryrefslogtreecommitdiff
path: root/databases/postgresql80-server/Makefile
diff options
context:
space:
mode:
authorPalle Girgensohn <girgen@FreeBSD.org>2005-05-11 00:40:15 +0000
committerPalle Girgensohn <girgen@FreeBSD.org>2005-05-11 00:40:15 +0000
commitebc37b4280af7c97d0b2d8b0724cb33e36c05bc8 (patch)
treed863b10281fb5e8e7346b9cd123898ab066d2533 /databases/postgresql80-server/Makefile
parent- Remove need for audio/speex-devel, since audio/speex as of version 1.0.5 (diff)
Fixing problems with the recent security patch: When bison was not
installed, the patched gram.y file would not be used and the security patch would be a no-op. Also, I've had reports of compilation errors related to bison. Since checking for the correct version of bison is hard and error prone, I'm doing what the postgresql distribution does - patching the yacc:ed .c file to get rid of the building dependency. Bumping portrevision of -server. Pointy hat to: me Noticed by: Mike Harding and others Security: http://www.vuxml.org/freebsd/6b4b0b3f-8127-11d9-a9e7-0001020eed82.html Approved by: seanc (implicit)
Notes
Notes: svn path=/head/; revision=135025
Diffstat (limited to 'databases/postgresql80-server/Makefile')
-rw-r--r--databases/postgresql80-server/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/databases/postgresql80-server/Makefile b/databases/postgresql80-server/Makefile
index 5fffaf3232b3..a5cb7bd19671 100644
--- a/databases/postgresql80-server/Makefile
+++ b/databases/postgresql80-server/Makefile
@@ -7,7 +7,7 @@
PORTNAME?= postgresql
PKGNAMESUFFIX?= -server
-PORTVERSION?= 8.0.2
+PORTVERSION?= 8.0.3
PORTREVISION?= 0
CATEGORIES?= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
@@ -43,7 +43,8 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
PLIST= ${PKGDIR}/pkg-plist${PKGNAMESUFFIX}
-BUILD_DIRS?= src/timezone src/backend src/backend/utils/mb/conversion_procs src/pl
+BUILD_DIRS?= src/port src/timezone src/backend src/backend/utils/mb/conversion_procs \
+ src/pl src/utils
INSTALL_DIRS?= ${BUILD_DIRS}
PKGMESSAGE= ${WRKDIR}/.pkg-message${PKGNAMESUFFIX}
@@ -85,6 +86,7 @@ OPTIONS+= MIT_KRB5 "Build with MIT's kerberos support" off
OPTIONS+= HEIMDAL_KRB5 "Builds with Heimdal kerberos support" off
OPTIONS+= OPTIMIZED_CFLAGS "Builds with compiler optimizations (-O3)" off
OPTIONS+= LIBC_R "Link w/ libc_r, used by plpython (server)" off
+OPTIONS+= THREADSAFE "make libpq thread safe" off
# to run regression tests:
OPTIONS+= TESTS "Allows the use of a \"check\" target (server)" off
OPTIONS+= DEBUG "Builds with debugging symbols" off
@@ -176,6 +178,10 @@ DISTFILES+= postgresql-test-${PORTVERSION}${EXTRACT_SUFX}
EXTRA_PATCHES= ${FILESDIR}/regresspatch-src-test-regress-pgregress-sh
. endif
+. if defined(WITH_THREADSAFE)
+CONFIGURE_ARGS+=--enable-thread-safety
+. endif
+
. if defined(SERVER_ONLY) && defined(WITH_LIBC_R)
CFLAGS+= ${PTHREAD_CFLAGS}
LDFLAGS+= ${PTHREAD_LIBS}
@@ -295,6 +301,9 @@ do-install:
${INSTALL_SCRIPT} ${FILESDIR}/502.pgsql \
${PREFIX}/etc/periodic/daily
. endif # SERVER_ONLY
+. if defined(CLIENT_ONLY)
+ @ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} install-local
+. endif
@ if [ -r ${PKGMESSAGE} ]; then \
${MKDIR} ${DOCSDIR} ;\
${INSTALL_DATA} ${PKGMESSAGE} ${DOCSDIR}/README${PKGNAMESUFFIX} ;\