As discussed with mr Chainsaw, please see this little patch for the ebuild which just adds setting the ownership of asterisk and permissions of 660 to the /etc/asterisk config directory. Reproducible: Always
Created attachment 212352 [details, diff] asterisk-1.6.1.11.ebuild patch
Why not fperms/fowners?
Created attachment 212355 [details, diff] update for the patch before to use fperms and fowners
Updated with fperms/fowners.
Actually, the ebuild had an attempt to do that - which can now be removed: ebegin "Fixing up permissions" chown -R asterisk:asterisk "${ROOT}"var/log/asterisk chmod -R u=rwX,g=rX,o= "${ROOT}"var/log/asterisk chown asterisk:asterisk "${ROOT}"etc/asterisk/ chown asterisk:asterisk "${ROOT}"etc/asterisk/*.adsi chown asterisk:asterisk "${ROOT}"etc/asterisk/extensions.ael chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/ chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/*.adsi chmod u=rwX,g=rwX,o= "${ROOT}"etc/asterisk/extensions.ael eend $? This code in pkg_postinst() can now be removed from the ebuild. Patryk
+*asterisk-1.6.1.12 (19 Dec 2009) + + 19 Dec 2009; <chainsaw@gentoo.org> + +files/1.6.1/asterisk-1.6.1.12-longer-sip-cid.patch, + +files/1.6.1/asterisk.initd2, +asterisk-1.6.1.12.ebuild, + +files/1.6.1/asterisk-1.6.1.12-parallel-make.patch: + Version bump. Improved permission handling in ebuild & initscript by + Patryk Rzadzinski, closes bugs #294601 & #296087. Set ASTLDFLAGS + environment variable to enforce LDFLAGS respect. Additional parallel make + fixes.