Commit graph

209 commits

Author SHA1 Message Date
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Palle Girgensohn
0460921154 Update PostgreSQL to 7.3.19, 7.4.17, 8.0.13, 8.1.9 and 8.2.4 respectively:
The PostgreSQL Global Development Group has released updated versions
 for PostgreSQL 8.2 and all back versions to patch a privilege
 escalation exploit in SECURITY DEFINER functions.  All users of this
 feature are urged to update to the latest minor version and follow
 instructions on securing these functions as soon as possible.  This
 minor release also contains other fixes, so all users should plan to
 deploy it.

 Once you have updated, additional steps are required to secure your
 database against the exploit.  Please read the release notes at
 http://www.postgresql.org/docs/8.2/static/release.html and the
 TechDocs article at http://www.postgresql.org/docs/techdocs.77 on how
 to lock down your security definer functions, if you use them.

 As always, application of a minor release does not require a dump and
 reload of the database.

 The frequency of security fixes recently is a result of increased
 scrutiny of the PostgreSQL code by government agencies and
 security-conscious companies.  Rapid turnaround on security patches
 is key to keeping PostgreSQL the most secure SQL database.  Your work
 and vigilance in applying the latest security updates ensures that
 there will never be a PostgreSQL "worm".

http://www.postgresql.org/docs/8.2/static/release-8-2-4.html
http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-9
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-13
http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-17

http://www.postgresql.org/docs/techdocs.77

Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2138
2007-04-23 16:10:54 +00:00
Norikatsu Shigemura
ded27d2f66 Respect PTHREAD_CFLAGS/PTHREAD_LIBS.
Approved by:	maintainer timeout (1 month)
2007-03-18 16:23:18 +00:00
Palle Girgensohn
8fb2e60bb6 Update PostgreSQL 8.x to 8.0.12, 8.1.8 and 8.2.3 respectively:
The recent security release (8.0.11, 8.1.7, 8.2.2) has been withdrawn.
  It contained an issue which causes error with custom data types, type
  constraints and expression indexes. These upgrades fix the problem.
2007-02-07 09:51:48 +00:00
Palle Girgensohn
dc9b394b5a Update PostgreSQL with, amongst other things, two security fixes:
A vulnerability allows suppressing the normal checks that a SQL
  function returns the data type it's declared to do. These errors can
  easily be exploited to cause a backend crash, and in principle might
  be used to read database content that the user should not be able to
  access. [CVE-2007-0555]

  A vulnerability involving changing the data type of a table column
  can easily be exploited to cause a backend crash, and in principle
  might be used to read database content that the user should not be
  able to access. [CVE-2007-0556]

The release includes a set of other fixes as well. Please see the
release information at
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-11

Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0555
Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0556
2007-02-05 15:41:25 +00:00
Palle Girgensohn
6b11e89876 Update postgresql to 8.2.1, 8.1.6, 8.0.10, 7.4.15 and 7.3.17.
Release notes:
http://www.postgresql.org/docs/7.3/static/release.html#RELEASE-7-3-17
http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-15
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-10
http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-6
http://www.postgresql.org/docs/8.2/static/release-8-2-1.html

The server-side utilities of postgresql (initdb, initlocation,
ipcclean, pg_controldata, pg_ctl, pg_id and pg_resetxlog) are now
installed by the respective postgresql*-server port (previously they
where installed with the client). If you update the client, you should
also update the server to make sure you are not left without the
server-side tools. Do something like:

    portupgrade postgresql-client postgresql-server
2007-01-09 16:29:35 +00:00
Palle Girgensohn
f79096291a Update PostgreSQL to latest versions: 8.1.5, 8.0.9, 7.4.14 and 7.3.16.
Release notes:
8.1.5  http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-5
8.0.9  http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-9
7.4.14 http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-14
7.3.16 http://www.postgresql.org/docs/7.3/static/release.html#RELEASE-7-3-16

Change name of the rc script from '010.pgsql.sh' to 'postgresql'

Add optional hierachy patch added for 7.4 and 8.1 ports.

Chase heimdal libs update [reported by several]

For 8.1+ the port enables autovacuum in ~pgsql/postgresql.conf when
running initdb

Cleanup the ports, moving pkg-message-* to files/pkg-message-*.in and
files/pgsql.sh.tmpl to files/postgresql.in. [ports/97767]

PR: ports/97767, submitted by delphij@FreeBSD.org
2006-11-08 17:07:53 +00:00
Palle Girgensohn
c03d288c14 The update to handle different versions of ICU was not sufficient.
Update the patches to handle ICU version 3.6 and fall back to 3.4.
2006-09-27 12:58:53 +00:00
Palle Girgensohn
ec763040d0 Update the patch to be more agnostic with regards to the version of icu.
It now links with icu-3.6 as well as the earlier versions.
2006-09-20 09:00:40 +00:00
Maxim Sobolev
f782d82915 There is no point in setting mode of rc.d file to be 554, set it to 555.
Otherwise there could be problems with the service not starting up in the
case when owner of the file has been changed.
2006-06-26 22:24:10 +00:00
Palle Girgensohn
85e4e49806 Update all PostgreSQL to fix a security flaw
The PostgreSQL Global Development Group today released versions 8.1.4, 8.0.8,
7.4.13 and 7.3.15. This is an urgent update to close a security hole which
can permit a SQL injection attack on some applications running PostgreSQL.

Users are urged to apply the update as soon as reasonably possible. Since the
update affects client functionality, most driver projects will be updating
this week as well.

Because the security issue involved is complex, we have added a section in
Techdocs to explain it: http://www.postgresql.org/docs/techdocs.52. Please
read this first before applying the updates.

Also, fix rc_subr startup problems on FreeBSD-7.x.

Security:	http://www.postgresql.org/docs/techdocs.50
PR:		ports/95154
2006-05-23 21:18:58 +00:00
Doug Barton
c49d1a3273 Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
2006-02-20 20:47:50 +00:00
Palle Girgensohn
48795c3f36 Security patch, update to version 8.0.7.
Security:	http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-0-7
2006-02-18 12:36:05 +00:00
Edwin Groothuis
f2ab1844f2 Add missing ) around SIZE statements. 2006-01-30 09:38:49 +00:00
Edwin Groothuis
d568611c3e eplace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtry
Approved by:    krion@
PR:             ports/88711 (related)
2006-01-22 05:52:28 +00:00
Palle Girgensohn
1d992c44d7 Update postgresql with latest patch release.
A critical fix repairs an error in ReadBuffer that can cause data loss
due to overwriting recently-added pages.  This applies to the 8.1 and
8.0 branches on all platforms.

Note that this update might require a reindex of textual columns under
certain conditions; please see UPDATING.

Other fixes included are:
-- Character string locale comparison bug. This may require a REINDEX
    on text column indexes in some locales, such as Hungarian.
-- Prevent accidental changes of locale by plperl
-- Two fixes for Japanese encodings
-- Two fixes for COPY CSV
-- Fixes for functions returning RECORD
-- Fixes to autovacuum, dblink and pgcrypto
2006-01-09 17:30:38 +00:00
Palle Girgensohn
d6b6d44388 Handle a change in rc.subr. nowadays, "faststart" is used instead of
"start" when booting, since there's no need waste time checking for
running processes when the OS is starting up.

Bumping portrevision.

PR:		90884
Submitted by:	Victor Snezhko <snezhko@indorsoft.ru>
2005-12-25 20:06:23 +00:00
Palle Girgensohn
7f5a4fde74 Update postgresql to 8.0.5
Submitted by:	Hirohisa Yamaguchi <umq@ueo.co.jp>
PR:		90444
2005-12-22 20:14:31 +00:00
Palle Girgensohn
b53c2ad779 Fix bad distro name for hier.
Pointed out by: Andreas Steinel
2005-11-29 13:31:01 +00:00
Ade Lovett
54a0b86543 Mass-conversion to the USE_AUTOTOOLS New World Order. The code present
in bsd.autotools.mk essentially makes this a no-op given that all the
old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in
exactly the same way as USE_AUTOTOOLS itself.

Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME
team -- all GNOME 2.12.x ports use it.

Preliminary documentation can be found at:
	http://people.FreeBSD.org/~ade/autotools.txt

which is in the process of being SGMLized before introduction into the
Porters Handbook.

Light blue touch-paper.  Run.
2005-11-15 06:52:12 +00:00
Palle Girgensohn
170eff296f Let postgresql (libpq.so) only link with the Kerberos implementations
installed from ports. The base heimdal distribution installs libraries
that have no depenency information. While this is quite correct, it
means that each library that links with libpq.so must also know if
libpq.so is linked with libkrb.so et al. Problem is, there's no good
way to get this information (pg_config has a --libs option starting at
version 8.1) and all ports using postgresql must be changed to make it
possible to link with a libpq.so that was configured to use the
Kerberos implementation installed in /usr by default. Hence, we
require one of the ports (heimdal or krb5) if postgresql is to be
linked with Kerberos. At least for now, until we can fix this in some
better way.

Also, if MIT Kerberos (security/krb5) is installed, users should
ideally remove the base heimdal installation so linkers will not pick
it up in preference to the krb5 libs (base heimdal has higher version
numbers than krb5 port).

PR: 80869, 88098, 85178
2005-11-14 23:59:26 +00:00
Palle Girgensohn
8eccf84f79 Chase hier patch upgrade to version 0.5.5. 2005-11-09 13:56:04 +00:00
Palle Girgensohn
8680c7cecd Chase the update of icu. Don't update portrevision since the patch is
optional.

PR:	88242
2005-10-30 22:25:46 +00:00
Palle Girgensohn
b3f11831be Upgrade to 8.0.4
For more info about this release, please see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-4
2005-10-05 01:26:26 +00:00
Palle Girgensohn
7417412a43 Fix building with the HIER option. It needs bison. [1]
Update the ICU patch with a assert fix, courtesy of Magnus Hagander.

Pointed out by: Marcos Tischer Vallim [ports/84720]
PR:	80377, 84720
2005-08-30 01:33:40 +00:00
Palle Girgensohn
ebc37b4280 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-05-11 00:40:15 +00:00
Palle Girgensohn
2acfba6325 Update the ICU patch with some bug fixes 2005-05-06 02:36:50 +00:00
Palle Girgensohn
aded68be0b Update the link to the ICU patch. 2005-04-16 22:51:52 +00:00
Palle Girgensohn
763de9d278 Upgrade PostgreSQL to 8.0.2. Here's the brief release note:
Over the past several weeks, Tom Lane has been working on replacing
  our old Cache Management Alorithm (ARC) with a new, patent free one
  (2Q).

  In order to reduce the number of 8.x deployments out there that are
  using the old manager, we have just released 8.0.2, and encourage
  adminstrators to upgrade at their earliest convience.

  For those already running 8.x on your production servers, please
  note that this upgrade does *NOT* require a dump restore, but due to
  a bump in the major version number for the client library (libpq),
  it *WILL* require all client applications to be recompiled at the
  same time.

For full release info, see
http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-2

Apart from the upgrade, three new config options are added:

 A patch (experimental) for supporting proper collation
 of utf-8 encoded locales, using IBM's ICU package (devel/icu). See
 http://people.freebsd.org/~girgen/postgresql-icu/README.html for more
 info.

 An optional patch written by Evgen Potemkin, which allows
 PostgreSQL to make hierarchical queries à la Oracle [1].

 An option is added that allows the use of 64 bit ints to
 store dates [2].

PR: ports/79165 [1], ports/76999 [2]
Submitted by: Marcos Tischer Vallim [1], Christian Ullrich [2]
Approved by: ade, seanc (implicit)
2005-04-13 23:15:49 +00:00
Palle Girgensohn
7506374126 Modify 8.0's startup script to simulate a full login (su -l) [1]. Also
add support to select login class for running postgresql [2].

The new startup script, using rc.subr, is now installed for all
versions of postgresql. Bump portrevisions, since startup script is
modified.

PR:		78630 [1]
Submitted by:	Vivek Khera [1]
Submitted by:	Brian B. [2]
Approved by:	seanc (implicit)
2005-03-19 03:51:45 +00:00
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
e2621de6a1 The postgresql_* knobs from /etc/rc.conf where read too late to
actually make a difference.

Noticed by:	Salvatore Montefusco, Brian B.
Approved by:	ade (mentor)
2005-02-15 00:30:50 +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
91f82d0809 Add some forgotten manpages.
Approved by: ade (mentor)
2005-02-06 21:59:13 +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
771a9c4a3d Remove forgotten "beta" no_latest_link, and fix broken master_site_subdir
Approved by: seanc (mentor)
2005-01-31 14:56:24 +00:00
Palle Girgensohn
dde08c696b Say hello to postgresql-8.0. Some of the highlights of the new version
are savepoints (within transactions), point-in-time recovery and
tablespaces. Check out the release notes and the shiny new
PostgreSQL.org website at:

http://www.PostgreSQL.org/docs/8.0/static/release.html#RELEASE-8-0

The port uses the new postgresql ports' layout and is split 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.

PR:		75344
Approved by:	portmgr@ (kris), ade & sean (mentors)
2005-01-31 00:36:16 +00:00
Sean Chittenden
1b5152db3b Enter PostgreSQL 8.0.0. Given 4.11 is still being released, abuse -devel by
stuffing the 8.0.0 release in here for the time being.  Port epoch bumped
because 8.0.rc* is greater than 8.0.0.  A note from UPDATING to people who
want to use 8.0.0 via -devel in production:

  The -devel port has been updated to contain 8.0 release since
  postgresql80-server can not be updated until 4.11 is released and the
  changes in PR ports/75344 are committed.  Users who need 8.0 now can
  use the -devel port, however, once postgresql80-server has been
  committed, -devel will begin tracking 8.1.  Please be smart about
  tracking ports and if used in production, update to
  databases/postgresql80-server as soon as it becomes available.  No
  dump/reload will be required when changing from -devel to
  postgresql80-server.

Check out the release notes and the shiny new PostgreSQL.org website at:

http://www.PostgreSQL.org/docs/8.0/static/release.html#RELEASE-8-0
2005-01-23 10:06:21 +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
bdfa85f755 - update to version 7.4.5:
* Prevent possible loss of committed transactions during crash
* Repair possible crash during concurrent btree index insertions

PR:		71176
Submitted by:	SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
Reviewed by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
2004-08-31 13:46:52 +00:00
Vanilla I. Shu
10b5ded080 Upgrade to 7.4.3.
PR:		ports/68456
Submitted by:	maintainer
2004-06-28 21:48:56 +00:00
Sergey A. Osokin
1bff58fcf6 Add a note about changes in latest release of PostgreSQL.
Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
PR:		64933
2004-03-30 11:14:24 +00:00
Sergey A. Osokin
88154be9c2 Update to latest release 7.4.2.
Release notes available at http://www.postgresql.org/news/173.html

NOTICE: unlike most minor versions, this version does require
some updates to the pg_* system tables.  Full instructions for
how to do this are included in the full HISTORY file.
DO NOT UPGRADE WITHOUT READING THESE INSTRUCTIONS.

SIZEfy.
Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
PR:		64105
2004-03-11 14:45:42 +00:00
Trevor Johnson
6c2cc3d5fd Add WITHOUT_NLS knob. Move USE_GETTEXT to proper place.
PR:		61836
Submitted by:	Palle Girgensohn (maintainer)
Pointy hat to:	me
2004-02-05 12:56:00 +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
Kirill Ponomarev
cf746e92c2 - Add note that the function "elog" has been removed from
pg-7.4

PR:		ports/62167
Submitted by:	maintainer
2004-02-01 15:05:44 +00:00