summaryrefslogtreecommitdiff
path: root/databases/postgresql-contrib
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2003-09-03 15:22:23 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2003-09-03 15:22:23 +0000
commit5ea0b8a4c00dc90302648c44f51cbf297abe0853 (patch)
tree9f0205ff92db04d140a8da14b63e4bf67eb41135 /databases/postgresql-contrib
parent- Update to version 0.5.3 (diff)
Add ipc_check and reindexdb.
Change the way postgres slave ports build: use ${MAKE} -V instead of .include. Use ${USE_BISON}. Bump ${PORTREVISION}. Utilize ${DOCSDIR}. [1] Submitted by: Palle Girgensohn <girgen@pingpong.net> (maintainer), osa [1] Approved by: maintainer PR: 56342
Notes
Notes: svn path=/head/; revision=88444
Diffstat (limited to 'databases/postgresql-contrib')
-rw-r--r--databases/postgresql-contrib/Makefile29
-rw-r--r--databases/postgresql-contrib/pkg-plist96
2 files changed, 70 insertions, 55 deletions
diff --git a/databases/postgresql-contrib/Makefile b/databases/postgresql-contrib/Makefile
index dd05c9deacb4..8dd1e4283407 100644
--- a/databases/postgresql-contrib/Makefile
+++ b/databases/postgresql-contrib/Makefile
@@ -4,25 +4,33 @@
#
# $FreeBSD$
#
+POSTGRESQL_PORT?= databases/postgresql7
-PORTNAME= postgresql-contrib
-PORTREVISION= 0
+PORTNAME= postgresql
+PORTVERSION!= ${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V PORTVERSION
+PORTREVISION?= 1
CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_PGSQL}
+MASTER_SITE_SUBDIR!= ${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V MASTER_SITE_SUBDIR
+PKGNAMESUFFIX= -contrib
+DISTFILES!= ${MAKE} -C ${.CURDIR}/../../${POSTGRESQL_PORT} -V DISTFILES
+DIST_SUBDIR= postgresql
MAINTAINER= girgen@pingpong.net
COMMENT= The contrib utilities from the PostgreSQL distribution
LIB_DEPENDS= pq:${PORTSDIR}/${POSTGRESQL_PORT}
-POSTGRESQL_PORT?= databases/postgresql7
-POSTGRESQL_SUBPORT=YES
-.include <${.CURDIR}/../../${POSTGRESQL_PORT}/Makefile>
-
+USE_BISON= YES
INSTALLS_SHLIB= yes
+MD5_FILE= ${.CURDIR}/../../${POSTGRESQL_PORT}/distinfo
+
+USE_GMAKE= YES
+GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-libraries=${LOCALBASE}/lib \
--with-includes=${LOCALBASE}/include \
- --docdir=${PREFIX}/share/doc/postgresql
+ --docdir=${DOCSDIR}
MAKE_ARGS= -C contrib
pre-build:
@@ -30,8 +38,11 @@ pre-build:
${GMAKE} ../../src/include/parser/parse.h ../../src/include/utils/fmgroids.h
post-install:
- @ ${INSTALL_DATA} ${WRKSRC}/contrib/README \
- ${PREFIX}/share/doc/postgresql/contrib/README
+ @ ${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} ====================================
diff --git a/databases/postgresql-contrib/pkg-plist b/databases/postgresql-contrib/pkg-plist
index e14fccbad9ee..869740043f88 100644
--- a/databases/postgresql-contrib/pkg-plist
+++ b/databases/postgresql-contrib/pkg-plist
@@ -13,11 +13,13 @@ bin/SlaveInit
bin/dbf2pg
bin/findoidjoins
bin/fti.pl
+bin/ipc_check
bin/make_oidjoins_check
bin/oid2name
bin/pg_dumplo
bin/pg_logger
bin/pgbench
+bin/reindexdb
bin/vacuumlo
lib/postgresql/_int.so
lib/postgresql/array_iterator.so
@@ -50,50 +52,52 @@ lib/postgresql/tablefunc.so
lib/postgresql/timetravel.so
lib/postgresql/tsearch.so
lib/postgresql/user_locks.so
-share/doc/postgresql/contrib/README
-share/doc/postgresql/contrib/README.apachelog
-share/doc/postgresql/contrib/README.array_iterator
-share/doc/postgresql/contrib/README.btree_gist
-share/doc/postgresql/contrib/README.chkpass
-share/doc/postgresql/contrib/README.cube
-share/doc/postgresql/contrib/README.dbf2pg
-share/doc/postgresql/contrib/README.dblink
-share/doc/postgresql/contrib/README.dbmirror
-share/doc/postgresql/contrib/README.dbsize
-share/doc/postgresql/contrib/README.earthdistance
-share/doc/postgresql/contrib/README.findoidjoins
-share/doc/postgresql/contrib/README.fti
-share/doc/postgresql/contrib/README.fuzzystrmatch
-share/doc/postgresql/contrib/README.int_aggregate
-share/doc/postgresql/contrib/README.intarray
-share/doc/postgresql/contrib/README.isbn_issn
-share/doc/postgresql/contrib/README.lo
-share/doc/postgresql/contrib/README.ltree
-share/doc/postgresql/contrib/README.misc_utils
-share/doc/postgresql/contrib/README.noup
-share/doc/postgresql/contrib/README.oid2name
-share/doc/postgresql/contrib/README.pg_dumplo
-share/doc/postgresql/contrib/README.pg_logger
-share/doc/postgresql/contrib/README.pgbench
-share/doc/postgresql/contrib/README.pgbench_jis
-share/doc/postgresql/contrib/README.pgcrypto
-share/doc/postgresql/contrib/README.pgstattuple
-share/doc/postgresql/contrib/README.pgstattuple.euc_jp
-share/doc/postgresql/contrib/README.rserv
-share/doc/postgresql/contrib/README.rtree_gist
-share/doc/postgresql/contrib/README.seg
-share/doc/postgresql/contrib/README.soundex
-share/doc/postgresql/contrib/README.spi
-share/doc/postgresql/contrib/README.string_io
-share/doc/postgresql/contrib/README.tablefunc
-share/doc/postgresql/contrib/README.tsearch
-share/doc/postgresql/contrib/README.user_locks
-share/doc/postgresql/contrib/README.vacuumlo
-share/doc/postgresql/contrib/autoinc.example
-share/doc/postgresql/contrib/insert_username.example
-share/doc/postgresql/contrib/moddatetime.example
-share/doc/postgresql/contrib/refint.example
-share/doc/postgresql/contrib/timetravel.example
+%%DOCSDIR%%/contrib/README
+%%DOCSDIR%%/contrib/README.apachelog
+%%DOCSDIR%%/contrib/README.array_iterator
+%%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_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.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/array_iterator.sql
@@ -130,6 +134,6 @@ share/postgresql/contrib/tsearch.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/share/doc/postgresql/contrib >&2 2> /dev/null || true
-@unexec rmdir %D/share/doc/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