The current ebuild tramples all over the permissions in /etc/asterisk because it uses a recursive chmod/chown. It only installs 3 files here: tony@pink /usr/portage/packages/All $ ls /tmp/new-asterisk/etc/asterisk/ asterisk.adsi extensions.ael telcordia-1.adsi As such, it has no business fiddling with permissions in /etc/asterisk/LINX and /etc/asterisk/TEST. The attached patch deals with this, and also enables group write on two directories. This allows a non-root user in the asterisk group to start, stop and configure the asterisk daemon. Care has been taken to not enable group write where it does not make sense (such as on the log directory).
Created attachment 114866 [details, diff] asterisk-perms.diff
Could this issue also cause the mass removal of most files in /etc/asterisk? after my first upgrade of asterisk, i had 4 config files and examples left, compared to about 44 before the update. I wasn't able to reproduce the error, but the possibility of that happening is quite nasty to users. Luckly I had a backup. Sadly most won't.
Gustavoz needs to review this before it can be committed, but currently lacks time.
Created attachment 117227 [details, diff] asterisk-perms.diff Added group write permissions on spool directory for a non-root voicemail interface.
asterisk-1.2.17 in cvs in ~arch, it'll take a couple of hours for the files to get to the mirrors though. it should go stable soonish.