# Copyright 1999-2019 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=7 DESCRIPTION="An SMTP filter to check for viruses using the ClamAV anti-virus software" HOMEPAGE="" SRC_URI="/${PN}/${P}.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="amd64 hppa ~sparc x86" IUSE="" DEPEND=">=sys-apps/sed-4" RDEPEND=">=app-antivirus/clamav-0.75" PATCHES=( "${FILESDIR}"/${PN}-smtppass.patch ) src_install() { make DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog README NEWS newinitd "${FILESDIR}"/clamsmtpd.init clamsmtpd insinto /etc newins doc/clamsmtpd.conf clamsmtpd.conf sed -i \ -e "s|\#\(ClamAddress\): .*|\1: /var/run/clamav/clamd.sock|" \ -e "s|\#\(User\): .*|\1: clamav|" \ "${D}"/etc/clamsmtpd.conf } pkg_postinst() { echo elog "For help configuring Postfix to use clamsmtpd, see:" elog " https://ftp.unpad.ac.id/orari/library/library-sw-hw/linux-1/ANTI-VIRUS/clamav/clamsmtp/postfix.html" echo ewarn "You'll need to have ScanMail support turned on in clamav.conf" ewarn "Also, make sure the clamd scanning daemon is running (not just freshclam)" echo }