diff options
author | adam <adam> | 2016-10-29 19:41:53 +0000 |
---|---|---|
committer | adam <adam> | 2016-10-29 19:41:53 +0000 |
commit | d29792fdf23c663c03cda9a3c375ab3ca4d4fcac (patch) | |
tree | 2008e8a25c540460569e915c9ceee6731ce6cdc0 /databases/postgresql96-server/Makefile | |
parent | 1fb5ac4b214ccd18b7f54e3818f787d8dfd7a7a2 (diff) | |
download | pkgsrc-d29792fdf23c663c03cda9a3c375ab3ca4d4fcac.tar.gz |
The PostgreSQL Global Development Group has released an update to all supported versions of our database system, including 9.6.1, 9.5.5, 9.4.10, 9.3.15, 9.2.19, and 9.1.24. This is also the last update for the PostgreSQL 9.1 series as it is now end-of-life. This release fixes two issues that can cause data corruption, which are described in more detail below. It also patches a number of other bugs reported over the last three months. The project urges users to apply this update at the next possible downtime.
Diffstat (limited to 'databases/postgresql96-server/Makefile')
-rw-r--r-- | databases/postgresql96-server/Makefile | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/databases/postgresql96-server/Makefile b/databases/postgresql96-server/Makefile new file mode 100644 index 00000000000..c2499bf694e --- /dev/null +++ b/databases/postgresql96-server/Makefile @@ -0,0 +1,76 @@ +# $NetBSD: Makefile,v 1.1 2016/10/29 19:41:55 adam Exp $ + +PKGNAME= ${DISTNAME:C/-/96-server-/} +COMMENT= PostgreSQL database server programs + +# mips has no TAS implementation +BROKEN_ON_PLATFORM= *-*-mips + +.include "../../databases/postgresql96/Makefile.common" + +CONFIGURE_ARGS+= --with-openssl + +INSTALL_DIRS= src/backend +INSTALL_DIRS+= src/backend/replication/libpqwalreceiver +INSTALL_DIRS+= src/backend/utils/mb/conversion_procs +INSTALL_DIRS+= src/backend/snowball +INSTALL_DIRS+= src/timezone +INSTALL_DIRS+= src/pl +BUILD_DIRS= src/port +BUILD_DIRS+= ${INSTALL_DIRS} + +LIBS.SunOS+= -lintl + +# PostgreSQL has loadable server-side language modules. +# +# Explicitly set DLOPEN_REQUIRE_PTHREADS to "no" on NetBSD as NetBSD-2.x +# had problems with mixing dlopen() and pthreads, which blows up in +# PostgreSQL's backend (pkg/28729). This works on older and newer +# versions of NetBSD as well since they don't have the bad interaction +# between dlopen() and pthreads. +.if ${OPSYS} == "NetBSD" +DLOPEN_REQUIRE_PTHREADS= no +.endif +.include "../../mk/dlopen.buildlink3.mk" + +# If we're using libltdl to provide "dlopen" functionality, then add the +# dependency and make sure that we link against -lltdl. +.if !empty(USE_LIBLTDL:M[yY][eE][sS]) +DL_LIBS+= -lltdl +. include "../../devel/libltdl/buildlink3.mk" +.endif + +# PGUSER username of the database administrator +# PGGROUP group of the database administrator +# PGHOME home directory of the database administrator and location of +# the databases +FILES_SUBST+= PGUSER=${PGUSER} +FILES_SUBST+= PGGROUP=${PGGROUP} +FILES_SUBST+= PGHOME=${PGHOME} +BUILD_DEFS+= PGHOME VARBASE + +ALL_ENV+= INSTALLED_LIBPQ=yes + +PKG_GROUPS_VARS+= PGGROUP +PKG_USERS_VARS+= PGUSER + +PKG_GROUPS= ${PGGROUP} +PKG_USERS= ${PGUSER}:${PGGROUP} +PKG_GECOS.${PGUSER}= PostgreSQL database administrator +PKG_HOME.${PGUSER}= ${PGHOME} + +RCD_SCRIPTS= pgsql +SMF_METHODS= postgresql +SMF_NAME= postgresql + +.include "../../databases/postgresql96-client/buildlink3.mk" +.include "../../security/openssl/buildlink3.mk" + +# Avoid conflict between "${SSLBASE}/include/openssl/des.h" and +# "/usr/include/crypt.h" -- we want the definitions in the former. +post-wrapper: +.if ${OPSYS} == "SunOS" + touch ${BUILDLINK_DIR}/include/crypt.h +.endif + +.include "../../mk/bsd.pkg.mk" |