summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Goodyear <g2boojum@gentoo.org>2002-06-10 21:11:19 +0000
committerGrant Goodyear <g2boojum@gentoo.org>2002-06-10 21:11:19 +0000
commite8e61fbfac0da76cecb0469775db3c3797bf7658 (patch)
tree3a30d6d70990aa529b76adf0a0546db268a36404 /net-mail/qmail-scanner
parentrepoman test commit (diff)
downloadhistorical-e8e61fbfac0da76cecb0469775db3c3797bf7658.tar.gz
historical-e8e61fbfac0da76cecb0469775db3c3797bf7658.tar.bz2
historical-e8e61fbfac0da76cecb0469775db3c3797bf7658.zip
New package. Close bug #3552. Needs to be tested.
Diffstat (limited to 'net-mail/qmail-scanner')
-rw-r--r--net-mail/qmail-scanner/files/digest-qmail-scanner-1.121
-rw-r--r--net-mail/qmail-scanner/qmail-scanner-1.12.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/net-mail/qmail-scanner/files/digest-qmail-scanner-1.12 b/net-mail/qmail-scanner/files/digest-qmail-scanner-1.12
new file mode 100644
index 000000000000..46a52cdfbb94
--- /dev/null
+++ b/net-mail/qmail-scanner/files/digest-qmail-scanner-1.12
@@ -0,0 +1 @@
+MD5 a0e60f61d363b0675f443fa3fcdcd9ec qmail-scanner-1.12.tgz 115488
diff --git a/net-mail/qmail-scanner/qmail-scanner-1.12.ebuild b/net-mail/qmail-scanner/qmail-scanner-1.12.ebuild
new file mode 100644
index 000000000000..9272c7f1d0db
--- /dev/null
+++ b/net-mail/qmail-scanner/qmail-scanner-1.12.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail-scanner/qmail-scanner-1.12.ebuild,v 1.1 2002/06/10 21:11:19 g2boojum Exp $
+
+DESCRIPTION="E-Mail virus scanner for qmail."
+HOMEPAGE="http://qmail-scanner.sourceforge.net"
+DEPEND=">=sys-devel/perl-5.6.1-r1
+ >=dev-perl/Time-HiRes-01.20
+ >=net-mail/tnef-1.1.1
+ >=net-mail/f-prot-3.12a
+ >=net-mail/maildrop-1.3.9
+ >=dev-perl/DB_File-1.803
+ >=net-mail/qmail-1.03-r8"
+
+#RDEPEND=""
+
+SRC_URI="http://dl.sourceforge.net/qmail-scanner/${P}.tgz"
+
+S=${WORKDIR}/${P}
+
+src_compile () {
+ # Do nothing
+ echo
+}
+
+src_install () {
+ yes | PATH=${PATH}:/opt/f-prot ./configure \
+ --domain localhost \
+ || die "./configure failed!"
+
+ # Create Directory Structure
+ diropts -m 755 -o qmailq -g qmail
+ dodir /var/spool/qmailscan
+ dodir /var/spool/qmailscan/quarantine
+ dodir /var/spool/qmailscan/quarantine/tmp
+ dodir /var/spool/qmailscan/quarantine/new
+ dodir /var/spool/qmailscan/quarantine/cur
+ dodir /var/spool/qmailscan/working
+ dodir /var/spool/qmailscan/working/tmp
+ dodir /var/spool/qmailscan/working/new
+ dodir /var/spool/qmailscan/working/cur
+ dodir /var/spool/qmailscan/archive
+ dodir /var/spool/qmailscan/archive/tmp
+ dodir /var/spool/qmailscan/archive/new
+ dodir /var/spool/qmailscan/archive/cur
+
+ # Install standard quarantine attachments file
+ insinto /var/spool/qmailscan
+ insopts -m 644 -o qmailq -g qmail
+ doins quarantine-attachments.txt
+
+ # Install qmail-scanner script
+ insinto /var/qmail/bin
+ insopts -m 4755 -o qmailq -g qmail
+ doins qmail-scanner-queue.pl
+
+ # Install documentation
+ dodoc README CHANGES COPYING
+ dohtml README.html
+}
+
+pkg_postinst () {
+ # Setup perlscanner + Version Info
+ /var/qmail/bin/qmail-scanner-queue.pl -z
+ /var/qmail/bin/qmail-scanner-queue.pl -g
+
+ echo
+ echo "NOTICE:"
+ echo "Set QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl"
+ echo "in your /etc/tcp.smtp file to activate qmail-scanner."
+ echo
+}