Index: dcc-1.3.140-r1.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/mail-filter/dcc/dcc-1.3.140-r1.ebuild,v --- dcc-1.3.140-r1.ebuild 24 Oct 2011 21:38:44 -0000 1.1 +++ dcc-1.3.140-r1.ebuild 31 May 2012 16:54:14 -0000 @@ -12,7 +12,7 @@ LICENSE="DCC" SLOT="0" -KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="cgi ipv6 rrdtool milter" RDEPEND="dev-lang/perl @@ -30,7 +30,8 @@ dcc_rundir=/var/run/dcc src_prepare() { - epatch "${FILESDIR}"/dcc-1.3.140-configure-fix.patch + epatch "${FILESDIR}"/dcc-1.3.140-configure-fix.patch \ + "${FILESDIR}"/dcc-1.3.140-freebsd.patch # We use gmake } src_configure() { @@ -51,6 +52,8 @@ myconf="${myconf} --with-max-db-mem=128" myconf="${myconf} --with-max-log-size=0" myconf="${myconf} $(use_enable ipv6 IPv6)" + # Force ${MAKE} or make is selected on BSD + myconf="${myconf} --with-make-cmd=${MAKE:-make}" if use milter ; then myconf="${myconf} --enable-dccm" @@ -85,7 +88,7 @@ src_install() { # stolen from the RPM .spec and modified for gentoo - MANOWN=root MANGRP=root export MANOWN MANGRP + MANOWN=root MANGRP=$(id -g -n root) export MANOWN MANGRP BINOWN="${MANOWN}" BINGRP="${MANGRP}" export BINOWN BINGRP DCC_PROTO_HOMEDIR="${D}${dcc_homedir}" export DCC_PROTO_HOMEDIR DCC_CGIBINDIR="${D}${dcc_cgibin}" export DCC_CGIBINDIR