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.7.ebuild (-2 / +18 lines)
Lines 11-21 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 ~x86-fbsd"
13
KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~x86-fbsd"
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 )
18
	milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
18
	milter? ( || ( mail-filter/libmilter mail-mta/sendmail ) )
19
	onaccess? ( sys-fs/dazuko )
19
	>=sys-libs/zlib-1.2.1-r3
20
	>=sys-libs/zlib-1.2.1-r3
20
	>=net-misc/curl-7.10.0
21
	>=net-misc/curl-7.10.0
21
	>=sys-apps/sed-4"
22
	>=sys-apps/sed-4"
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 54-60 src_compile() { Link Here
54
	}
58
	}
55
59
56
	ht_fix_file configure
60
	ht_fix_file configure
57
	econf ${myconf} --with-dbdir=/var/lib/clamav || die
61
	econf ${myconf} --with-dbdir=/var/lib/clamav $(use_enable onaccess clamuko) || die
58
	emake || die
62
	emake || die
59
}
63
}
60
64
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
	if use onaccess ; then
105
		insinto /etc/udev/rules.d
106
		newins "${FILESDIR}/udev-60-dazuko.rules" "60-dazuko.rules"
107
	fi
100
}
108
}
101
109
102
pkg_postinst() {
110
pkg_postinst() {
Lines 109-112 pkg_postinst() { Link Here
109
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
117
		echo "  zless /usr/share/doc/${PF}/clamav-milter.README.gentoo.gz"
110
		echo
118
		echo
111
	fi
119
	fi
120
	if use onaccess ; then
121
		ewarn "Warning: If installed for the first time, run udevstart."
122
		ewarn "Notice:"
123
		ewarn "    If you want onaccess to scan all files you must"
124
		ewarn "    clamav user permission to access all files, or run clamd"
125
		ewarn "    as root"
126
		echo
127
	fi
112
}
128
}

Return to bug 99992