bba5f17b29
* Enforce restrictions in plperl using an opmask applied to the whole interpreter, instead of using "Safe.pm" * Prevent PL/Tcl from executing untrustworthy code from pltcl_modules * Fix data corruption during WAL replay of ALTER ... SET TABLESPACE * Fix possible crash if a cache reset message is received during rebuild of a relcache entry * Apply per-function GUC settings while running the language validator for the function * Do constraint exclusion for inherited "UPDATE" and "DELETE" target tables when constraint_exclusion = partition * Do not allow an unprivileged user to reset superuser-only parameter settings * Avoid possible crash during backend shutdown if shutdown occurs when a CONTEXT addition would be made to log entries * Fix erroneous handling of %r parameter in recovery_end_command * Ensure the archiver process responds to changes in archive_command as soon as possible * Fix pl/pgsql's CASE statement to not fail when the case expression is a query that returns no rows * Update pl/perl's "ppport.h" for modern Perl versions * Fix assorted memory leaks in pl/python * Handle empty-string connect parameters properly in ecpg * Prevent infinite recursion in psql when expanding a variable that refers to itself * Fix psql's \copy to not add spaces around a dot within \copy (select ...) * Avoid formatting failure in psql when running in a locale context that doesn't match the client_encoding * Fix unnecessary "GIN indexes do not support whole-index scans" errors for unsatisfiable queries using "contrib/intarray" operators * Ensure that "contrib/pgstattuple" functions respond to cancel interrupts promptly * Make server startup deal properly with the case that shmget() returns EINVAL for an existing shared memory segment * Avoid possible crashes in syslogger process on Windows * Deal more robustly with incomplete time zone information in the Windows registry * Update the set of known Windows time zone names * Update time zone data files to tzdata release 2010j for DST law changes in Argentina, Australian Antarctic, Bangladesh, Mexico, Morocco, Pakistan, Palestine, Russia, Syria, Tunisia; also historical corrections for Taiwan. Also, add PKST (Pakistan Summer Time) to the default set of timezone abbreviations.
97 lines
3 KiB
Makefile
97 lines
3 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2010/05/20 12:36:39 adam Exp $
|
|
|
|
PKGNAME= postgresql84-client-${BASE_VERS}
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
.include "../../databases/postgresql84/Makefile.common"
|
|
|
|
USE_TOOLS+= gzip tar
|
|
USE_LIBTOOL= yes
|
|
CONFIGURE_ARGS+= --with-openssl
|
|
CONFIGURE_ARGS+= --with-readline
|
|
CONFIGURE_ARGS+= --with-zlib
|
|
|
|
# 1. The thread-safety test in ${WRSRC}/src/tools/thread does not pass on
|
|
# NetBSD earler than 4.0 or DragonFly.
|
|
# 2. configure with --enable-thread-safety fails on OpenBSD.
|
|
.if (${OPSYS} == "NetBSD" && !empty(OS_VERSION:M[0-3].*)) || \
|
|
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
|
|
PGSQL_THREAD_SAFETY?= no
|
|
.endif
|
|
PGSQL_THREAD_SAFETY?= yes
|
|
BUILD_DEFS+= PGSQL_THREAD_SAFETY
|
|
|
|
.if !empty(PGSQL_THREAD_SAFETY:M[yY][eE][sS])
|
|
. include "../../mk/pthread.buildlink3.mk"
|
|
. if (${PTHREAD_TYPE} == "native")
|
|
CONFIGURE_ARGS+= --enable-thread-safety
|
|
. endif
|
|
.endif
|
|
|
|
LIBS.SunOS+= -lintl
|
|
|
|
INSTALL_DIRS= src/include
|
|
INSTALL_DIRS+= src/interfaces
|
|
INSTALL_DIRS+= src/bin
|
|
INSTALL_DIRS+= src/port
|
|
INSTALL_DIRS+= doc
|
|
|
|
BUILD_DIRS= ${INSTALL_DIRS}
|
|
|
|
# Without this, the Darwin build fails (related to -bundle_loader).
|
|
BUILD_DIRS+= src/backend
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.postgresql84-client
|
|
.include "../../databases/postgresql84/options.mk"
|
|
|
|
.for _file_ in pg_service.conf psqlrc
|
|
CONF_FILES+= ${PG_DATA_DIR}/${_file_}.sample ${PG_ETC_DIR}/${_file_}
|
|
.endfor
|
|
|
|
# XXX work around core dumps with the native libedit
|
|
USE_GNU_READLINE= yes
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
|
|
SUBST_CLASSES+= pgxs
|
|
SUBST_STAGE.pgxs= post-build
|
|
SUBST_MESSAGE.pgxs= Fixing workdir tools references in pgxs Makefile
|
|
SUBST_FILES.pgxs= src/Makefile.global
|
|
SUBST_SED.pgxs= -e 's,${WRKDIR}/.tools,${PREFIX},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKDIR}/.wrapper,${PREFIX},'
|
|
SUBST_SED.pgxs+= -e 's,${WRKSRC},/dev/null,'
|
|
|
|
INSTALLATION_DIRS+= ${PG_SUBPREFIX}lib/postgresql/pgxs
|
|
INSTALLATION_DIRS+= ${PG_SUBPREFIX}lib/postgresql/pgxs/config
|
|
INSTALLATION_DIRS+= ${PG_SUBPREFIX}lib/postgresql/pgxs/src
|
|
INSTALLATION_DIRS+= ${PG_SUBPREFIX}lib/postgresql/pgxs/src/makefiles
|
|
|
|
DEST_PG_PGXS= ${DESTDIR}${PG_PREFIX}/lib/postgresql/pgxs
|
|
PG_PGXS_FILES= config/install-sh config/mkinstalldirs
|
|
PG_PGXS_FILES+= src/makefiles/pgxs.mk src/Makefile.global
|
|
PG_PGXS_FILES+= src/Makefile.port src/Makefile.shlib
|
|
PG_PGXS_FILES+= src/nls-global.mk
|
|
|
|
# On Solaris, avoid conflicts between "${SSLBASE}/include/openssl/des.h"
|
|
# and "/usr/include/crypt.h" -- we want the definitions in the former.
|
|
.if ${OPSYS} == "SunOS"
|
|
post-wrapper:
|
|
touch ${BUILDLINK_DIR}/include/crypt.h
|
|
.endif
|
|
|
|
post-install:
|
|
cd ${WRKSRC}/doc; for file in \
|
|
FAQ* KNOWN_BUGS MISSING_FEATURES README.* TODO \
|
|
bug.template; \
|
|
do \
|
|
${INSTALL_DATA} $$file ${DESTDIR}${PG_DOC_DIR}/$$file; \
|
|
done; \
|
|
for file in ${PG_PGXS_FILES}; do \
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${DEST_PG_PGXS}/$$file;\
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|