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.88.ebuild (-2 / +14 lines)
Lines 11-17 SRC_URI="mirror://sourceforge/${PN}/${P} Link Here
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-27 DEPEND="virtual/libc Link Here
21
	>=sys-apps/sed-4"
21
	>=sys-apps/sed-4"
22
RDEPEND="${DEPEND}
22
RDEPEND="${DEPEND}
23
	selinux? ( sec-policy/selinux-clamav )
23
	selinux? ( sec-policy/selinux-clamav )
24
	sys-apps/grep"
24
	sys-apps/grep
25
	onaccess? ( sys-fs/dazuko )"
25
PROVIDE="virtual/antivirus"
26
PROVIDE="virtual/antivirus"
26
27
27
pkg_setup() {
28
pkg_setup() {
Lines 33-38 pkg_setup() { Link Here
33
			die "need milter-enabled sendmail"
34
			die "need milter-enabled sendmail"
34
		fi
35
		fi
35
	fi
36
	fi
37
	if use onaccess; then
38
		ewarn "Warning: On access support is experimental!"
39
	fi
36
	enewgroup clamav
40
	enewgroup clamav
37
	enewuser clamav -1 -1 /dev/null clamav
41
	enewuser clamav -1 -1 /dev/null clamav
38
}
42
}
Lines 97-102 src_install() { Link Here
97
		echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \
101
		echo "MILTER_OPTS=\"-m 10 --timeout=0\"" \
98
			>>${D}/etc/conf.d/clamd
102
			>>${D}/etc/conf.d/clamd
99
	fi
103
	fi
104
105
	if use onaccess ; then
106
		insinto /etc/udev/rules.d
107
		newins "${FILESDIR}/udev-60-dazuko.rules" "60-dazuko.rules"
108
	fi
100
}
109
}
101
110
102
pkg_postinst() {
111
pkg_postinst() {
Lines 109-112 pkg_postinst() { Link Here
109
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
118
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
110
		echo
119
		echo
111
	fi
120
	fi
121
	if use onaccess ; then
122
		ewarn "Warning: If installed for the first time, run udevstart."
123
	fi
112
}
124
}

Return to bug 99992