Commit Graph

174 Commits

Author SHA1 Message Date
Palle Girgensohn
11c6621cb5 Fixing problems with the recent security patch: When bison was not
installed, the patched gram.y file would not be used and the security
patch would be a no-op. Also, I've had reports of compilation errors
related to bison.

Since checking for the correct version of bison is hard and error
prone, I'm doing what the postgresql distribution does - patching the
yacc:ed .c file to get rid of the building dependency.

Bumping portrevision of -server.

Pointy hat to:	me
Noticed by:	Mike Harding and others
Security:	http://www.vuxml.org/freebsd/6b4b0b3f-8127-11d9-a9e7-0001020eed82.html
Approved by:	seanc (implicit)
2005-02-20 05:38:24 +00:00
Palle Girgensohn
9c89540227 Fix security alert using a patch from PostgreSQL's CVS repository:
Prevent overrunning a heap-allocated buffer if more than 1024
  parameters to a refcursor declaration are specified. This is a
  minimally-invasive fix for the buffer overrun.

Define LATEST_LINK to avoid package name clashes between the different
branches of PostgreSQL. [1] (Since postgresql-tcltk is hardwired to
branch 7.4, keep its LATEST_LINK to a generic value.)

Set UNIQUENAME and let it be the same for server & client, so each
branch's ports will share the same options file. This adds some no-op
knobs to the -client port, but IMO it is better this way.

Add space inside paranthesis in OSVERSION conditional to work around
(ancient) make bug. [2]

Remove the Rendez-Vouz knob for 8.0 since I can't find the software
needed to even compile it on FreeBSD.

Bump portrevision (for -server only).

Noted by:	kris [1]
PR:		ports/77530 [2]
Security:	http://www.vuxml.org/freebsd/6b4b0b3f-8127-11d9-a9e7-0001020eed82.html
Approved by:	seanc (mentor)
2005-02-19 12:07:46 +00:00
Palle Girgensohn
623d68908a Let pkg-message reflect the renaming of the startup script.
Submitted by: Nick Pavlica <linicks at gmail dot com>
Approved by: ade (mentor)
2005-02-09 17:48:10 +00:00
Palle Girgensohn
88413af3b8 In order to address a potential security hole recently identified with
the "LOAD" option, the PostgreSQL Global Development Group is
announcing the release of new versions of PostgreSQL.

Update to 7.3.9, 7.4.7 & 8.0.1.

Take the opportunity to reset PORTREVISION of slave ports.

Back out name change of startup script. The new script uses rc.subr(8),
and as such also uses rcorder(8). But, rcorder does not exist in FreeBSD
4.x. Hence rename the script it back to the top of the directory
list. [1]

The periodic script should of course be executable. [2]

[1] Noted by Niels Chr. Bank-Pedersen <ncbp at bank-pedersen dot dk>
[2] Noted by Fritz Heinrichmeyer <fritz.heinrichmeyer at fernuni-hagen dot de>
2005-02-03 09:30:27 +00:00
Palle Girgensohn
e2eee41076 Split the postgresql ports into a server and a client part. The
following knobs can be used by ports depending on PostgreSQL:

# 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.

Note that a periodic script is installed that will, by default, vacuum
all databases nightly. You may want to tweak the settings, see the
script at ${LOCALBASE}/etc/periodic/daily/502.pgsql

To run PostgreSQL at boot time, set postgresql_enable=yes in /etc/rc.conf.

Note
PR:		75344
Approved by:	portmgr@ (kris), ade & sean (mentors)
2005-01-31 00:19:47 +00:00
Palle Girgensohn
80dd9ee47d PR ports/75344 - This needs testing and an probably experimental
build, so it will not be out the door before the ports freeze.
Meanwhile, modify BROKEN text to something more informative.

Approved by: ade (mentor)
2004-12-21 20:16:16 +00:00
Palle Girgensohn
ae413f56b6 Add myself as committer, and use my @FreeBSD.org address.
Approved by: ade (mentor)
2004-12-06 03:59:56 +00:00
Ade Lovett
03e63e3bdb Another step along the road to the postgresql new world order.
Note that none of these ports are (yet) hooked into the tree,
and will not compile unless you set a specific environmental
variable.  This should be warning enough to leave well alone
for now :)

Submitted by:	maintainer
2004-11-23 19:15:12 +00:00
Ade Lovett
6fde77975b Update postgresql 7.3.7 -> 7.3.8 and 7.4.5 -> 7.4.6 due to security
advisories in http://www.postgresql.org/news/234.html

Note that postgresql 7.2.x is NOT being updated here since it is
due for termination real soon now.

Submitted by:	maintainer, also referenced in ports/73142 (no patch)
2004-11-05 19:23:27 +00:00
Oliver Eikemeier
ce3890ed88 - update to version 7.3.7:
* Prevent possible loss of committed transactions during crash.

PR:		71179
Submitted by:	SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
Reviewed by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
2004-08-31 13:44:36 +00:00
Edwin Groothuis
754037bb7f Remove empty line from distinfo 2004-05-15 05:09:20 +00:00
Edwin Groothuis
f4b43c46c3 Fix CONFLICTS variable. 2004-05-14 13:16:02 +00:00
Edwin Groothuis
71161d6337 [PATCH] databases/postgresql73: update to 7.3.6
* Revert erroneous changes in rule permissions checking
     * Repair incorrect order of operations in GetNewTransactionId()
     * Ensure configure selects -fno-strict-aliasing even when an
       external value for CFLAGS is supplied
     * Make pg_restore handle 64-bit off_t correctly
     * Make contrib/dblink not assume that local and remote type OIDs
       match (Joe)
     * Quote connectby()'s start_with argument properly (Joe)
     * Don't crash when a rowtype argument to a plpgsql function is NULL
     * Avoid generating invalid character encoding sequences in corner
       cases when planning LIKE operations
     * Ensure text_position() cannot scan past end of source string in
       multibyte cases (Korea PostgreSQL Users' Group)
     * Fix index optimization and selectivity estimates for LIKE
       operations on bytea columns (Joe)

	This version, as with most minor versions, does not require
	a dump/reload to put into place.

PR:		ports/63698
Submitted by:	Palle Girgensohn <girgen@pingpong.net>
2004-05-14 13:13:10 +00:00
Trevor Johnson
88c894c573 Add WITHOUT_NLS knob.
PR:	61836
Submitted by:	Palle Girgensohn (maintainer)
2004-02-05 12:59:14 +00:00
Joe Marcus Clarke
186b8ba82f Add USE_GETTEXT and bump PORTREVISION.
Submitted by:	trevor
Tested by:	bento
2004-02-04 04:36:30 +00:00
Kris Kennaway
b71d153ae3 Use a unique LATEST_LINK 2004-01-29 11:56:43 +00:00
Trevor Johnson
78da40aa98 Now gettext 0.12.1 is gettext-old. 2004-01-23 18:12:26 +00:00
Sean Chittenden
9985ef677d Update the PostgreSQL ports to use the KRB5_HOME variable instead of
LOCALBASE to find krb5-config in the MIT case.

Prodded by: Our friendly folks at the ISC who want to use FreeBSD's
	    PostgreSQL ports instead of an unmanaged build from a tarball.
2004-01-18 05:46:54 +00:00
Edwin Groothuis
7fe9e75768 [MAINTAINER] databases/postgresql73: wrong MD5_FILE for subports
Just realized that after the repo-copy, the MD5_FILE pointer for
	subports was never updated.

PR:		ports/61193
Submitted by:	Palle Girgensohn <girgen@pingpong.net>
2004-01-11 10:32:54 +00:00
Sean Chittenden
7806839dc8 Preemptive strike against future bogons for PORTREVSION bumps. 2003-12-04 10:08:07 +00:00
Sean Chittenden
9593c3ea32 Update to PostgreSQL 7.3.5. See the release notes for details. A
dump is *not* required when upgrading from any 7.3 release to 7.3.5.
Release notes:

http://developer.postgresql.org/docs/postgres/release-7-3-5.html

Notified:	maintainer
Repo-copy by:	joe
2003-12-04 09:19:11 +00:00
Edwin Groothuis
7f0aef52d7 Set pkg-comment only when there isn't one set yet (make port
master/slave clean)
2003-10-13 09:54:16 +00:00
Joe Marcus Clarke
a3108b1e51 Bump the PORTREVISION for the ports directly affected by the gettext upgrade.
Prodded by:	kris
2003-08-26 20:25:58 +00:00
Joe Marcus Clarke
adccc29aad Chase the libintl.so shared lib version. 2003-08-25 05:41:38 +00:00
Sergey A. Osokin
f179ebfd06 Fix my fault in previous commit: put a pkg-message
into right place.

Notify from:	Palle Girgensohn <girgen@pingpong.net>
2003-08-12 14:00:35 +00:00
Sergey A. Osokin
661fe60c66 Update to 7.3.4
"In order to address a potentially serious (although rare)
 server startup failure that was recently reported, we have
 released PostgreSQL version 7.3.4. This release is critical
 for users of PostgreSQL version 7.3.3, and highly recommended
 for all other PostgreSQL users."

Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
PR:		55354
2003-08-12 09:58:13 +00:00
FUJISHIMA Satsuki
b185046be2 get rid of libgnugetopt dependency for -CURRENT,
use USE_GETOPT_LONG instead.
2003-07-14 02:53:03 +00:00
Daichi GOTO
9594eef7a2 postgresql slave ports, reduce unnecessary portrevision bumps
PR:		52867
Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
2003-06-19 09:12:56 +00:00
Sergey A. Osokin
861994e7a0 The control script that ships with the postgres
port (files/pgsql.sh.tmpl) lacks a parameter in the
restart option, causing logs to be send to stdout,
instead of the log file.

Submitted by:	Fernando Schapachnik <fernando@mecon.gov.ar>
Approved by:	maintainer
PR:		53142
Approved by:	fjoe (implicit)
2003-06-11 23:25:24 +00:00
Sergey A. Osokin
22b9703b35 Use ${MASTER_SITE_PGSQL} instead of multiple sites
Submitted by:	osa
Approved by:	maintainer
PR:		50397
Approved by:	fjoe (implicit)
2003-06-11 09:23:15 +00:00
Norikatsu Shigemura
5312f7a038 Remove a patch file which is no need for 7.3.3.
Submitted by:	Mike Harding <mvh@ix.netcom.com>
2003-06-02 03:55:39 +00:00
Norikatsu Shigemura
21b5e839a3 Update to 7.3.3.
1. Optionally link with libc_r to get plpython working. [1]
2. Fix kerberos build. [2]
3. There was a duplication of some declarations. [3]

PR:		ports/52851
PR:		ports/51080 [2]
Submitted by:	Mike Meyer <mwm@mired.org> [1]
Submitted by:	Gerweck <andy@tacnode.com> [2]
Pointed out by:	Mike Harding <mvh@ix.netcom.com> [3]
Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
2003-06-02 01:44:03 +00:00
Sean Chittenden
42b61aee6e Add patch for a fix for braindead applications that were depending on
atoi('') (ex: RT and Horde).  While I'm here, de-"pkg-comment"-ify.  Port
revision bump.

Submitted by:	Larry Rosenman <ler@lerctr.org>
Approved by:	maintainer
2003-02-20 01:14:12 +00:00
Sean Chittenden
3697f927cc Add a patch fix a long standing bug in PostgreSQL with LISTEN/NOTIFY
queues and shutting down the database.  Not bumping port revision, but if
you are having problems related to the above, update as necessary.

Submitted by:	 Larry Rosenman <ler@lerctr.org>
2003-02-19 20:12:55 +00:00
Sean Chittenden
4153e1deae Update PostgreSQL to the maintenance release 7.3.2.
Fixes numerous bugs especially with various interface libraries and
pg_dump.  All users are advised to upgrade. This update fixes all known
problems with the postgresql7 port.  See release notes for details:

http://developer.postgresql.org/docs/postgres/release-7-3-2.html

A dump/restore is *not* required when upgrading to this version.

PR:		ports/47983 [1], ports/47284 [2], ports/47808 [3]
Submitted by:	maintainer [1]
		Jason C. Wells [2]
		Michel Oosterhof <m.oosterhof@xs4all.nl> [3]
2003-02-06 20:46:51 +00:00
Jimmy Olgeni
c4acdc239f Add new man pages.
PR:		47054
Submitted by:	Palle Girgensohn <girgen@rambutan.pingpong.net>
2003-01-14 17:00:24 +00:00
Edwin Groothuis
d2087c2111 Fix DISTFILES typo in databases/postgresql7/Makefile
PR:		ports/46749, ports/46748
Submitted by:	"Sergey A.Osokin" <osa@FreeBSD.org.ru>,Rong-en Fan <rafan@infor.org>
2003-01-04 12:18:54 +00:00
Sean Chittenden
d4d9e7f42f Download the PostgreSQL documentation and MD5 for the test bundle. These
should ideally be downloaded as needed to save bandwidth.

Submitted by:	Eric Hodel
2003-01-04 08:47:23 +00:00
Sean Chittenden
62e1bb4432 Update PostgreSQL to 7.3.1[1]. Fixes builds for spac64. Many speed,
security, and feature additions.  Reduce diffs between postgresql-devel
port.  Re-initdb required when upgrading from previous release.  See
release notes for details.

Schemas added are system catalogs updated. ::braces for impact::

http://developer.postgresql.org/docs/postgres/release.html#RELEASE-7-3-1

PR:		ports/46701
Submitted by:	girgen@pingpong.net
2003-01-04 01:10:15 +00:00
Nick Sayer
b77926499e Port update submitted by maintainer
PR: ports/44983
Submitted by: girgen@pingpong.net
2002-11-06 01:41:53 +00:00
Patrick Li
e62206d1a3 Update to 7.2.3 and maintainer's email address. All advised to update
to this version as soon as possible. Check PR description.

PR:		ports/43676
Submitted by:	maintainer
2002-10-06 07:42:36 +00:00
Akinori MUSHA
7f72a16364 Remove a dead .jp mirror and add the official .jp mirror instead.
Submitted by:	fenner's distfiles survey
2002-09-13 10:41:46 +00:00
Trevor Johnson
c80f4eaad8 Update to 7.2.2, which fixes several security bugs. Do not install
documentation--it will be in a separate port.

PR:			42009
Submitted by:		Palle Girgensohn (maintainer)
2002-08-26 08:12:40 +00:00
Trevor Johnson
8a19a03907 Forbid because of unconfirmed security bugs:
The following buffer overruns have been identified and
	addressed [in 7.2.2]:

	    * in handling long datetime input
	    * in repeat()
	    * in lpad() and rpad() with multibyte
	    * in SET TIME ZONE and TZ env var
2002-08-25 04:49:26 +00:00
Ade Lovett
c8eaa93644 Chase shlib rev of devel/gettext
Submitted by:	lots and lots
Pointy hat to:	ade
2002-08-01 16:22:41 +00:00
Sheldon Hearn
a1223905c9 Fix build on -CURRENT:
* The compiler in -CURRENT now complains if you precede -I/usr/include
  with -I... .  The same applies to -I/usr/lib .

* The distribution's configure file treats the compiler's unexpected
  warning message as a failure and errors out.

Maintainer notified in private mail.
2002-06-26 19:46:51 +00:00
Ade Lovett
f18cbf2fa6 gettext upgrade uber-patch (stage 3)
- switch devel/gettext (0.11.1) on, installing full package
- flip devel/gettext-old (0.10.35) to installing only static binaries
  with a "-old" suffix -- gettext-old will have its deorbit burn
  sequence initiated just after 4.6-RELEASE
- fix up ports for the new world order

Reviewed by:	portmgr
2002-04-12 17:10:20 +00:00
Ying-Chieh Liao
b345761190 upgrade to 7.2.1
PR:		36975
Submitted by:	maintainer
2002-04-11 04:58:11 +00:00
Mikhail Teterin
58f343497e Fix some bitrot for the non-default case of WITH_GETTEXT -- lib-depend
on -lintl instead of build-depending on msgfmt and make sure -lintl is
linked into the shared -lpq.

Approved by:	maintainer
2002-04-01 23:04:21 +00:00
Maxim Sobolev
62f2687e21 Add USE_SUBMAKE, where it might be necessary. 2002-03-25 09:19:20 +00:00