Bug 60542 - database/postgresql7 update 7.4 -> 7.4.1
Summary: database/postgresql7 update 7.4 -> 7.4.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sean Chittenden
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-24 13:40 UTC by Dmitry Morozovsky
Modified: 2003-12-25 14:20 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (2.61 KB, patch)
2003-12-24 13:40 UTC, Dmitry Morozovsky
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Morozovsky 2003-12-24 13:40:18 UTC
PostgreSQL Team has released 7.4.1, the patched stable version. It is
particularly important for FreeBSD users because 7.4 contains error in
local indent authentication.
Comment 1 Sean Chittenden freebsd_committer freebsd_triage 2003-12-24 19:09:17 UTC
State Changed
From-To: open->feedback

Does the attached patch look okay for 7.4.1? 


Comment 2 Sean Chittenden freebsd_committer freebsd_triage 2003-12-24 19:09:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->seanc
Comment 3 Sean Chittenden freebsd_committer freebsd_triage 2003-12-25 10:44:07 UTC
State Changed
From-To: feedback->closed

Close PR.  Maintainer provided a more complete plist and 
updated the port to handle a few other odds and ends. 
Thanks for your contribution!
Comment 4 Dmitry Morozovsky 2003-12-25 14:18:14 UTC
Dear Sean,

thanks for importing 7.4.1 (and sorry for dusting my patches with somehow
slipped in headers). The last (non-critical of course) little change would be
as following (reflect ${PREFIX} in pkg-message):


Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql7/Makefile,v
retrieving revision 1.119
diff -u -r1.119 Makefile
--- Makefile    25 Dec 2003 10:55:38 -0000      1.119
+++ Makefile    25 Dec 2003 14:14:34 -0000
@@ -76,7 +76,8 @@
 PKGMSG=                /dev/null
 CONFLICTS=     postgresql-7* postgresql-devel-*
 .else
-PKGMESSAGE=    ${FILESDIR}/pkg-message.server
+PKGMESSAGE=    ${WRKDIR}/pkg-message.server
+PKGMESSAGETMPL=        ${FILESDIR}/pkg-message.server
 PKGMSG=                ${PKGMESSAGE}
 CONFLICTS=     postgresql-client-7* postgresql-devel-*
 PLIST_SUB+=    SERVER=""
@@ -193,6 +194,8 @@
 pre-install:
        @ ${SETENV} PKG_PREFIX=${PREFIX} \
                ${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
+       @ ${SED} "s|%%PREFIX%%|${PREFIX}|g" \
+               ${PKGMESSAGETMPL} > ${PKGMESSAGE}
 .endif

 post-install:
Index: files/pkg-message.server
===================================================================
RCS file: /home/ncvs/ports/databases/postgresql7/files/pkg-message.server,v
retrieving revision 1.3
diff -u -r1.3 pkg-message.server
--- files/pkg-message.server    25 Dec 2003 10:55:39 -0000      1.3
+++ files/pkg-message.server    25 Dec 2003 14:14:34 -0000
@@ -29,7 +29,7 @@
    following sequence of SQL commands in each database (ideally including
    template1) as a superuser in psql, after installing the new release:
 DROP SCHEMA information_schema CASCADE;
-\i /usr/local/pgsql/share/information_schema.sql
+\i %%PREFIX%%/share/postgresql/information_schema.sql

    Fixes to the information schema (from HISTORY):
      * Fix information schema for bit data types (Peter)

Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------