2013-03-08 12:32:11 +01:00
|
|
|
# Created by: Sergey Skvortsov <skv@protey.ru>
|
2007-07-26 23:20:37 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= plproxy
|
2013-04-29 16:21:23 +02:00
|
|
|
PORTVERSION= 2.5
|
2007-07-26 23:20:37 +02:00
|
|
|
CATEGORIES= databases
|
2013-04-29 16:21:23 +02:00
|
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/3392/
|
2007-07-26 23:20:37 +02:00
|
|
|
PKGNAMEPREFIX= postgresql-
|
|
|
|
|
2013-04-22 15:27:47 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2013-04-29 16:21:23 +02:00
|
|
|
COMMENT= PL/Proxy - database partitioning system
|
2007-07-26 23:20:37 +02:00
|
|
|
|
2013-04-29 16:21:23 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2013-07-07 02:15:47 +02:00
|
|
|
USES= bison gmake
|
2007-07-26 23:20:37 +02:00
|
|
|
USE_PGSQL= yes
|
|
|
|
|
2011-02-27 09:18:53 +01:00
|
|
|
PORTSCOUT= site:http://pgfoundry.org/frs/?group_id=1000207
|
2010-07-09 15:35:01 +02:00
|
|
|
|
2013-09-20 18:13:47 +02:00
|
|
|
NO_STAGE= yes
|
2012-06-14 21:25:00 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/bin/postmaster)
|
|
|
|
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \
|
|
|
|
${SED} -En 's/.*PostgreSQL[^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]*\)[^0-9].*/\1\2/p'
|
|
|
|
.else
|
|
|
|
PGSQL_VER= ${DEFAULT_PGSQL_VER}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PGSQL_VER} > 91
|
|
|
|
PLIST_SUB+= NEW_CONTRIB_DIR="" OLD_CONTRIB_DIR="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NEW_CONTRIB_DIR="@comment " OLD_CONTRIB_DIR=""
|
|
|
|
.endif
|
2007-07-26 23:20:37 +02:00
|
|
|
|
2013-04-29 16:21:23 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/^#ifdef/s| SYS_| HAVE_SYS_|' ${WRKSRC}/src/execute.c
|
|
|
|
|
2012-06-14 21:25:00 +02:00
|
|
|
.include <bsd.port.post.mk>
|