2010-02-05 15:50:38 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2010/02/05 14:50:38 gdt Exp $
|
Many of the changes in PostgreSQL 8.4 are new or improved administration and
monitoring tools and commands. Each user has their own favorite features which
will make day-to-day work with PostgreSQL easier and more productive for them.
Among the most popular enhancements are:
* Parallel Database Restore, speeding up recovery from backup up to 8 times
* Per-Column Permissions, allowing more granular control of sensitive data
* Per-database Collation Support, making PostgreSQL more useful in
multi-lingual environments
* In-place Upgrades through pg_migrator (beta), enabling upgrades from 8.3 to
8.4 without extensive downtime
* New Query Monitoring Tools, giving administrators more insight into query
activity
* Greatly Reduced VACUUM Overhead through the Visibility Map
* New Monitoring Tools for current queries, query load and deadlocks
Version 8.4 also makes data analysis easier through the advanced ANSI SQL2003
features of windowing functions, common table expressions and recursive queries.
Enhancements to stored procedures, such as default parameters and variadic
parameters, make database server programming simpler and more compact.
Of course, there are also performance improvements included in this version.
2009-07-29 08:26:17 +02:00
|
|
|
|
|
|
|
PKGNAME= postgresql84-client-${BASE_VERS}
|
2010-01-17 13:02:03 +01:00
|
|
|
PKGREVISION= 1
|
Many of the changes in PostgreSQL 8.4 are new or improved administration and
monitoring tools and commands. Each user has their own favorite features which
will make day-to-day work with PostgreSQL easier and more productive for them.
Among the most popular enhancements are:
* Parallel Database Restore, speeding up recovery from backup up to 8 times
* Per-Column Permissions, allowing more granular control of sensitive data
* Per-database Collation Support, making PostgreSQL more useful in
multi-lingual environments
* In-place Upgrades through pg_migrator (beta), enabling upgrades from 8.3 to
8.4 without extensive downtime
* New Query Monitoring Tools, giving administrators more insight into query
activity
* Greatly Reduced VACUUM Overhead through the Visibility Map
* New Monitoring Tools for current queries, query load and deadlocks
Version 8.4 also makes data analysis easier through the advanced ANSI SQL2003
features of windowing functions, common table expressions and recursive queries.
Enhancements to stored procedures, such as default parameters and variadic
parameters, make database server programming simpler and more compact.
Of course, there are also performance improvements included in this version.
2009-07-29 08:26:17 +02:00
|
|
|
COMMENT= PostgreSQL database client programs
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
|
|
|
.include "../../databases/postgresql84/Makefile.common"
|
|
|
|
|
2010-02-05 15:50:38 +01:00
|
|
|
# Couldn't find -lpgport, then rebuilt ok.
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
Many of the changes in PostgreSQL 8.4 are new or improved administration and
monitoring tools and commands. Each user has their own favorite features which
will make day-to-day work with PostgreSQL easier and more productive for them.
Among the most popular enhancements are:
* Parallel Database Restore, speeding up recovery from backup up to 8 times
* Per-Column Permissions, allowing more granular control of sensitive data
* Per-database Collation Support, making PostgreSQL more useful in
multi-lingual environments
* In-place Upgrades through pg_migrator (beta), enabling upgrades from 8.3 to
8.4 without extensive downtime
* New Query Monitoring Tools, giving administrators more insight into query
activity
* Greatly Reduced VACUUM Overhead through the Visibility Map
* New Monitoring Tools for current queries, query load and deadlocks
Version 8.4 also makes data analysis easier through the advanced ANSI SQL2003
features of windowing functions, common table expressions and recursive queries.
Enhancements to stored procedures, such as default parameters and variadic
parameters, make database server programming simpler and more compact.
Of course, there are also performance improvements included in this version.
2009-07-29 08:26:17 +02:00
|
|
|
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"
|
|
|
|
|
2009-12-15 23:39:40 +01:00
|
|
|
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
|
|
|
|
|
Many of the changes in PostgreSQL 8.4 are new or improved administration and
monitoring tools and commands. Each user has their own favorite features which
will make day-to-day work with PostgreSQL easier and more productive for them.
Among the most popular enhancements are:
* Parallel Database Restore, speeding up recovery from backup up to 8 times
* Per-Column Permissions, allowing more granular control of sensitive data
* Per-database Collation Support, making PostgreSQL more useful in
multi-lingual environments
* In-place Upgrades through pg_migrator (beta), enabling upgrades from 8.3 to
8.4 without extensive downtime
* New Query Monitoring Tools, giving administrators more insight into query
activity
* Greatly Reduced VACUUM Overhead through the Visibility Map
* New Monitoring Tools for current queries, query load and deadlocks
Version 8.4 also makes data analysis easier through the advanced ANSI SQL2003
features of windowing functions, common table expressions and recursive queries.
Enhancements to stored procedures, such as default parameters and variadic
parameters, make database server programming simpler and more compact.
Of course, there are also performance improvements included in this version.
2009-07-29 08:26:17 +02:00
|
|
|
# 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; \
|
2009-12-15 23:39:40 +01:00
|
|
|
done; \
|
|
|
|
for file in ${PG_PGXS_FILES}; do \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$$file ${DEST_PG_PGXS}/$$file;\
|
|
|
|
done
|
Many of the changes in PostgreSQL 8.4 are new or improved administration and
monitoring tools and commands. Each user has their own favorite features which
will make day-to-day work with PostgreSQL easier and more productive for them.
Among the most popular enhancements are:
* Parallel Database Restore, speeding up recovery from backup up to 8 times
* Per-Column Permissions, allowing more granular control of sensitive data
* Per-database Collation Support, making PostgreSQL more useful in
multi-lingual environments
* In-place Upgrades through pg_migrator (beta), enabling upgrades from 8.3 to
8.4 without extensive downtime
* New Query Monitoring Tools, giving administrators more insight into query
activity
* Greatly Reduced VACUUM Overhead through the Visibility Map
* New Monitoring Tools for current queries, query load and deadlocks
Version 8.4 also makes data analysis easier through the advanced ANSI SQL2003
features of windowing functions, common table expressions and recursive queries.
Enhancements to stored procedures, such as default parameters and variadic
parameters, make database server programming simpler and more compact.
Of course, there are also performance improvements included in this version.
2009-07-29 08:26:17 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|