aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql92-server/Makefile
diff options
context:
space:
mode:
authorgirgen <girgen@FreeBSD.org>2008-01-07 21:51:57 +0800
committergirgen <girgen@FreeBSD.org>2008-01-07 21:51:57 +0800
commita641f9f3b7289812e25bb9c4a1c2a045e74e1ab6 (patch)
tree37591f2d1e841387bf93695f316bcf218dd8f1c6 /databases/postgresql92-server/Makefile
parent7ebc368ad94f4d6a3c6abfa6a8711e66c6aef3fd (diff)
downloadfreebsd-ports-gnome-a641f9f3b7289812e25bb9c4a1c2a045e74e1ab6.tar.gz
freebsd-ports-gnome-a641f9f3b7289812e25bb9c4a1c2a045e74e1ab6.tar.zst
freebsd-ports-gnome-a641f9f3b7289812e25bb9c4a1c2a045e74e1ab6.zip
Update all PostgreSQL ports to latest versions.
This includes a bunch of security fixes: CVE-2007-6067, CVE-2007-4772, CVE-2007-6601, CVE-2007-6600 and CVE-2007-4769. Security: http://www.postgresql.org/about/news.905
Diffstat (limited to 'databases/postgresql92-server/Makefile')
-rw-r--r--databases/postgresql92-server/Makefile38
1 files changed, 13 insertions, 25 deletions
diff --git a/databases/postgresql92-server/Makefile b/databases/postgresql92-server/Makefile
index 900aaec42ba4..021b1eb93752 100644
--- a/databases/postgresql92-server/Makefile
+++ b/databases/postgresql92-server/Makefile
@@ -6,20 +6,17 @@
#
PORTNAME?= postgresql
-PORTVERSION?= 8.3beta2
+PORTVERSION?= 8.3RC1
PORTREVISION?= 0
CATEGORIES?= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR= source/v${PORTVERSION:C/[0-9]$//}
PKGNAMESUFFIX?= -server
-DISTFILES?= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \
- postgresql-opt-${PORTVERSION}${EXTRACT_SUFX}
+DISTFILES?= postgresql-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER?= girgen@FreeBSD.org
COMMENT?= BETA VERSION of the PostgreSQL server, only for testing
-BROKEN= Unfetchable
-
CONFLICTS?= ${PORTNAME}-client-7.* \
${PORTNAME}${PKGNAMESUFFIX}-7.* \
${PORTNAME}-client-8.[0-24-9]* \
@@ -40,6 +37,9 @@ GNU_CONFIGURE= YES
.undef GNU_CONFIGURE
.endif
+PGUSER= pgsql
+PGGROUP= pgsql
+
CONFIGURE_ARGS+=--with-libraries=${LOCALBASE}/lib \
--with-includes=${LOCALBASE}/include \
--with-docdir=${DOCSDIR}
@@ -58,7 +58,6 @@ INSTALL_DIRS?= ${BUILD_DIRS}
.if !defined(CLIENT_ONLY) && !defined(SLAVE_ONLY)
SERVER_ONLY= yes
USE_RC_SUBR= postgresql
-SUB_FILES+= dot.cshrc dot.profile
USE_PGSQL= yes
WANT_PGSQL_VER= ${PORTVERSION:C/([0-9][0-9]*)\.([0-9][0-9]*).*/\1\2/g}
.endif
@@ -67,6 +66,11 @@ WANT_PGSQL_VER= ${PORTVERSION:C/([0-9][0-9]*)\.([0-9][0-9]*).*/\1\2/g}
OPTIONS= NLS "Use internationalized messages" on
.endif
+.if !defined(CLIENT_ONLY)
+MAKE_ENV= PATH=${PREFIX}/bin:${PATH}
+CONFIGURE_ENV+= PATH=${PREFIX}/bin:${PATH}
+.endif
+
# Cannot check this with standard OPTION due to a catch-22.
# USE_OPENSSL must precede bsd.port.pre.mk, but then we don't know
# what OPTIONS are set.
@@ -121,10 +125,6 @@ OPTIONS+= INTDATE "Builds with 64-bit date/time type (server)" off
PATCH_DIST_STRIP=-p1
-. ifmake makesum
-DISTFILES+= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
-. endif
-
. if defined(SERVER_ONLY) && defined(WITH_PAM)
CONFIGURE_ARGS+=--with-pam
. endif
@@ -183,15 +183,11 @@ CONFIGURE_ARGS+=--with-krb5
# Postgresql apps will not link properly when libpq is linked with base heimdal in /usr,
# so we always use the heimdal port. See
# http://lists.freebsd.org/pipermail/freebsd-stable/2005-October/018809.html
-LIB_DEPENDS+= krb5.21:${PORTSDIR}/security/heimdal
+LIB_DEPENDS+= krb5.23:${PORTSDIR}/security/heimdal
CONFIGURE_ARGS+=--with-krb5
. endif
. endif
-. if (defined(SERVER_ONLY) && defined(WITH_TESTS)) || defined(WITH_THREADSAFE) || make(makesum)
-DISTFILES+= postgresql-test-${PORTVERSION}${EXTRACT_SUFX}
-. endif
-
. if defined(WITH_THREADSAFE)
CONFIGURE_ARGS+=--enable-thread-safety
. endif
@@ -290,7 +286,7 @@ PKGMESSAGE= ${WRKSRC}/pkg-message${PKGNAMESUFFIX}
.if defined(SERVER_ONLY)
pre-su-install:
- @ ${SETENV} PKG_PREFIX=${PREFIX} \
+ @ ${SETENV} PKG_PREFIX=${PREFIX} PGUSER=${PGUSER} PGGROUP=${PGGROUP} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
.endif
@@ -301,15 +297,7 @@ do-install:
${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL_TARGET}; \
done
. if defined(SERVER_ONLY)
- @ ${MKDIR} ${PREFIX}/share/postgresql
-. for i in profile cshrc
- ${INSTALL_DATA} ${WRKDIR}/dot.$i ${PREFIX}/share/postgresql/dot.$i.dist; \
- ${INSTALL_DATA} -o pgsql -g pgsql ${WRKDIR}/dot.$i ~pgsql/dot.$i.dist ; \
- if [ ! -f ~pgsql/.$i ]; then \
- ${CP} -p ~pgsql/dot.$i.dist ~pgsql/.$i; \
- fi
-. endfor
- @ ${CHOWN} -R pgsql:pgsql ~pgsql/. ;\
+ @ ${MKDIR} ${PREFIX}/share/postgresql ;\
${MKDIR} ${PREFIX}/etc/periodic/daily ;\
${INSTALL_SCRIPT} ${FILESDIR}/502.pgsql \
${PREFIX}/etc/periodic/daily