--- /usr/portage/app-antivirus/clamav/clamav-0.88.7.ebuild 2006-12-18 01:19:04.000000000 +0200 +++ clamav-0.88.7.ebuild 2006-12-18 22:01:23.000000000 +0200 @@ -11,11 +11,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P} LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd" -IUSE="crypt milter selinux mailwrapper" +IUSE="crypt milter selinux mailwrapper onaccess" DEPEND="virtual/libc crypt? ( >=dev-libs/gmp-4.1.2 ) milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) ) + onaccess? ( sys-fs/dazuko ) >=sys-libs/zlib-1.2.1-r3 >=net-misc/curl-7.10.0 >=sys-apps/sed-4" @@ -33,6 +34,9 @@ pkg_setup() { die "need milter-enabled sendmail" fi fi + if use onaccess; then + ewarn "Warning: On access support is experimental!" + fi enewgroup clamav enewuser clamav -1 -1 /dev/null clamav } @@ -54,7 +58,7 @@ src_compile() { } ht_fix_file configure - econf ${myconf} --with-dbdir=/var/lib/clamav || die + econf ${myconf} --with-dbdir=/var/lib/clamav $(use_enable onaccess clamuko) || die emake || die } @@ -97,6 +101,10 @@ src_install() { echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \ >>${D}/etc/conf.d/clamd fi + if use onaccess ; then + insinto /etc/udev/rules.d + newins "${FILESDIR}/udev-60-dazuko.rules" "60-dazuko.rules" + fi } pkg_postinst() { @@ -109,4 +117,12 @@ pkg_postinst() { echo " zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz" echo fi + if use onaccess ; then + ewarn "Warning: If installed for the first time, run udevstart." + ewarn "Notice:" + ewarn " If you want onaccess to scan all files you must" + ewarn " clamav user permission to access all files, or run clamd" + ewarn " as root" + echo + fi }