Commit graph

237 commits

Author SHA1 Message Date
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
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
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
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
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
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
Palle Girgensohn
9e01f9e294 Reintegrate the patch for ICU (unicode support). 2010-02-03 15:09:08 +00:00
Alex Dupre
90b8bb682d PTHREAD_[CFLAGS|LDFLAGS] are already set in CONFIGURE_ENV.
Approved by:	portmgr and maintainer timeout (1 month)
2010-01-04 20:37:30 +00:00
Alex Dupre
fdbfe9cc75 Don't link unneeded PTHREAD_LIBS. This fixes php extensions and apache modules.
Approved by:	portmgr and maintainer timeout (1 month)
2010-01-04 20:29:37 +00:00
Martin Matuska
39467857cc - Update to 8.4.2
Security:	CVE-2009-4034
Security:	CVE-2009-4136
Security:	http://portaudit.freebsd.org/e7bc5600-eaa0-11de-bd9c-00215c6a37bb.html
PR:		ports/141639
Submitted by:	Alexander Pyhalov <alp@rsu.ru>
Approved by:	ports-security (delphij)
2009-12-17 16:07:11 +00:00
Martin Matuska
38401795bf - Update to 8.4.1
- Set INTDATE on as default (this is default by PostgreSQL)

PR:		ports/139277
Submitted by:	Olli Hauer <ohauer@gmx.de>
Approved by:	maintainer timeout (2 months)
2009-12-02 22:21:27 +00:00
Palle Girgensohn
894d319504 Fix broken pkg-plist for gettext files.
Also, inform about pg_standby rather than autovacuum. [1]

PR:	136468 [1]
2009-07-08 20:31:53 +00:00
Palle Girgensohn
00c3beec39 Welcome PostgreSQL 8.4
After many years of development, PostgreSQL has become feature-complete in many areas.
This release shows a targeted approach to adding features (e.g., authentication,
monitoring, space reuse), and adds capabilities defined in the later SQL standards.
The major areas of enhancement are:

Windowing Functions
Common Table Expressions and Recursive Queries
Default and variadic parameters for functions
Parallel Restore
Column Permissions
Per-database locale settings
Improved hash indexes
Improved join performance for EXISTS and NOT EXISTS queries
Easier-to-use Warm Standby
Automatic sizing of the Free Space Map
Visibility Map (greatly reduces vacuum overhead for slowly-changing tables)
Version-aware psql (backslash commands work against older servers)
Support SSL certificates for user authentication
Per-function runtime statistics
Easy editing of functions in psql
New contrib modules: pg_stat_statements, auto_explain, citext, btree_gin

URL: http://www.postgresql.org/docs/8.4/interactive/release-8-4.html
2009-07-07 22:30:06 +00:00
Palle Girgensohn
e6109cdbcf Update PostgreSQL to latest versions.
The PostgreSQL Project today released minor versions updating all active
branches of the PostgreSQL object-relational database system, including
versions 8.3.7, 8.2.13, 8.1.17, 8.0.21 and 7.4.25. This release fixes a denial
of service issue with encoding conversion, and all users should update their
installations at the next reasonable opportunity.

There are 12 other minor fixes contained in these update releases, including
fixes for xpath() functions in version 8.3. See the release notes for full
details.

URL: http://www.postgresql.org/docs/8.3/static/release-8-3-7.html
URL: http://www.postgresql.org/docs/8.2/static/release-8-2-13.html
URL: http://www.postgresql.org/docs/8.1/static/release.html#RELEASE-8-1-17
URL: http://www.postgresql.org/docs/8.0/static/release.html#RELEASE-8-0-21
URL: http://www.postgresql.org/docs/7.4/static/release.html#RELEASE-7-4-24
2009-03-18 15:13:39 +00:00
Palle Girgensohn
4faeb886a5 Update PostgreSQL to latest versions.
URL: http://www.postgresql.org/about/news.1055

The PostgreSQL Project today released
updates to all active branches of the
PostgreSQL object-relational database
system, including versions 8.3.6,
8.2.12, 8.1.16, 8.0.20 and 7.4.24. These
updates include two serious fixes, for
autovacuum crashes in version 8.1 and
GiST indexing data loss in 8.3, and
those two versions should be updated as
soon as possible.

These update releases also include
patches for several low-risk security
holes, as well as up to 17 other minor
fixes, depending on your major version
of PostgreSQL. Included as well are
Daylight Savings Time changes for Nepal,
Switzerland and Cuba. See the release
notes for full details.

The first serious issue affects users
who are using version 8.1 with
Autovacuum, which will fail when XID
rollover is required. The second serious
issue can cause data loss when CLUSTER
is used with GiST indexes (such as full
text indexes) on version 8.3. Both
issues are fixed in these releases.
2009-02-10 11:59:15 +00:00
Palle Girgensohn
1c63d5a340 This time, *really* update to *latest* version of PostgreSQL, 8.3.5. 2008-11-07 18:07:50 +00:00
Palle Girgensohn
978e3de48f Update PostgreSQL to latest versions.
http://www.postgresql.org/docs/current/static/release-8-3-5.html
http://www.postgresql.org/docs/current/static/release-8-2-11.html
http://www.postgresql.org/docs/current/static/release-8-1-15.html
http://www.postgresql.org/docs/current/static/release-8-0-19.html
http://www.postgresql.org/docs/current/static/release-7-4-23.html

Note that the GiST problem mentioned does not apply to users of
the FreeBSD port, since the previous version of PostgreSQL never
reached the ports tree, due to the freeze of the tree pending the
FreeBSD 7.1 update.

PR:	121848, 124713
2008-11-07 09:49:49 +00:00