Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 99992 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/app-antivirus/clamav/clamav-0.86.1.ebuild (-2 / +11 lines)
Lines 10-17 SRC_URI="mirror://sourceforge/${PN}/${P} Link Here
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="alpha amd64 hppa ~ia64 ppc ppc64 sparc x86"
13
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
14
IUSE="crypt milter selinux mailwrapper"
14
IUSE="crypt milter selinux mailwrapper onaccess"
15
15
16
DEPEND="virtual/libc
16
DEPEND="virtual/libc
17
	crypt? ( >=dev-libs/gmp-4.1.2 )
17
	crypt? ( >=dev-libs/gmp-4.1.2 )
Lines 21-31 DEPEND="virtual/libc Link Here
21
	net-dns/libidn
21
	net-dns/libidn
22
	>=sys-apps/sed-4"
22
	>=sys-apps/sed-4"
23
RDEPEND="${DEPEND}
23
RDEPEND="${DEPEND}
24
	onaccess? ( sys-fs/dazuko )
24
	selinux? ( sec-policy/selinux-clamav )
25
	selinux? ( sec-policy/selinux-clamav )
25
	sys-apps/grep"
26
	sys-apps/grep"
26
PROVIDE="virtual/antivirus"
27
PROVIDE="virtual/antivirus"
27
28
28
pkg_setup() {
29
pkg_setup() {
30
	if use onaccess; then
31
		ewarn "Warning: On access support is experimental!"
32
	fi
33
29
	if use milter; then
34
	if use milter; then
30
		if [ ! -e /usr/lib/libmilter.a ] ; then
35
		if [ ! -e /usr/lib/libmilter.a ] ; then
31
			ewarn "In order to enable milter support, clamav needs sendmail with enabled milter"
36
			ewarn "In order to enable milter support, clamav needs sendmail with enabled milter"
Lines 115-118 pkg_postinst() { Link Here
115
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
120
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
116
		echo
121
		echo
117
	fi
122
	fi
123
	if use onaccess; then
124
		einfo "For on access to work, clamd must be run as root."
125
		echo
126
	fi
118
}
127
}

Return to bug 99992