According to http://dev.gentoo.org/~vericgar/doc/apache-package-refresh.html the apache fslayout has changed. Please update the apcupsd ebuild(s) accordingly: --8<-- [root@prometheus(pts/20):apcupsd]$ diff -u /usr/{,local/}portage/sys-apps/apcupsd/apcupsd-3.10.16-r3.ebuild --- /usr/portage/sys-apps/apcupsd/apcupsd-3.10.16-r3.ebuild 2005-02-21 03:37:49.000000000 +0100 +++ /usr/local/portage/sys-apps/apcupsd/apcupsd-3.10.16-r3.ebuild 2005-03-01 11:06:35.754302498 +0100 @@ -65,10 +65,10 @@ if use gd then - use apache2 || insinto /etc/apache/conf/addon-modules - use apache2 || newins ${FILESDIR}/${PV}/apache.conf apcupsd.conf + use apache2 || insinto /etc/apache/modules.d + use apache2 || newins ${FILESDIR}/${PV}/apache.conf 60_apcupsd.conf - use apache2 && insinto /etc/apache2/conf/modules.d + use apache2 && insinto /etc/apache2/modules.d use apache2 && newins ${FILESDIR}/${PV}/apache.conf 60_apcupsd.conf fi [root@prometheus(pts/20):apcupsd]$ --8<-- If in doubt please contact vericgar@gentoo.org
please do not set iuse, paths and depends hardcoded. if you inherit depend.apache you can depend on apache with the need_apache and get a set of read-only variables containing the paths (use $APACHE(1|2)_MODULES_CONFIGDIR here)
typo: APACHE(1|2)_MODULES_CONFDIR
*** Bug 84382 has been marked as a duplicate of this bug. ***
Created attachment 54020 [details, diff] Patch for apache paths The attached patch fixes the problem with apache dependency and installation paths. It also add a DISTNAME=gentoo before ./configure so that gentoo/non-linux systems could use the gentoo layout instead of the default layout for that os. (Maybe I should cc also bsd@gentoo.org as this fix helps apcupsd working on those systems).
Fixed in apcupsd-3.10.17 Diego: Thanks for your help.