b274c5556b
* CVE-2012-3488: PostgreSQL insecure use of libxslt * CVE-2012-3489: PostgreSQL insecure use of libxml2 * Updates and corrections to time zone data * Multiple documentation updates and corrections * Add limit on max_wal_senders * Fix dependencies generated during ALTER TABLE ADD CONSTRAINT USING INDEX. * Correct behavior of unicode conversions for PL/Python * Fix WITH attached to a nested set operation (UNION/INTERSECT/EXCEPT). * Fix syslogger so that log_truncate_on_rotation works in the first rotation. * Only allow autovacuum to be auto-canceled by a directly blocked process. * Improve fsync request queue operation * Prevent corner-case core dump in rfree(). * Fix Walsender so that it responds correctly to timeouts and deadlocks * Several PL/Perl fixes for encoding-related issues * Make selectivity operators use the correct collation * Prevent unsuitable slaves from being selected for synchronous replication * Make REASSIGN OWNED work on extensions as well * Fix race condition with ENUM comparisons * Make NOTIFY cope with out-of-disk-space * Fix memory leak in ARRAY subselect queries * Reduce data loss at replication failover * Fix behavior of subtransactions with Hot Standby
104 lines
3.5 KiB
Text
104 lines
3.5 KiB
Text
# $NetBSD: Makefile.common,v 1.21 2012/08/23 16:56:38 adam Exp $
|
|
#
|
|
# used by databases/postgresql84-adminpack/Makefile
|
|
# used by databases/postgresql84-client/Makefile
|
|
# used by databases/postgresql84-dblink/Makefile
|
|
# used by databases/postgresql84-pgcrypto/Makefile
|
|
# used by databases/postgresql84-plperl/Makefile
|
|
# used by databases/postgresql84-plpython/Makefile
|
|
# used by databases/postgresql84-pltcl/Makefile
|
|
# used by databases/postgresql84-server/Makefile
|
|
#
|
|
# This Makefile fragment is included by all PostgreSQL packages built from
|
|
# the main sources of the PostgreSQL distribution except jdbc-postgresql.
|
|
#
|
|
# The PostgreSQL package naming scheme, aside from the obvious piecewise
|
|
# packages, is as follows:
|
|
# <lang>-postgresql client-side interface to PostgreSQL
|
|
# postgresql-<lang> server-side module for PostgreSQL backend
|
|
|
|
DISTNAME= postgresql-8.4.13
|
|
CATEGORIES= databases
|
|
MASTER_SITES= ${MASTER_SITE_PGSQL:=source/v${PKGVERSION_NOREV}/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER?= adam@NetBSD.org
|
|
HOMEPAGE= http://www.postgresql.org/
|
|
LICENSE= postgresql-license
|
|
|
|
CONFLICTS+= postgresql-[0-9]*
|
|
CONFLICTS+= postgresql7[0-9]-*
|
|
CONFLICTS+= postgresql8[0-3]-*
|
|
CONFLICTS+= postgresql9[0-9]-*
|
|
|
|
DISTINFO_FILE?= ${.CURDIR}/../postgresql84/distinfo
|
|
COMMON_FILESDIR?= ${.CURDIR}/../postgresql84/files
|
|
PATCHDIR?= ${.CURDIR}/../postgresql84/patches
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
USE_TOOLS+= bison gmake lex msgfmt
|
|
PKG_SYSCONFSUBDIR= postgresql
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PG_TEMPLATE.SunOS= solaris
|
|
PG_TEMPLATE.IRIX= irix5
|
|
.if !defined(PG_TEMPLATE.${OPSYS})
|
|
PG_TEMPLATE.${OPSYS}= ${LOWER_OPSYS}
|
|
.endif
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share/postgresql
|
|
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
|
|
CONFIGURE_ARGS+= --with-template=${PG_TEMPLATE.${OPSYS}}
|
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
|
CONFIGURE_ARGS+= --without-perl
|
|
CONFIGURE_ARGS+= --without-python
|
|
CONFIGURE_ARGS+= --without-readline
|
|
CONFIGURE_ARGS+= --without-tcl
|
|
CONFIGURE_ARGS+= --without-zlib
|
|
|
|
# PGSQL_BLCKSZ is the size in bytes of a PostgreSQL disk page or block.
|
|
# This also limits the size of a tuple. The valid values are powers
|
|
# of 2 up to 32768, and the default size is 8196. Please don't change
|
|
# this value unless you know what you are doing.
|
|
BUILD_DEFS+= PGSQL_BLCKSZ
|
|
.if defined(PGSQL_BLCKSZ)
|
|
CONFIGURE_ARGS+= --with-blocksize=${PGSQL_BLCKSZ}
|
|
.endif
|
|
|
|
# PostgreSQL explicitly forbids any use of -ffast-math
|
|
BUILDLINK_TRANSFORM+= rm:-ffast-math
|
|
|
|
# USE_LIBLTDL is "yes" or "no" depending on whether we're using libltdl
|
|
# to provide "dlopen" functionality for the PostgreSQL backend.
|
|
.if ${OPSYS} == "Interix"
|
|
USE_LIBLTDL?= yes
|
|
.endif
|
|
USE_LIBLTDL?= no
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
LIBS.SunOS+= -lintl
|
|
|
|
.if !defined(META_PACKAGE)
|
|
post-extract:
|
|
. if !empty(USE_LIBLTDL:M[yY][eE][sS])
|
|
cp -f ${COMMON_FILESDIR}/dynloader-ltdl.h \
|
|
${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.h
|
|
${ECHO} "static int dummy = 0;" \
|
|
> ${WRKSRC}/src/backend/port/dynloader/${PG_TEMPLATE.${OPSYS}:Q}.c
|
|
. endif
|
|
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/include/port/freebsd.h \
|
|
${WRKSRC}/src/include/port/dragonfly.h
|
|
cp ${WRKSRC}/src/makefiles/Makefile.freebsd \
|
|
${WRKSRC}/src/makefiles/Makefile.dragonfly
|
|
.endif
|
|
|
|
.include "../../databases/postgresql84/options.mk"
|