diff options
author | David CHANIAL (davixx) <david@chanial.com> | 2006-06-21 10:19:02 +0000 |
---|---|---|
committer | David CHANIAL (davixx) <david@chanial.com> | 2006-06-21 10:19:02 +0000 |
commit | abc18f759c7b1c10d96c06dea163faf966db4c47 (patch) | |
tree | 0e302271cd4ee1047d4b69574d07ca15157d5147 /net-mail | |
parent | New icepy Ebuild for bug 135207 (diff) | |
download | sunrise-reviewed-abc18f759c7b1c10d96c06dea163faf966db4c47.tar.gz sunrise-reviewed-abc18f759c7b1c10d96c06dea163faf966db4c47.tar.bz2 sunrise-reviewed-abc18f759c7b1c10d96c06dea163faf966db4c47.zip |
New simscan-1.1.ebuild Ebuild for bug 90605 thanks to Helge Aksdal, Ed Cates, David CHANIAL
svn path=/sunrise/; revision=160
Diffstat (limited to 'net-mail')
-rw-r--r-- | net-mail/simscan/ChangeLog | 7 | ||||
-rw-r--r-- | net-mail/simscan/Manifest | 12 | ||||
-rw-r--r-- | net-mail/simscan/files/digest-simscan-1.1 | 3 | ||||
-rw-r--r-- | net-mail/simscan/simscan-1.1.ebuild | 155 |
4 files changed, 177 insertions, 0 deletions
diff --git a/net-mail/simscan/ChangeLog b/net-mail/simscan/ChangeLog new file mode 100644 index 000000000..05876d806 --- /dev/null +++ b/net-mail/simscan/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for net-mail/simscan +# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 21 Jun 2006; David CHANIAL <david@chanial.com> ChangeLog: + New Ebuild for bug 90605 thanks to Helge Aksdal, Ed Cates, David CHANIAL + diff --git a/net-mail/simscan/Manifest b/net-mail/simscan/Manifest new file mode 100644 index 000000000..3570a5af5 --- /dev/null +++ b/net-mail/simscan/Manifest @@ -0,0 +1,12 @@ +DIST simscan-1.1.tar.gz 130114 RMD160 080ec02382e15a93b09719573951783d907bc26b SHA1 9bc0d085f851e0823539e72da2efd238d406dc63 SHA256 0bf09145b003e93e4986eead18778ce9ae4af691c3a99e180bdd04116c082813 +EBUILD simscan-1.1.ebuild 3716 RMD160 13bfebb40a3959e4081d2b157ef0cc0f300e6e37 SHA1 08ad7a4671cae1e5b2d939a44c826ca75c23ce39 SHA256 83500c303c25dd4c5c3d0227e5151e843b95a8b8f549c8814b536ec5621c1870 +MD5 2d6e44afd30f9f6c210218d8f98e0957 simscan-1.1.ebuild 3716 +RMD160 13bfebb40a3959e4081d2b157ef0cc0f300e6e37 simscan-1.1.ebuild 3716 +SHA256 83500c303c25dd4c5c3d0227e5151e843b95a8b8f549c8814b536ec5621c1870 simscan-1.1.ebuild 3716 +MISC ChangeLog 253 RMD160 185f953f4415edb351a3d6496e3a2efe87ce5460 SHA1 1a59da234695c9abe1b9ffe2a9afc37add799f97 SHA256 36acfbdf14dedb060a1c7e90665f674f56b69b91de0168b67522b9087ef58b3a +MD5 caa97ba8c0665de573504a591047da1b ChangeLog 253 +RMD160 185f953f4415edb351a3d6496e3a2efe87ce5460 ChangeLog 253 +SHA256 36acfbdf14dedb060a1c7e90665f674f56b69b91de0168b67522b9087ef58b3a ChangeLog 253 +MD5 eacedb7b11ccd1c8e0d9ad5451cf4ee5 files/digest-simscan-1.1 235 +RMD160 53f3ff3d5161080d07aadcaff36ac119ce6f94cc files/digest-simscan-1.1 235 +SHA256 114dfff420c01d8fd79a0711ed30f5a59b7cac783e6084743a87e1c566ab7b11 files/digest-simscan-1.1 235 diff --git a/net-mail/simscan/files/digest-simscan-1.1 b/net-mail/simscan/files/digest-simscan-1.1 new file mode 100644 index 000000000..93b3cce15 --- /dev/null +++ b/net-mail/simscan/files/digest-simscan-1.1 @@ -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.ebuild b/net-mail/simscan/simscan-1.1.ebuild new file mode 100644 index 000000000..b4a4cb356 --- /dev/null +++ b/net-mail/simscan/simscan-1.1.ebuild @@ -0,0 +1,155 @@ +# 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="clamav attachement custom-smtp-reject dropmsg regex quarantine perdomain +received spamassassin passthru" + +DEPEND=" + clamav? ( app-antivirus/clamav ) + attachement? ( net-mail/ripmime ) + spamassassin? ( mail-filter/spamassassin ) + regex? ( dev-libs/libpcre ) +" +RDEPEND="${DEPEND} + virtual/qmail +" + +RESTRICT=strip + +pkg_setup() { + enewgroup clamav + enewuser simscan -1 -1 /dev/null clamav '-c "simscan user (portage)"' +} + +src_compile() { + local myconf + + if use clamav ; then + myconf="${myconf} --enable-clamav=y" + else + myconf="${myconf} --enable-clamav=n" + fi + + if use attachement ; then + myconf="${myconf} --enable-attach=y" + myconf="${myconf} --enable-ripmime=/usr/bin/ripmime" + else + myconf="${myconf} --enable-attach=n" + fi + + if use custom-smtp-reject ; then + myconf="${myconf} --enable-custom-smtp-reject=y" + else + myconf="${myconf} --enable-custom-smtp-reject=n" + fi + + if use dropmsg ; then + myconf="${myconf} --enable-dropmsg=y" + else + myconf="${myconf} --enable-dropmsg=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 perdomain ; then + myconf="${myconf} --enable-per-domain=y" + else + myconf="${myconf} --enable-per-domain=n" + fi + + if use received ; then + myconf="${myconf} --enable-received=y" + else + myconf="${myconf} --enable-received=n" + fi + + 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 simscan /var/qmail/simscan /var/qmail/bin/simscan + fperms 4711 /var/qmail/bin/simscan + + if use perdomain ; 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 + einfo "Becareful, if you use the \"custom-smtp-reject\" flag you will" + einfo "have many problems if qmail was not patched with" + einfo "qmail-queue-custom-error.patch" + einfo "" + ewarn "If your not sure, re-emerge simscan without this flag" + einfo "" + fi + + einfo "Now update the simscan configuration files :" + ewarn "You have to do that after clamav or spamassassin update" + einfo "" + einfo "/var/qmail/bin/simscanmk" + einfo "`/var/qmail/bin/simscanmk`" + einfo "" + einfo "/var/qmail/bin/simscanmk -g" + einfo "`/var/qmail/bin/simscanmk -g`" + einfo "" + + einfo "You must have qmail with QMAILQUEUE patch" + einfo "And, in order use simscan, edit your tcp.qmail-smtpd rules" + einfo "and update as follow (for example only)" + einfo "" + einfo ":allow,QMAILQUEUE=\"/var/qmail/bin/simscan\"" + einfo "" + + ewarn "Read the documentation and personnalize /var/qmail/control/simcontrol" + einfo "" +} |