--- sys-apps/smartmontools/smartmontools-5.38-r1.ebuild 2009-08-27 02:08:15.000000000 +0300 +++ sys-apps/smartmontools/smartmontools-5.38-r2.ebuild 2010-02-22 12:00:08.188838477 +0200 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/smartmontools/smartmontools-5.38-r1.ebuild,v 1.1 2009/08/26 23:08:15 robbat2 Exp $ -inherit flag-o-matic +inherit flag-o-matic eutils DESCRIPTION="control and monitor storage systems using the Self-Monitoring, Analysis and Reporting Technology System (S.M.A.R.T.)" HOMEPAGE="http://smartmontools.sourceforge.net/" @@ -13,10 +13,11 @@ KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86 ~x86-fbsd" IUSE="static minimal" -RDEPEND="!minimal? ( virtual/mailx )" +RDEPEND="!minimal? ( !userland_BSD? ( virtual/mailx ) )" DEPEND="" src_compile() { + epatch "${FILESDIR}"/${P}-os_freebsd.patch use minimal && einfo "Skipping the monitoring daemon for minimal build." use static && append-ldflags -static econf || die