diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-02-23 12:08:01 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-02-23 12:08:01 +0000 |
commit | 407c9066bbcb9430bf82d2123a12aed5b1ae0fea (patch) | |
tree | ec7bedfb550e97b5ec21e2b88038c0fddf77fc66 /mail-filter | |
parent | mask joomla; aggregate web-apps security masks (diff) | |
download | gentoo-2-407c9066bbcb9430bf82d2123a12aed5b1ae0fea.tar.gz gentoo-2-407c9066bbcb9430bf82d2123a12aed5b1ae0fea.tar.bz2 gentoo-2-407c9066bbcb9430bf82d2123a12aed5b1ae0fea.zip |
Version bump to 1.4.0
(Portage version: 2.1.3.19)
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/simscan/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/simscan/simscan-1.4.0.ebuild | 106 |
2 files changed, 112 insertions, 1 deletions
diff --git a/mail-filter/simscan/ChangeLog b/mail-filter/simscan/ChangeLog index aa7f402ff450..9de23f5faea1 100644 --- a/mail-filter/simscan/ChangeLog +++ b/mail-filter/simscan/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for mail-filter/simscan # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.4 2008/02/22 23:34:12 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.5 2008/02/23 12:08:01 tupone Exp $ + +*simscan-1.4.0 (23 Feb 2008) + + 23 Feb 2008; Tupone Alfredo <tupone@gentoo.org> +simscan-1.4.0.ebuild: + Version bump to 1.4.0 22 Feb 2008; Tupone Alfredo <tupone@gentoo.org> simscan-1.3.1.ebuild: No need for qmail at buildtime. Bug #199534 by Diego Pettenò diff --git a/mail-filter/simscan/simscan-1.4.0.ebuild b/mail-filter/simscan/simscan-1.4.0.ebuild new file mode 100644 index 000000000000..2f7a79871d43 --- /dev/null +++ b/mail-filter/simscan/simscan-1.4.0.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/simscan-1.4.0.ebuild,v 1.1 2008/02/23 12:08:01 tupone Exp $ + +inherit autotools toolchain-funcs eutils fixheadtails flag-o-matic + +DESCRIPTION="Simscan, a qmail scanner" +HOMEPAGE="http://inter7.com/?page=simscan" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="attachment clamav dropmsg passthru per-domain quarantine regex received spamassassin" + +RESTRICT="test" + +DEPEND="attachment? ( net-mail/ripmime ) + clamav? ( app-antivirus/clamav ) + spamassassin? ( mail-filter/spamassassin ) + regex? ( dev-libs/libpcre )" + +RDEPEND="${DEPEND} + virtual/qmail" + +pkg_setup() { + test -z "${SIMSCAN_HITS}" && SIMSCAN_HITS=10 + + enewgroup simscan + enewuser simscan -1 -1 /dev/null simscan + + use clamav && usermod -a -G simscan,nofiles clamav +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}"/${P}-destdir.patch \ + "${FILESDIR}"/${P}-printf.patch + + sed -i \ + -e "s:daily.cvd:main.cvd:g" \ + configure.in \ + simscanmk.c \ + || die "sed failed" + + eautoreconf +} + +src_compile() { + econf \ + --enable-qmaildir=/var/qmail \ + --enable-qmail-queue=/var/qmail/bin/qmail-queue \ + $(use_enable attachment attach) \ + $(use_enable clamav) \ + $(use_enable clamav clamdscan /usr/bin/clamdscan) \ + $(use_enable clamav clamavdb-path /var/lib/clamav) \ + $(use_enable dropmsg) \ + $(use_enable spamassassin spam) \ + $(use_enable spamassassin spamc /usr/bin/spamc) \ + $(use_enable spamassassin spam-hits ${SIMSCAN_HITS}) \ + $(use_enable passthru spam-passthru) \ + $(use_enable quarantine quarantinedir /var/qmail/quarantine) \ + $(use_enable regex) \ + $(use_enable received) \ + $(use_enable per-domain) || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc AUTHORS ChangeLog README TODO + + keepdir /var/qmail/control + keepdir /var/qmail/simscan + + if use clamav; then + echo -n ":clam=yes," > "${D}"/var/qmail/control/simcontrol + else + echo -n ":clam=no," > "${D}"/var/qmail/control/simcontrol + fi + + if use spamassassin; then + echo "spam=yes,spam_hits=${SIMSCAN_HITS}" >> "${D}"/var/qmail/control/simcontrol + else + echo "spam=no" >> "${D}"/var/qmail/control/simcontrol + fi +} + +pkg_postinst() { + ewarn "Updating simscan configuration files ..." + /var/qmail/bin/simscanmk + + ewarn + ewarn "You have to do that every time you update clamav or spamassassin" + ewarn + + einfo + einfo "In order use simscan update the QMAILQUEUE environment variable" + einfo "and point it to /var/qmail/bin/simscan" + einfo + einfo "Read the documentation and customize /var/qmail/control/simcontrol" + einfo +} |