Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#385 closed enhancement (fixed)

updated PostgreSQL Portfile for 7.2.3

Reported by: stewartsmith@… Owned by: kvv@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

Basically all i did was change the version and checksum (and the contents-append bug #384)

PortSystem 1.0 name postgresql version 7.2.3 categories databases maintainers eric@… description The most advanced open-source database available anywhere long_description PostgreSQL is Object-Relational Database Management System. It sup ports \

almost all SQL constructs, including transactions, subselects, \ and user-defined types and functions. Write-ahead logging means \ increased performance while retaining data integrity.

homepage http://www.postgresql.org/ platforms darwin freebsd set subdir source/v${portversion} master_sites ftp://ftp2.ch.postgresql.org/mirror/postgresql/${subdir}/ \

ftp://ftp.postgresql.org/pub/${subdir}/ \ ftp://ftp.de.postgresql.org/mirror/postgresql/${subdir}/

distname ${portname}-base-${portversion} checksums md5 246eba52490f1defd5a8592d871e4201 worksrcdir ${portname}-${portversion} set origprefix ${prefix} set prefix ${prefix}/pgsql

build.type gnu

variant darwin { patchfiles patch-ipc.c patch-proc.c patch-spin.c patch-sem.h \

patch-Makefile patch-Makefile.darwin patch-Makefile.shlib \ patch-plpgsql-Makefile post-patch { reinplace "s|PREFIX|${prefix}|g" \

"${workpath}/${worksrcdir}/src/Makefile.shlib" } }

variant server { depends_run path:/Library/StartupItems/DarwinPortsStartup:DarwinPortsStartup

post-install {

set dbdir ${prefix}/defaultdb if [file exists ${dbdir}] { return }

addgroup postgres set gid [existsgroup postgres] adduser postgres home=${prefix} shell=/bin/sh gid=${gid} \

realname=Postgres\ Server

system "install -o root -m 755 -d ${origprefix}/etc/rc.d" system "install -o root -m 755 -c ${portpath}/files/pgsql.sh \

${origprefix}/etc/rc.d"

reinplace "s|PREFIX|${prefix}|g" \

${origprefix}/etc/rc.d/pgsql.sh

reinplace "s|DBDIR|${dbdir}|g" ${origprefix}/etc/rc.d/pgsql.sh

# contents-append etc/rc.d/pgsql.sh

system "install -o postgres -g postgres -m 700 -d ${prefix}/log" system "install -o postgres -g postgres -m 700 -d ${dbdir}" system "su postgres -c \'${prefix}/bin/initdb -D ${dbdir}\'" reinplace "s|#tcpip_socket = false|tcpip_socket = true|" \

${dbdir}/postgresql.conf

}

}

Change History (2)

comment:1 Changed 21 years ago by stewartsmith@…

dependson: 384

comment:2 Changed 21 years ago by stewartsmith@…

Resolution: fixed
Status: newclosed

Portfile has been updated to 7.3.2 in CVS

Note: See TracTickets for help on using tickets.