Commit graph

300 commits

Author SHA1 Message Date
Chris Rees
56e5d02d70 Various tidiness patches:
- Compact -plperl ports
 - Portlint for 90-plperl
 - Update version numbers in pkg-install-server
 - s/spaces/tabs/
 - Use ${} instead of $()
 - s/YES/yes/
 - Tidy IGNORE values

Submitted by:	sunpoet
2012-03-05 20:10:22 +00:00
Chris Rees
d539cdd016 Over to new team, pgsql@FreeBSD.org 2012-03-04 17:19:59 +00:00
Palle Girgensohn
45022c0ba2 Fix pkg-plist 2012-02-28 21:37:40 +00:00
Palle Girgensohn
9b471aa835 The PostgreSQL Global Development Group today released security updates for all
active branches of the PostgreSQL object-relational database system, including
versions 9.1.3, 9.0.7, 8.4.11 and 8.3.18.

Users of pg_dump, users of SSL certificates for validation or users of triggers
using SECURITY DEFINER should upgrade their installations immediately. All
other database administrators are urged to upgrade your version of PostgreSQL
at the next scheduled downtime. More details on the security fixes here:

URL:	http://www.postgresql.org/about/news/1377/

Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0866
Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0867
Security: http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-0868
2012-02-27 16:24:48 +00:00
Chris Rees
6464561a27 Remove p5- from postgresql*-plperl 's mention in pkg-message-client 2012-02-19 19:35:02 +00:00
Chris Rees
92ff236189 - To preserve my sanity, slave 82 and 83 to 84, and 90 to 91, resulting in
three fewer Makefiles to maintain

- Switch patch master site

- Various cleanups
2012-01-25 21:12:33 +00:00
Chris Rees
f2c674e5ef Add OPTION to postgresql9[10]-contrib for building without uuid-ossp
Requested by:	sunpoet
2012-01-23 20:36:58 +00:00
Jason Helfman
8575a6c942 - Add profile support for PostgreSQL servers
- re-assign LOCALBASE to PREFIX
- add PG_GROUP to SUB_PLIST for packaging fix
- fix permissions for package installations

PR:	ports/162776
Submitted by:	jgh, Phil Phillips < pphillips at experts-exchange.com >
Reviewed by: rene (mentor)
Approved by: crees (maintainer, mentor)
2012-01-22 06:59:27 +00:00
Jason Helfman
e8e6b80a3a fix typo %%PG_GROUP%% in pkg-plist-server
Spotted by: decke
Approved by:	crees, rene (mentors,implicit)
2012-01-19 19:06:00 +00:00
Thomas Abthorpe
c541f27f86 - Reset ports due to maintainer timeouts and lack of response to emails
With hat:	portmgr
2012-01-19 03:35:49 +00:00
Jason Helfman
1cfcd19427 Fix plist to create directory with proper ownerships PostgreSQL database
may start.

PR:	ports/164273 (critical)
Submitted by: Alexander Yerenkow <yerenkow at gmail.com>
Approved by:	maintainer-timeout: girgen (1 day), portmgr (linimon)
2012-01-18 21:35:11 +00:00
Doug Barton
83eb2c3700 In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().

In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
2012-01-14 08:57:23 +00:00
Palle Girgensohn
c87711cb50 The PostgreSQL Global Development Group today released updates for all
active branches of the PostgreSQL object-relational database system,
including versions 9.1.2, 9.0.6, 8.4.10, 8.3.17 and 8.2.23.

This release contains 52 fixes to version 9.1, and a smaller number of
fixes to older versions, including:

- Fix bugs in information_schema.referential_constraints view**
- Correct collations for citext columns and indexes**
- Prevent possible crash when joining to a scalar function
- Prevent transitory data corruption of GIN indexes after a crash
- Prevent data corruption on TOAST columns when copying data
- Fix failures during hot standby startup
- Correct another "variable not found in subplan target list" bug
- Fix bug with sorting on aggregate expressions in windowing functions
- Multiple bug fixes for pg_upgrade
- Change Foreign Key creation order to better support
 self-referential keys**
- Multiple bug fixes to CREATE EXTENSION
- Ensure that function return type and data returned from PL/perl agree
- Ensure that PL/perl strings are always UTF-8
- Assorted bug fixes for various Extensions
- Updates to the time zone database, particularly to CST6

Changes marked with ** above require additional, post-update steps in
order to fix all described issues.

URL:	http://www.postgresql.org/docs/current/static/release.html

Also, fix a pthread problem in the FreeBSD port. [1]
PR:	160580 [1]
Feature safe:	yes
2011-12-05 16:45:14 +00:00
Chris Rees
166e936d8c Add DTRACE option for postgresql84-server
PR:		ports/150431
Submitted by:	rpaulo

Fix compilation with GSSAPI

PR:		ports/161786
Submitted by:	rea
Reviewed by:	mandree, John Marshall <john.marshall@riverwillow.com.au>

Mark IGNORE if DTRACE enabled for FreeBSD < 900021 without userland dtrace

PR:		ports/152502
Submitted by:	Sevan Janiyan <venture37@geeklan.co.uk>

Approved by:	maintainer timeout (girgen, at least 2 months)
Feature safe:	yes
2011-11-30 18:49:31 +00:00
Chris Rees
213e27c72b - Fix packaging issue (missed %%PG_USER%% in pkg-plist-server)
- Remove extra bsd.port.pre.mk include from postgresql82-server

PR:		ports/161816 ports/161824 ports/161821
Submitted by:	Jason Helfman (jhelfman@e-e.com)
Approved by:	portmgr (pav)
2011-10-20 21:07:29 +00:00
Chris Rees
35155d9d3f This time remember to bump PORTREVISION 2011-10-19 18:29:58 +00:00
Chris Rees
b91d7d2f81 Fix SUB_LIST issue by deconditionalising it.
Temporary fix, but will stop the flurry of incoming PRs related.

PR:		ports/161779 ports/161774 ports/161791 ports/161771 ports/161769
Submitted by:	Many people, original fix suggested by Jason Helfman (jhelfman@e-e.com)
Approved by:	portmgr (pav)
2011-10-19 18:21:25 +00:00
Palle Girgensohn
d9a60ff20f The PostgreSQL Global Development Group today released minor version updates
for all active branches of the PostgreSQL object-relational database system,
including versions 9.1.1, 9.0.5, 8.4.9, 8.3.16 and 8.2.22.

All users are strongly urged to update their installations at the next
scheduled downtime.

URL:	http://www.postgresql.org/about/news.1355

Cleanup ports. Better handling of the knob PG_USER.
Also add uuid to 9.0 and 9.1 contrib ports.
2011-10-18 09:03:33 +00:00
Martin Matuska
8a9cb57c66 - Add SSL to OPTIONS
- Make portlint happier
- Fix typo

PR:		ports/160914
Approved by:	maintainer (timeout)
2011-10-06 08:45:16 +00:00
Sunpoet Po-Chuan Hsieh
9927ba32dd - Unbreak postgresql-plpython: allow build with threaded python
- Pass maintainership to submitter

PR:		ports/159843
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
2011-10-02 20:07:40 +00:00
Eygene Ryabinkin
7323d99cc7 Don't rebuild manual pages if configure was changed
Sometimes patches for PostgreSQL touch its configure script.  And the
logics inside current Makefiles for the documentation makes the manual
pages (and other stuff) to be dependent of the timestamp of the
top-level configure file.  This triggers the rebuild of the manual
pages, but since some additional XML-related tools are needed, this
rebuild can fail.

PR: 159844
Approved by: maintainer timeout (1 month)
Feature safe: yes
2011-09-25 22:20:28 +00:00
Eygene Ryabinkin
7c08337382 PostgreSQL: unbreak 'make describe'
It was a really bad idea to include bsd.port.pre.mk
inside a conditional expression.

Detected by: portsnap buildbox
Pointyhat to: rea
2011-09-25 19:40:10 +00:00
Eygene Ryabinkin
d335e2960e PostgreSQL: unbreak GSSAPI support
The problem with GSSAPI without Kerberos is that configure.in has
very funny logics of choosing GSSAPI libraries:
{{{
if test "$with_gssapi" = yes ; then
  if test "$PORTNAME" != "win32"; then
    AC_SEARCH_LIBS(gss_init_sec_context, [gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'], [],
                                  [AC_MSG_ERROR([could not find function 'gss_init_sec_context' required for GSSAPI])])
  else
    LIBS="$LIBS -lgssapi32"
  fi
fi
}}}

This makes configure to happily choose -lgssapi_krb5 when the system
has Kerberos support (NO_KERBEROS is absent), but ld's '--as-needed'
will throw this library away when no Kerberos functions are used and
linker won't produce 'postgres' binary whining about unresolved
symbols:
{{{
cc -O2 -pipe -fno-strict-aliasing -Wall -Wmissing-prototypes \
-Wpointer-arith -Wdeclaration-after-statement -Wendif-labels \
-fno-strict-aliasing -fwrapv -L../../src/port -L/usr/local/lib \
-rpath=/usr/lib:/usr/local/lib -L/usr/local/lib  -L/usr/local/lib \
-Wl,--as-needed -Wl,-R'/usr/local/lib' -Wl,-export-dynamic \
[... a bunch of *.o files was stripped ...]
../../src/timezone/pgtz.o ../../src/port/libpgport_srv.a -lintl -lssl \
-lcrypto -lgssapi_krb5 -lcrypt -lm -o postgres
libpq/auth.o: In function `pg_GSS_error':
auth.c:(.text+0x6e): undefined reference to `gss_display_status'
auth.c:(.text+0x8e): undefined reference to `gss_release_buffer'
auth.c:(.text+0xc5): undefined reference to `gss_display_status'
auth.c:(.text+0xe5): undefined reference to `gss_release_buffer'
libpq/auth.o: In function `ClientAuthentication':
auth.c:(.text+0x82d): undefined reference to `gss_delete_sec_context'
auth.c:(.text+0x941): undefined reference to `gss_accept_sec_context'
auth.c:(.text+0x9f1): undefined reference to `gss_release_buffer'
auth.c:(.text+0xaf3): undefined reference to `gss_release_cred'
auth.c:(.text+0xb10): undefined reference to `gss_display_name'
auth.c:(.text+0xbc8): undefined reference to `gss_release_buffer'
auth.c:(.text+0x10b0): undefined reference to `gss_release_buffer'
auth.c:(.text+0x111e): undefined reference to `gss_release_buffer'
libpq/pqcomm.o: In function `pq_close':
pqcomm.c:(.text+0x105a): undefined reference to `gss_delete_sec_context'
pqcomm.c:(.text+0x107d): undefined reference to `gss_release_cred'
gmake: *** [postgres] Error 1
}}}

Also, ports for PostgreSQL 8.4 and 9.0 had their <bsd.port.pre.mk>
misplaced: OPTIONS came after it, so WITH_/WITHOUT_ knobs will not
be really activated.

PR: 160050
Feature safe: yes
Approved by: maintainer timeout (1 month)
2011-09-25 18:09:06 +00:00
Dmitry Marakasov
6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00
Chris Rees
c413f3f468 Revert previous commit -- appears to cause rc problems as I missed some subs
http://www.mail-archive.com/freebsd-ports@freebsd.org/msg35324.html

PR:		ports/157558 ports/157559 ports/157666 ports/157669
Submitted by:	rihad@mail.ru
Approved by:	maintainer (girgen; implicit -- this reverts a commit I did after maintainer timeout)
2011-08-15 14:52:31 +00:00
Sunpoet Po-Chuan Hsieh
3903a44e88 - Fix databases/p5-postgresql-plperl build with Perl 5.14
This patch is for PostgreSQL 8.2, 8.3, 8.4 and 9.0.
PostgreSQL 9.1 has it already.

PR:		ports/158727
Submitted by:	sunpoet (myself)
Approved by:	girgen (maintainer timeout, 5 weeks)
2011-08-14 01:32:13 +00:00
Chris Rees
5d74c0654a Use USERS and GROUPS
PR:		ports/157669
Submitted by:	me
Approved by:	maintainer timeout (girgen, 7 weeks)
2011-08-12 10:11:22 +00:00
Baptiste Daroussin
10f5e8576f - update ICU to 4.8
- chase library bump
- add an entry in UPDATING for instructions
- remove old conflict lines
2011-07-10 21:06:39 +00:00
Pav Lucistnik
9be11114a8 - Mark BROKEN on FreeBSD 9.X: does not link
libpq/auth.o: In function `pg_GSS_error':
  auth.c:(.text+0x6e): undefined reference to `gss_display_status'
  [..]

Reported by:	pointyhat
2011-05-17 22:26:08 +00:00
Palle Girgensohn
6bbab5e1ef Fix a problem with creating the postgresql user when using a package. 2011-05-02 21:37:31 +00:00
Palle Girgensohn
6b594ee023 Fix problem creating postgres user when PGUSER was set.
PR: 156662
2011-04-27 13:28:51 +00:00
Palle Girgensohn
4372e52960 Fix typo in 502.pgsql script
PR: 156515
2011-04-20 15:30:33 +00:00
Palle Girgensohn
73c856222e Update PostgreSQL to 9.0.4, 8.4.8, 8.3.15 and 8.2.21.
This update contains a critical fix to the pg_upgrade utility
which prevents significant downtime issues. Do not use
pg_upgrade without installing this update first.

The issue with pg_upgrade and the fix are detailed on the PostgreSQL
wiki: http://wiki.postgresql.org/wiki/20110408pg_upgrade_fix
Users who have already used pg_upgrade should run the database repair
script given on that page on their databases as soon as possible.

See the release notes for each version at
http://www.postgresql.org/docs/current/static/release.html for a full
list of changes with details.

Allow the username of the postgresql user to configurable for 8.4 and 9.0.
Largely inspired by the work of Jason Helfman [153668, 153136].

Change PGUSER knob to PG_USER not to clash with PGUSER environment.

PR: 153668, 153136, 155493, 155137
2011-04-18 23:34:27 +00:00
Palle Girgensohn
3832212b4c Update to versions 9.0.3, 8.4.7, 8.3.14 and 8.2.20.
This update includes a security fix which prevents a buffer overrun in
the contrib module intarray's input function for the query_int type.
This bug is a security risk since the function's return address could
be overwritten by malicious code.

All supported versions of PostgreSQL are impacted. However, the
affected contrib module is optional. Only users who have installed the
intarray module in their database are affected. See the CVE Advisory
at http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4015

This release includes 63 bugfixes, including:

- Avoid unexpected conversion overflow in planner for distant date values
- Fix assignment to an array slice that is before the existing range
of subscripts
- Fix pg_restore to do the right thing when escaping large objects
- Avoid failures when EXPLAIN tries to display a simple-form CASE expression
- Improved build support for Windows version
- Fix bug in contrib/seg's GiST picksplit algorithm which caused
performance degredation

The 9.0.3 update also contains several fixes for issues with features
introduced or changed in version 9.0:

- Ensure all the received WAL is fsync'd to disk before exiting walreceiver
- Improve performance of walreceiver by avoiding excess fsync activity
- Make ALTER TABLE revalidate uniqueness and exclusion constraints when needed
- Fix EvalPlanQual for UPDATE of an inheritance tree when the tables
are not all alike

PR:		ports/154436
Security:	http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-4015
Feature safe:	yes
Approved by:	portmgr
2011-02-01 14:48:17 +00:00
Andrej Zverev
ece2d96a59 Fix @dirrmtry since it already filter stderr and return true.
PR:		ports/153888
Submitted by:	az@
Approved by:	maintainer (timeout)
Feature safe:	yes
2011-01-30 09:28:38 +00:00
Martin Matuska
a76c10aedc - Update to 9.0.2
- Unify ICU handling

PR:		ports/153245
Approved by:	maintainer (timeout)
2010-12-31 09:57:21 +00:00
Baptiste Daroussin
bb63afd2dd - Prepare for devel/icu4 deletion
- fix py-icu with icu4.6
- fix portsgresql*server with icu 4.6
- remove now useless icu patch from webkit
2010-12-16 18:47:56 +00:00
Baptiste Daroussin
513495a09a Chase devel/icu upgrade
Add an updating note
2010-12-15 11:37:49 +00:00
Daniel Gerzo
29d878aa26 - Fix build if WITH_ICU or WITH_ICU4 defined (bsd.autotools.mk update)
Obtained from:	mm
Approved by:    portmgr (linimon)
2010-12-09 18:46:07 +00:00
Ade Lovett
4a8684e352 Sync to new bsd.autotools.mk 2010-12-04 07:34:27 +00:00
Sunpoet Po-Chuan Hsieh
989715b602 - Use dirrmtry on share/postgresql/tsearch_data for postgresql{83|84|90}-server
- Bump PORTREVISION

PR:		ports/151882
Submitted by:	sunpoet (myself)
Approved by:	girgen (maintainer timeout, 20 days)
2010-11-22 19:21:09 +00:00
Rene Ladan
2e5b524b0c - Fix optional dependency on security/heimdal
- Bump PORTREVISION
PR:		ports/152029
Submitted by:	Joerg Pulz [Joerg.Pulz frm2.tum.de]
Approved by:	Ryan Steinmetz <rpsfa@rit.edu> (maintainer of net/freeradius*)
		girgen (maintainer of databases/postgresql*-server,
		        14 day timeout)
2010-11-21 23:48:49 +00:00
Palle Girgensohn
799c029c0d Make postgresql90-client depend on libxml. Technically it does not depend on libxml,
only postgresql90-server does, but since we don't want two different pg_config setups,
one for client and one for server, I'm bringing the libxml dependency on board until
I can find out a better way to solve this.
2010-10-26 12:34:27 +00:00
Ade Lovett
6abd00a86b Punt autoconf267->autoconf268 2010-10-16 11:52:47 +00:00
Palle Girgensohn
060a528952 Update all PostgreSQL ports to latest versions.
Also, try to break the previous 1:1 relation between FreeBSD system and
PostgreSQL versions installed. Use different PREFIX:es to install
different versions on the same system.

PR: ports/132402, ports/145002, ports/146657
2010-10-07 06:58:10 +00:00
Palle Girgensohn
c6dcf78107 PostgreSQL 9.0 is here! The PostgreSQL Global Development Group
announces the availability of our most eagerly awaited release.
PostgreSQL 9.0 includes built-in, binary replication, and over a dozen
other major features which will appeal to everyone from web developers
to database hackers.

9.0 includes more major features than any release before it, including:
* Hot standby
* Streaming replication
* In-place upgrades
* 64-bit Windows builds
* Easy mass permissions management
* Anonymous blocks and named parameter calls for stored procedures
* New windowing functions and ordered aggregates

... and many more.  For details on the over 200 additions and
improvements in this version, developed by over a hundred contributors,
please see the release notes.

"These kinds of feature additions continue to make a strong case for why
mission-critical technology tasks can continue to depend on the power,
flexibility and robustness of PostgreSQL,” said Afilias CTO Ram Mohan.

More information on PostgreSQL 9.0:
* Release notes
  http://www.postgresql.org/docs/9.0/static/release-9-0
* Presskit
  http://www.postgresql.org/about/press/presskit90
* Guide to 9.0:
  http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.0

---
PR: 150430, Add dtrace
2010-09-20 13:46:47 +00:00
Ade Lovett
8262a7b51d Autotools update. Read ports/UPDATING 20100915 for details.
Approved by:	portmgr (for Mk/bsd.port.mk part)
Tested by:	Multiple -exp runs
2010-09-15 18:35:24 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Martin Matuska
12c4a1fce7 - Add ICU 4.x support
- Bump PORTREVISION

PR:		ports/143841
Submitted by:	Andrei Lavreniyuk <andy.lavr@reactor-xg.kiev.ua>
Approved by:	maintainer (timeout)
2010-03-25 22:58:11 +00:00
Xin LI
0bf43dd57d Update to 8.4.3.
PR:		ports/144863
Submitted by:	Alexander <alp rsu ru>
Security:	e050119b-3856-11df-b2b2-002170daae37
With hat:	ports-security@
2010-03-25 21:47:51 +00:00