The current ebuilds for squid use sed to replace SQUID_MAXFD value. The configure script has an option to set it without any sed tricks. Current code in ebuilds: sed -i -e "s:^#define SQUID_MAXFD.*:#define SQUID_MAXFD 8192:" \ include/autoconf.h In squid-2.6.16.ebuild replace with configure option --with-maxfd=8192 In squid-3.0_rc1.ebuild replace with configure option --with-filedescriptors=8192
Fixed in cvs, thanks!