diff options
author | 2006-11-03 23:39:46 +0000 | |
---|---|---|
committer | 2006-11-03 23:39:46 +0000 | |
commit | 940ef657a0f559cf4f9e8e08a3e013bed909e630 (patch) | |
tree | 556f2c99c70777a75e99f38bed2acf4db66be737 /net-mail/simscan/simscan-1.1.ebuild | |
parent | manifest (diff) | |
download | sunrise-940ef657a0f559cf4f9e8e08a3e013bed909e630.tar.gz sunrise-940ef657a0f559cf4f9e8e08a3e013bed909e630.tar.bz2 sunrise-940ef657a0f559cf4f9e8e08a3e013bed909e630.zip |
simscan/Manifest: old
svn path=/sunrise/; revision=1808
Diffstat (limited to 'net-mail/simscan/simscan-1.1.ebuild')
-rw-r--r-- | net-mail/simscan/simscan-1.1.ebuild | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/net-mail/simscan/simscan-1.1.ebuild b/net-mail/simscan/simscan-1.1.ebuild deleted file mode 100644 index 766c0e12a..000000000 --- a/net-mail/simscan/simscan-1.1.ebuild +++ /dev/null @@ -1,127 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -inherit eutils - -DESCRIPTION="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 received passthru per-domain regex quarantine 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 simscan -1 -1 /dev/null clamav -} - -src_compile() { - local myconf - - 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 simscan /var/qmail/simscan /var/qmail/bin/simscan - fperms 4711 /var/qmail/bin/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() { - if use custom-smtp-reject ; then - ewarn - ewarn "Be careful when using 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 "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 -} |