diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-03-14 23:52:31 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-03-14 23:52:31 +0000 |
commit | 7b1773b713807db86fcebd8b34726798693f5d16 (patch) | |
tree | 2a97e451789a119ca3c7749bb7d2b1d92760a3cd /mail-filter | |
parent | Allow alternative chess engines in RDEPEND. (diff) | |
download | historical-7b1773b713807db86fcebd8b34726798693f5d16.tar.gz historical-7b1773b713807db86fcebd8b34726798693f5d16.tar.bz2 historical-7b1773b713807db86fcebd8b34726798693f5d16.zip |
Fixing clamav integration
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'mail-filter')
-rw-r--r-- | mail-filter/simscan/ChangeLog | 7 | ||||
-rw-r--r-- | mail-filter/simscan/Manifest | 9 | ||||
-rw-r--r-- | mail-filter/simscan/simscan-1.4.0-r2.ebuild | 115 |
3 files changed, 126 insertions, 5 deletions
diff --git a/mail-filter/simscan/ChangeLog b/mail-filter/simscan/ChangeLog index 26484f797eff..8263fa0cead7 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.7 2008/03/02 22:38:04 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.8 2008/03/14 23:52:31 tupone Exp $ + +*simscan-1.4.0-r2 (14 Mar 2008) + + 14 Mar 2008; Tupone Alfredo <tupone@gentoo.org> +simscan-1.4.0-r2.ebuild: + Fixing clamav integration *simscan-1.4.0-r1 (02 Mar 2008) diff --git a/mail-filter/simscan/Manifest b/mail-filter/simscan/Manifest index 6b28fa96b3bb..502cb0784a98 100644 --- a/mail-filter/simscan/Manifest +++ b/mail-filter/simscan/Manifest @@ -7,13 +7,14 @@ DIST simscan-1.3.1.tar.gz 276310 RMD160 a5f33b2d9d06cf2cd0752048577e715f4b71807a DIST simscan-1.4.0.tar.gz 271617 RMD160 c32c54a6d16381bc0b2d28892506dfc2b8c51d56 SHA1 af6a81741d5eb34431434ea33069f03f74f246d1 SHA256 b89d145206ad26420cfbf2f5b25ebf52e236f8ac00cd70ae449e72f3ec935781 EBUILD simscan-1.3.1.ebuild 2802 RMD160 4cc541c1cd9bc402c15777f119a18fa890a65f31 SHA1 317d4bdee71524201ee39959676a0944cab9eab7 SHA256 19713b125a709fdeb55dcbed3c74c4b1a7100c120f6b46feedaf026e7f550718 EBUILD simscan-1.4.0-r1.ebuild 2938 RMD160 4a21d3af525b7830ce53effdd837e3553b898c76 SHA1 063c7c97fa3709bd35e98ac0d550d26a9ae28201 SHA256 91b5fdeffcb7f0f5b9f43588f5b2d0fff5acf8ca8e1e99ad86574b02bb9e74a4 +EBUILD simscan-1.4.0-r2.ebuild 3114 RMD160 ed9d17f3d020a2e516020c01fd1afb9540109543 SHA1 61ba6788e49b072239d1ab4f5860440852b0575a SHA256 3d1f5d4504d1abb5a2d1de2bc97c49c601de193112a3e775554a71f0e6f464b9 EBUILD simscan-1.4.0.ebuild 2788 RMD160 546f25c3e7d0e1b34c2e52f90f4fe7deef5a3d70 SHA1 3b759057ad389b1bfa2f250bb66b84fd5d15b5c1 SHA256 962ff2af0e75f176999c3c51b490b5f24e03fe6fc364179471930b8e4d62daf9 -MISC ChangeLog 1189 RMD160 2d11edf857623569fc2ea0f5dd25e80bf4fa8324 SHA1 2609dae7e72a7ae8540b425bbd8c5aaac6eb5797 SHA256 e925696c1598c9d87a512c62a2b7158d90469b1bab8a712ba1f4a3d7ec556da5 +MISC ChangeLog 1327 RMD160 c0e03c94baad1b38f74adb09b5de590bb51dedab SHA1 7c3d764c65b6caea298b8221e014357b09142569 SHA256 12f099668b90ffb1c0297a9339578201008ac896dd918774e82c8a0a113368d8 MISC metadata.xml 274 RMD160 b34739abe171522004ed69a7df6db178429ed47b SHA1 0714382cdd6138d1a7949f730c60df5e8058b483 SHA256 ae84918a025442981b8832fba60cb274de53724bbe092258d8388985d265bf1e -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) -iD8DBQFHyyxW8qKy9+b2Hl0RArq7AKDSJP7v4Mzl17ooaZuMlTmLZeFyEQCdH3hF -tEB6l2RUfNuKVT48nms8ymE= -=X5qR +iD8DBQFH2w/J8qKy9+b2Hl0RAhUGAJwM8SP8ycBffqKvykCjKzJIgqu5cQCferb1 +PYxKm3wSMSCaZTpUSkcA5eY= +=ps6d -----END PGP SIGNATURE----- diff --git a/mail-filter/simscan/simscan-1.4.0-r2.ebuild b/mail-filter/simscan/simscan-1.4.0-r2.ebuild new file mode 100644 index 000000000000..b28ba28b287e --- /dev/null +++ b/mail-filter/simscan/simscan-1.4.0-r2.ebuild @@ -0,0 +1,115 @@ +# 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-r2.ebuild,v 1.1 2008/03/14 23:52:31 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 custom-smtp-reject dropmsg passthru per-domain +quarantine regex received spamassassin spamc-user spam-auth-user" + +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}"/${PN}-1.3.1-destdir.patch \ + "${FILESDIR}"/${PN}-1.3.1-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 spamc-user) \ + $(use_enable spam-auth-user) \ + $(use_enable passthru spam-passthru) \ + $(use_enable quarantine quarantinedir /var/qmail/quarantine) \ + $(use_enable regex) \ + $(use_enable custom-smtp-reject) \ + $(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 + + # Set directory permission for clamav to do its work + fowners simscan:simscan /var/qmail/simscan + fperms 2750 /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 + use received && /var/qmail/bin/simscanmk -g + + 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 +} |