diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2008-03-02 22:38:04 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2008-03-02 22:38:04 +0000 |
commit | 03bc345c86342602aa48818fe7b10da50a4a123d (patch) | |
tree | 0066d37cd61a7078d678c1d7b2a0a24715eec49b /mail-filter | |
parent | Adding use flags for mail-filter/simscan (diff) | |
download | historical-03bc345c86342602aa48818fe7b10da50a4a123d.tar.gz historical-03bc345c86342602aa48818fe7b10da50a4a123d.tar.bz2 historical-03bc345c86342602aa48818fe7b10da50a4a123d.zip |
Adding USE flags for spamc-user, spam-auth-user and custom-smtp-reject
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 | 13 | ||||
-rw-r--r-- | mail-filter/simscan/simscan-1.4.0-r1.ebuild | 110 |
3 files changed, 128 insertions, 2 deletions
diff --git a/mail-filter/simscan/ChangeLog b/mail-filter/simscan/ChangeLog index d1de5e4d15a6..26484f797eff 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.6 2008/02/25 17:21:50 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/mail-filter/simscan/ChangeLog,v 1.7 2008/03/02 22:38:04 tupone Exp $ + +*simscan-1.4.0-r1 (02 Mar 2008) + + 02 Mar 2008; Tupone Alfredo <tupone@gentoo.org> +simscan-1.4.0-r1.ebuild: + Adding USE flags for spamc-user, spam-auth-user and custom-smtp-reject 25 Feb 2008; Jeroen Roovers <jer@gentoo.org> simscan-1.4.0.ebuild: Fix patch names (thanks to Tobias Schlitt on IRC). diff --git a/mail-filter/simscan/Manifest b/mail-filter/simscan/Manifest index bc713bc1c72c..6b28fa96b3bb 100644 --- a/mail-filter/simscan/Manifest +++ b/mail-filter/simscan/Manifest @@ -1,8 +1,19 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX simscan-1.3.1-destdir.patch 935 RMD160 d5db9529ae9c00f22674a14ac5163f6e2b678d66 SHA1 0923a2a9e31c50f7d02b4951282195bcb3ddce29 SHA256 3b1e2ba3b5c6e69f25d079857c42960b591b3641a184d54bb55c7ecbda158936 AUX simscan-1.3.1-printf.patch 328 RMD160 4d21f6479403818d70feef6d04f5ae6010d33365 SHA1 6333e8f55fe27549d3cf969eda67a7f01c744e87 SHA256 edc1ffb01ee4188ece0ce4b9c48c7e816e3d58ebde1ea9ee883253f3c84c995b DIST simscan-1.3.1.tar.gz 276310 RMD160 a5f33b2d9d06cf2cd0752048577e715f4b71807a SHA1 6562b30e4cf609ca7d77aefbe3163bc5297d8a7b SHA256 1ad31a0d8df9115d091e60fa2bb0c8d8fdd39bb12ac85dfcf69b851a8efe7f0a 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.ebuild 2788 RMD160 546f25c3e7d0e1b34c2e52f90f4fe7deef5a3d70 SHA1 3b759057ad389b1bfa2f250bb66b84fd5d15b5c1 SHA256 962ff2af0e75f176999c3c51b490b5f24e03fe6fc364179471930b8e4d62daf9 -MISC ChangeLog 1003 RMD160 4a8bf582b36a3f2b4c8e95320e697cb1cea48a7a SHA1 c2aedad43e549b0412fe6b98983843ad28c036c6 SHA256 73f2206455fed45aaf1174be3a736d0e39dc0edce46a588c5d09bb279eef02ef +MISC ChangeLog 1189 RMD160 2d11edf857623569fc2ea0f5dd25e80bf4fa8324 SHA1 2609dae7e72a7ae8540b425bbd8c5aaac6eb5797 SHA256 e925696c1598c9d87a512c62a2b7158d90469b1bab8a712ba1f4a3d7ec556da5 MISC metadata.xml 274 RMD160 b34739abe171522004ed69a7df6db178429ed47b SHA1 0714382cdd6138d1a7949f730c60df5e8058b483 SHA256 ae84918a025442981b8832fba60cb274de53724bbe092258d8388985d265bf1e +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFHyyxW8qKy9+b2Hl0RArq7AKDSJP7v4Mzl17ooaZuMlTmLZeFyEQCdH3hF +tEB6l2RUfNuKVT48nms8ymE= +=X5qR +-----END PGP SIGNATURE----- diff --git a/mail-filter/simscan/simscan-1.4.0-r1.ebuild b/mail-filter/simscan/simscan-1.4.0-r1.ebuild new file mode 100644 index 000000000000..7aead3d8fc6c --- /dev/null +++ b/mail-filter/simscan/simscan-1.4.0-r1.ebuild @@ -0,0 +1,110 @@ +# 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-r1.ebuild,v 1.1 2008/03/02 22:38:04 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 + + 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 +} |