mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
Split the postgresql ports into a server and a client part.
All ports depending on postgresql shall use the USE_PGSQL=yes knob defined in Mk/bsd.ports.mk. Bumping portrevisions where needed. PR: 75344 Approved by: portmgr@ (kris), ade & sean (mentors)
This commit is contained in:
parent
ae2c26ad44
commit
34fa6c853e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=127737
139 changed files with 525 additions and 724 deletions
3
MOVED
3
MOVED
|
@ -1382,3 +1382,6 @@ editors/ghex2|editors/ghex|2005-01-25|moved to non-versioned directory
|
|||
x11-fm/xfce4-fm-icons||2005-01-26|got obsolete by xfce 4.2 update
|
||||
misc/xfce4-panel-themes||2005-01-26|got obsolete by xfce 4.2 update
|
||||
x11-wm/xfce4-menueditor||2005-01-30|got obsolete since it is now included in xfce4-desktop
|
||||
databases/postgresql72|2005-01-30|removed, 7.2 branch is retired
|
||||
databases/postgresql73|2005-01-30|port split into postgresql73-server and -client
|
||||
databases/postgresql7|2005-01-30|port split into postgresql74-server and -client
|
||||
|
|
|
@ -364,6 +364,21 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
|
|||
# WITH_MYSQL_VER
|
||||
# - User defined variable to set MySQL version.
|
||||
##
|
||||
# USE_PGSQL - Add PostgreSQL client dependency.
|
||||
# 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-7.4 = 74).
|
||||
# DEFAULT_PGSQL_VER
|
||||
# - PostgreSQL default version. Can be overridden within a port.
|
||||
# Default: 74.
|
||||
# WANT_PGSQL_VER
|
||||
# - Maintainer can set an arbitrary version of PostgreSQL by
|
||||
# using it.
|
||||
# BROKEN_WITH_PGSQL
|
||||
# - This variable can be defined if the ports doesn't support
|
||||
# one or more versions of PostgreSQL.
|
||||
##
|
||||
# USE_RC_SUBR - If set, the ports startup/shutdown script uses the common
|
||||
# routines found in etc/rc.subr and may need to
|
||||
# depend on the sysutils/rc_subr port.
|
||||
|
@ -1689,6 +1704,44 @@ BROKEN= "unknown MySQL version: ${MYSQL_VER}"
|
|||
.endif # Check for correct libs
|
||||
.endif # USE_MYSQL
|
||||
|
||||
.if defined(USE_PGSQL)
|
||||
DEFAULT_PGSQL_VER?= 74
|
||||
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if defined(WANT_PGSQL_VER)
|
||||
PGSQL_VER= ${WANT_PGSQL_VER}
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif # WANT_PGSQL_VER
|
||||
|
||||
# And now we are checking if we can use it
|
||||
.if exists(${PORTSDIR}/databases/postgresql${PGSQL_VER}-client)
|
||||
.if defined(BROKEN_WITH_PGSQL)
|
||||
. for VER in ${BROKEN_WITH_PGSQL}
|
||||
. if (${PGSQL_VER} == "${VER}")
|
||||
BROKEN= "Doesn't work with PostgreSQL version : ${PGSQL_VER} (Doesn't support PostgresSQL ${BROKEN_WITH_PGSQL})"
|
||||
. endif
|
||||
. endfor
|
||||
.endif # BROKEN_WITH_PGSQL
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
|
||||
.else
|
||||
BROKEN= "unknown PostgreSQL version: ${PGSQL_VER}"
|
||||
.endif # Check for correct version
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
||||
.endif # USE_PGSQL
|
||||
|
||||
.if defined(USE_XLIB)
|
||||
LIB_DEPENDS+= X11.6:${X_LIBRARIES_PORT}
|
||||
# Add explicit X options to avoid problems with false positives in configure
|
||||
.if defined(GNU_CONFIGURE)
|
||||
CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
|
||||
.endif
|
||||
.endif
|
||||
|
||||
# XXX: (not yet): .if defined(USE_AUTOTOOLS)
|
||||
.include "${PORTSDIR}/Mk/bsd.autotools.mk"
|
||||
# XXX: (not yet): .endif
|
||||
|
|
19
UPDATING
19
UPDATING
|
@ -6,6 +6,25 @@ You should get into the habit of checking this file for changes each
|
|||
time you update your ports collection, before attempting any port
|
||||
upgrades.
|
||||
|
||||
20050130:
|
||||
AFFECTS: users of PostgreSQL
|
||||
AUTHOR: girgen@FreeBSD.org
|
||||
|
||||
Each of the PostgreSQL ports have been split into a server and a
|
||||
client part. Please use postgresqlNN-server and/or
|
||||
postgresqlNN-client as needed. Versions currently supported are 7.3,
|
||||
7.4 and 8.0.
|
||||
|
||||
To start the PostgreSQL server at boot time, add the following to
|
||||
/etc/rc.conf:
|
||||
|
||||
postgresql_enable=yes
|
||||
|
||||
The maintainance script is installed in etc/periodic/daily, and is
|
||||
controlled by a set of new knobs in periodic.conf. Use it for
|
||||
vacuuming your databases and get daily backups. Note that daily
|
||||
vacuuming is on by default. See the script for details.
|
||||
|
||||
20050130:
|
||||
AFFECTS: users of net/howl
|
||||
AUTHOR: marcus@FreeBSD.org
|
||||
|
|
|
@ -69,8 +69,8 @@ WITH_MYSQL= yes
|
|||
.else
|
||||
PLIST_SUB+= MSM='@comment '
|
||||
.endif
|
||||
.if exists(${LOCALBASE}/lib/libpq.so)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
.if exists(${LOCALBASE}/bin/psql)
|
||||
USE_PGSQL= yes
|
||||
PLIST_SUB+= PGM=''
|
||||
WITH_PGSQL= yes
|
||||
.else
|
||||
|
|
|
@ -263,9 +263,12 @@
|
|||
SUBDIR += postgresql-pltcl
|
||||
SUBDIR += postgresql-relay
|
||||
SUBDIR += postgresql-tcltk
|
||||
SUBDIR += postgresql7
|
||||
SUBDIR += postgresql72
|
||||
SUBDIR += postgresql73
|
||||
SUBDIR += postgresql73-client
|
||||
SUBDIR += postgresql73-server
|
||||
SUBDIR += postgresql74-client
|
||||
SUBDIR += postgresql74-server
|
||||
SUBDIR += postgresql80-client
|
||||
SUBDIR += postgresql80-server
|
||||
SUBDIR += postgresql_autodoc
|
||||
SUBDIR += puredb
|
||||
SUBDIR += pxtools
|
||||
|
|
|
@ -60,7 +60,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL) || exists(${LOCALBASE}/include/libpq-fe.h)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${PGSQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
PLIST_SUB+= PGSQL=""
|
||||
.else
|
||||
PLIST_SUB+= PGSQL="@comment "
|
||||
|
@ -89,7 +89,6 @@ MAKE_ENV= HOME=${WRKDIR} LANG=C
|
|||
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
|
||||
PGSQL_PORT?= databases/postgresql7
|
||||
FIREBIRD_PORT?= databases/firebird
|
||||
|
||||
BIN2STRIP= bdbf clip clip_bl clip_blank clip_cld clip_conv clip_dbf2txt \
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --enable-pgsql=yes \
|
||||
--with-pgsql_include=${LOCALBASE}/include \
|
||||
--with-pgsql_lib=${LOCALBASE}/lib
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= erserver
|
||||
PORTVERSION= 1.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://gborg.postgresql.org/pub/erserver/stable/
|
||||
DISTNAME= ${PORTNAME}_v${PORTVERSION}
|
||||
|
@ -16,10 +16,11 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= kuriyama@FreeBSD.org
|
||||
COMMENT= Trigger-based asynchronous replication system for PostgreSQL
|
||||
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS= ant:${PORTSDIR}/devel/apache-ant \
|
||||
${PGINC}/executor/spi.h:${PORTSDIR}/databases/postgresql7
|
||||
${PGINC}/executor/spi.h:${PGSQL_PORT}
|
||||
RUN_DEPENDS= ${JAVAJARDIR}/log4j.jar:${PORTSDIR}/devel/log4j \
|
||||
psql:${PORTSDIR}/databases/postgresql7
|
||||
postgres:${PGSQL_PORT}
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
@ -33,9 +34,22 @@ MAKE_ARGS= sqldir=${DATADIR} templdir=${DATADIR} docdir=${DOCSDIR} \
|
|||
libdir=${PREFIX}/lib/postgresql javadir=${JAVAJARDIR} \
|
||||
siteperldir=${SITE_PERL}
|
||||
|
||||
PGINC= ${PREFIX}/include/postgresql/server
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
PGINC= ${LOCALBASE}/include/postgresql/server
|
||||
|
||||
pre-install:
|
||||
${MKDIR} ${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -32,9 +32,8 @@ FILES_TKI18N= tcltkgrass-i18n${EXTRACT_SUFX}
|
|||
FILES_FONTS= grass${PORTVERSION}_i686-pc-linux-i18n-ipafull-gnu_bin${EXTRACT_SUFX}
|
||||
|
||||
.if defined(WITH_POSTGRES)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT} \
|
||||
odbc.1:${PORTSDIR}/databases/unixODBC
|
||||
USE_PGSQL= yes
|
||||
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
||||
CONFIGURE_ARGS+=--with-postgres \
|
||||
--with-postgres-includes=${LOCALBASE}/include/postgresql/internal/ \
|
||||
--with-odbc
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= grass
|
||||
PORTVERSION= 5.0.2
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
PORTEPOCH= 2
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://grass.itc.it/grass50/source/ \
|
||||
|
@ -19,7 +19,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}_src
|
|||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= An open source Geographical Information System (GIS)
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
||||
png.5:${PORTSDIR}/graphics/png \
|
||||
jpeg.9:${PORTSDIR}/graphics/jpeg \
|
||||
|
@ -27,7 +26,6 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
|
|||
fftw.2:${PORTSDIR}/math/fftw \
|
||||
freetype.9:${PORTSDIR}/print/freetype2 \
|
||||
gdbm.3:${PORTSDIR}/databases/gdbm \
|
||||
pq.3:${PORTSDIR}/${POSTGRESQL_PORT} \
|
||||
odbc.1:${PORTSDIR}/databases/unixODBC \
|
||||
lapack.3:${PORTSDIR}/math/lapack
|
||||
BUILD_DEPENDS= tclsh8.3:${PORTSDIR}/lang/tcl83 \
|
||||
|
@ -39,6 +37,7 @@ EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude *CVS*
|
|||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_ICONV= yes
|
||||
USE_XLIB= yes
|
||||
USE_GL= yes
|
||||
|
|
|
@ -21,7 +21,6 @@ WITH_MYSQL= yes
|
|||
USE_X_PREFIX= yes
|
||||
USE_GTK= yes
|
||||
USE_REINPLACE= yes
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -33,7 +32,7 @@ LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|||
.if defined(WITH_PGSQL) || (exists(${LOCALBASE}/lib/libpq.a) \
|
||||
&& !defined(WITHOUT_PGSQL))
|
||||
HAVE_PGSQL= yes
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
.endif
|
||||
|
||||
pre-patch:
|
||||
|
|
|
@ -53,8 +53,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-postgres-incdir=${LOCALBASE}/include/ \
|
||||
--with-postgres-libdir=${LOCALBASE}/lib
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LIBS="-L${LOCALBASE}/lib"
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= hsql
|
||||
PORTVERSION= 1.4
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases haskell
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= htoolkit
|
||||
|
@ -16,10 +17,10 @@ DISTNAME= HSQL-${PORTVERSION}
|
|||
MAINTAINER= haskell@FreeBSD.org
|
||||
COMMENT= Haskell access to SQL
|
||||
|
||||
BUILD_DEPENDS= psql:${PORTSDIR}/databases/postgresql7 \
|
||||
ghc:${PORTSDIR}/lang/ghc
|
||||
RUN_DEPENDS= psql:${PORTSDIR}/databases/postgresql7 \
|
||||
ghc:${PORTSDIR}/lang/ghc
|
||||
BUILD_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
||||
RUN_DEPENDS= ghc:${PORTSDIR}/lang/ghc
|
||||
|
||||
USE_PGSQL= yes
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
BUILD_DEPENDS+= haddock:${PORTSDIR}/devel/hs-haddock
|
||||
|
|
|
@ -45,7 +45,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
.else
|
||||
|
|
|
@ -48,11 +48,7 @@ WITH_MYSQL= yes
|
|||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libpq.so.3)
|
||||
WITH_POSTGRES7= yes
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libpgeasy.so.2)
|
||||
WITH_POSTGRES72=yes
|
||||
WITH_PGSQL= yes
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libldap.so.2)
|
||||
|
@ -92,21 +88,11 @@ CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
|||
PLIST_SUB+= MYSQL:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_POSTGRES7) && defined(WITH_POSTGRES7)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
.if !defined(WITHOUT_PGSQL) && defined(WITH_PGSQL)
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
|
||||
PLIST_SUB+= POSTGRES:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_POSTGRES72) && defined(WITH_POSTGRES72)
|
||||
POSTGRESQL_PORT?= databases/postgresql72
|
||||
LIB_DEPENDS+= pgeasy.2:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
|
||||
PLIST_SUB+= POSTGRES:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITH_POSTGRES7) && !defined(WITH_POSTGRES72)
|
||||
.else
|
||||
PLIST_SUB+= POSTGRES:="@comment "
|
||||
CONFIGURE_ARGS+= --without-postgres
|
||||
.endif
|
||||
|
@ -178,11 +164,8 @@ pre-everything::
|
|||
.if !defined(WITH_MYSQL)
|
||||
@${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL."
|
||||
.endif
|
||||
.if !defined(WITH_POSTGRES7)
|
||||
@${ECHO_MSG} "You can enable support for Postgres 7.0 databases by defining WITH_POSTGRES7."
|
||||
.endif
|
||||
.if !defined(WITH_POSTGRES72)
|
||||
@${ECHO_MSG} "You can enable support for Postgres 7.2 databases by defining WITH_POSTGRES72."
|
||||
.if !defined(WITH_PGSQL)
|
||||
@${ECHO_MSG} "You can enable support for PostgreSQL databases by defining WITH_PGSQL."
|
||||
.endif
|
||||
.if !defined(WITH_LDAP)
|
||||
@${ECHO_MSG} "You can enable support for LDAP databases by defining WITH_LDAP."
|
||||
|
|
|
@ -48,11 +48,7 @@ WITH_MYSQL= yes
|
|||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libpq.so.3)
|
||||
WITH_POSTGRES7= yes
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libpgeasy.so.2)
|
||||
WITH_POSTGRES72=yes
|
||||
WITH_PGSQL= yes
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libldap.so.2)
|
||||
|
@ -92,21 +88,11 @@ CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
|
|||
PLIST_SUB+= MYSQL:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_POSTGRES7) && defined(WITH_POSTGRES7)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
.if !defined(WITHOUT_PGSQL) && defined(WITH_PGSQL)
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
|
||||
PLIST_SUB+= POSTGRES:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITHOUT_POSTGRES72) && defined(WITH_POSTGRES72)
|
||||
POSTGRESQL_PORT?= databases/postgresql72
|
||||
LIB_DEPENDS+= pgeasy.2:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
CONFIGURE_ARGS+= --with-postgres=${LOCALBASE}
|
||||
PLIST_SUB+= POSTGRES:=""
|
||||
.endif
|
||||
|
||||
.if !defined(WITH_POSTGRES7) && !defined(WITH_POSTGRES72)
|
||||
.else
|
||||
PLIST_SUB+= POSTGRES:="@comment "
|
||||
CONFIGURE_ARGS+= --without-postgres
|
||||
.endif
|
||||
|
@ -178,11 +164,8 @@ pre-everything::
|
|||
.if !defined(WITH_MYSQL)
|
||||
@${ECHO_MSG} "You can enable support for MySQL databases by defining WITH_MYSQL."
|
||||
.endif
|
||||
.if !defined(WITH_POSTGRES7)
|
||||
@${ECHO_MSG} "You can enable support for Postgres 7.0 databases by defining WITH_POSTGRES7."
|
||||
.endif
|
||||
.if !defined(WITH_POSTGRES72)
|
||||
@${ECHO_MSG} "You can enable support for Postgres 7.2 databases by defining WITH_POSTGRES72."
|
||||
.if !defined(WITH_PGSQL)
|
||||
@${ECHO_MSG} "You can enable support for PostgreSQL databases by defining WITH_PGSQL."
|
||||
.endif
|
||||
.if !defined(WITH_LDAP)
|
||||
@${ECHO_MSG} "You can enable support for LDAP databases by defining WITH_LDAP."
|
||||
|
|
|
@ -16,9 +16,7 @@ PKGNAMEPREFIX= p5-
|
|||
MAINTAINER= perl@FreeBSD.org
|
||||
COMMENT= Provides access to PostgreSQL databases through the DBI
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
|
@ -37,17 +35,8 @@ BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
CONFIGURE_ENV+= POSTGRES_INCLUDE=${LOCALBASE}/include/pgsql \
|
||||
POSTGRES_LIB=${LOCALBASE}/lib
|
||||
.else
|
||||
.if exists(${LOCALBASE}/pgsql/bin/pg_config)
|
||||
PG_CONFIG= ${LOCALBASE}/pgsql/bin/pg_config
|
||||
.else
|
||||
PG_CONFIG= ${LOCALBASE}/bin/pg_config
|
||||
.endif
|
||||
CONFIGURE_ENV+= POSTGRES_INCLUDE=`${PG_CONFIG} --includedir` \
|
||||
POSTGRES_LIB=`${PG_CONFIG} --libdir`
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -16,9 +16,7 @@ PKGNAMEPREFIX= p5-
|
|||
MAINTAINER= perl@FreeBSD.org
|
||||
COMMENT= Provides access to PostgreSQL databases through the DBI
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
|
@ -37,17 +35,8 @@ BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
||||
.endif
|
||||
|
||||
.if defined(WITH_OLD_LAYOUT)
|
||||
CONFIGURE_ENV+= POSTGRES_INCLUDE=${LOCALBASE}/include/pgsql \
|
||||
POSTGRES_LIB=${LOCALBASE}/lib
|
||||
.else
|
||||
.if exists(${LOCALBASE}/pgsql/bin/pg_config)
|
||||
PG_CONFIG= ${LOCALBASE}/pgsql/bin/pg_config
|
||||
.else
|
||||
PG_CONFIG= ${LOCALBASE}/bin/pg_config
|
||||
.endif
|
||||
CONFIGURE_ENV+= POSTGRES_INCLUDE=`${PG_CONFIG} --includedir` \
|
||||
POSTGRES_LIB=`${PG_CONFIG} --libdir`
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= DBD-PgSPI
|
||||
PORTVERSION= 0.02
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases perl5
|
||||
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
||||
MASTER_SITE_SUBDIR= DBD
|
||||
|
@ -19,26 +20,29 @@ BUILD_DEPENDS= ${RUN_DEPENDS} \
|
|||
${NONEXISTENT}:${PORTSDIR}/${POSTGRESQL_PORT}:configure
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/postgresql/plperl.so:${PORTSDIR}/databases/p5-postgresql-plperl \
|
||||
${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= DBD::PgSPI.3
|
||||
|
||||
post-patch:
|
||||
@${PERL} -i -pe '$$_ = "" if /ppport.h/' \
|
||||
${WRKSRC}/PgSPI.h
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= Changes README
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||
.endif
|
||||
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server
|
||||
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
PGSQL_WRKSRC_CMD= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
.if ${PERL_LEVEL} < 500600
|
||||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
||||
|
@ -46,14 +50,20 @@ RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|||
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
||||
.endif
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
PGSQL_WRKSRC!= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
|
||||
|
||||
CONFIGURE_ENV= POSTGRES_HOME="${PGSQL_WRKSRC}/src" \
|
||||
CONFIGURE_ENV= POSTGRES_HOME="`${PGSQL_WRKSRC_CMD}`/src" \
|
||||
LOCALBASE="${LOCALBASE}"
|
||||
|
||||
post-patch:
|
||||
@${PERL} -i -pe '$$_ = "" if /ppport.h/' \
|
||||
${WRKSRC}/PgSPI.h
|
||||
|
||||
post-clean:
|
||||
@cd ${PGSQL_PORTDIR} && ${MAKE} clean
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= Pg
|
||||
PORTVERSION= 2.1.1
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= databases perl5
|
||||
MASTER_SITES= ftp://gborg.postgresql.org/pub/pgperl/stable/
|
||||
|
@ -16,9 +17,7 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= An interface for using perl5 to access PostgreSQL databases
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_PERL5= yes
|
||||
|
||||
MAN3= Pg.3
|
||||
|
|
|
@ -5,27 +5,37 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTREVISION= 1
|
||||
PORTNAME= postgresql
|
||||
CATEGORIES= databases perl5
|
||||
PKGNAMEPREFIX= p5-
|
||||
PKGNAMESUFFIX= -plperl
|
||||
|
||||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= A module for using Perl5 to write SQL functions
|
||||
COMMENT= Write SQL functions for PostgreSQL using Perl5
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
POSTGRESQL_SUBPORT=YES
|
||||
.include "../../${POSTGRESQL_PORT}/Makefile"
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
RUN_DEPENDS= postgres:${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= ${DESTDIR}/usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
USE_PERL5= yes
|
||||
CONFIGURE_ARGS= --with-perl
|
||||
|
||||
MAKE_ARGS+= -C src/pl/plperl
|
||||
MAKEFILE= GNUmakefile
|
||||
BUILD_DIRS= src/pl/plperl
|
||||
SLAVE_ONLY= yes
|
||||
|
||||
post-install:
|
||||
@ ${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
--- src/makefiles/Makefile.freebsd.orig Wed Aug 29 21:14:40 2001
|
||||
+++ src/makefiles/Makefile.freebsd Mon Sep 1 10:16:26 2003
|
||||
@@ -23,3 +23,5 @@
|
||||
endif
|
||||
|
||||
sqlmansect = 7
|
||||
+
|
||||
+allow_nonpic_in_shlib = yes
|
|
@ -1,3 +0,0 @@
|
|||
PL/Perl has been installed. Check the createlang(l) manpage for more
|
||||
info. You can install PL/Perl as trusted or untrusted, by using either
|
||||
"createlang plperl" or "createlang plperlu".
|
|
@ -1,2 +0,0 @@
|
|||
lib/postgresql/plperl.so
|
||||
@unexec rmdir %D/lib/postgresql 2>/dev/null || true
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= pgadmin3
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ${MASTER_SITE_PGSQL}
|
||||
MASTER_SITE_SUBDIR= pgadmin3/release/v${PORTVERSION}/src
|
||||
|
@ -14,16 +15,13 @@ MASTER_SITE_SUBDIR= pgadmin3/release/v${PORTVERSION}/src
|
|||
MAINTAINER= fjoe@FreeBSD.org
|
||||
COMMENT= PostgreSQL database design and management system
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-wx=${X11BASE}
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LIBS="${PTHREAD_LIBS}"
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC}/src \( -name '*.cpp' -or -name '*.h' \) -print0 | \
|
||||
${XARGS} -0 ${REINPLACE_CMD} -e 's,wxNotifyEvent,wxCommandEvent,g'
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= pgadmin3
|
||||
PORTVERSION= 1.2.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ${MASTER_SITE_PGSQL}
|
||||
MASTER_SITE_SUBDIR= pgadmin3/release/v${PORTVERSION}/src
|
||||
|
@ -14,16 +15,13 @@ MASTER_SITE_SUBDIR= pgadmin3/release/v${PORTVERSION}/src
|
|||
MAINTAINER= fjoe@FreeBSD.org
|
||||
COMMENT= PostgreSQL database design and management system
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_REINPLACE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-wx=${X11BASE}
|
||||
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" LIBS="${PTHREAD_LIBS}"
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
post-patch:
|
||||
@${FIND} ${WRKSRC}/src \( -name '*.cpp' -or -name '*.h' \) -print0 | \
|
||||
${XARGS} -0 ${REINPLACE_CMD} -e 's,wxNotifyEvent,wxCommandEvent,g'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= pgbash
|
||||
PORTVERSION= 7.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://www.psn.co.jp/PostgreSQL/pgbash/:pgsource \
|
||||
${MASTER_SITE_GNU:S/$/:bashsrc/}
|
||||
|
@ -19,7 +19,7 @@ EXTRACT_ONLY= pgbash-7.3.tar.gz
|
|||
MAINTAINER= sascha@root-login.org
|
||||
COMMENT= SQL Bash Shell for PostgreSQL
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/pgbash-7.3/src/bash-2.05a
|
||||
|
||||
|
|
|
@ -27,8 +27,9 @@ PGSQL_SRC= ${WRKDIR}/pgsql/postgresql
|
|||
INSTALL_TARGET= install
|
||||
INSTALLS_SHLIB= no
|
||||
|
||||
OPTIONS= PGSQL8 "Use PostgreSQL 8 instead of PostgreSQL 7.4" off \
|
||||
GEOS "Include GEOS - the OpenGIS 'Simple Features for SQL'" off \
|
||||
OPTIONS= GEOS "Include GEOS - the OpenGIS 'Simple Features for SQL'" off \
|
||||
|
||||
USE_PGSQL= YES
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -37,13 +38,7 @@ MAKE_ARGS= PGSQL_SRC="${PGSQL_SRC}" \
|
|||
BINDIR="${PREFIX}/bin" \
|
||||
LIBDIR="${PREFIX}/lib"
|
||||
|
||||
.if defined(WITH_PGSQL8)
|
||||
PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql-devel
|
||||
.else
|
||||
PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql7
|
||||
.endif
|
||||
|
||||
LIB_DEPENDS+= pq.3:${PGSQL_PORTDIR}
|
||||
PGSQL_PORTDIR= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-client
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
BUILD_DEPENDS+= xsltproc:${PORTSDIR}/textproc/libxslt \
|
||||
|
|
|
@ -5,40 +5,44 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PKGNAMESUFFIX= -contrib
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= databases
|
||||
PKGNAMESUFFIX= -contrib
|
||||
|
||||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= The contrib utilities from the PostgreSQL distribution
|
||||
|
||||
LIB_DEPENDS= pq:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
POSTGRESQL_SUBPORT=YES
|
||||
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= ${DESTDIR}/usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
USE_BISON= yes
|
||||
|
||||
CONFIGURE_ARGS= --with-libraries=${LOCALBASE}/lib \
|
||||
--with-includes=${LOCALBASE}/include \
|
||||
--docdir=${DOCSDIR}
|
||||
MAKE_ARGS= -C contrib
|
||||
BUILD_DIRS= src/port contrib
|
||||
INSTALL_DIRS= contrib
|
||||
|
||||
pre-build:
|
||||
cd ${WRKSRC}/src/backend ;\
|
||||
${GMAKE} ../../src/include/parser/parse.h ../../src/include/utils/fmgroids.h
|
||||
cd ${WRKSRC}/src/port; ${GMAKE}
|
||||
SLAVE_ONLY= yes
|
||||
PKGMESSAGE= ${.CURDIR}/pkg-message
|
||||
|
||||
post-install:
|
||||
@ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/ipc_check/ipc_check.pl ${PREFIX}/bin/ipc_check ;\
|
||||
@- ${INSTALL_SCRIPT} ${WRKSRC}/contrib/ipc_check/ipc_check.pl ${PREFIX}/bin/ipc_check ;\
|
||||
${INSTALL_DATA} ${WRKSRC}/contrib/ipc_check/README ${DOCSDIR}/contrib/README.ipc_check ;\
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/contrib/reindexdb/reindexdb ${PREFIX}/bin/reindexdb ;\
|
||||
${INSTALL_DATA} ${WRKSRC}/contrib/reindexdb/README ${DOCSDIR}/contrib/README.reindexdb
|
||||
@ ${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/README
|
||||
@ ${ECHO} ==================================== ;\
|
||||
${SED} -e "s,/usr/local,${PREFIX},g" ${PKGDIR}/pkg-message ;\
|
||||
${ECHO} ====================================
|
||||
@- ${INSTALL_DATA} ${WRKSRC}/contrib/README ${DOCSDIR}/contrib/README
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
The PostgreSQL contrib utilities have been installed. Please see
|
||||
/usr/local/share/doc/postgresql/contrib/README
|
||||
for more information.
|
|
@ -1,144 +0,0 @@
|
|||
bin/ApplySnapshot
|
||||
bin/CleanLog
|
||||
bin/GetSyncID
|
||||
bin/InitRservTest
|
||||
bin/MasterAddTable
|
||||
bin/MasterInit
|
||||
bin/MasterSync
|
||||
bin/PrepareSnapshot
|
||||
bin/Replicate
|
||||
bin/RservTest
|
||||
bin/SlaveAddTable
|
||||
bin/SlaveInit
|
||||
bin/dbf2pg
|
||||
bin/findoidjoins
|
||||
bin/fti.pl
|
||||
bin/ipc_check
|
||||
bin/make_oidjoins_check
|
||||
bin/oid2name
|
||||
bin/pg_autovacuum
|
||||
bin/pg_dumplo
|
||||
bin/pg_logger
|
||||
bin/pgbench
|
||||
bin/reindexdb
|
||||
bin/vacuumlo
|
||||
lib/postgresql/_int.so
|
||||
lib/postgresql/autoinc.so
|
||||
lib/postgresql/btree_gist.so
|
||||
lib/postgresql/chkpass.so
|
||||
lib/postgresql/cube.so
|
||||
lib/postgresql/dblink.so
|
||||
lib/postgresql/dbsize.so
|
||||
lib/postgresql/earthdistance.so
|
||||
lib/postgresql/fti.so
|
||||
lib/postgresql/fuzzystrmatch.so
|
||||
lib/postgresql/insert_username.so
|
||||
lib/postgresql/int_aggregate.so
|
||||
lib/postgresql/isbn_issn.so
|
||||
lib/postgresql/lo.so
|
||||
lib/postgresql/ltree.so
|
||||
lib/postgresql/misc_utils.so
|
||||
lib/postgresql/moddatetime.so
|
||||
lib/postgresql/noup.so
|
||||
lib/postgresql/pending.so
|
||||
lib/postgresql/pgcrypto.so
|
||||
lib/postgresql/pgstattuple.so
|
||||
lib/postgresql/refint.so
|
||||
lib/postgresql/rserv.so
|
||||
lib/postgresql/rtree_gist.so
|
||||
lib/postgresql/seg.so
|
||||
lib/postgresql/string_io.so
|
||||
lib/postgresql/tablefunc.so
|
||||
lib/postgresql/timetravel.so
|
||||
lib/postgresql/tsearch.so
|
||||
lib/postgresql/tsearch2.so
|
||||
lib/postgresql/user_locks.so
|
||||
%%DOCSDIR%%/contrib/README
|
||||
%%DOCSDIR%%/contrib/README.apachelog
|
||||
%%DOCSDIR%%/contrib/README.btree_gist
|
||||
%%DOCSDIR%%/contrib/README.chkpass
|
||||
%%DOCSDIR%%/contrib/README.cube
|
||||
%%DOCSDIR%%/contrib/README.dbf2pg
|
||||
%%DOCSDIR%%/contrib/README.dblink
|
||||
%%DOCSDIR%%/contrib/README.dbmirror
|
||||
%%DOCSDIR%%/contrib/README.dbsize
|
||||
%%DOCSDIR%%/contrib/README.earthdistance
|
||||
%%DOCSDIR%%/contrib/README.findoidjoins
|
||||
%%DOCSDIR%%/contrib/README.fti
|
||||
%%DOCSDIR%%/contrib/README.fuzzystrmatch
|
||||
%%DOCSDIR%%/contrib/README.int_aggregate
|
||||
%%DOCSDIR%%/contrib/README.intarray
|
||||
%%DOCSDIR%%/contrib/README.ipc_check
|
||||
%%DOCSDIR%%/contrib/README.isbn_issn
|
||||
%%DOCSDIR%%/contrib/README.lo
|
||||
%%DOCSDIR%%/contrib/README.ltree
|
||||
%%DOCSDIR%%/contrib/README.misc_utils
|
||||
%%DOCSDIR%%/contrib/README.noup
|
||||
%%DOCSDIR%%/contrib/README.oid2name
|
||||
%%DOCSDIR%%/contrib/README.pg_autovacuum
|
||||
%%DOCSDIR%%/contrib/README.pg_dumplo
|
||||
%%DOCSDIR%%/contrib/README.pg_logger
|
||||
%%DOCSDIR%%/contrib/README.pgbench
|
||||
%%DOCSDIR%%/contrib/README.pgbench_jis
|
||||
%%DOCSDIR%%/contrib/README.pgcrypto
|
||||
%%DOCSDIR%%/contrib/README.pgstattuple
|
||||
%%DOCSDIR%%/contrib/README.pgstattuple.euc_jp
|
||||
%%DOCSDIR%%/contrib/README.reindexdb
|
||||
%%DOCSDIR%%/contrib/README.rserv
|
||||
%%DOCSDIR%%/contrib/README.rtree_gist
|
||||
%%DOCSDIR%%/contrib/README.seg
|
||||
%%DOCSDIR%%/contrib/README.soundex
|
||||
%%DOCSDIR%%/contrib/README.spi
|
||||
%%DOCSDIR%%/contrib/README.string_io
|
||||
%%DOCSDIR%%/contrib/README.tablefunc
|
||||
%%DOCSDIR%%/contrib/README.tsearch
|
||||
%%DOCSDIR%%/contrib/README.tsearch2
|
||||
%%DOCSDIR%%/contrib/README.user_locks
|
||||
%%DOCSDIR%%/contrib/README.vacuumlo
|
||||
%%DOCSDIR%%/contrib/autoinc.example
|
||||
%%DOCSDIR%%/contrib/insert_username.example
|
||||
%%DOCSDIR%%/contrib/moddatetime.example
|
||||
%%DOCSDIR%%/contrib/refint.example
|
||||
%%DOCSDIR%%/contrib/timetravel.example
|
||||
share/postgresql/contrib/RServ.pm
|
||||
share/postgresql/contrib/_int.sql
|
||||
share/postgresql/contrib/autoinc.sql
|
||||
share/postgresql/contrib/btree_gist.sql
|
||||
share/postgresql/contrib/chkpass.sql
|
||||
share/postgresql/contrib/cube.sql
|
||||
share/postgresql/contrib/dblink.sql
|
||||
share/postgresql/contrib/dbsize.sql
|
||||
share/postgresql/contrib/earthdistance.sql
|
||||
share/postgresql/contrib/english.stop
|
||||
share/postgresql/contrib/fti.sql
|
||||
share/postgresql/contrib/fuzzystrmatch.sql
|
||||
share/postgresql/contrib/insert_username.sql
|
||||
share/postgresql/contrib/int_aggregate.sql
|
||||
share/postgresql/contrib/isbn_issn.sql
|
||||
share/postgresql/contrib/lo.sql
|
||||
share/postgresql/contrib/lo_drop.sql
|
||||
share/postgresql/contrib/lo_test.sql
|
||||
share/postgresql/contrib/ltree.sql
|
||||
share/postgresql/contrib/master.sql
|
||||
share/postgresql/contrib/misc_utils.sql
|
||||
share/postgresql/contrib/moddatetime.sql
|
||||
share/postgresql/contrib/noup.sql
|
||||
share/postgresql/contrib/pgcrypto.sql
|
||||
share/postgresql/contrib/pgstattuple.sql
|
||||
share/postgresql/contrib/refint.sql
|
||||
share/postgresql/contrib/rtree_gist.sql
|
||||
share/postgresql/contrib/russian.stop
|
||||
share/postgresql/contrib/seg.sql
|
||||
share/postgresql/contrib/slave.sql
|
||||
share/postgresql/contrib/string_io.sql
|
||||
share/postgresql/contrib/tablefunc.sql
|
||||
share/postgresql/contrib/timetravel.sql
|
||||
share/postgresql/contrib/tsearch.sql
|
||||
share/postgresql/contrib/tsearch2.sql
|
||||
share/postgresql/contrib/untsearch2.sql
|
||||
share/postgresql/contrib/user_locks.sql
|
||||
@unexec rmdir %D/share/postgresql/contrib >&2 2> /dev/null || true
|
||||
@unexec rmdir %D/share/postgresql >&2 2> /dev/null || true
|
||||
@unexec rmdir %D/%%DOCSDIR%%/contrib >&2 2> /dev/null || true
|
||||
@unexec rmdir %D/%%DOCSDIR%% >&2 2> /dev/null || true
|
||||
@unexec rmdir %D/lib/postgresql >&2 2> /dev/null || true
|
|
@ -5,19 +5,33 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTREVISION= 0
|
||||
PKGNAMESUFFIX= -docs
|
||||
|
||||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= The PostgreSQL documentation set
|
||||
|
||||
POSTGRESQL_SUBPORT= YES
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= ${DESTDIR}/usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
DISTFILES= postgresql-docs-${PORTVERSION}${EXTRACT_SUFX}
|
||||
.undef USE_GMAKE
|
||||
.undef GNU_CONFIGURE
|
||||
NO_BUILD= YES
|
||||
SLAVE_ONLY= YES
|
||||
PATCHDIR= mustnotexist
|
||||
|
||||
do-install:
|
||||
@ $(MKDIR) ${DOCSDIR}/html; \
|
||||
|
@ -32,4 +46,4 @@ post-install:
|
|||
${ECHO} @dirrm ${DOCSDIR:S,^${PREFIX}/,,}/html >> ${TMPPLIST} ;\
|
||||
${ECHO} "@unexec rmdir %D/${DOCSDIR:S,^${PREFIX}/,,} 2> /dev/null || true" >> ${TMPPLIST}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= libpq++
|
||||
PORTVERSION= 4.0
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://gborg.postgresql.org/pub/libpqpp/stable/
|
||||
PKGNAMEPREFIX= postgresql-
|
||||
|
@ -16,9 +16,7 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= C++ interface for PostgreSQL
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= YES
|
||||
USE_GMAKE= YES
|
||||
USE_REINPLACE= YES
|
||||
INSTALLS_SHLIB= YES
|
||||
|
|
|
@ -16,8 +16,7 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= A new C++ interface for PostgreSQL
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= YES
|
||||
USE_INC_LIBTOOL_VER=15
|
||||
USE_GMAKE= YES
|
||||
GNU_CONFIGURE= YES
|
||||
|
@ -28,8 +27,6 @@ CONFIGURE_ARGS= --with-postgres=${LOCALBASE} \
|
|||
--enable-shared \
|
||||
--with-postgres-include=${LOCALBASE}/include/postgresql
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500035
|
||||
|
|
|
@ -71,3 +71,4 @@ lib/libpqxx.so
|
|||
lib/libpqxx-%%PORTVERSION%%.so
|
||||
libdata/pkgconfig/libpqxx.pc
|
||||
@dirrm include/pqxx
|
||||
@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
|
||||
|
|
|
@ -16,8 +16,7 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= A new C++ interface for PostgreSQL
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= YES
|
||||
USE_INC_LIBTOOL_VER=15
|
||||
USE_GMAKE= YES
|
||||
GNU_CONFIGURE= YES
|
||||
|
@ -28,8 +27,6 @@ CONFIGURE_ARGS= --with-postgres=${LOCALBASE} \
|
|||
--enable-shared \
|
||||
--with-postgres-include=${LOCALBASE}/include/postgresql
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500035
|
||||
|
|
|
@ -71,3 +71,4 @@ lib/libpqxx.so
|
|||
lib/libpqxx-%%PORTVERSION%%.so
|
||||
libdata/pkgconfig/libpqxx.pc
|
||||
@dirrm include/pqxx
|
||||
@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
|
||||
|
|
|
@ -16,8 +16,7 @@ DIST_SUBDIR= postgresql
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= A new C++ interface for PostgreSQL
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= YES
|
||||
USE_INC_LIBTOOL_VER=15
|
||||
USE_GMAKE= YES
|
||||
GNU_CONFIGURE= YES
|
||||
|
@ -28,8 +27,6 @@ CONFIGURE_ARGS= --with-postgres=${LOCALBASE} \
|
|||
--enable-shared \
|
||||
--with-postgres-include=${LOCALBASE}/include/postgresql
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 500035
|
||||
|
|
|
@ -71,3 +71,4 @@ lib/libpqxx.so
|
|||
lib/libpqxx-%%PORTVERSION%%.so
|
||||
libdata/pkgconfig/libpqxx.pc
|
||||
@dirrm include/pqxx
|
||||
@unexec rmdir %D/libdata/pkgconfig 2>/dev/null || true
|
||||
|
|
|
@ -5,21 +5,40 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases python
|
||||
PKGNAMESUFFIX= -plpython
|
||||
|
||||
MAINTAINER= dd@FreeBSD.org
|
||||
COMMENT= A module for using Python to write SQL functions
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
POSTGRESQL_SUBPORT=YES
|
||||
.include "../../${POSTGRESQL_PORT}/Makefile"
|
||||
|
||||
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PYTHON= yes
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
MAKE_ARGS+= -C src/pl/plpython
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= ${DESTDIR}/usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
USE_PYTHON= yes
|
||||
CONFIGURE_ARGS= --with-python
|
||||
|
||||
.include <bsd.port.mk>
|
||||
BUILD_DIRS= src/pl/plpython
|
||||
SLAVE_ONLY= yes
|
||||
|
||||
POSTGRESQL_PORT=databases/postgresql${PGSQL_VER}-server
|
||||
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
--- src/pl/plpython/Makefile~ Thu Mar 4 08:06:19 2004
|
||||
+++ src/pl/plpython/Makefile Thu Mar 4 08:06:44 2004
|
||||
@@ -8,7 +8,7 @@
|
||||
# On some platforms we can only build PL/Python if libpython is a
|
||||
# shared library. Since there is no official way to determine this,
|
||||
# we see if there is a file that is named like a shared library.
|
||||
-ifneq (,$(wildcard $(python_configdir)/libpython*$(DLSUFFIX)*))
|
||||
+ifneq (,$(wildcard $(python_configdir)/../../libpython*$(DLSUFFIX)*))
|
||||
shared_libpython = yes
|
||||
endif
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
lib/postgresql/plpython.so
|
||||
@unexec rmdir %D/lib/postgresql 2>/dev/null || true
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= plruby
|
||||
PORTVERSION= 0.4.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases ruby
|
||||
MASTER_SITES= ftp://moulon.inra.fr/pub/ruby/
|
||||
PKGNAMEPREFIX= postgresql-
|
||||
|
@ -16,19 +17,18 @@ MAINTAINER= knu@FreeBSD.org
|
|||
COMMENT= PL/Ruby procedural language for the PostgreSQL database system
|
||||
|
||||
BUILD_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
LIB_DEPENDS= pq.3:${PGSQL_PORTDIR}
|
||||
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
USE_RUBY_RDOC= yes
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
PGSQL_VERSION?= 74
|
||||
POSTGRESQL_PORT?= databases/postgresql${PGSQL_VER}-server
|
||||
PGSQL_PORTDIR?= ${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
PGSQL_WRKSRC_CMD= cd ${PGSQL_PORTDIR} && ${MAKE} -V WRKSRC
|
||||
|
||||
CONFIGURE_ARGS= --with-pgsql-version="${PGSQL_VERSION}" \
|
||||
CONFIGURE_ARGS= --with-pgsql-version="${PGSQL_VER}" \
|
||||
--with-pgsql-srcinc="`${PGSQL_WRKSRC_CMD}`/src/include" \
|
||||
--with-pgsql-include="${LOCALBASE}/include" \
|
||||
--with-pgsql-lib="${LOCALBASE}/lib"
|
||||
|
@ -58,6 +58,17 @@ post-build:
|
|||
cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} rdoc
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${RUBY_MODEXAMPLESDIR}/
|
||||
|
@ -70,4 +81,4 @@ post-install:
|
|||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= databases tcl${TCLVERSION:S/.//}
|
||||
PKGNAMESUFFIX= -pltcl
|
||||
|
@ -12,12 +13,26 @@ PKGNAMESUFFIX= -pltcl
|
|||
MAINTAINER= girgen@FreeBSD.org
|
||||
COMMENT= A module for using Tcl to write SQL functions
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
POSTGRESQL_SUBPORT=YES
|
||||
.include "../../${POSTGRESQL_PORT}/Makefile"
|
||||
MASTERDIR= ${.CURDIR}/../postgresql${PGSQL_VER}-server
|
||||
|
||||
RUN_DEPENDS= postgres:${MASTERDIR}
|
||||
LIB_DEPENDS= tcl${TCLVERSION:S/.//}:${PORTSDIR}/lang/tcl${TCLVERSION:S/.//}
|
||||
RUN_DEPENDS= postgres:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
# can't include <bsd.port.pre.mk> in a slave port
|
||||
# so set these instead:
|
||||
LOCALBASE?= ${DESTDIR}/usr/local
|
||||
SED?= /usr/bin/sed
|
||||
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | ${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
# you can use "make TCLVERSION=8.4" or similar for your favourite tcl version
|
||||
TCLVERSION?= 8.4
|
||||
|
@ -27,10 +42,9 @@ CONFIGURE_ARGS= --with-tcl --without-tk \
|
|||
|
||||
TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION}
|
||||
TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION}
|
||||
MAKE_ARGS+= -C src/pl/tcl
|
||||
MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR}
|
||||
|
||||
post-install:
|
||||
@ ${CAT} ${PKGMESSAGE}
|
||||
BUILD_DIRS= src/pl/tcl
|
||||
SLAVE_ONLY= yes
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include "${MASTERDIR}/Makefile"
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
PL/Tcl has been installed. Check the createlang(l) manpage for more
|
||||
info. You can install pltcl as trusted or untrusted, by using either
|
||||
"createlang pltcl" or "createlang pltclu".
|
|
@ -1,7 +0,0 @@
|
|||
lib/postgresql/pltcl.so
|
||||
@unexec rmdir %D/lib/postgresql 2>/dev/null || true
|
||||
bin/pltcl_loadmod
|
||||
bin/pltcl_delmod
|
||||
bin/pltcl_listmod
|
||||
share/postgresql/unknown.pltcl
|
||||
@unexec rmdir %D/share/postgresql 2>/dev/null || true
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= PyGreSQL
|
||||
PORTVERSION= 3.5
|
||||
PORTREVISION= 1
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= databases python
|
||||
MASTER_SITES= ftp://ftp.pygresql.org/pub/distrib/
|
||||
|
@ -18,9 +19,8 @@ COMMENT= A Python interface to PostgreSQL, both classic and DP-API 2.0
|
|||
|
||||
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
LIB_DEPENDS= pq:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
USE_PYTHON= yes
|
||||
DATETIME_DEP= ${PYTHON_SITELIBDIR}/mx/DateTime/__init__.py
|
||||
USE_REINPLACE=yes
|
||||
|
|
|
@ -17,14 +17,12 @@ COMMENT= The high performance Python adapter for PostgreSQL
|
|||
|
||||
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
BUILD_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_GMAKE= yes
|
||||
USE_PYTHON= yes
|
||||
GNU_CONFIGURE= yes
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
ALL_TARGET= sharedmods
|
||||
|
||||
CONFIGURE_ARGS= --with-python=${PYTHON_CMD} \
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= pyPgSQL
|
||||
PORTVERSION= 2.4
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases python
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= pypgsql
|
||||
|
@ -18,11 +18,10 @@ MAINTAINER= gerhard.haering@gmx.de
|
|||
COMMENT= A Python DB-API 2 compliant library for using PostgreSQL databases
|
||||
|
||||
RUN_DEPENDS= ${DATETIME_DEP}:${PORTSDIR}/lang/py-mx-base
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
WRKSRC= ${WRKDIR}/pypgsql
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_PYTHON= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
PORTNAME= qt-${DB}-plugin
|
||||
PORTVERSION= 3.3.3
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= ftp://ftp.trolltech.com/qt/source/ \
|
||||
ftp://ftp.silug.org/pub/qt/ \
|
||||
|
@ -21,11 +22,9 @@ COMMENT= A plugin for QT to connect to PostgreSQL-Databases
|
|||
|
||||
DB= psql
|
||||
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/${POSTGRESQL_PORT} \
|
||||
qt-mt:${PORTSDIR}/x11-toolkits/qt33
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= qt-mt:${PORTSDIR}/x11-toolkits/qt33
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_BZIP2= yes
|
||||
PLUGIN= plugins/src/sqldrivers/${DB}
|
||||
DRIVER= src/sql/drivers/${DB}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= postgres
|
||||
PORTVERSION= 0.7.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases ruby
|
||||
MASTER_SITES= http://www.postgresql.jp/interfaces/ruby/archive/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
|
@ -17,10 +17,7 @@ DIST_SUBDIR= ruby
|
|||
MAINTAINER= knu@FreeBSD.org
|
||||
COMMENT= Ruby interface to PostgreSQL library
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PORTNAME= postgres
|
||||
PORTVERSION= 0.7.1
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= databases ruby
|
||||
MASTER_SITES= http://www.postgresql.jp/interfaces/ruby/archive/
|
||||
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
||||
|
@ -17,10 +17,7 @@ DIST_SUBDIR= ruby
|
|||
MAINTAINER= knu@FreeBSD.org
|
||||
COMMENT= Ruby interface to PostgreSQL library
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_RUBY= yes
|
||||
USE_RUBY_EXTCONF= yes
|
||||
|
||||
|
|
|
@ -7,13 +7,14 @@
|
|||
|
||||
PORTNAME= slony1
|
||||
PORTVERSION= 1.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/
|
||||
|
||||
MAINTAINER= vivek@khera.org
|
||||
COMMENT= PostgreSQL master to multiple slaves replication system
|
||||
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql7
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS= ${NONEXISTENT}:${PGSQL_PORT}:configure
|
||||
.if ! defined(NOPORTDOCS)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/pnmtops:${PORTSDIR}/graphics/netpbm \
|
||||
|
@ -43,6 +44,19 @@ PLIST_FILES= bin/slon bin/slonik bin/slony_setup.pl \
|
|||
share/postgresql/xxid.v74.sql
|
||||
PORTDOCS= *.pdf howto COPYRIGHT README slonik_commands.html
|
||||
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
cd ${PGSQL_SRC}/src/interfaces/libpq && ${GMAKE} all
|
||||
cd ${PGSQL_SRC}/src/port && ${GMAKE} all
|
||||
|
@ -61,4 +75,4 @@ do-install:
|
|||
.endif
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -7,13 +7,14 @@
|
|||
|
||||
PORTNAME= slony1
|
||||
PORTVERSION= 1.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= http://developer.postgresql.org/~wieck/slony1/download/
|
||||
|
||||
MAINTAINER= vivek@khera.org
|
||||
COMMENT= PostgreSQL master to multiple slaves replication system
|
||||
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql7
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS= ${NONEXISTENT}:${PGSQL_PORT}:configure
|
||||
.if ! defined(NOPORTDOCS)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/bin/pnmtops:${PORTSDIR}/graphics/netpbm \
|
||||
|
@ -43,6 +44,19 @@ PLIST_FILES= bin/slon bin/slonik bin/slony_setup.pl \
|
|||
share/postgresql/xxid.v74.sql
|
||||
PORTDOCS= *.pdf howto COPYRIGHT README slonik_commands.html
|
||||
|
||||
DEFAULT_PGSQL_VER?=74
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.elif 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]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
|
||||
pre-configure:
|
||||
cd ${PGSQL_SRC}/src/interfaces/libpq && ${GMAKE} all
|
||||
cd ${PGSQL_SRC}/src/port && ${GMAKE} all
|
||||
|
@ -61,4 +75,4 @@ do-install:
|
|||
.endif
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -34,8 +34,6 @@ CONFIGURE_ARGS= ${SQLRELAY_CONFIGURE_ARGS} \
|
|||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
|
||||
.include "${.CURDIR}/Makefile.common"
|
||||
|
||||
OPTIONS= MSQL "Build MSQL connection" off \
|
||||
|
@ -89,7 +87,7 @@ IF_MSQL= "@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL) && ${WITH_POSTGRESQL:L} != no
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-postgresql-prefix="${LOCALBASE}"
|
||||
IF_POSTGRESQL= ""
|
||||
.else
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= libpreps
|
||||
PORTVERSION= 1.9.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= http://webpages.charter.net/stuffle/linux/preps/
|
||||
PKGNAMESUFFIX= -devel
|
||||
|
@ -15,13 +16,12 @@ DIST_SUBDIR= prep
|
|||
MAINTAINER= shadow@psoft.net
|
||||
COMMENT= Problem reporting system
|
||||
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
|
||||
CONFLICTS= libpreps-1.6.*
|
||||
LATEST_LINK= libpreps-devel
|
||||
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_GNOME= glib12
|
||||
|
@ -30,6 +30,8 @@ GNU_CONFIGURE= yes
|
|||
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITHOUT_SERVER)
|
||||
CONFIGURE_ARGS+=--disable-server
|
||||
PKGNAMESUFFIX= -client
|
||||
|
@ -39,4 +41,15 @@ MAN1= create_prepsdb.1 update_prepsdb.1
|
|||
PLIST_SUB+= SERVER=""
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
.if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
.else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
.endif
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
RUN_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -14,10 +14,9 @@ DIST_SUBDIR= prep
|
|||
MAINTAINER= shadow@psoft.net
|
||||
COMMENT= Problem reporting system
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
|
||||
CONFLICTS= libpreps-devel-1.9.*
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_GNOME= glib12
|
||||
|
@ -29,6 +28,8 @@ CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
|
|||
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITHOUT_SERVER)
|
||||
CONFIGURE_ARGS+=--disable-server
|
||||
PKGNAMESUFFIX= -client
|
||||
|
@ -36,6 +37,16 @@ PLIST_SUB+= SERVER="@comment "
|
|||
.else
|
||||
MAN1= create_prepsdb.1 update_prepsdb.1
|
||||
PLIST_SUB+= SERVER=""
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
. if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
. else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
. endif
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
RUN_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -14,10 +14,9 @@ DIST_SUBDIR= prep
|
|||
MAINTAINER= shadow@psoft.net
|
||||
COMMENT= Problem reporting system
|
||||
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
|
||||
CONFLICTS= libpreps-devel-1.9.*
|
||||
|
||||
USE_PGSQL= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
USE_GNOME= glib12
|
||||
|
@ -29,6 +28,8 @@ CONFIGURE_ARGS+=--with-pgsqldir=${LOCALBASE} --with-plpgsqldir=${LOCALBASE}
|
|||
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITHOUT_SERVER)
|
||||
CONFIGURE_ARGS+=--disable-server
|
||||
PKGNAMESUFFIX= -client
|
||||
|
@ -36,6 +37,16 @@ PLIST_SUB+= SERVER="@comment "
|
|||
.else
|
||||
MAN1= create_prepsdb.1 update_prepsdb.1
|
||||
PLIST_SUB+= SERVER=""
|
||||
# Setting/finding PostgreSQL version we want.
|
||||
. if exists(${LOCALBASE}/bin/postmaster)
|
||||
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
||||
${SED} -n 's/postmaster.*PostgreSQL[^0-9]*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\..*/\1\2/p'
|
||||
. else
|
||||
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
||||
. endif
|
||||
PGSQL_PORT= ${PORTSDIR}/databases/postgresql${PGSQL_VER}-server
|
||||
BUILD_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
RUN_DEPENDS+= postgres:${PGSQL_PORT}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -114,7 +114,7 @@ PLIST_SUB+= AFTERIMAGE="@comment "
|
|||
|
||||
.if !defined(WITHOUT_POSTGRESQL) && defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --enable-pgsql
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
PLIST_SUB+= POSTGRESQL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-pgsql
|
||||
|
|
|
@ -25,7 +25,6 @@ MAINTAINER= dinoex@FreeBSD.org
|
|||
COMMENT= The Berkeley Internet Name Daemon, with DLZ extensions
|
||||
|
||||
CONFLICTS?= bind-8.* bind84-8.* bind9-9.* bind9-sdb-mysql-* host-* skalibs-*
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
MASTER_SITES_DLZ= ${MASTER_SITE_SOURCEFORGE}
|
||||
|
||||
ISCVERSION= 9.2.2
|
||||
|
@ -51,7 +50,7 @@ NO_DESCRIBE=yes
|
|||
.if defined(WITH_POSTGRESQL_DRIVER)
|
||||
.if !defined(WITHOUT_POSTGRESQL_DRIVER)
|
||||
POSTGRESQL_SUFFIX= +postgres
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-dlz-postgres
|
||||
.endif
|
||||
.endif
|
||||
|
|
|
@ -35,8 +35,7 @@ CONFIGURE_ARGS+=--with-openssl
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+=--without-mysql
|
||||
PKGNAMESUFFIX= -pg
|
||||
.else
|
||||
|
|
|
@ -35,8 +35,7 @@ CONFIGURE_ARGS+=--with-openssl
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+=--without-mysql
|
||||
PKGNAMESUFFIX= -pg
|
||||
.else
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= sqldjbdns
|
||||
PORTVERSION= 0.72
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= dns
|
||||
MASTER_SITES= http://home.tiscali.cz:8080/~cz210552/distfiles/
|
||||
|
||||
|
@ -15,9 +16,10 @@ COMMENT= DJB dns server with PostgreSQL backend
|
|||
|
||||
DJ_PORT?= ${PORTSDIR}/dns/djbdns
|
||||
BUILD_DEPENDS= ${NONEXISTENT}:${DJ_PORT}:extract
|
||||
LIB_DEPENDS= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
RUN_DEPENDS= setuidgid:${PORTSDIR}/sysutils/daemontools
|
||||
|
||||
USE_PGSQL= YES
|
||||
|
||||
PORTDOCS= ANNOUNCEMENT STATUS pgsqldns.html NEWS TODO README \
|
||||
pgsqldns-conf.html sqldns.html pgsqldns-schema.html
|
||||
DJ_SRC= `cd ${DJ_PORT} && make -V WRKSRC`
|
||||
|
|
|
@ -45,8 +45,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --enable-psql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
.else
|
||||
|
|
|
@ -126,8 +126,7 @@ LIBDIRS:=${LIBDIRS}:${PREFIX}/lib/mysql
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
MODULES:=${MODULES}:mod_sql:mod_sql_postgres
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${PREFIX}/include
|
||||
LIBDIRS:=${LIBDIRS}:${PREFIX}/lib
|
||||
|
|
|
@ -126,8 +126,7 @@ LIBDIRS:=${LIBDIRS}:${PREFIX}/lib/mysql
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
MODULES:=${MODULES}:mod_sql:mod_sql_postgres
|
||||
INCLUDEDIRS:=${INCLUDEDIRS}:${PREFIX}/include
|
||||
LIBDIRS:=${LIBDIRS}:${PREFIX}/lib
|
||||
|
|
|
@ -68,8 +68,7 @@ CONFIGURE_ARGS+= --with-mysql
|
|||
|
||||
# postgresql support requested?
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
.endif
|
||||
|
||||
|
|
|
@ -5,51 +5,17 @@
|
|||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= postgresql-tcltk
|
||||
CATEGORIES= japanese databases
|
||||
PORTNAME= postgresql
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= japanese databases tcl${TCLVERSION:C/[^0-9]//g}
|
||||
PKGNAMESUFFIX= -tcltk
|
||||
|
||||
MAINTAINER= saito@a2z.co.jp
|
||||
COMMENT= An TCL interface to the database PostgreSQL, including a tk GUI
|
||||
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
POSTGRESQL_SUBPORT=YES
|
||||
.include <${.CURDIR}/../../databases/postgresql7/Makefile>
|
||||
|
||||
LIB_DEPENDS= tcl80jp.1:${PORTSDIR}/japanese/tcl80 \
|
||||
pq:${PORTSDIR}/databases/postgresql7 \
|
||||
tcl80jp.1:${PORTSDIR}/japanese/tcl80 \
|
||||
tk80jp.1:${PORTSDIR}/japanese/tk80
|
||||
COMMENT= A TCL interface to the database PostgreSQL, including a tk GUI
|
||||
|
||||
TCLVERSION?= 8.0jp
|
||||
PLIST_SUB+= TCLVERSION=${TCLVERSION}
|
||||
CONFIGURE_ARGS= --with-tcl \
|
||||
--with-tclconfig=${TCLCONFIG} \
|
||||
--with-includes=${INCDIRS}
|
||||
|
||||
TCL_INCDIR= ${LOCALBASE}/include/tcl${TCLVERSION}
|
||||
TCLCONFIG= ${LOCALBASE}/lib/tcl${TCLVERSION}
|
||||
MAKE_ENV+= TCL_INCDIR=${TCL_INCDIR}
|
||||
CONFIGURE_ENV+= LIBS="-lm -L${LOCALBASE}/lib -ltcl${TCLVERSION:S/.//}" \
|
||||
CFLAGS=-DPGTCL_USE_TCLOBJ
|
||||
CONFIGURE_ARGS+= --with-tkconfig="${TKCONFIG}"
|
||||
TK_INCDIR= ${LOCALBASE}/include/tk${TCLVERSION}
|
||||
TKCONFIG= ${LOCALBASE}/lib/tk${TCLVERSION}
|
||||
INCDIRS= ${TCL_INCDIR}:${TK_INCDIR}
|
||||
PLIST_SUB+= TK=""
|
||||
TCLPORTDIR= ${PORTSDIR}/japanese/tcl
|
||||
TKPORTDIR= ${PORTSDIR}/japanese/tk
|
||||
|
||||
pre-build:
|
||||
cd ${WRKSRC}/src/port; ${GMAKE}
|
||||
|
||||
do-build:
|
||||
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh
|
||||
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl
|
||||
|
||||
do-install:
|
||||
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/bin/pgtclsh install
|
||||
@ cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${GMAKE} -C src/interfaces/libpgtcl install
|
||||
# Preparing a loadable TCL-package (pkgIndex.tcl)
|
||||
@${MKDIR} ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3
|
||||
@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pkgIndex.tcl.in \
|
||||
> ${PREFIX}/lib/tcl${TCLVERSION}/Pgtcl1.3/pkgIndex.tcl
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <${.CURDIR}/../../databases/postgresql-tcltk/Makefile>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# Package-index file for Pgtcl-package. Enables you to load PostgreSQL
|
||||
# interface functions right into you TCL-interpreter as simply as
|
||||
# package require Pgtcl
|
||||
package ifneeded Pgtcl 1.3 "load %%PREFIX%%/lib/libpgtcl.so"
|
|
@ -1,8 +0,0 @@
|
|||
libpgtcl is a library that implements Tcl commands for front-end
|
||||
clients to interact with the Postgresql backends.
|
||||
|
||||
pgaccess is a great graphical database management tool for PostgreSQL.
|
||||
|
||||
This software is part of the standard PostgreSQL distribution.
|
||||
|
||||
WWW: http://www.postgresql.org/
|
|
@ -1,9 +0,0 @@
|
|||
bin/pgtclsh
|
||||
include/libpgtcl.h
|
||||
lib/tcl%%TCLVERSION%%/Pgtcl1.3/pkgIndex.tcl
|
||||
@dirrm lib/tcl%%TCLVERSION%%/Pgtcl1.3
|
||||
lib/libpgtcl.a
|
||||
lib/libpgtcl.so
|
||||
lib/libpgtcl.so.2
|
||||
%%TK%%bin/pgtksh
|
||||
%%TK%%@unexec rmdir %D/share/postgresql 2>/dev/null || true
|
|
@ -69,11 +69,11 @@ NEW${lib:U}!= ${LDCONFIG} -r | ${GREP} ${lib} | ${GREP} -v 'compat/pkg' \
|
|||
| ${AWK} -F 'lib\/' '{print $$2}'
|
||||
.endfor
|
||||
|
||||
.if exists(${LOCALBASE}/include/postgresql/server/postgres.h)
|
||||
.if exists(${LOCALBASE}/bin/pg_config)
|
||||
WITH_PGSQL= yes
|
||||
.endif
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-postgresql-includes=${LOCALBASE}/include/postgresql/server \
|
||||
--with-postgresql-libraries=${LOCALBASE}/lib
|
||||
PLIST_SUB+= PGSQL=""
|
||||
|
|
|
@ -256,8 +256,7 @@ PHP_HEADER_DIRS=pcrelib
|
|||
.endif
|
||||
|
||||
.if ${PHP_MODNAME} == "pgsql"
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
|
||||
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
|
||||
.endif
|
||||
|
|
|
@ -248,8 +248,7 @@ PHP_HEADER_DIRS=pcrelib
|
|||
.endif
|
||||
|
||||
.if ${PHP_MODNAME} == "pgsql"
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
|
||||
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
|
||||
.endif
|
||||
|
|
|
@ -248,8 +248,7 @@ PHP_HEADER_DIRS=pcrelib
|
|||
.endif
|
||||
|
||||
.if ${PHP_MODNAME} == "pgsql"
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
|
||||
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
|
||||
.endif
|
||||
|
|
|
@ -75,7 +75,7 @@ WITH_FREETYPE= yes
|
|||
WITH_MYSQL= yes
|
||||
.endif
|
||||
|
||||
.if exists(${LOCALBASE}/lib/libpq.so.2)
|
||||
.if exists(${LOCALBASE}/lib/libpq.so)
|
||||
WITH_POSTGRES= yes
|
||||
.endif
|
||||
|
||||
|
@ -130,7 +130,7 @@ CONFIGURE_ARGS+= --without-mysql
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRES)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-pgsql
|
||||
|
|
|
@ -154,7 +154,7 @@ CONFIGURE_ARGS+= --without-mysql
|
|||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRES)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql=${PREFIX}
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-pgsql
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -86,8 +86,7 @@ CONFIGURE_ARGS+=--with-authmysql \
|
|||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
PLIST_SUB+= PGSQLFLAG="@comment "
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= YES
|
||||
PLIST_SUB+= PGSQLFLAG=""
|
||||
.endif
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ CONFIGURE_ARGS= --disable-root-check --with-db=db \
|
|||
--with-mailgroup=${MAILGRP} \
|
||||
--with-mailuid=${MAILUID} \
|
||||
--with-mailgid=${MAILGID} \
|
||||
--with-etcdir=${ETCDIR} \
|
||||
--with-etcdir=${ETCDIR} \
|
||||
--sysconfdir=${SYSCONFDIR} \
|
||||
--with-userdb=${USERDB} \
|
||||
--datadir=${DATADIR} \
|
||||
|
@ -146,7 +146,7 @@ OPTIONS+=off
|
|||
.endif
|
||||
|
||||
OPTIONS+=PGSQL "PostgreSQL authentication support"
|
||||
.if exists(${PGSQLBASE}/lib/libpq.so.3) || defined(WITH_PGSQL)
|
||||
.if exists(${LOCALBASE}/lib/libpq.so) || defined(WITH_PGSQL)
|
||||
OPTIONS+=on
|
||||
.else
|
||||
OPTIONS+=off
|
||||
|
@ -250,10 +250,10 @@ PLIST_SUB+= SUB_MYSQL="@comment "
|
|||
|
||||
.if defined(WITH_PGSQL) && !defined(WITHOUT_PGSQL)
|
||||
PKGNAMESUFFIX!= ${ECHO} ${PKGNAMESUFFIX}-pgsql
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+=--with-authpgsql \
|
||||
--with-pgsql-libs=${PGSQLBASE}/lib \
|
||||
--with-pgsql-includes=${PGSQLINCLUDES}
|
||||
--with-pgsql-libs=${LOCALBASE}/lib \
|
||||
--with-pgsql-includes=${LOCALBASE}/include
|
||||
PLIST_SUB+= SUB_PGSQL=""
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-authpgsql
|
||||
|
|
|
@ -31,7 +31,7 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
DATABASE= postgresql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
|
|
|
@ -31,7 +31,7 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
DATABASE= postgresql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
|
|
|
@ -31,7 +31,7 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
DATABASE= postgresql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
|
|
|
@ -31,7 +31,7 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
DATABASE= postgresql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
|
|
|
@ -31,7 +31,7 @@ SED_SCRIPT+= -e 's|%%RC_SUBR%%|${RC_SUBR}|g' \
|
|||
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
DATABASE= postgresql
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
|
|
|
@ -96,7 +96,7 @@ CONFIGURE_ARGS+= --with-ldap
|
|||
# can be used to store user tables.
|
||||
#
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
.endif
|
||||
|
||||
|
|
|
@ -96,7 +96,7 @@ CONFIGURE_ARGS+= --with-ldap
|
|||
# can be used to store user tables.
|
||||
#
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
.endif
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ WRKSRC= ${WRKDIR}/dspam-cvs-devel${SNAP_DATE}
|
|||
.else
|
||||
WRKSRC= ${WRKDIR}/dspam-${PORTVER_MAJ}
|
||||
.endif
|
||||
|
||||
|
||||
#SNAP_DATE= .20041225.1815
|
||||
PORTVER_MAJ= 3.3.4
|
||||
|
||||
|
@ -50,8 +50,7 @@ OPTIONS+= MYSQL40 "Use MySQL 4.0.x as back-end" on
|
|||
OPTIONS+= MYSQL41 "Use MySQL 4.1.x as back-end" off
|
||||
OPTIONS+= MYSQL50 "Use MySQL 5.0.x as back-end" off
|
||||
OPTIONS+= MYSQL_COMPRESS "Compress dspam <--> MySQL" off
|
||||
OPTIONS+= POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
|
||||
OPTIONS+= POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
|
||||
OPTIONS+= POSTGRESQL "Use PostgreSQL as back-end" off
|
||||
OPTIONS+= ORACLE "Use Oracle as back-end (BROKEN)" off
|
||||
OPTIONS+= BDB4 "Use BDB4 as back-end (not recomanded)" off
|
||||
OPTIONS+= SQLITE2 "Use SQLite v2.x as back-end" off
|
||||
|
@ -213,9 +212,8 @@ CONFIGURE_ARGS+= --disable-trusted-user-security
|
|||
DBDRV_TOTAL_COUNT= ooooooooo # 9
|
||||
DBDRV_COUNT= ${DBDRV_TOTAL_COUNT}
|
||||
|
||||
.if defined(WITH_POSTGRESQL73)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql73
|
||||
#BUILD_DEPENDS+= ${LIB_DEPENDS}
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
USE_PGSQL= YES
|
||||
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \
|
||||
--with-pgsql-includes=${LOCALBASE}/include \
|
||||
--with-pgsql-libraries=${LOCALBASE}/lib
|
||||
|
@ -226,24 +224,7 @@ PLIST_SUB+= SQLITE="@comment "
|
|||
SED_SCRIPT+= -e '/%%MYSQL%%/D'
|
||||
SED_SCRIPT+= -e 's,%%PGSQL%%,,g'
|
||||
SED_SCRIPT+= -e '/%%SQLITE%%/D'
|
||||
#PKGNAMESUFFIX= -pgsql73
|
||||
DBDRV_COUNT:= ${DBDRV_COUNT:S/o//}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL74)
|
||||
LIB_DEPENDS+= ecpg.4:${PORTSDIR}/databases/postgresql7
|
||||
#BUILD_DEPENDS+= ${LIB_DEPENDS}
|
||||
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \
|
||||
--with-pgsql-includes=${LOCALBASE}/include \
|
||||
--with-pgsql-libraries=${LOCALBASE}/lib
|
||||
PLIST_SUB+= DB4="@comment "
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= SQLITE="@comment "
|
||||
SED_SCRIPT+= -e '/%%MYSQL%%/D'
|
||||
SED_SCRIPT+= -e 's,%%PGSQL%%,,g'
|
||||
SED_SCRIPT+= -e '/%%SQLITE%%/D'
|
||||
#PKGNAMESUFFIX= -pgsql74
|
||||
#PKGNAMESUFFIX= -pgsql
|
||||
DBDRV_COUNT:= ${DBDRV_COUNT:S/o//}
|
||||
.endif
|
||||
|
||||
|
@ -361,7 +342,7 @@ LDA_COUNT:= ${LDA_COUNT:S/o//}
|
|||
.if defined(WITH_EXIM_LDA)
|
||||
. if defined(WITH_MYSQL40) || (WITH_MYSQL41)
|
||||
_EXIM_EXT= -mysql
|
||||
. elseif defined(WITH_POSTGRESQL74) || defined(WITH_POSTGRESQL73)
|
||||
. elseif defined(WITH_POSTGRESQL)
|
||||
####
|
||||
### fix me for pg 7.3: how to pass the db option to exim port ?
|
||||
###
|
||||
|
@ -457,16 +438,6 @@ pre-everything::
|
|||
@${ECHO_CMD} ""
|
||||
|
||||
pre-extract:
|
||||
.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73)
|
||||
@${ECHO_CMD} "******************************************************************"
|
||||
@${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim"
|
||||
@${ECHO_CMD} "built with the right pgsql please hit Ctrl-C now and do:"
|
||||
@${ECHO_CMD} "cd ${PORTSDIR}/mail/exim-postgresql && make POSTGRESQL_PORT=postgresql73 inst
|
||||
@${ECHO_CMD} "then return here and do:"
|
||||
@${ECHO_CMD} "make clean && make install"
|
||||
@${ECHO_CMD} "******************************************************************"
|
||||
@${ECHO_CMD} ""
|
||||
.endif
|
||||
@${ECHO_CMD} "Define vars below before make-ing if you need:"
|
||||
@${ECHO_CMD} ""
|
||||
@${ECHO_CMD} "SIGNATURE_LIFE=${SIGNATURE_LIFE} (default 15)"
|
||||
|
@ -540,22 +511,22 @@ pre-configure:
|
|||
@${ECHO_CMD} "You can use one and only one database back-end at once."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_NEURAL_NET) && !(defined(USE_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74))
|
||||
.if defined(WITH_NEURAL_NET) && !(defined(USE_MYSQL) || defined(WITH_POSTGRESQL))
|
||||
@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
|
||||
defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
|
||||
defined(WITH_POSTGRESQL) || defined(WITH_ORACLE))
|
||||
@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
|
||||
defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
|
||||
defined(WITH_POSTGRESQL) )
|
||||
@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_DAEMON) && !( defined(USE_MYSQL) || \
|
||||
defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
|
||||
defined(WITH_POSTGRESQL) )
|
||||
@${ECHO_CMD} "You need MySQL or Postgres for Daemon mode, because multithreading support is needed"
|
||||
@${FALSE}
|
||||
.endif
|
||||
|
@ -588,7 +559,7 @@ post-install:
|
|||
@${INSTALL_DATA} ${FILESDIR}/2x_to_3x_db.sql ${EXAMPLESDIR}/mysql
|
||||
@${INSTALL_DATA} ${FILESDIR}/310_to_320.my.sql ${EXAMPLESDIR}/mysql
|
||||
.endif
|
||||
.if defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74)
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
@${MKDIR} ${EXAMPLESDIR}/pgsql
|
||||
@cd ${WRKSRC}/src/tools.pgsql_drv && \
|
||||
${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
|
||||
|
|
|
@ -56,8 +56,7 @@ OPTIONS+= MYSQL40 "Use MySQL 4.0.x as back-end" off
|
|||
OPTIONS+= MYSQL41 "Use MySQL 4.1.x as back-end" off
|
||||
OPTIONS+= MYSQL50 "Use MySQL 5.0.x as back-end" off
|
||||
OPTIONS+= MYSQL_COMPRESS "Compress dspam <--> MySQL" off
|
||||
OPTIONS+= POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
|
||||
OPTIONS+= POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
|
||||
OPTIONS+= POSTGRESQL "Use PostgreSQL as back-end" off
|
||||
OPTIONS+= ORACLE "Use Oracle as back-end (BROKEN)" off
|
||||
OPTIONS+= BDB4 "Use BDB4 as back-end (not recomanded)" off
|
||||
OPTIONS+= SQLITE2 "Use SQLite v2.x as back-end" on
|
||||
|
@ -221,9 +220,8 @@ CONFIGURE_ARGS+= --enable-client-compression
|
|||
.endif
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL73)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/databases/postgresql73
|
||||
#BUILD_DEPENDS= ${LIB_DEPENDS}
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \
|
||||
--with-pgsql-includes=${LOCALBASE}/include \
|
||||
--with-pgsql-libraries=${LOCALBASE}/lib
|
||||
|
@ -234,24 +232,7 @@ PLIST_SUB+= SQLITE="@comment "
|
|||
SED_SCRIPT+= -e '/%%MYSQL%%/D'
|
||||
SED_SCRIPT+= -e 's,%%PGSQL%%,,g'
|
||||
SED_SCRIPT+= -e '/%%SQLITE%%/D'
|
||||
#PKGNAMESUFFIX= -pgsql73
|
||||
DBDRV_COUNT:= ${DBDRV_COUNT:S/o//}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL74)
|
||||
LIB_DEPENDS+= ecpg.4:${PORTSDIR}/databases/postgresql7
|
||||
#BUILD_DEPENDS= ${LIB_DEPENDS}
|
||||
CONFIGURE_ARGS+= --with-storage-driver=pgsql_drv \
|
||||
--with-pgsql-includes=${LOCALBASE}/include \
|
||||
--with-pgsql-libraries=${LOCALBASE}/lib
|
||||
PLIST_SUB+= DB4="@comment "
|
||||
PLIST_SUB+= MYSQL="@comment "
|
||||
PLIST_SUB+= PGSQL=""
|
||||
PLIST_SUB+= SQLITE="@comment "
|
||||
SED_SCRIPT+= -e '/%%MYSQL%%/D'
|
||||
SED_SCRIPT+= -e 's,%%PGSQL%%,,g'
|
||||
SED_SCRIPT+= -e '/%%SQLITE%%/D'
|
||||
#PKGNAMESUFFIX= -pgsql74
|
||||
#PKGNAMESUFFIX= -pgsql
|
||||
DBDRV_COUNT:= ${DBDRV_COUNT:S/o//}
|
||||
.endif
|
||||
|
||||
|
@ -329,10 +310,7 @@ LDA_COUNT:= ${LDA_COUNT:S/o//}
|
|||
.if defined(WITH_EXIM_LDA)
|
||||
. if defined(WITH_MYSQL40) || (WITH_MYSQL41)
|
||||
_EXIM_EXT= -mysql
|
||||
. elseif defined(WITH_POSTGRESQL74) || defined(WITH_POSTGRESQL73)
|
||||
####
|
||||
### fix me for pg 7.3: how to pass the db option to exim port ?
|
||||
###
|
||||
. elseif defined(WITH_POSTGRESQL)
|
||||
_EXIM_EXT= -postgresql
|
||||
. endif
|
||||
RUN_DEPENDS+= exim:${PORTSDIR}/mail/exim${_EXIM_EXT}
|
||||
|
@ -433,17 +411,6 @@ post-fetch:
|
|||
.endif
|
||||
|
||||
pre-extract:
|
||||
.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73)
|
||||
@${ECHO_CMD} "******************************************************************"
|
||||
@${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim"
|
||||
@${ECHO_CMD} "built with the right pgsql please hit Ctrl-C now and do:"
|
||||
@${ECHO_CMD} "cd ${PORTSDIR}/mail/exim-postgresql && make POSTGRESQL_PORT=postgresql73 install"
|
||||
@${ECHO_CMD} "then return here and do:"
|
||||
@${ECHO_CMD} "make clean && make install"
|
||||
@${ECHO_CMD} "******************************************************************"
|
||||
@${ECHO_CMD} ""
|
||||
.endif
|
||||
|
||||
@${ECHO_CMD} "Define vars below before make-ing if you need:"
|
||||
@${ECHO_CMD} ""
|
||||
@${ECHO_CMD} "SIGNATURE_LIFE=${SIGNATURE_LIFE} (default 15)"
|
||||
|
@ -512,17 +479,17 @@ pre-configure:
|
|||
@${ECHO_CMD} "You can use one and only one database back-end at once."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_NEURAL_NET) && !(defined(HAVE_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74))
|
||||
.if defined(WITH_NEURAL_NET) && !(defined(HAVE_MYSQL) || defined(WITH_POSTGRESQL))
|
||||
@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
|
||||
defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
|
||||
defined(WITH_POSTGRESQL) || defined(WITH_ORACLE))
|
||||
@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
|
||||
@${FALSE}
|
||||
.endif
|
||||
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
|
||||
defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
|
||||
defined(WITH_POSTGRESQL) )
|
||||
@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
|
||||
@${FALSE}
|
||||
.endif
|
||||
|
@ -549,7 +516,7 @@ post-install:
|
|||
@${INSTALL_DATA} ${FILESDIR}/2x_to_3x_db.sql ${EXAMPLESDIR}/mysql
|
||||
@${INSTALL_DATA} ${FILESDIR}/310_to_320.my.sql ${EXAMPLESDIR}/mysql
|
||||
.endif
|
||||
.if defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74)
|
||||
.if defined(WITH_POSTGRESQL)
|
||||
@${MKDIR} ${EXAMPLESDIR}/pgsql
|
||||
@cd ${WRKSRC}/tools.pgsql_drv && \
|
||||
${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
|
||||
|
|
|
@ -420,14 +420,8 @@ IGNORE= WITH_RADIUS_TYPE must be either RADLIB or RADIUSCLIENT
|
|||
SEDLIST+= -e 's,XX_RADIUS_LIBS_XX,,'
|
||||
.endif
|
||||
|
||||
.if defined(WITH_POSTGRESQL_PORT) && ${WITH_POSTGRESQL_PORT:L} != "auto"
|
||||
POSTGRESQL_PORT= ${WITH_POSTGRESQL_PORT}
|
||||
.else
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
SEDLIST+= -e 's,XX_PGSQL_LIBS_XX,-L${LOCALBASE}/lib -lpq,' \
|
||||
-e 's,XX_PGSQL_INCLUDE_XX,-I${LOCALBASE}/include/pgsql,' \
|
||||
-e 's,^\# (LOOKUP_PGSQL=),\1,'
|
||||
|
|
|
@ -40,8 +40,7 @@ EXTRACT_INCLUDE+= -I${LOCALBASE}/include/mysql
|
|||
EXTRACT_LIB+= -L${LOCALBASE}/lib/mysql -lmysqlclient -lm
|
||||
.elif defined(WITH_POSTGRESQL)
|
||||
ALL_TARGET= pgsql it ${LANGUAGE}
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
EXTRACT_INCLUDE+= -I${LOCALBASE}/include
|
||||
EXTRACT_LIB+= -L${LOCALBASE}/lib -lpq -lcrypt
|
||||
.else
|
||||
|
|
|
@ -111,7 +111,7 @@ PLIST_SUB+= MYSQL="@comment "
|
|||
|
||||
.if defined(WITH_PGSQL)
|
||||
CONFIGURE_ARGS+= --enable-pg
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
USE_PGSQL= yes
|
||||
PLIST_SUB+= PGSQL=""
|
||||
MAN8+= perditiondb_postgresql_makedb.8
|
||||
.else
|
||||
|
|
|
@ -66,8 +66,8 @@ MAN8= teapop.8
|
|||
##
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PGSQL= YES
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
|
|
|
@ -64,8 +64,8 @@ MAN8= teapop.8
|
|||
##
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
USE_PGSQL= YES
|
||||
CONFIGURE_ARGS+= --with-pgsql
|
||||
LIB_DEPENDS+= pq:${PORTSDIR}/databases/postgresql7
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MYSQL)
|
||||
|
|
|
@ -160,8 +160,7 @@ WITH_PGSQL= yes
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --enable-auth-module=pgsql
|
||||
|
||||
.if defined(WITH_PGSQL_LOG)
|
||||
|
|
|
@ -161,8 +161,7 @@ WITH_PGSQL= yes
|
|||
.endif
|
||||
|
||||
.if defined(WITH_PGSQL)
|
||||
POSTGRESQL_PORT?= databases/postgresql7
|
||||
LIB_DEPENDS+= pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
|
||||
USE_PGSQL= yes
|
||||
CONFIGURE_ARGS+= --enable-auth-module=pgsql
|
||||
|
||||
.if defined(WITH_PGSQL_LOG)
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue