# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="ClamSMTP is an SMTP filter that allows you to check for viruses using the ClamAV anti-virus software." HOMEPAGE="http://memberwebs.com/nielsen/software/clamsmtp/" S="${WORKDIR}/${P}" SRC_URI="http://memberwebs.com/nielsen/software/clamsmtp/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~amd64" DEPEND=">=app-antivirus/clamav-0.70" src_install() { einstall || die dodoc AUTHORS COPYING ChangeLog README NEWS exeinto /etc/init.d ; newexe ${FILESDIR}/clamsmtpd.rc clamsmtpd insinto /etc/conf.d ; newins ${FILESDIR}/clamsmtpd.conf clamsmtpd dodir /var/run/clamav keepdir /var/run/clamav fowners clamav:root /var/run/clamav } pkg_postinst() { einfo "For help configuring Postfix to use clamsmtpd, see:" einfo " http://memberwebs.com/nielsen/software/clamsmtp/postfix.html" echo ewarn "clamsmtpd requires clamd to be running, not just freshclam" ewarn "Make sure you've configured clamav correctly!" }