FS#20533 - Errors in dovecot.install
Attached to Project:
Arch Linux
Opened by Sebastian Köhler (kart0ffelsack) - Friday, 20 August 2010, 00:04 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 09 September 2010, 17:05 GMT
Opened by Sebastian Köhler (kart0ffelsack) - Friday, 20 August 2010, 00:04 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 09 September 2010, 17:05 GMT
|
Details
There are two errors in the dovecot.install
1. Although a dovenull group is created the dovenull user is created with "-g dovecot" 2. The -m option during user creation is not set therefore no home dir for the dove{cot,null}, /etc/cron.daily/shadow complains about this. Actually, I think the dovecot users don't need a homedir so it would probably good to remove the -d option. Additional info: * package version: 2.0.0-1 |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Thursday, 09 September 2010, 17:05 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.0.2-1
Thursday, 09 September 2010, 17:05 GMT
Reason for closing: Fixed
Additional comments about closing: fixed in 2.0.2-1
Please also check if namcap is right here:
==> Finished making: dovecot 2.0.1-1 (Tue Aug 24 21:34:55 UTC 2010)
****Starting namcap log****
dovecot E: Dependency detected and not included (heimdal) from files ['usr/bin/doveadm', 'usr/lib/dovecot/auth']
dovecot E: Dependency detected and not included (curl) from files ['usr/lib/dovecot/modules/lib21_fts_solr_plugin.so']
Thanks for testing.
you should use -m instead of -M because without -m the dovecot homedir is not created resulting in:
sudo /etc/cron.daily/shadow
user 'dovecot': directory '/var/run/dovecot/login' does not exist
user 'dovenull': directory '/var/run/dovecot/login' does not exist
I'm not sure about the namcap output because I don't use the kerberos auth mechanisms in dovecot
useradd seems to refuse to create directories recursively
install -d ${pkgdir}/var/run/dovecot/empty
install -g dovenull -m 750 -d ${pkgdir}/var/run/dovecot/login
This creates exactly the same directories as dovecot would do and if these are empty, pacman will delete them on removal of the package.
Perhaps we need to ensure the login directory has the correct permissions in the filesystem, so we could add to post_install():
chmod 750 var/run/dovecot/login
chown root:dovenull var/run/dovecot/login