summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Moc <jakub@gentoo.org>2006-07-31 11:43:21 +0000
committerJakub Moc <jakub@gentoo.org>2006-07-31 11:43:21 +0000
commit6ab619df19c2d8b914f2d4c7f06ecb9863e6ef48 (patch)
tree641caf40c7318b3d2e2cc140299d931657cfe278 /net-mail/simscan
parentnet-firewall/conntrack: Fix RDEPEND typo (diff)
downloadsunrise-6ab619df19c2d8b914f2d4c7f06ecb9863e6ef48.tar.gz
sunrise-6ab619df19c2d8b914f2d4c7f06ecb9863e6ef48.tar.bz2
sunrise-6ab619df19c2d8b914f2d4c7f06ecb9863e6ef48.zip
net-mail/simscan: Sort use flags alphabetically, shorten src_compile, einfo -> ewarn/elog, cosmetics
svn path=/sunrise/; revision=761
Diffstat (limited to 'net-mail/simscan')
-rw-r--r--net-mail/simscan/ChangeLog4
-rw-r--r--net-mail/simscan/Manifest15
-rw-r--r--net-mail/simscan/files/digest-simscan-1.1-r23
-rw-r--r--net-mail/simscan/simscan-1.1-r2.ebuild132
4 files changed, 150 insertions, 4 deletions
diff --git a/net-mail/simscan/ChangeLog b/net-mail/simscan/ChangeLog
index 2c6a2fb5f..2bf186812 100644
--- a/net-mail/simscan/ChangeLog
+++ b/net-mail/simscan/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 31 Jul 2006; Jakub Moc <jakub@gentoo.org> +simscan-1.1-r2.ebuild:
+ Sort use flags alphabetically, shorten src_compile, einfo -> ewarn/elog,
+ cosmetics
+
21 Jul 2006; David CHANIAL (davixx) <david@chanial.com>
+simscan-1.1-r1.ebuild:
new simscan-1.1-r1.ebuild - correcting somes bugs (owners, keepdir)
diff --git a/net-mail/simscan/Manifest b/net-mail/simscan/Manifest
index 27b8a5908..aebdb4963 100644
--- a/net-mail/simscan/Manifest
+++ b/net-mail/simscan/Manifest
@@ -3,14 +3,18 @@ EBUILD simscan-1.1-r1.ebuild 3763 RMD160 dbaaa66dda9f18c83bdf7f7be6f05ee6ad784ed
MD5 aa8f545fab964c66d4834bb995968bff simscan-1.1-r1.ebuild 3763
RMD160 dbaaa66dda9f18c83bdf7f7be6f05ee6ad784ed3 simscan-1.1-r1.ebuild 3763
SHA256 8f5e5b15c9a394320eaed0b45e9e6c8082b24bd5364541b1a61bed100a6790e2 simscan-1.1-r1.ebuild 3763
+EBUILD simscan-1.1-r2.ebuild 3312 RMD160 9be528d3d0439be2151eaa9e349d93bd154737c2 SHA1 15e1b761a26a49001928a7d4f4b9053765fc3ff7 SHA256 766ae2fa47fe8ffcb201aaf579584a7fd9f5cc503a4133224c1e5fc97b1a97e9
+MD5 0ca69efeb24b7bd44a6bad2caf6eb9a0 simscan-1.1-r2.ebuild 3312
+RMD160 9be528d3d0439be2151eaa9e349d93bd154737c2 simscan-1.1-r2.ebuild 3312
+SHA256 766ae2fa47fe8ffcb201aaf579584a7fd9f5cc503a4133224c1e5fc97b1a97e9 simscan-1.1-r2.ebuild 3312
EBUILD simscan-1.1.ebuild 3207 RMD160 a8bdfa98097d08c0b44472c48318b412f93948e5 SHA1 f5b0909fe00a5f579be5271bed7daa26b1c64b91 SHA256 b6307b2b775165b29e865762437d2f9cf90cbb20a2a0461d6cd697bc3e4a86e9
MD5 b65b28ff46c17b698732e6ec10bf1f17 simscan-1.1.ebuild 3207
RMD160 a8bdfa98097d08c0b44472c48318b412f93948e5 simscan-1.1.ebuild 3207
SHA256 b6307b2b775165b29e865762437d2f9cf90cbb20a2a0461d6cd697bc3e4a86e9 simscan-1.1.ebuild 3207
-MISC ChangeLog 408 RMD160 6c064f3ba1c01a9276852d9fd69f523c2867cfb2 SHA1 0806db866702442d213f503cf0001b6c2061e8c3 SHA256 590cb21e41e792c2c16c4bd018d92580f6680c686dcba26800db0dda91aaf095
-MD5 88c721141a32a7359aa95d0008bf9316 ChangeLog 408
-RMD160 6c064f3ba1c01a9276852d9fd69f523c2867cfb2 ChangeLog 408
-SHA256 590cb21e41e792c2c16c4bd018d92580f6680c686dcba26800db0dda91aaf095 ChangeLog 408
+MISC ChangeLog 564 RMD160 c43cce4fb14caaff92dd7b6665ee2ffa2cedf7c0 SHA1 bb56dda6e296579eff4113848580dc2d9a3b580a SHA256 426abd39cceb6d053a43c9cf745c7fd16d25c40bb3f0c1aed4712522792b46af
+MD5 58d41f147a9019854d39fd3897bda270 ChangeLog 564
+RMD160 c43cce4fb14caaff92dd7b6665ee2ffa2cedf7c0 ChangeLog 564
+SHA256 426abd39cceb6d053a43c9cf745c7fd16d25c40bb3f0c1aed4712522792b46af ChangeLog 564
MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
@@ -21,3 +25,6 @@ SHA256 114dfff420c01d8fd79a0711ed30f5a59b7cac783e6084743a87e1c566ab7b11 files/di
MD5 eacedb7b11ccd1c8e0d9ad5451cf4ee5 files/digest-simscan-1.1-r1 235
RMD160 53f3ff3d5161080d07aadcaff36ac119ce6f94cc files/digest-simscan-1.1-r1 235
SHA256 114dfff420c01d8fd79a0711ed30f5a59b7cac783e6084743a87e1c566ab7b11 files/digest-simscan-1.1-r1 235
+MD5 eacedb7b11ccd1c8e0d9ad5451cf4ee5 files/digest-simscan-1.1-r2 235
+RMD160 53f3ff3d5161080d07aadcaff36ac119ce6f94cc files/digest-simscan-1.1-r2 235
+SHA256 114dfff420c01d8fd79a0711ed30f5a59b7cac783e6084743a87e1c566ab7b11 files/digest-simscan-1.1-r2 235
diff --git a/net-mail/simscan/files/digest-simscan-1.1-r2 b/net-mail/simscan/files/digest-simscan-1.1-r2
new file mode 100644
index 000000000..93b3cce15
--- /dev/null
+++ b/net-mail/simscan/files/digest-simscan-1.1-r2
@@ -0,0 +1,3 @@
+MD5 2ba25145dc0c1b6159f26f3f4c03d3c6 simscan-1.1.tar.gz 130114
+RMD160 080ec02382e15a93b09719573951783d907bc26b simscan-1.1.tar.gz 130114
+SHA256 0bf09145b003e93e4986eead18778ce9ae4af691c3a99e180bdd04116c082813 simscan-1.1.tar.gz 130114
diff --git a/net-mail/simscan/simscan-1.1-r2.ebuild b/net-mail/simscan/simscan-1.1-r2.ebuild
new file mode 100644
index 000000000..afc08db1e
--- /dev/null
+++ b/net-mail/simscan/simscan-1.1-r2.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+DESCRIPTION="Simscan is a simple program that enables qmail-smtpd to reject viruses, spam, and block attachments during the SMTP conversation"
+HOMEPAGE="http://www.inter7.com/?page=simscan"
+SRC_URI="http://www.inter7.com/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="attachment clamav custom-smtp-reject dropmsg passthru per-domain quarantine received regex spamassassin"
+
+DEPEND="clamav? ( app-antivirus/clamav )
+ attachment? ( net-mail/ripmime )
+ spamassassin? ( mail-filter/spamassassin )
+ regex? ( dev-libs/libpcre )"
+RDEPEND="${DEPEND}
+ virtual/qmail"
+
+RESTRICT="strip"
+
+pkg_setup() {
+ enewgroup clamav
+ enewuser clamav -1 -1 /dev/null clamav
+}
+
+src_compile() {
+ local myconf
+
+ myconf="${myconf} --enable-user=clamav"
+
+ for flag in clamav custom-smtp-reject dropmsg per-domain received ; do
+ if use ${flag} ; then
+ myconf="${myconf} --enable-${flag}=y"
+ else
+ myconf="${myconf} --enable-${flag}=n"
+ fi
+ done
+
+ if use attachment ; then
+ myconf="${myconf} --enable-attach=y"
+ myconf="${myconf} --enable-ripmime=/usr/bin/ripmime"
+ else
+ myconf="${myconf} --enable-attach=n"
+ fi
+
+ if use regex ; then
+ myconf="${myconf} --enable-regex=y"
+ myconf="${myconf} --enable-pcre"
+ else
+ myconf="${myconf} --enable-regex=n"
+ fi
+
+ use quarantine && myconf="${myconf} --enable-quarantinedir"
+
+ if use spamassassin ; then
+ myconf="${myconf} --enable-spam=y"
+ if use passthru ; then
+ myconf="${myconf} --enable-spam-passthru=y"
+ else
+ myconf="${myconf} --enable-spam-passthru=n"
+ fi
+ else
+ myconf="${myconf} --enable-spam=n"
+ fi
+
+ econf ${myconf} || die "econf failed"
+ emake simscan_LDFLAGS=-Wl,-z,now || die "emake failed"
+}
+
+src_install() {
+ einfo "Installing documentation and contrib files"
+ dodoc AUTHORS README TODO
+
+ docinto contrib
+ dodoc contrib/*.patch
+
+ einfo "Installing binaries"
+ exeinto /var/qmail/bin
+ doexe simscan
+ doexe simscanmk
+
+ diropts -m750
+ dodir /var/qmail/simscan
+ fowners clamav:clamav /var/qmail/simscan /var/qmail/bin/simscan
+ fperms 4711 /var/qmail/bin/simscan
+ keepdir /var/qmail/simscan
+
+ if use per-domain ; then
+ einfo "Setting default configuration..."
+ echo ':clam=yes,spam=yes' > simcontrol
+ insopts -o root -g root -m 644
+ insinto /var/qmail/control
+ doins simcontrol
+ fi
+}
+
+pkg_postinst() {
+ einfo ""
+
+ if use custom-smtp-reject ; then
+ ewarn "Be careful, if you use the \"custom-smtp-reject\" flag you will"
+ ewarn "have many problems if qmail was not patched with"
+ ewarn "qmail-queue-custom-error.patch"
+ ewarn
+ ewarn "If your not sure, re-emerge simscan without this flag"
+ ewarn
+ fi
+
+ elog "Now update the simscan configuration files :"
+ elog "You have to do that after clamav or spamassassin update"
+ elog
+ elog "/var/qmail/bin/simscanmk"
+ elog "`/var/qmail/bin/simscanmk`"
+ elog ""
+ elog "/var/qmail/bin/simscanmk -g"
+ elog "`/var/qmail/bin/simscanmk -g`"
+ elog ""
+
+ elog "You must have qmail with QMAILQUEUE patch"
+ elog "And, in order use simscan, edit your tcp.qmail-smtpd rules"
+ elog "and update as follow (for example only)"
+ elog
+ elog ":allow,QMAILQUEUE=\"/var/qmail/bin/simscan\""
+ elog
+
+ elog "Read the documentation and personalize /var/qmail/control/simcontrol"
+ elog ""
+}