1997-04-10 21:15:12 +02:00
|
|
|
# New ports collection makefile for: PostgreSQL
|
1998-11-22 22:33:20 +01:00
|
|
|
# Date created: November 13, 1998
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: Marc G. Fournier <scrappy@FreeBSD.org>
|
1997-04-09 17:30:55 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1998-04-22 10:28:07 +02:00
|
|
|
#
|
1998-04-21 23:52:10 +02:00
|
|
|
|
2003-12-04 16:24:57 +01:00
|
|
|
PORTNAME?= postgresql
|
2004-11-23 20:15:12 +01:00
|
|
|
PKGNAMESUFFIX?= -server
|
2005-05-11 02:40:15 +02:00
|
|
|
PORTVERSION?= 8.0.3
|
Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
our old Cache Management Alorithm (ARC) with a new, patent free one
(2Q).
In order to reduce the number of 8.x deployments out there that are
using the old manager, we have just released 8.0.2, and encourage
adminstrators to upgrade at their earliest convience.
For those already running 8.x on your production servers, please
note that this upgrade does *NOT* require a dump restore, but due to
a bump in the major version number for the client library (libpq),
it *WILL* require all client applications to be recompiled at the
same time.
For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2
Apart from the upgrade, three new config options are added:
A patch (experimental) for supporting proper collation
of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
info.
An optional patch written by Evgen Potemkin, which allows
PostgreSQL to make hierarchical queries à la Oracle [1].
An option is added that allows the use of 64 bit ints to
store dates [2].
PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-14 01:15:49 +02:00
|
|
|
PORTREVISION?= 0
|
2002-02-19 09:23:22 +01:00
|
|
|
CATEGORIES?= databases
|
2003-06-11 11:23:15 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PGSQL}
|
2005-01-31 15:56:24 +01:00
|
|
|
MASTER_SITE_SUBDIR= source/v${PORTVERSION}
|
2004-11-23 20:15:12 +01:00
|
|
|
DISTFILES?= postgresql-base-${PORTVERSION}${EXTRACT_SUFX} \
|
2003-02-06 21:46:51 +01:00
|
|
|
postgresql-opt-${PORTVERSION}${EXTRACT_SUFX}
|
1997-10-03 16:13:36 +02:00
|
|
|
|
2004-12-06 04:59:56 +01:00
|
|
|
MAINTAINER?= girgen@FreeBSD.org
|
2003-10-13 11:54:16 +02:00
|
|
|
COMMENT?= The most advanced open-source database available anywhere
|
1997-04-10 21:15:12 +02:00
|
|
|
|
2005-01-31 01:36:16 +01:00
|
|
|
CONFLICTS?= ${PORTNAME}-client-7.[0-9]* \
|
|
|
|
${PORTNAME}${PKGNAMESUFFIX}-7.[0-9]*
|
2004-11-23 20:15:12 +01:00
|
|
|
|
2005-09-29 01:12:18 +02:00
|
|
|
BROKEN= Work in progress, nothing to see, please move along...
|
|
|
|
|
2002-02-19 09:23:22 +01:00
|
|
|
WRKSRC= ${WRKDIR}/postgresql-${PORTVERSION}
|
2001-04-21 13:34:34 +02:00
|
|
|
DIST_SUBDIR= postgresql
|
2000-12-11 04:22:07 +01:00
|
|
|
|
2005-02-19 13:07:46 +01:00
|
|
|
UNIQUENAME?= ${PORTNAME}80
|
|
|
|
LATEST_LINK?= ${PKGNAMEPREFIX}${UNIQUENAME}${PKGNAMESUFFIX}
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
PKGINSTALL?= ${PKGDIR}/pkg-install${PKGNAMESUFFIX}
|
2003-12-04 13:00:49 +01:00
|
|
|
USE_BZIP2= YES
|
2002-02-19 09:23:22 +01:00
|
|
|
USE_GMAKE= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2004-11-23 20:15:12 +01:00
|
|
|
.if defined(NO_BUILD)
|
|
|
|
.undef USE_GMAKE
|
|
|
|
.undef GNU_CONFIGURE
|
|
|
|
.endif
|
1997-10-05 00:43:26 +02:00
|
|
|
|
2005-01-31 01:36:16 +01:00
|
|
|
CONFIGURE_ARGS+=--with-libraries=${LOCALBASE}/lib \
|
|
|
|
--with-includes=${LOCALBASE}/include \
|
|
|
|
--with-docdir=${DOCSDIR}
|
2004-11-23 20:15:12 +01:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
2002-02-19 09:23:22 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
PLIST= ${PKGDIR}/pkg-plist${PKGNAMESUFFIX}
|
1997-10-05 00:43:26 +02:00
|
|
|
|
2005-05-11 02:40:15 +02:00
|
|
|
BUILD_DIRS?= src/port src/timezone src/backend src/backend/utils/mb/conversion_procs \
|
|
|
|
src/pl src/utils
|
2004-11-23 20:15:12 +01:00
|
|
|
INSTALL_DIRS?= ${BUILD_DIRS}
|
|
|
|
PKGMESSAGE= ${WRKDIR}/.pkg-message${PKGNAMESUFFIX}
|
2002-02-19 09:23:22 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if !defined(CLIENT_ONLY) && !defined(SLAVE_ONLY)
|
|
|
|
SERVER_ONLY= yes
|
|
|
|
USE_RC_SUBR= yes
|
2005-02-03 10:30:27 +01:00
|
|
|
RCSCRIPT= ${PREFIX}/etc/rc.d/010.pgsql.sh
|
2004-11-23 20:15:12 +01:00
|
|
|
USE_PGSQL= yes
|
|
|
|
WANT_PGSQL_VER= ${PORTVERSION:C/([0-9][0-9]*)\.([0-9][0-9]*).*/\1\2/g}
|
2003-12-04 13:00:49 +01:00
|
|
|
.endif
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if !defined(SLAVE_ONLY)
|
|
|
|
OPTIONS= NLS "Use internationalized messages" on
|
2005-01-31 01:36:16 +01:00
|
|
|
.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.
|
|
|
|
#
|
|
|
|
# If you *don't* want SSL, set WITHOUT_SSL=YES when making
|
|
|
|
.if !defined(WITHOUT_SSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-openssl
|
2001-04-21 13:34:34 +02:00
|
|
|
.endif
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-31 01:36:16 +01:00
|
|
|
.if ${ARCH} == "alpha" && ${OSVERSION} < 500000
|
|
|
|
BROKEN= "Coredump during build on alpha 4.x"
|
|
|
|
.endif
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if !defined(SLAVE_ONLY)
|
|
|
|
# gnugetopt will always be used if already installed
|
2005-02-19 13:07:46 +01:00
|
|
|
. if ( ${OSVERSION} < 500041 ) && !exists(${LOCALBASE}/include/getopt.h)
|
2005-01-31 01:36:16 +01:00
|
|
|
OPTIONS+= GNUGETOPT "Use GNU getopt" on
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2005-02-19 13:07:46 +01:00
|
|
|
OPTIONS+= PAM "Build with PAM support (server only)" off
|
2004-11-23 20:15:12 +01:00
|
|
|
OPTIONS+= MIT_KRB5 "Build with MIT's kerberos support" off
|
2005-02-19 13:07:46 +01:00
|
|
|
OPTIONS+= HEIMDAL_KRB5 "Builds with Heimdal kerberos support" off
|
2004-11-23 20:15:12 +01:00
|
|
|
OPTIONS+= OPTIMIZED_CFLAGS "Builds with compiler optimizations (-O3)" off
|
2005-02-19 13:07:46 +01:00
|
|
|
OPTIONS+= LIBC_R "Link w/ libc_r, used by plpython (server)" off
|
2005-05-11 02:40:15 +02:00
|
|
|
OPTIONS+= THREADSAFE "make libpq thread safe" off
|
2004-11-23 20:15:12 +01:00
|
|
|
# to run regression tests:
|
2005-02-19 13:07:46 +01:00
|
|
|
OPTIONS+= TESTS "Allows the use of a \"check\" target (server)" off
|
2004-11-23 20:15:12 +01:00
|
|
|
OPTIONS+= DEBUG "Builds with debugging symbols" off
|
|
|
|
|
Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
our old Cache Management Alorithm (ARC) with a new, patent free one
(2Q).
In order to reduce the number of 8.x deployments out there that are
using the old manager, we have just released 8.0.2, and encourage
adminstrators to upgrade at their earliest convience.
For those already running 8.x on your production servers, please
note that this upgrade does *NOT* require a dump restore, but due to
a bump in the major version number for the client library (libpq),
it *WILL* require all client applications to be recompiled at the
same time.
For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2
Apart from the upgrade, three new config options are added:
A patch (experimental) for supporting proper collation
of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
info.
An optional patch written by Evgen Potemkin, which allows
PostgreSQL to make hierarchical queries à la Oracle [1].
An option is added that allows the use of 64 bit ints to
store dates [2].
PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-14 01:15:49 +02:00
|
|
|
# See http://people.freebsd.org/~girgen/postgresql-icu/README.html for more info
|
|
|
|
OPTIONS+= ICU "Use ICU for unicode collation (server)" off
|
|
|
|
|
|
|
|
# See http://gppl.moonbone.ru/ for more info
|
|
|
|
OPTIONS+= HIER "Builds with query hierarchy (server)" off
|
|
|
|
|
|
|
|
# See http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/76999 for more info
|
|
|
|
# (requires dump/restore if modified.)
|
|
|
|
OPTIONS+= INTDATE "Builds with 64-bit date/time type (server)" off
|
|
|
|
|
|
|
|
. if defined(SERVER_ONLY) && defined(WITH_HIER)
|
|
|
|
PATCH_SITES+= http://gppl.moonbone.ru/:hier801054
|
|
|
|
PATCHFILES+= hier-Pg8.0.1-0.5.4.diff.gz:hier801054
|
2005-08-30 03:33:40 +02:00
|
|
|
USE_BISON= yes
|
Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
our old Cache Management Alorithm (ARC) with a new, patent free one
(2Q).
In order to reduce the number of 8.x deployments out there that are
using the old manager, we have just released 8.0.2, and encourage
adminstrators to upgrade at their earliest convience.
For those already running 8.x on your production servers, please
note that this upgrade does *NOT* require a dump restore, but due to
a bump in the major version number for the client library (libpq),
it *WILL* require all client applications to be recompiled at the
same time.
For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2
Apart from the upgrade, three new config options are added:
A patch (experimental) for supporting proper collation
of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
info.
An optional patch written by Evgen Potemkin, which allows
PostgreSQL to make hierarchical queries à la Oracle [1].
An option is added that allows the use of 64 bit ints to
store dates [2].
PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-14 01:15:49 +02:00
|
|
|
. endif
|
|
|
|
|
|
|
|
. if defined(SERVER_ONLY) && defined(WITH_ICU)
|
|
|
|
USE_AUTOCONF_VER=253
|
|
|
|
CONFIGURE_ARGS+=--with-icu
|
|
|
|
LIB_DEPENDS= icudata.32:${PORTSDIR}/devel/icu
|
|
|
|
PATCH_SITES+= http://people.freebsd.org/~girgen/postgresql-icu/:icu
|
2005-08-30 03:33:40 +02:00
|
|
|
PATCHFILES+= pg-803-icu-2005-08-16.diff.gz:icu
|
Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
our old Cache Management Alorithm (ARC) with a new, patent free one
(2Q).
In order to reduce the number of 8.x deployments out there that are
using the old manager, we have just released 8.0.2, and encourage
adminstrators to upgrade at their earliest convience.
For those already running 8.x on your production servers, please
note that this upgrade does *NOT* require a dump restore, but due to
a bump in the major version number for the client library (libpq),
it *WILL* require all client applications to be recompiled at the
same time.
For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2
Apart from the upgrade, three new config options are added:
A patch (experimental) for supporting proper collation
of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
info.
An optional patch written by Evgen Potemkin, which allows
PostgreSQL to make hierarchical queries à la Oracle [1].
An option is added that allows the use of 64 bit ints to
store dates [2].
PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-14 01:15:49 +02:00
|
|
|
. endif
|
|
|
|
|
|
|
|
PATCH_DIST_STRIP=-p1
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(SERVER_ONLY) && defined(WITH_PAM)
|
2005-02-03 10:30:27 +01:00
|
|
|
CONFIGURE_ARGS+=--with-pam
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
|
|
|
|
Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
our old Cache Management Alorithm (ARC) with a new, patent free one
(2Q).
In order to reduce the number of 8.x deployments out there that are
using the old manager, we have just released 8.0.2, and encourage
adminstrators to upgrade at their earliest convience.
For those already running 8.x on your production servers, please
note that this upgrade does *NOT* require a dump restore, but due to
a bump in the major version number for the client library (libpq),
it *WILL* require all client applications to be recompiled at the
same time.
For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2
Apart from the upgrade, three new config options are added:
A patch (experimental) for supporting proper collation
of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
info.
An optional patch written by Evgen Potemkin, which allows
PostgreSQL to make hierarchical queries à la Oracle [1].
An option is added that allows the use of 64 bit ints to
store dates [2].
PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-14 01:15:49 +02:00
|
|
|
. if defined(WITH_INTDATE)
|
|
|
|
CONFIGURE_ARGS+=--enable-integer-datetimes
|
|
|
|
. endif
|
|
|
|
|
2005-01-31 01:36:16 +01:00
|
|
|
. if !defined(WITHOUT_GNUGETOPT) || exists(${LOCALBASE}/include/getopt.h)
|
2004-11-23 20:15:12 +01:00
|
|
|
USE_GETOPT_LONG=yes
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !(defined(WITHOUT_GETTEXT) || defined(WITHOUT_NLS))
|
2002-02-19 09:23:22 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-nls
|
|
|
|
PLIST_SUB+= GETTEXT=""
|
2004-02-05 13:56:00 +01:00
|
|
|
USE_GETTEXT= YES
|
2004-11-23 20:15:12 +01:00
|
|
|
. else
|
2003-01-04 02:10:15 +01:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
2002-02-19 09:23:22 +01:00
|
|
|
PLIST_SUB+= GETTEXT="@comment "
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2002-02-19 09:23:22 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(WITH_OPTIMIZED_CFLAGS)
|
2003-12-04 13:00:49 +01:00
|
|
|
CFLAGS+= -O3 -funroll-loops
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2003-01-04 02:10:15 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(WITH_DEBUG)
|
2005-02-03 10:30:27 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-debug
|
2003-02-06 21:46:51 +01:00
|
|
|
INSTALL_TARGET= install
|
2004-11-23 20:15:12 +01:00
|
|
|
. else
|
2003-01-04 02:10:15 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2003-01-04 02:10:15 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(WITH_MIT_KRB5)
|
2005-01-31 01:36:16 +01:00
|
|
|
WITH_KRB5= yes
|
|
|
|
KRB5_HOME?= ${LOCALBASE}
|
2004-01-18 06:46:54 +01:00
|
|
|
KRB5CONF= ${KRB5_HOME}/bin/krb5-config
|
2003-12-05 22:22:42 +01:00
|
|
|
LIB_DEPENDS+= krb5.3:${PORTSDIR}/security/krb5
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2003-01-04 02:10:15 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(WITH_HEIMDAL_KRB5)
|
2003-01-04 02:10:15 +01:00
|
|
|
WITH_KRB5= yes
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(HEIMDAL_HOME) && exists(${HEIMDAL_HOME}/lib/libgssapi.a)
|
2004-06-28 23:48:56 +02:00
|
|
|
KRB5CONF= ${HEIMDAL_HOME}/bin/krb5-config
|
2004-11-23 20:15:12 +01:00
|
|
|
. elif ( defined(MAKE_KERBEROS5) || ${OSVERSION} > 500105 ) && exists(${DESTDIR}/usr/lib/libkrb5.a)
|
2004-06-28 23:48:56 +02:00
|
|
|
KRB5CONF= ${DESTDIR}/usr/bin/krb5-config
|
2004-11-23 20:15:12 +01:00
|
|
|
. else
|
2004-06-28 23:48:56 +02:00
|
|
|
LIB_DEPENDS+= krb5:${PORTSDIR}/security/heimdal
|
|
|
|
KRB5CONF= ${LOCALBASE}/bin/krb5-config
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
|
|
|
. endif
|
2003-01-04 02:10:15 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(WITH_KRB5)
|
2005-01-31 01:36:16 +01:00
|
|
|
CONFIGURE_ARGS+= --with-krb5
|
2003-01-04 02:10:15 +01:00
|
|
|
LDFLAGS+= `${KRB5CONF} --libs krb5`
|
2004-11-23 20:15:12 +01:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
|
|
|
|
. endif
|
2003-01-04 02:10:15 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(SERVER_ONLY) && defined(WITH_TESTS)
|
2003-02-06 21:46:51 +01:00
|
|
|
DISTFILES+= postgresql-test-${PORTVERSION}${EXTRACT_SUFX}
|
2005-02-03 10:30:27 +01:00
|
|
|
EXTRA_PATCHES= ${FILESDIR}/regresspatch-src-test-regress-pgregress-sh
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
2003-02-06 21:46:51 +01:00
|
|
|
|
2005-05-11 02:40:15 +02:00
|
|
|
. if defined(WITH_THREADSAFE)
|
|
|
|
CONFIGURE_ARGS+=--enable-thread-safety
|
|
|
|
. endif
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
. if defined(SERVER_ONLY) && defined(WITH_LIBC_R)
|
2003-06-02 03:44:03 +02:00
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
2004-11-23 20:15:12 +01:00
|
|
|
. endif
|
|
|
|
.endif # !SLAVE_ONLY
|
|
|
|
|
|
|
|
.if defined(CLIENT_ONLY)
|
2005-01-31 01:36:16 +01:00
|
|
|
MAN1= clusterdb.1 createdb.1 createlang.1 createuser.1 \
|
|
|
|
dropdb.1 droplang.1 dropuser.1 ecpg.1 initdb.1 \
|
|
|
|
ipcclean.1 pg_config.1 pg_controldata.1 pg_ctl.1 \
|
|
|
|
pg_dump.1 pg_dumpall.1 pg_resetxlog.1 pg_restore.1 \
|
|
|
|
postgres.1 postmaster.1 psql.1 vacuumdb.1
|
|
|
|
|
|
|
|
MAN7= abort.7 alter_aggregate.7 alter_conversion.7 alter_database.7 \
|
|
|
|
alter_domain.7 alter_function.7 alter_group.7 \
|
|
|
|
alter_index.7 alter_language.7 alter_operator_class.7 \
|
|
|
|
alter_schema.7 alter_sequence.7 alter_table.7 \
|
|
|
|
alter_trigger.7 alter_user.7 analyze.7 begin.7 \
|
|
|
|
checkpoint.7 close.7 cluster.7 comment.7 commit.7 \
|
|
|
|
copy.7 create_aggregate.7 create_cast.7 \
|
|
|
|
create_constraint_trigger.7 create_conversion.7 \
|
|
|
|
create_database.7 create_domain.7 create_function.7 \
|
|
|
|
create_group.7 create_index.7 create_language.7 \
|
|
|
|
create_operator.7 create_operator_class.7 \
|
|
|
|
create_rule.7 create_schema.7 create_sequence.7 \
|
|
|
|
create_table.7 create_table_as.7 create_trigger.7 \
|
2005-02-06 22:59:13 +01:00
|
|
|
create_type.7 create_user.7 create_view.7 deallocate.7 \
|
|
|
|
declare.7 delete.7 \
|
2005-01-31 01:36:16 +01:00
|
|
|
drop_aggregate.7 drop_cast.7 drop_conversion.7 \
|
|
|
|
drop_database.7 drop_domain.7 drop_function.7 \
|
|
|
|
drop_group.7 drop_index.7 drop_language.7 \
|
2005-02-06 22:59:13 +01:00
|
|
|
drop_operator.7 drop_operator_class.7 drop_rule.7 \
|
|
|
|
drop_schema.7 drop_sequence.7 drop_table.7 drop_trigger.7 \
|
2005-01-31 01:36:16 +01:00
|
|
|
drop_type.7 drop_user.7 drop_view.7 end.7 execute.7 \
|
|
|
|
explain.7 fetch.7 grant.7 insert.7 listen.7 load.7 \
|
|
|
|
lock.7 move.7 notify.7 prepare.7 reindex.7 reset.7 \
|
|
|
|
revoke.7 rollback.7 select.7 select_into.7 set.7 \
|
|
|
|
set_constraints.7 set_transaction.7 show.7 \
|
|
|
|
set_session_authorization.7 start_transaction.7 \
|
|
|
|
spi_connect.7 spi_copytuple.7 spi_cursor_close.7 \
|
|
|
|
spi_cursor_fetch.7 spi_cursor_find.7 spi_cursor_move.7 \
|
2005-02-06 22:59:13 +01:00
|
|
|
spi_cursor_open.7 spi_exec.7 spi_execp.7 spi_execute.7 \
|
|
|
|
spi_execute_plan.7 \
|
2005-01-31 01:36:16 +01:00
|
|
|
spi_finish.7 spi_fname.7 spi_fnumber.7 spi_freeplan.7 \
|
|
|
|
spi_freetuple.7 spi_freetuptable.7 spi_getargcount.7 \
|
|
|
|
spi_getargtypeid.7 spi_getbinval.7 spi_getrelname.7 \
|
|
|
|
spi_gettype.7 spi_gettypeid.7 spi_getvalue.7 \
|
|
|
|
spi_is_cursor_plan.7 spi_modifytuple.7 spi_palloc.7 \
|
|
|
|
spi_pfree.7 spi_pop.7 spi_prepare.7 spi_push.7 \
|
|
|
|
spi_repalloc.7 spi_returntuple.7 spi_saveplan.7 \
|
|
|
|
truncate.7 unlisten.7 update.7 vacuum.7 \
|
|
|
|
alter_operator.7 alter_tablespace.7 alter_type.7 \
|
|
|
|
create_tablespace.7 drop_tablespace.7 \
|
|
|
|
release_savepoint.7 rollback_to_savepoint.7 \
|
|
|
|
savepoint.7
|
2004-11-23 20:15:12 +01:00
|
|
|
.endif
|
1997-04-09 17:30:55 +02:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if defined(SERVER_ONLY)
|
2003-01-04 02:10:15 +01:00
|
|
|
pre-everything::
|
2003-06-02 03:44:03 +02:00
|
|
|
@${SH} ${PKGINSTALL} ${PORTNAME} BACKUPWARNING
|
2003-02-06 21:46:51 +01:00
|
|
|
.endif
|
2004-11-23 20:15:12 +01:00
|
|
|
|
|
|
|
.if !defined(NO_BUILD)
|
2005-01-31 01:36:16 +01:00
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
. if defined(WITH_MIT_KRB5) && defined(WITH_HEIMDAL_KRB5)
|
|
|
|
@${ECHO} "MIT's and Heimdal Kerberos are mutually exclusive."
|
|
|
|
@${ECHO} "Please choose one or the other."
|
|
|
|
@exit 1
|
|
|
|
. endif
|
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
do-build:
|
|
|
|
@ cd ${WRKSRC}/src/backend ;\
|
|
|
|
${GMAKE} ../../src/include/parser/parse.h ../../src/include/utils/fmgroids.h
|
|
|
|
@ for dir in ${BUILD_DIRS}; do \
|
|
|
|
cd ${WRKSRC}/$${dir} && ${SETENV} ${MAKE_ENV} ${GMAKE}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
. if exists(${MASTERDIR}/pkg-message${PKGNAMESUFFIX})
|
|
|
|
post-build:
|
|
|
|
@ ${SED} "s|/usr/local|${PREFIX}|g" \
|
|
|
|
< ${MASTERDIR}/pkg-message${PKGNAMESUFFIX} \
|
|
|
|
> ${PKGMESSAGE}
|
|
|
|
. endif
|
2003-02-06 21:46:51 +01:00
|
|
|
.endif
|
2002-02-19 09:23:22 +01:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if defined(SERVER_ONLY)
|
1997-04-09 17:30:55 +02:00
|
|
|
pre-install:
|
2002-02-19 09:23:22 +01:00
|
|
|
@ ${SETENV} PKG_PREFIX=${PREFIX} \
|
2003-06-02 03:44:03 +02:00
|
|
|
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
|
2000-12-11 04:22:07 +01:00
|
|
|
.endif
|
1997-04-09 17:30:55 +02:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if !defined(NO_BUILD)
|
|
|
|
do-install:
|
|
|
|
@for dir in ${INSTALL_DIRS}; do \
|
|
|
|
cd ${WRKSRC}/$${dir} && \
|
|
|
|
${SETENV} ${MAKE_ENV} ${GMAKE} ${INSTALL_TARGET}; \
|
|
|
|
done
|
|
|
|
. if defined(SERVER_ONLY)
|
2005-01-31 01:36:16 +01:00
|
|
|
@ ${MKDIR} ${PREFIX}/share/postgresql
|
|
|
|
. for i in profile cshrc
|
2002-04-11 06:58:11 +02:00
|
|
|
@ ${SED} "s|%%PREFIX%%|${PREFIX}|g" \
|
2001-04-21 13:34:34 +02:00
|
|
|
< ${FILESDIR}/dot.$i.in \
|
|
|
|
> ${PREFIX}/share/postgresql/dot.$i.dist; \
|
|
|
|
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/; \
|
|
|
|
if [ ! -f ~pgsql/.$i ]; then \
|
|
|
|
${CP} ${PREFIX}/share/postgresql/dot.$i.dist ~pgsql/.$i; \
|
1997-06-14 21:40:05 +02:00
|
|
|
fi
|
2005-01-31 01:36:16 +01:00
|
|
|
. endfor
|
2004-11-23 20:15:12 +01:00
|
|
|
@ ${SED} -e "s|%%PREFIX%%|${PREFIX}|g; s|%%RC_SUBR%%|${RC_SUBR}|g" \
|
2001-04-21 13:34:34 +02:00
|
|
|
< ${FILESDIR}/pgsql.sh.tmpl \
|
2004-11-23 20:15:12 +01:00
|
|
|
> ${RCSCRIPT} ;\
|
|
|
|
${CHMOD} 554 ${RCSCRIPT} ;\
|
|
|
|
${CHOWN} root:pgsql ${RCSCRIPT} ;\
|
2002-02-19 09:23:22 +01:00
|
|
|
${CHOWN} -R pgsql:pgsql ~pgsql/. ;\
|
2004-11-23 20:15:12 +01:00
|
|
|
${MKDIR} ${PREFIX}/etc/periodic/daily ;\
|
2005-02-03 10:30:27 +01:00
|
|
|
${INSTALL_SCRIPT} ${FILESDIR}/502.pgsql \
|
2004-11-23 20:15:12 +01:00
|
|
|
${PREFIX}/etc/periodic/daily
|
|
|
|
. endif # SERVER_ONLY
|
2005-05-11 02:40:15 +02:00
|
|
|
. if defined(CLIENT_ONLY)
|
|
|
|
@ cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} install-local
|
|
|
|
. endif
|
2004-11-23 20:15:12 +01:00
|
|
|
@ if [ -r ${PKGMESSAGE} ]; then \
|
2005-01-31 01:36:16 +01:00
|
|
|
${MKDIR} ${DOCSDIR} ;\
|
|
|
|
${INSTALL_DATA} ${PKGMESSAGE} ${DOCSDIR}/README${PKGNAMESUFFIX} ;\
|
2004-11-23 20:15:12 +01:00
|
|
|
${ECHO} "======================================================================" ;\
|
|
|
|
${CAT} ${PKGMESSAGE} ;\
|
|
|
|
${ECHO} "======================================================================" ;\
|
|
|
|
fi
|
|
|
|
.endif # !NO_BUILD
|
1997-04-09 17:30:55 +02:00
|
|
|
|
2004-11-23 20:15:12 +01:00
|
|
|
.if defined(SERVER_ONLY) && defined(WITH_TESTS)
|
2003-02-06 21:46:51 +01:00
|
|
|
check:
|
|
|
|
@if [ `id -u` != 0 ] ; then \
|
|
|
|
${ECHO} "Running postgresql regressions tests" ;\
|
|
|
|
cd ${WRKSRC}; ${GMAKE} check ;\
|
|
|
|
else \
|
|
|
|
${ECHO} "You cannot run regression tests when postgresql is built as user root." ; \
|
|
|
|
${ECHO} "Clean and rebuild the port as a regular user to run the tests." ;\
|
|
|
|
fi
|
|
|
|
.endif
|
|
|
|
|
2003-06-02 03:44:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|