The ebuilds for smokeping do one thing that is *really* suspicious: if use apache2 ; then fowners apache:apache /var/lib/${PN}/.simg fowners -R apache:apache /var/www else ... Smokeping installs to /var/www/localhost, but /var/www doesn't belong to it. That's a common location where web hosts keep their site directories, e.g. /var/www/example.com/www /var/www/example.net/git Changing ownership of that whole tree to apache:apache can be disastrous. Some other minor issues: the calls to "rm" and "mv" need "|| die", and the pkg_postinst() stuff looks like it's already performed in src_install().
Hello- These adjustments seem more sensible, although I am not running apache myself to validate further. Could there be collisions with localhost/cgi-bin too? if use apache2 ; then fowners apache:apache /var/lib/${PN}/.simg fowners -R apache:apache /var/www/localhost/${PN} fowners -R apache:apache /var/www/localhost/cgi-bin else
|| die was added