Opened 14 years ago

Closed 10 years ago

#26068 closed defect (fixed)

dovecot 1.2.11_0 port creates user and group too soon

Reported by: poirier@… Owned by: jberry@…
Priority: Normal Milestone:
Component: ports Version: 1.9.1
Keywords: Cc:
Port: dovecot

Description

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]

Change History (2)

comment:1 Changed 13 years ago by jmroot (Joshua Root)

Cc: jberry@… removed
Owner: changed from macports-tickets@… to jberry@…

This would be a perfect use for the add_users option added in MacPorts 2.0.0.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.