[MacPorts] #26068: dovecot 1.2.11_0 port creates user and group too soon
MacPorts
noreply at macports.org
Fri Aug 13 17:10:25 PDT 2010
#26068: dovecot 1.2.11_0 port creates user and group too soon
-------------------------------+--------------------------------------------
Reporter: poirier@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.1
Keywords: | Port: dovecot
-------------------------------+--------------------------------------------
The dovecot port creates the necessary dovecot user and group in post-
destroot, at build time on the build system. This fails if the built
package is moved to another system, or the user is deleted before it's
installed, etc.
I'm thinking doing it at activation time would be more correct, and it
seems to work for me.
{{{
---
/opt/local/var/macports/sources/rsync.macports.org/release/ports/mail/dovecot/Portfile
2010-05-12 04:00:54.000000000 -0400
+++ Portfile 2010-08-13 19:50:40.000000000 -0400
@@ -40,7 +40,7 @@
configure.cppflags -I${prefix}/include/openssl
-post-destroot {
+post-activate {
# Create the dovecot user and group
addgroup dovecot
set gid [existsgroup dovecot]
}}}
--
Ticket URL: <http://trac.macports.org/ticket/26068>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list