[MacPorts] #45215: postgresql*-server: don't create and own log
MacPorts
noreply at macports.org
Mon Sep 29 18:10:22 PDT 2014
#45215: postgresql*-server: don't create and own log
--------------------------+---------------------------------
Reporter: ryandesign@… | Owner: mww@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.1
Keywords: | Port: postgreslql*-server
--------------------------+---------------------------------
The postgresql*-server ports create a postgres.log log file:
{{{
$ ls -l /opt/local/var/log/postgresql93/postgres.log
-rw-r--r-- 1 postgres postgres 5643 Sep 27 12:47
/opt/local/var/log/postgresql93/postgres.log
$ port provides /opt/local/var/log/postgresql93/postgres.log
/opt/local/var/log/postgresql93/postgres.log is provided by:
postgresql93-server
}}}
This file is owned by the port. That means if the postgresql*-server port
is uninstalled or even just deactivated or upgraded, the log will be
deleted. This is undesirable. The port should not create a logfile. The
port should create the logfile's parent directory, with permissions such
that the postgres server can create the log inside it when it wants to.
Usually this would be done with something like this:
{{{
destroot.keepdirs ${destroot}${prefix}/var/log/postgresql93
post-destroot {
xinstall -u postgres -g postgres -d
${destroot}${prefix}/var/log/postgresql93
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/45215>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list