From elog: > LOG: postinst > The default webroot has not been installed into > //var/www/localhost because the directory already exists > and we do not want to overwrite any files you have put there. > > If you would like to install the latest webroot, please run > emerge --config =apache-2.2.6 Me: > phoenix www # emerge --config =apache-2.2.6 > > > Configuring pkg... > > * Installing default webroot to //var/www/localhost > cp: target `//var/www/localhost' is not a directory Sure enough, from /usr/portage/www-servers/apache/apache-2.2.6.ebuild pkg_config(): > pkg_config() { > einfo "Installing default webroot to ${ROOT}/var/www/localhost" > cp -R "${ROOT}"/usr/share/doc/${PF}/webroot/* "${ROOT}"/var/www/localhost > } I guess it should be "${ROOT}"usr/share/doc/${PF}/webroot/* and "${ROOT}"var/www/localhost It looks like the problem is present throughout the file.
The extra / completely doesn't matter, you can try this manually.
maybe /var/www/localhost is not a directory?
(In reply to comment #2) > maybe /var/www/localhost is not a directory? This was correct. Might be nice for the ebuild to test/create the dir if need be. I'd moved my existing /var/www/localhost to localhost.old, then run the requested command. I recall I resolved the error manually. Sorry for not being as clear during filing.
fixed in 2.2.6-r2