952faf77c1
Posted on 2005-05-12: In order to address several security issues identified over the past two weeks, as well as one "low probability" race condition, we are releasing new version of PostgreSQL as far back as the 7.2.x branch. Please note that the security issues were those already reported by Tom Lane, as well as a manual fix for them. These releases are mainly to ensure that those installing and/or upgrading existing installations have those fixes automatically. For details on the fixes, please see the HISTORY file included in the Release, but a summary consists of: * Change encoding function signature to prevent misuse * Change "contrib/tsearch2" to avoid unsafe use of INTERNAL function results * Repair race condition between relation extension and VACUUM This could theoretically have caused loss of a page's worth of freshly-inserted data, although the scenario seems of very low probability. There are no known cases of it having caused more than an Assert failure.
94 lines
3.2 KiB
Makefile
94 lines
3.2 KiB
Makefile
# $NetBSD: Makefile.common,v 1.11 2005/08/07 18:19:16 adrianp Exp $
|
|
#
|
|
# 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-${DIST_VERS}
|
|
CATEGORIES+= databases
|
|
MASTER_SITES?= http://www.postgresql.org/ftpsite/source/v${DIST_VERS}/ \
|
|
ftp://ftp.postgresql.org/pub/source/v${DIST_VERS}/ \
|
|
ftp://ftp.de.postgresql.org/mirror/postgresql/source/v${DIST_VERS}/ \
|
|
ftp://gd.tuwien.ac.at/db/www.postgresql.org/pub/source/v${DIST_VERS}/ \
|
|
ftp://ftp.sunsite.auc.dk/mirrors/postgresql/source/v${DIST_VERS}/ \
|
|
ftp://ftp.jaist.ac.jp/pub/dbms/postgres95/source/v${DIST_VERS}/
|
|
|
|
MAINTAINER?= tech-pkg@NetBSD.org
|
|
HOMEPAGE?= http://www.postgresql.org/
|
|
|
|
CONFLICTS+= postgresql-[0-9]* postgresql74-* postgresql80-*
|
|
|
|
DISTINFO_FILE?= ${.CURDIR}/../postgresql73/distinfo
|
|
COMMON_FILESDIR?= ${.CURDIR}/../postgresql73/files
|
|
PATCHDIR?= ${.CURDIR}/../postgresql73/patches
|
|
|
|
# Version numbering scheme:
|
|
#
|
|
# DIST_VERS version number on the postgresql distfile
|
|
# BASE_VERS pkgsrc-mangled version number (convert pl -> .)
|
|
#
|
|
# Note: Do not forget jdbc-postgresql when updating version
|
|
DIST_VERS?= 7.3.10
|
|
BASE_VERS?= ${DIST_VERS}
|
|
|
|
BUILDLINK_DEPENDS.postgresql73-lib?= postgresql73-lib>=${BASE_VERS}
|
|
BUILDLINK_DEPENDS.tcl-postgresql73?= tcl-postgresql73>=${BASE_VERS}
|
|
|
|
USE_TOOLS+= autoconf gmake
|
|
GNU_CONFIGURE= YES
|
|
PKG_SYSCONFSUBDIR= postgresql
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
PGSQL_TEMPLATE.SunOS= solaris
|
|
PGSQL_TEMPLATE.IRIX= irix5
|
|
.if !defined(PGSQL_TEMPLATE.${OPSYS})
|
|
PGSQL_TEMPLATE.${OPSYS}= ${LOWER_OPSYS}
|
|
.endif
|
|
|
|
CONFIGURE_ARGS+= --with-template="${PGSQL_TEMPLATE.${OPSYS}}"
|
|
CONFIGURE_ARGS+= --without-readline
|
|
CONFIGURE_ARGS+= --without-zlib
|
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/postgresql
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --with-htmldir=${PREFIX}/share/doc/html/postgresql
|
|
|
|
CONFIGURE_ARGS+= --without-java
|
|
CONFIGURE_ARGS+= --without-perl
|
|
CONFIGURE_ARGS+= --without-python
|
|
CONFIGURE_ARGS+= --without-tcl
|
|
CONFIGURE_ARGS+= --without-tk
|
|
|
|
# Postgresql explicitly forbids any use of -ffast-math
|
|
CFLAGS:= ${CFLAGS:S/-ffast-math//}
|
|
|
|
post-extract:
|
|
if [ -d ${WRKSRC}/src ]; then \
|
|
${RM} -f ${WRKSRC}/src/Makefile.custom; \
|
|
${CP} -f ${COMMON_FILESDIR}/Makefile.custom \
|
|
${WRKSRC}/src/Makefile.custom; \
|
|
fi
|
|
if [ -d ${WRKSRC}/src/interfaces/libpq ]; then \
|
|
${RM} -f ${WRKSRC}/src/interfaces/libpq/GNUmakefile; \
|
|
${CP} -f ${COMMON_FILESDIR}/GNUmakefile.libpq \
|
|
${WRKSRC}/src/interfaces/libpq/GNUmakefile; \
|
|
fi
|
|
if [ -d ${WRKSRC}/src/interfaces/libpgtcl ]; then \
|
|
${RM} -f ${WRKSRC}/src/interfaces/libpgtcl/GNUmakefile; \
|
|
${CP} -f ${COMMON_FILESDIR}/GNUmakefile.libpgtcl \
|
|
${WRKSRC}/src/interfaces/libpgtcl/GNUmakefile; \
|
|
fi
|
|
if [ -d ${WRKSRC}/src/backend/port/dynloader ]; then \
|
|
${RM} -f ${WRKSRC}/src/backend/port/dynloader/netbsd.[ch];\
|
|
${CP} -f ${COMMON_FILESDIR}/netbsd.[ch] \
|
|
${WRKSRC}/src/backend/port/dynloader/; \
|
|
fi
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && autoconf
|