summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-05-14 14:45:36 +0000
committerjlam <jlam@pkgsrc.org>2001-05-14 14:45:36 +0000
commitb706f179ab474196e89323d76c0a8ac7a3384923 (patch)
tree429e1c749924244a21d26a16f593aa2ab8f2759c /databases
parent14af5e79589b85a4d0fca7264597f945ae217703 (diff)
downloadpkgsrc-b706f179ab474196e89323d76c0a8ac7a3384923.tar.gz
postgresql-client: PostgreSQL client programs
Diffstat (limited to 'databases')
-rw-r--r--databases/postgresql-client/Makefile41
-rw-r--r--databases/postgresql-client/files/exclude8
-rw-r--r--databases/postgresql-client/pkg/DESCR9
-rw-r--r--databases/postgresql-client/pkg/PLIST104
4 files changed, 162 insertions, 0 deletions
diff --git a/databases/postgresql-client/Makefile b/databases/postgresql-client/Makefile
new file mode 100644
index 00000000000..2845f75c961
--- /dev/null
+++ b/databases/postgresql-client/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/05/14 14:45:36 jlam Exp $
+
+.include "../../databases/postgresql/Makefile.common"
+.include "../../databases/postgresql/Makefile.getopt"
+.include "../../databases/postgresql/Makefile.readline"
+.include "../../databases/postgresql/Makefile.ssl"
+
+PKGNAME= postgresql-client-${PG_VERS}
+PG_PKG_VERS= # empty
+COMMENT= PostgreSQL database client programs
+
+DEPENDS+= postgresql-lib>=${PG_BASE_VERS}:../../databases/postgresql-lib
+
+MAKE_ENV+= INSTALLED_LIBPQ=1
+
+DIRS_TO_BUILD= src/bin
+
+pre-configure: link-getopt-headers link-readline-headers
+
+pre-build:
+ cd ${WRKSRC}/src/bin/psql && \
+ ${RM} -f pqsignal.h && \
+ ${LN} -sf ../../interfaces/libpq/pqsignal.h pqsignal.h
+
+do-build:
+.for DIR in ${DIRS_TO_BUILD}
+ cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${ALL_TARGET}
+.endfor
+
+do-install:
+.for DIR in ${DIRS_TO_BUILD}
+ cd ${WRKSRC}/${DIR} && ${SETENV} ${MAKE_ENV} \
+ ${MAKE_PROGRAM} ${INSTALL_TARGET}
+.endfor
+
+post-install:
+ ${SED} -e "s|^#.*||" ${FILESDIR}/exclude \
+ | ${GTAR} zxCXf ${PREFIX}/man - ${WRKSRC}/doc/man.tar.gz
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/postgresql-client/files/exclude b/databases/postgresql-client/files/exclude
new file mode 100644
index 00000000000..eeeb5d5a96b
--- /dev/null
+++ b/databases/postgresql-client/files/exclude
@@ -0,0 +1,8 @@
+# $NetBSD: exclude,v 1.1.1.1 2001/05/14 14:45:36 jlam Exp $
+#
+man1/ecpg.1
+man1/pgaccess.1
+man1/pgtclsh.1
+man1/pgtksh.1
+man1/postgres.1
+man1/postmaster.1
diff --git a/databases/postgresql-client/pkg/DESCR b/databases/postgresql-client/pkg/DESCR
new file mode 100644
index 00000000000..cc4b42da92b
--- /dev/null
+++ b/databases/postgresql-client/pkg/DESCR
@@ -0,0 +1,9 @@
+PostgreSQL is a robust, next-generation, Object-Relational DBMS (ORDBMS),
+derived from the Berkeley Postgres database management system. While
+PostgreSQL retains the powerful object-relational data model, rich data types
+and easy extensibility of Postgres, it replaces the PostQuel query language
+with an extended subset of SQL.
+
+PostgreSQL is free and the complete source is available.
+
+This package contains the database client programs.
diff --git a/databases/postgresql-client/pkg/PLIST b/databases/postgresql-client/pkg/PLIST
new file mode 100644
index 00000000000..c6bf1b698c2
--- /dev/null
+++ b/databases/postgresql-client/pkg/PLIST
@@ -0,0 +1,104 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/14 14:45:36 jlam Exp $
+bin/createdb
+bin/createlang
+bin/createuser
+bin/dropdb
+bin/droplang
+bin/dropuser
+bin/initdb
+bin/initlocation
+bin/ipcclean
+bin/pg_config
+bin/pg_ctl
+bin/pg_dump
+bin/pg_dumpall
+bin/pg_encoding
+bin/pg_id
+bin/pg_passwd
+bin/pg_restore
+bin/psql
+bin/vacuumdb
+man/man1/createdb.1
+man/man1/createlang.1
+man/man1/createuser.1
+man/man1/dropdb.1
+man/man1/droplang.1
+man/man1/dropuser.1
+man/man1/initdb.1
+man/man1/initlocation.1
+man/man1/ipcclean.1
+man/man1/pg_config.1
+man/man1/pg_ctl.1
+man/man1/pg_dump.1
+man/man1/pg_dumpall.1
+man/man1/pg_passwd.1
+man/man1/pg_restore.1
+man/man1/psql.1
+man/man1/vacuumdb.1
+man/manl/abort.l
+man/manl/alter_group.l
+man/manl/alter_table.l
+man/manl/alter_user.l
+man/manl/begin.l
+man/manl/checkpoint.l
+man/manl/close.l
+man/manl/cluster.l
+man/manl/comment.l
+man/manl/commit.l
+man/manl/copy.l
+man/manl/create_aggregate.l
+man/manl/create_constraint_trigger.l
+man/manl/create_database.l
+man/manl/create_function.l
+man/manl/create_group.l
+man/manl/create_index.l
+man/manl/create_language.l
+man/manl/create_operator.l
+man/manl/create_rule.l
+man/manl/create_sequence.l
+man/manl/create_table_as.l
+man/manl/create_table.l
+man/manl/create_trigger.l
+man/manl/create_type.l
+man/manl/create_user.l
+man/manl/create_view.l
+man/manl/declare.l
+man/manl/delete.l
+man/manl/drop_aggregate.l
+man/manl/drop_database.l
+man/manl/drop_function.l
+man/manl/drop_group.l
+man/manl/drop_index.l
+man/manl/drop_language.l
+man/manl/drop_operator.l
+man/manl/drop_rule.l
+man/manl/drop_sequence.l
+man/manl/drop_table.l
+man/manl/drop_trigger.l
+man/manl/drop_type.l
+man/manl/drop_user.l
+man/manl/drop_view.l
+man/manl/end.l
+man/manl/explain.l
+man/manl/fetch.l
+man/manl/grant.l
+man/manl/insert.l
+man/manl/listen.l
+man/manl/load.l
+man/manl/lock.l
+man/manl/move.l
+man/manl/notify.l
+man/manl/reindex.l
+man/manl/reset.l
+man/manl/revoke.l
+man/manl/rollback.l
+man/manl/select_into.l
+man/manl/select.l
+man/manl/set_constraints.l
+man/manl/set.l
+man/manl/set_transaction.l
+man/manl/show.l
+man/manl/truncate.l
+man/manl/unlisten.l
+man/manl/update.l
+man/manl/vacuum.l