Finally retire USE_PGSQL

This commit is contained in:
Chris Rees 2014-11-22 20:40:08 +00:00
parent 5b6c7671ef
commit 4cb60faedd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=373100
88 changed files with 112 additions and 239 deletions

10
CHANGES
View file

@ -10,6 +10,16 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
20141122:
AUTHOR: crees@FreeBSD.org
Dependencies on the PostgreSQL ports have been migrated
to USES. Instead of USE_PGSQL, please use USES=pgsql instead.
USE_PGSQL=yes becomes USES=pgsql
WANT_PGSQL_VER=91+ becomes USES=pgsql:9.1+
USE_PGSQL=server becomes USES=pgsql and WANT_PGSQL=server
20141118:
AUTHOR: mat@FreeBSD.org

View file

@ -32,23 +32,7 @@ Database_Include_MAINTAINER= ports@FreeBSD.org
# MYSQL_VER
# - Detected MySQL version.
##
# USE_PGSQL - Add PostgreSQL client dependency. Components can be depended
# on using USE_PGSQL= component[:target]. For the full list
# use make -V _USE_PGSQL_DEP
# If no version is given (by the maintainer via the port or
# by the user via defined variable), try to find the
# currently installed version. Fall back to default if
# necessary (PostgreSQL-9.0 = 90).
# DEFAULT_PGSQL_VER
# - PostgreSQL default version, currently 90.
# WANT_PGSQL_VER
# - Maintainer can set an arbitrary version of PostgreSQL to
# always build this port with (overrides WITH_PGSQL_VER).
# Minimum and maximum versions can be set (e.g. 90+)
# WITH_PGSQL_VER
# - User defined variable to set PostgreSQL version.
# PGSQL_VER
# - Detected PostgreSQL version.
# USE_PGSQL - Do not use this-- instead use USES=pgsql
##
# USE_BDB - Add Berkeley DB library dependency.
# If no version is given (by the maintainer via the port or
@ -209,109 +193,6 @@ IGNORE= cannot install: unknown MySQL version: ${MYSQL_VER}
.endif # Check for correct libs
.endif # USE_MYSQL
.if defined(USE_PGSQL)
VALID_PGSQL_VER= 84 90 91 92 93 94
DEFAULT_PGSQL_VER?= ${PGSQL_DEFAULT:S/.//}
PGSQL83_LIBVER= 5
PGSQL84_LIBVER= 5
PGSQL90_LIBVER= 5
PGSQL91_LIBVER= 5
PGSQL92_LIBVER= 5
PGSQL93_LIBVER= 5
PGSQL94_LIBVER= 5
# Setting/finding PostgreSQL version we want.
. if exists(${LOCALBASE}/bin/pg_config)
_PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | ${SED} -n 's/PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)[^0-9].*/\1\2/p'
WITH_PGSQL_VER?= ${_PGSQL_VER}
. if ${WITH_PGSQL_VER} != ${_PGSQL_VER}
IGNORE?= cannot install: you have set WITH_PGSQL_VER=${WITH_PGSQL_VER} in make.conf, but you have postgresql${_PGSQL_VER}-client installed
. endif
. endif
. if defined(WANT_PGSQL_VER)
. if ${WANT_PGSQL_VER:M*+}
. for version in ${VALID_PGSQL_VER}
. if ${WANT_PGSQL_VER:S/+//} <= ${version}
_WANT_PGSQL_VER+=${version}
. endif
. endfor
. elif ${WANT_PGSQL_VER:M*-}
. for version in ${VALID_PGSQL_VER}
. if ${WANT_PGSQL_VER:S/-//} >= ${version}
_WANT_PGSQL_VER+=${version}
. endif
. endfor
. endif
_WANT_PGSQL_VER?= ${WANT_PGSQL_VER}
DEV_WARNING+= "Do not use USE_PGSQL. This port should use USES+= pgsql:${WANT_PGSQL_VER:C,^[0-9],&.,}"
. else
DEV_WARNING+= "Do not use USE_PGSQL. This port should use USES+= pgsql"
. endif
. if !empty(_WANT_PGSQL_VER)
. for version in ${_WANT_PGSQL_VER}
. if defined(WITH_PGSQL_VER)
. if ${WITH_PGSQL_VER} == ${version}
PGSQL_VER= ${WITH_PGSQL_VER}
. endif
. elif ${DEFAULT_PGSQL_VER} == ${version}
PGSQL_VER= ${version}
. endif
PGSQL_VER?= ${version}
. endfor
. if defined(WITH_PGSQL_VER) && ${WITH_PGSQL_VER} != ${PGSQL_VER}
IGNORE?= cannot install: the port wants postgresql-client version ${WANT_PGSQL_VER} and you have version ${WITH_PGSQL_VER} installed or set in make.conf
. endif
. endif
.if !empty(WITH_PGSQL_VER)
PGSQL_VER?= ${WITH_PGSQL_VER}
.else
PGSQL_VER?= ${DEFAULT_PGSQL_VER}
.endif
# And now we are checking if we can use it
.if defined(PGSQL${PGSQL_VER}_LIBVER)
.if defined(IGNORE_WITH_PGSQL)
. for ver in ${IGNORE_WITH_PGSQL}
. if (${PGSQL_VER} == ${ver})
IGNORE?= cannot install: does not work with postgresql${PGSQL_VER}-client (PostgresSQL ${IGNORE_WITH_PGSQL} not supported)
. endif
. endfor
.endif # IGNORE_WITH_PGSQL
LIB_DEPENDS+= libpq.so.${PGSQL${PGSQL_VER}_LIBVER}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
_USE_PGSQL_DEP= contrib docs pgtcl pltcl plperl server
_USE_PGSQL_DEP_contrib= pgbench
_USE_PGSQL_DEP_docs= postgresql${PGSQL_VER}-docs>0
_USE_PGSQL_DEP_pgtcl= ${LOCALBASE}/lib/pgtcl/pkgIndex.tcl
_USE_PGSQL_DEP_plperl= postgresql${PGSQL_VER}-plperl>0
_USE_PGSQL_DEP_pltcl= postgresql${PGSQL_VER}-pltcl>0
_USE_PGSQL_DEP_server= postgres
. for depend in ${_USE_PGSQL_DEP}
. if ${USE_PGSQL:M${depend}}
BUILD_DEPENDS+= ${_USE_PGSQL_DEP_${depend}}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}
RUN_DEPENDS+= ${_USE_PGSQL_DEP_${depend}}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}
_PGSQL_DEV_WARN+= ${depend}
. elif ${USE_PGSQL:M${depend}\:*}
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}:${USE_PGSQL:M${depend}\:*:C,^[^:]*\:,,}
_PGSQL_DEV_WARN+= ${depend}:${USE_PGSQL:M${depend}\:*:C,^[^:]*\:,,}
. endif
. endfor
. ifdef _PGSQL_DEV_WARN
DEV_WARNING+= "and WANT_PGSQL= ${_PGSQL_DEV_WARN}"
. endif
.else
IGNORE?= cannot install: unknown PostgreSQL version: ${PGSQL_VER}
.endif # Check for correct version
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif # USE_PGSQL
.if defined(USE_BDB)
# TODO: avoid malformed conditional with invalid USE_BDB/WITH_BDB_VER
# check if + works properly from test builds 01h12m23s

View file

@ -27,6 +27,7 @@ RUN_DEPENDS= iso-codes>=0:${PORTSDIR}/misc/iso-codes \
GNU_CONFIGURE= yes
USES= desktop-file-utils gettext gmake libtool pathfix \
pgsql pkgconfig python shared-mime-info tar:xz
WANT_PGSQL= server
USE_GNOME= gnomedocutils gnomeprefix intlhack pygobject3 libxml2 \
gtksourceviewmm3 libgdamm5
USE_LDCONFIG= yes
@ -43,11 +44,6 @@ INSTALLS_ICONS= yes
PLIST_SUB+= VERSION=${PORTVERSION:R}
#PLIST_SUB+= VERSION=1.24
# We need postgreSQL tools the server installs, and configure checks for these.
# Note: USE_PGSQL has already been set above.
BUILD_DEPENDS+= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER:S/.//}-server
RUN_DEPENDS+= postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER:S/.//}-server
post-patch:
@${REINPLACE_CMD} -e 's|-update-mime-database|true|g' \
${WRKSRC}/Makefile.in

View file

@ -26,7 +26,7 @@ OPTIONS_DEFAULT= MYSQL PGSQL SQLITE SSL
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_ON= --with-mysql=${LOCALBASE}/bin/mysql_config
MYSQL_CONFIGURE_OFF= --without-mysql
PGSQL_USE= pgsql=yes
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config
PGSQL_CONFIGURE_OFF= --without-postgresql
SQLITE_USE= sqlite=3

View file

@ -34,7 +34,7 @@ MYSQL_USE= MYSQL=YES
MYSQL_CPPFLAGS= -I${LOCALBASE}/include/mysql
MYSQL_LDFLAGS= -L${LOCALBASE}/lib/mysql
PGSQL_USE= PGSQL=YES
PGSQL_USES= pgsql
SQLITE_LIB_DEPENDS= libsqlite.so:${PORTSDIR}/databases/sqlite2

View file

@ -9,12 +9,11 @@ DISTNAME= pg_lesslogg_${PORTVERSION}_pg84
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Reduce size of PostgreSQL archive log files by replacing backup blocks
USES= gmake
USE_PGSQL= client server:build
WANT_PGSQL_VER= 84
USES= gmake pgsql:8.4
WANT_PGSQL= server:build
WRKSRC= ${WRKDIR}/pg_lesslog_${PORTVERSION}_pg84
PGSQL_PORT= databases/postgresql${PGSQL_VER}
PGSQL_PORT= databases/postgresql${PGSQL_VER:S,.,,}
PGSQL_SRCDIR= `cd ${PORTSDIR}/${PGSQL_PORT}-server; ${MAKE} -VWRKSRC`
pre-build:

View file

@ -13,7 +13,7 @@ DB= psql
USE_QT4= moc_build sql
QT_DIST= yes
USE_PGSQL= yes
USES+= pgsql
DRIVER= src/sql/drivers/${DB}
PLUGIN= src/plugins/sqldrivers/${DB}
EXTRACT_AFTER_ARGS?= ${DISTNAME}/${DRIVER} \

View file

@ -5,6 +5,6 @@ PORTNAME= pgsql
DB= PSQL
DB_DESC= PostgreSQL
USE_PGSQL= yes
USES+= pgsql
.include "${.CURDIR:H:H}/devel/qt5/Makefile.sqldrivers"

View file

@ -11,7 +11,7 @@ COMMENT= Ruby DataObjects driver for PostgreSQL
RUN_DEPENDS= rubygem-data_objects>=0.10.13:${PORTSDIR}/databases/rubygem-data_objects
USE_PGSQL= yes
USES+= pgsql
USE_RUBY= yes
USE_RUBYGEMS= yes

View file

@ -15,7 +15,7 @@ LICENSE_COMB= dual
CONFIGURE_ARGS= --with-pgsql-include-dir=`${PG_CONFIG} --includedir` \
--with-pgsql-lib-dir=`${PG_CONFIG} --libdir`
PG_CONFIG= ${LOCALBASE}/bin/pg_config
USE_PGSQL= yes
USES+= pgsql
USE_RUBY= yes
USE_RUBYGEMS= yes
RUBYGEM_AUTOPLIST= yes

View file

@ -10,9 +10,7 @@ MAINTAINER= sam@cassiba.com
COMMENT= PostgreSQL tools from Skype: walshipping, queueing, replication
GNU_CONFIGURE= yes
USES= gmake python:2 shebangfix
USE_PGSQL= yes
USES= gmake python:2 shebangfix pgsql
python_OLD_CMD= /usr/bin/env python
python_CMD= /usr/bin/env python2

View file

@ -16,8 +16,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \
${LOCALBASE}/bin/postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
GNU_CONFIGURE= yes
USES= bison gmake shebangfix tar:bzip2
USE_PGSQL= yes
USES= bison gmake shebangfix tar:bzip2 pgsql
USE_RC_SUBR= slon
SHEBANG_FILES= tools/altperl/slonik_restart_node.pl

View file

@ -20,7 +20,7 @@ USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
USE_GNUSTEP_LOCAL_LIBS+= Performance:${PERFORMANCE_PORT}
USE_GNUSTEP_LDCONFIG= ${GNUSTEP_LOCAL_LIBRARIES}
USE_PGSQL=yes
USES+= pgsql
USE_MYSQL=yes
USE_SQLITE=yes

View file

@ -101,7 +101,7 @@ CONFIGURE_ARGS+= --disable-firebird
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --disable-postgresql

View file

@ -12,8 +12,7 @@ COMMENT= Logs changes on a table in PostgreSQL
WRKSRC= ${WRKDIR}/table_log-${DISTVERSION}
USES= gmake
USE_PGSQL= yes
USES= gmake pgsql
MAKE_ARGS= USE_PGXS=1
OPTIONS_DEFINE= DOCS

View file

@ -62,7 +62,7 @@ PLIST_SUB+= MYSQL="@comment "
.if ${PORT_OPTIONS:MPGSQL}
CMAKE_ARGS+= -DWITH_POSTGRESQL=ON
PLIST_SUB+= PGSQL=""
USE_PGSQL= yes
USES+= pgsql
.else
CMAKE_ARGS+= -DWITH_POSTGRESQL=OFF
PLIST_SUB+= PGSQL="@comment "

View file

@ -28,7 +28,7 @@ USE_MYSQL= yes
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
USE_PGSQL= yes
USES+= pgsql
.endif
post-patch:

View file

@ -30,7 +30,8 @@ ADDONS_DESC= install additional workgroup features (addons)
OPTIONS_SUB= yes
NLS_USES= gettext
PGSQL_USE= PGSQL=server
PGSQL_USES= pgsql
WANT_PGSQL= server
MYSQL_USE= MYSQL=server
ADDONS_DISTFILES= ${PORTNAME}-addons-${PORTVERSION}${EXTRACT_SUFX}

View file

@ -25,7 +25,8 @@ OPTIONS_SINGLE_WEBSERVER= APACHE LIGHTTPD
OPTIONS_SINGLE_DB= PGSQL MYSQL
MYSQL_USE= PHP=mysql MYSQL=yes
PGSQL_USE= PHP=pgsql,pdo_pgsql PGSQL=yes
PGSQL_USE= PHP=pgsql,pdo_pgsql
PGSQL_USES= pgsql
APACHE_USE= APACHE_RUN=22
LIGHTTPD_RUN_DEPENDS= lighttpd:${PORTSDIR}/ww/lighttpd

View file

@ -37,7 +37,7 @@ DB_TYPE= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
USE_PHP+= pgsql
DB_TYPE= pgsql
.endif

View file

@ -88,7 +88,7 @@ CONFIGURE_ARGS+= --with-mysql=no
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --enable-libpq
.else
CONFIGURE_ARGS+= --disable-libpq

View file

@ -15,9 +15,8 @@ COMMENT= Problem reporting system
RUN_DEPENDS= prepsdb_tool:${PORTSDIR}/devel/prepstools
USES= gmake pathfix pkgconfig
USES= gmake pathfix pkgconfig pgsql
USE_GNOME= gnomeprefix gtk20 gconf2 libgnomeui
USE_PGSQL= yes
INSTALLS_OMF= yes
GCONF_SCHEMAS= preps.schema

View file

@ -14,8 +14,7 @@ RUN_DEPENDS= postgres:${PORTSDIR}/databases/postgresql${DEFAULT_PGSQL_VER}-serve
LICENSE= GPLv2
USE_PGSQL= yes
USES= gmake pkgconfig libtool
USES= gmake pkgconfig libtool pgsql
USE_GNOME= gtk20 gconf2 glib20 libgnomeui
INSTALL_TARGET= install-strip
GNU_CONFIGURE= yes

View file

@ -41,7 +41,7 @@ CONFIGURE_ARGS+=--with-openssl \
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--without-mysql \
--with-pgsql-include=${LOCALBASE}/include \
--with-pgsql-lib=${LOCALBASE}/lib

View file

@ -81,7 +81,7 @@ LIB_DEPENDS+= libcurl.so:${PORTSDIR}/ftp/curl
.if ${PORT_OPTIONS:MPOSTGIS}
INPUT_PLUGINS+= postgis
USE_PGSQL= yes
USES+= pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE3}

View file

@ -89,7 +89,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
EXTRAS:=${EXTRAS},m_pgsql.cpp
PLIST_SUB+= PGSQL=""
.else

View file

@ -119,7 +119,7 @@ CONFIGURE_ARGS+= --enable-mysql=${LOCALBASE}
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --enable-pgsql=${LOCALBASE}
.endif

View file

@ -119,7 +119,7 @@ MAKE_ENV+= HB_WITH_MYSQL=no
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
MAKE_ENV+= HB_WITH_PGSQL=nolocal
.else
MAKE_ENV+= HB_WITH_PGSQL=no

View file

@ -70,7 +70,7 @@ CONFIGURE_ARGS+=--without-openssl
.if ${PORT_OPTIONS:MPGSQL}
PLIST_SUB+= POSTGRESQL=""
CONFIGURE_ARGS+=--with-libpq=${LOCALBASE}
USE_PGSQL= yes
USES+= pgsql
.else
PLIST_SUB+= POSTGRESQL="@comment "
CONFIGURE_ARGS+=--without-libpq

View file

@ -71,7 +71,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
MODULES+= postgres
PLIST_SUB+= PGSQL=""
.else

View file

@ -69,7 +69,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
MODULES+= postgres
PLIST_SUB+= PGSQL=""
.else

View file

@ -265,7 +265,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE}
@ -282,7 +282,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif

View file

@ -255,7 +255,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE}
@ -272,7 +272,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif

View file

@ -269,7 +269,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE}
@ -286,7 +286,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif

View file

@ -269,7 +269,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pdo_pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pdo-pgsql=${LOCALBASE}
@ -286,7 +286,7 @@ USE_PHP_BUILD= yes
.endif
.if ${PHP_MODNAME} == "pgsql"
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif

View file

@ -32,7 +32,7 @@ FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
FREETYPE_CONFIGURE_WITH=freetype
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_WITH= mysql
PGSQL_USE= pgsql=yes
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= pgsql
CFLAGS+= -ffast-math -fomit-frame-pointer

View file

@ -42,7 +42,8 @@ CONFIGURE_ARGS+= with_emacs=no
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= server
USES+= pgsql
WANT_PGSQL= server
.else
CONFIGURE_ENV+= PGHEADER="no"
.endif

View file

@ -19,10 +19,8 @@ GH_PROJECT= aox
GH_TAGNAME= ${GH_COMMIT}
GH_COMMIT= 39bdb8b
USES= perl5 tar:bzip2
USES= perl5 tar:bzip2 pgsql:9.1+
USE_PERL5= build
USE_PGSQL= yes
WANT_PGSQL_VER= 91+
PORTDOCS= COPYING README bsd.txt

View file

@ -14,10 +14,8 @@ LICENSE= MIT
BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam
USES= perl5 tar:bzip2
USES= perl5 tar:bzip2 pgsql:9.1+
USE_PERL5= build
USE_PGSQL= yes
WANT_PGSQL_VER= 91+
PORTDOCS= COPYING README bsd.txt

View file

@ -51,7 +51,7 @@ GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
ICONV_USES= iconv:lib,build
MYSQL_USE= mysql=yes
OPENLDAP_USE= openldap=yes
PGSQL_USE= pgsql=yes
PGSQL_USES= pgsql
REDIS_LIB_DEPENDS= libhiredis.so:${PORTSDIR}/databases/hiredis
SASLAUTHD_RUN_DEPENDS= ${LOCALBASE}/sbin/saslauthd:${PORTSDIR}/security/cyrus-sasl2-saslauthd
SA_EXIM_RUN_DEPENDS= ${LOCALBASE}/bin/spamc:${PORTSDIR}/mail/spamassassin

View file

@ -44,7 +44,7 @@ PLIST_SUB+= MYSQL="" PGSQL="@comment " SQLITE="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
EXTRACT_INCLUDE+= -I${LOCALBASE}/include
EXTRACT_LIB+= -L${LOCALBASE}/lib -lpq -lcrypt
ALL_TARGET+= pgsql

View file

@ -38,7 +38,7 @@ SUB_LIST+= MYSQL=
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE}
USE_PGSQL= yes
USES+= pgsql
. if ${PORT_OPTIONS:MLOCAL_DB_SERVER}
RUN_DEPENDS+= postgresql-server>=0:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
SUB_LIST+= PGSQL=postgresql

View file

@ -102,7 +102,7 @@ PLIST_SUB+= MYSQL="@comment "
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+= --enable-pg
USE_PGSQL= yes
USES+= pgsql
PLIST_SUB+= PGSQL=""
.else
CONFIGURE_ARGS+= --disable-pg

View file

@ -210,7 +210,7 @@ _REQUIRE+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt
_REQUIRE+= postgresql

View file

@ -202,7 +202,7 @@ _REQUIRE+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt
_REQUIRE+= postgresql

View file

@ -177,7 +177,7 @@ _REQUIRE+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
POSTFIX_CCARGS+= -DHAS_PGSQL -I${LOCALBASE}/include -I${LOCALBASE}/pgsql/include
POSTFIX_AUXLIBS+= -L${LOCALBASE}/lib -L${LOCALBASE}/pgsql/lib -lpq -lcrypt
_REQUIRE+= postgresql

View file

@ -72,7 +72,7 @@ _REQUIRE+= mysql
.if ${PORT_OPTIONS:MPGSQL}
LIB_DEPENDS+= libzdb.so:${PORTSDIR}/databases/libzdb
USE_PGSQL= yes
USES+= pgsql
_REQUIRE+= postgresql
.endif

View file

@ -54,7 +54,7 @@ CONFIGURE_ARGS+= --enable-auth-mysql \
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
DEFAULT_PGSQL_VER= 80
CONFIGURE_ARGS+= --enable-auth-pgsql \
--with-pgsql-lib-dir=${LOCALBASE}/lib \

View file

@ -19,7 +19,7 @@ OCTSRC= ${DISTNAME}
WRKSRC= ${WRKDIR}/${OCTSRC}/src
GNU_CONFIGURE= yes
USE_PGSQL= yes
USES+= pgsql
ALL_TARGET=
.include "${.CURDIR}/../../Mk/bsd.octave.mk"

View file

@ -72,7 +72,7 @@ CONFIGURE_ARGS+=--without-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-pgsql-lib=${LOCALBASE}/lib \
--with-pgsql-include=${LOCALBASE}/include
.else

View file

@ -66,7 +66,7 @@ CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
.endif

View file

@ -334,7 +334,7 @@ PLIST_SUB+= PDNS="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-postgresql
PLIST_SUB+= PGSQL=""
.else

View file

@ -299,7 +299,7 @@ PLIST_SUB+= PERL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-postgresql=${LOCALBASE} --enable-postgresql --with-libpq
PLIST_SUB+= PGSQL=""
.else

View file

@ -42,7 +42,7 @@ FLOW_CAPTURE_PIDDIR= ${VARDIR}/run/flow-capture
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+=--with-pgsql="${PREFIX}"
USE_PGSQL= yes
USES+= pgsql
.endif
.if ${PORT_OPTIONS:MMYSQL}

View file

@ -17,7 +17,7 @@ NO_ARCH= yes
USES= perl5
USE_PERL5= configure
USE_PGSQL= yes
USES+= pgsql
# This script is primarily used for monitoring via Nagios, but it also
# has output styles compatible with cacti or mrtg. The options

View file

@ -17,10 +17,8 @@ COMMENT?= Netmagis common infrastructure
#LICENSE_FILE= ${WRKSRC}/LICENSE
#LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
USES= tcl:85+
USE_PGSQL= pgtcl
WANT_PGSQL_VER= 91+
USES= tcl:85+ pgsql:9.1+
WANT_PGSQL= pgtcl
RUN_DEPENDS+= dtplite:${PORTSDIR}/devel/tcllib
@ -30,7 +28,7 @@ RUN_DEPENDS+= netmagis-config:${PORTSDIR}/net-mgmt/netmagis-common
.if ${PKGNAMESUFFIX} == -database
RUN_DEPENDS+= pwgen:${PORTSDIR}/sysutils/pwgen
USE_PGSQL+= server pltcl
WANT_PGSQL+= server
.endif
.if ${PKGNAMESUFFIX} == -www

View file

@ -45,7 +45,7 @@ PLIST_SUB+= WITH_MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-pgsql
PLIST_SUB+= WITH_PGSQL=""
.else

View file

@ -43,7 +43,7 @@ USE_MYSQL= yes
RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= 83
USES+= pgsql
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif
@ -80,7 +80,7 @@ do-install:
fi \
fi \
fi \
elif [ "${USE_MYSQL}" -o "${USE_PGSQL}" ]; then \
elif [ "${USE_MYSQL}" -o "${USES:MPGSQL}" ]; then \
${INSTALL} ${WRKSRC}/conf/rackmonkey.conf-default ${STAGEDIR}${WWWDIR}/; \
fi
if [ -e "${WWWDIR}/rackmonkey.conf" ]; then \

View file

@ -66,7 +66,7 @@ NLS_USES= gettext
NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE}
NLS_CONFIGURE_OFF= --disable-nls
PGSQL_DESC= Use PostgreSQL for the data store and cache
PGSQL_USE= pgsql=yes
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON= --with-postgres=${LOCALBASE}
PGSQL_CONFIGURE_OFF= --without-postgres
SQLITE_DESC= Use SQLite for the data store and cache

View file

@ -36,7 +36,7 @@ PLIST_SUB= WITH_LDAP="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
PING_PLUGINS+= postgresql
PLIST_SUB+= WITH_PGSQL=""
.else

View file

@ -158,7 +158,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= YES
USES+= pgsql
CONFIGURE_ARGS+=--with-rlm_sql_postgresql
PLIST_SUB+= PGSQL=""
_REQUIRE+= postgresql

View file

@ -139,7 +139,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= YES
USES+= pgsql
CONFIGURE_ARGS+=--with-rlm_sql_postgresql
PLIST_SUB+= PGSQL=""
_REQUIRE+= postgresql

View file

@ -69,7 +69,7 @@ PLIST_SUB+= MYSQL="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-postgres
PLIST_SUB+= PGSQL=""
.else

View file

@ -107,7 +107,7 @@ ${LOCALBASE}/libexec/mysqld:${PORTSDIR}/databases/mariadb-server
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
RUN_DEPENDS+=\
p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif
@ -118,9 +118,8 @@ p5-DBD-PgPP>=0:${PORTSDIR}/databases/p5-DBD-PgPP
.endif
.if ${PORT_OPTIONS:MPGSQL} || ${PORT_OPTIONS:MPGPP} || ${PORT_OPTIONS:MDB}
USE_PGSQL= yes
RUN_DEPENDS+=\
${LOCALBASE}/bin/postgres:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
USES+= pgsql
WANT_PGSQL= client server
.endif
.if ${PORT_OPTIONS:MSQLITE}

View file

@ -31,7 +31,7 @@ CONFIGURE_ARGS+=--enable-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CPPFLAGS+= -DwithPGSQL -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib -lpq
CONFIGURE_ARGS+=--enable-postgresql

View file

@ -60,7 +60,7 @@ PLIST_SUB+= WITH_MYSQL="@comment "
.if ${PORT_OPTIONS:MPGSQL}
CONFIGURE_ARGS+= --with-libpq=${LOCALBASE}
PLIST_SUB+= WITH_PGSQL=""
USE_PGSQL= yes
USES+= pgsql
.else
CONFIGURE_ARGS+= --without-libpq
PLIST_SUB+= WITH_PGSQL="@comment "

View file

@ -35,7 +35,7 @@ RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \
#USE_SQLITE= 3
#RUN_DEPENDS+= p5-DBD-SQLite>=0:${PORTSDIR}/databases/p5-DBD-SQLite
.elif !defined(WITHOUT_PGSQL)
#USE_PGSQL= yes
#USES+= pgsql
#RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
.endif

View file

@ -59,7 +59,7 @@ PLIST_SUB+= WEBUI="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
.if defined(WEBUI)
USE_PHP+= pgsql pdo_pgsql
.endif

View file

@ -53,7 +53,7 @@ PLIST_SUB+= WEBUI="@comment "
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
.if defined(WEBUI)
USE_PHP+= pgsql pdo_pgsql
.endif

View file

@ -31,7 +31,7 @@ USE_MYSQL= yes
USE_PHP+= mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
USE_PHP+= pgsql
.endif
.if ${PORT_OPTIONS:MPDF}

View file

@ -126,7 +126,7 @@ CONFIGURE_ARGS+=--without-authmysql
.if ${AUTHMOD} == authpgsql
DOCS= README.authpostgres.html
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--with-authpgsql
.else
CONFIGURE_ARGS+=--without-authpgsql

View file

@ -133,7 +133,7 @@ USE_PHP+= mysql mysqli
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
USE_PHP+= pgsql
.endif

View file

@ -30,7 +30,7 @@ CONFIGURE_ARGS+= --enable-module-svn=no
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --enable-module-postgres
.else
CONFIGURE_ARGS+= --enable-module-postgres=no

View file

@ -49,7 +49,7 @@ USE_MYSQL= client
.if ${PORT_OPTIONS:MPGSQL}
WITH_DB= yes
USE_PGSQL= yes
USES+= pgsql
.endif
.endif

View file

@ -15,8 +15,7 @@ LICENSE= GPLv2
LIB_DEPENDS= libmhash.so:${PORTSDIR}/security/mhash \
libgcrypt.so:${PORTSDIR}/security/libgcrypt
USES= libtool
USE_PGSQL= yes
USES= libtool pgsql
GNU_CONFIGURE= yes
SUB_FILES= pkg-message

View file

@ -59,7 +59,7 @@ LIB_DEPENDS+= libqdbm.so:${PORTSDIR}/databases/qdbm
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
LIB_DEPENDS+= libpq.so:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
.endif

View file

@ -63,7 +63,7 @@ LIB_DEPENDS+= libqdbm.so:${PORTSDIR}/databases/qdbm
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
LIB_DEPENDS+= libpq.so:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
.endif

View file

@ -62,7 +62,7 @@ LIB_DEPENDS+= libqdbm.so:${PORTSDIR}/databases/qdbm
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}
LIB_DEPENDS+= libpq.so:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
.endif

View file

@ -18,9 +18,9 @@ LIB_DEPENDS+= libkrb5support.so:${PORTSDIR}/security/krb5 \
WRKSRC= ${WRKDIR}/condor-${PORTVERSION}
USE_LDCONFIG= yes
USES= cmake gmake perl5
USES= cmake gmake perl5 pgsql
WANT_PGSQL= server
USE_GCC= any
USE_PGSQL= server
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -rpath=${LOCALBASE}/lib:/usr/lib:/lib
CMAKE_ARGS+= -DCMAKE_CXX_FLAGS:STRING=${CXXFLAGS} \

View file

@ -74,7 +74,7 @@ CONFIGURE_ARGS+=--disable-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-pgsql
PLIST_FILES+= lib/rsyslog/ompgsql.so
.else

View file

@ -73,7 +73,7 @@ CONFIGURE_ARGS+=--disable-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-pgsql
PLIST_FILES+= lib/rsyslog/ompgsql.so
.else

View file

@ -73,7 +73,7 @@ CONFIGURE_ARGS+=--disable-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-pgsql
PLIST_FILES+= lib/rsyslog/ompgsql.so
.else

View file

@ -73,7 +73,7 @@ CONFIGURE_ARGS+=--disable-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
CONFIGURE_ARGS+=--enable-pgsql
PLIST_FILES+= lib/rsyslog/ompgsql.so
.else

View file

@ -57,7 +57,7 @@ CONFIGURE_ARGS+=--with-mysql_config=/nomysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes # Job accounting
USES+= pgsql # Job accounting
PLIST_FILES+= lib/slurm/accounting_storage_pgsql.a \
lib/slurm/accounting_storage_pgsql.la \
lib/slurm/accounting_storage_pgsql.so \

View file

@ -41,7 +41,7 @@ RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USES+= pgsql
RUN_DEPENDS+= p5-DBD-Pg>=2.19.2:${PORTSDIR}/databases/p5-DBD-Pg
.endif

View file

@ -13,8 +13,7 @@ COMMENT= Open Source Full Text Search engine
RUN_DEPENDS= ${LOCALBASE}/lib/postgresql/tsearch2.so:${PORTSDIR}/databases/postgresql${DEFAULT_PGSQL_VER}-contrib \
p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg
USE_PGSQL= yes
USES= perl5
USES+= perl5 pgsql
USE_PERL5= configure
OPTIONS_DEFINE= DOCS EXAMPLES

View file

@ -77,7 +77,7 @@ OPTIMIZED_CFLAGS_CXXFLAGS=-O3 -fomit-frame-pointer
PGSQL_CONFIGURE_WITH= pgsql
PGSQL_CONFIGURE_ON= --with-pgsql-includes=${LOCALBASE}/include \
--with-pgsql-libs=${LOCALBASE}/lib
PGSQL_USE= pgsql
PGSQL_USES= pgsql
SYSLOG_DESC= Enable logging via syslog
SYSLOG_CONFIGURE_WITH= syslog
@ -85,7 +85,6 @@ SYSLOG_CONFIGURE_WITH= syslog
UNIXODBC_CONFIGURE_WITH=unixodbc
UNIXODBC_LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC
CONFLICTS= sphinxsearch-[0-9]* dpsearch-[0-9]* rdb-[0-9]* \
swish++-[0-9]* xaira-[0-9]*

View file

@ -25,7 +25,7 @@ OPTIONS_DEFAULT= MYSQL
MYSQL_USE= MYSQL=YES
MYSQL_CONFIGURE_ON+= --with-mysql=${LOCALBASE}
PGSQL_USE= PGSQL=YES
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ON+= --with-pgsql=${LOCALBASE}/pgsql
PORTDOCS= *