# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils autotools flag-o-matic $([[ "${PV}" == *9999* ]] && echo subversion) EAPI="4" DESCRIPTION="Scalable samba anti-virus module" HOMEPAGE="http://olivier.sessink.nl" LICENSE="GPL-2" if [[ "${PV}" == *9999* ]]; then ESVN_REPO_URI="https://scannedonly.svn.sourceforge.net/svnroot/scannedonly/trunk" else SRC_URI="http://olivier.sessink.nl/scannedonly/${P}.tar.gz" fi LICENSE="GPL-2" #RESTRICT="mirror" SLOT="0" IUSE="" RDEPEND=">=net-fs/samba-3.5.0 app-antivirus/clamav" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" S=${WORKDIR}/${P} src_prepare(){ append-ldflags $(no-as-needed) eautoconf touch install.sh } src_configure() { econf --enable-clamav --disable-samba-vfs || die "econf failed!" } src_install() { emake DESTDIR="${D}" install all || die "emake install failed" newinitd ${FILESDIR}/${PF}.initd scannedonly newconfd ${FILESDIR}/${PF}.confd scannedonly }