Commit graph

300 commits

Author SHA1 Message Date
Chris Rees
5e91b431cd Install new pg_basebackup tool by default
Submitted by:	kuriyama
2012-02-05 15:32:49 +00:00
Chris Rees
8024910f7a Minor changes for UNIQUENAME; remove excessive hyphens
Apologies for the noise here; I'm getting used to the consequences of
slaving ports like this-- postgresql has an unusual arrangement here.

Submitted by:	Neil Darlow (neil@darlow.co.uk)
2012-02-01 19:31:58 +00:00
Chris Rees
01f53d5482 - Stop clobbering postgresql-server/-client OPTIONS with -contrib OPTIONS
- Minor optimisation (stop testing for !SLAVE_ONLY twice)

PR:		ports/164662
2012-01-31 18:21:33 +00:00
Chris Rees
23130d503f Use DISTVERSION instead of PORTVERSION to generate UNIQUENAME; options
don't work correctly otherwise.

http://lists.freebsd.org/pipermail/freebsd-ports/2012-January/072756.html

Pointyhat:	crees
2012-01-30 18:39:57 +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
e2ea524992 - do not conflict with postgresql 7.x (we don't have them in a tree anymore)
- remove not-supported FreeBSD versions
- whitespace fixes in pkg-descr
- remove empty pkg-plist (portlint doesn't seems care)

PR:		ports/161987
Submitted by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru>
2011-10-29 10:11:05 +00:00
Greg Larkin
9e0ad7ba10 - Fix plist when postgresql-plpython installed for postgresql 9.1 and
postgresql-plpython built with python 3+

PR:		ports/161822
Submitted by:	sunpoet
Approved by:	Ruslan Mahmatkhanov <cvs-src@yandex.ru> (maintainer), girgen (maintainer implicit)
2011-10-26 15:09:26 +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
1f13903637 - Add ICU support to PostgreSQL 9.1 server
- Make SSL available as an option
- Make portlint happier
- Fix some typos

PR:		ports/160915
Approved by:	maintainer (timeout)
2011-10-06 08:46:58 +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
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
Palle Girgensohn
9c15ef4455 Update to PostgreSQL version 9.1.0
SITE: http://www.postgresql.org/docs/9.1/static/release-9-1.html
2011-09-12 09:53:58 +00:00
Pav Lucistnik
0d86849600 - Unbreak slaves
Reported by:	Portsnap buildbox
2011-08-07 18:15:23 +00:00
Pav Lucistnik
2a3bf93fa4 - Make those OPTIONS actually working at all
Reported by:	pointyhat
2011-08-07 17:42:33 +00:00
Palle Girgensohn
03edc1bece Update to 9.1 beta 3
Fix broken plist for the postgres user's home directory
Release notes at http://www.postgresql.org/about/news.1331
2011-07-20 12:09:56 +00:00
Pav Lucistnik
1832435aff - Mark BROKEN: leave a directory behind on deinstall
Reported by:	pointyhat
2011-07-11 20:46:41 +00:00
Palle Girgensohn
f873355588 Update to 9.1beta2
Fix proken plists wrt NLS
2011-06-14 08:31:27 +00:00
Palle Girgensohn
8afd80c106 Add postgresql 9.1 beta1.
See http://www.postgresql.org/about/news.1313 for more info.

Also, use USERS knob instead of explicitally creating the pgsql user
while still accepting alternative names, using [1] with some added
magic.

PR:	157667 [1]
2011-06-11 23:14:30 +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