summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2004-06-03 07:30:32 +0000
committerSeemant Kulleen <seemant@gentoo.org>2004-06-03 07:30:32 +0000
commit70365c7b42b9d8f4a6dd00b05a9d306d0116dfc8 (patch)
tree06d6cdb632b4174c6f16e5bc60ad30475ef6d7b3 /mail-filter
parentPATCH_VER 1.0. Add 9210_all_XFree86-4.3.0-arm32-compiler.h.patch (#52707), 92... (diff)
downloadhistorical-70365c7b42b9d8f4a6dd00b05a9d306d0116dfc8.tar.gz
historical-70365c7b42b9d8f4a6dd00b05a9d306d0116dfc8.tar.bz2
historical-70365c7b42b9d8f4a6dd00b05a9d306d0116dfc8.zip
Moved from net-mail/spamass-milter to mail-filter/spamass-milter.
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamass-milter/ChangeLog17
-rw-r--r--mail-filter/spamass-milter/Manifest7
-rw-r--r--mail-filter/spamass-milter/files/README.gentoo28
-rw-r--r--mail-filter/spamass-milter/files/digest-spamass-milter-0.2.01
-rw-r--r--mail-filter/spamass-milter/files/spamass-milter.conf8
-rw-r--r--mail-filter/spamass-milter/files/spamass-milter.rc30
-rw-r--r--mail-filter/spamass-milter/metadata.xml5
-rw-r--r--mail-filter/spamass-milter/spamass-milter-0.2.0.ebuild41
8 files changed, 137 insertions, 0 deletions
diff --git a/mail-filter/spamass-milter/ChangeLog b/mail-filter/spamass-milter/ChangeLog
new file mode 100644
index 000000000000..5903e3b1c355
--- /dev/null
+++ b/mail-filter/spamass-milter/ChangeLog
@@ -0,0 +1,17 @@
+# ChangeLog for net-mail/spamass-milter
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/ChangeLog,v 1.1 2004/06/03 07:30:32 seemant Exp $
+
+*spamass-milter-0.2.0 (03 Jun 2004)
+
+ 03 Jun 2004; Seemant Kulleen <seemant@gentoo.org> +metadata.xml,
+ +files/README.gentoo, +files/spamass-milter.conf, +files/spamass-milter.rc,
+ +spamass-milter-0.2.0.ebuild:
+ Moved from net-mail/spamass-milter to mail-filter/spamass-milter.
+
+*spamass-milter-0.2.0 (16 Jul 2003)
+
+ 16 Jul 2003; Nick Hadaway <raker@gentoo.org> spamass-milter-0.2.0.ebuild,
+ files/README.gentoo, files/spamass-milter.conf, files/spamass-milter.rc:
+ Original ebuild idea submitted by Vadim Kuznetsov on bug #23136. I have
+ added a proper README.gentoo for final configuration instructions.
diff --git a/mail-filter/spamass-milter/Manifest b/mail-filter/spamass-milter/Manifest
new file mode 100644
index 000000000000..a3895fc802aa
--- /dev/null
+++ b/mail-filter/spamass-milter/Manifest
@@ -0,0 +1,7 @@
+MD5 6eb8a3de8515f037fac65110c0f01563 files/README.gentoo 756
+MD5 8366b48906aec5d343a1796672b3bea3 files/digest-spamass-milter-0.2.0 72
+MD5 f5a92e95d7ac639242f1fe26b9925ee7 files/spamass-milter.conf 392
+MD5 fa4c5561272bfa8ff700a6c19b4392d1 files/spamass-milter.rc 754
+MD5 012b8812ebef06bdd3f494f1c0321c56 ChangeLog 559
+MD5 5721b86fd871bdfab77231abc6e02f68 metadata.xml 161
+MD5 dfc24bbe694eba2946901b850573ea64 spamass-milter-0.2.0.ebuild 1119
diff --git a/mail-filter/spamass-milter/files/README.gentoo b/mail-filter/spamass-milter/files/README.gentoo
new file mode 100644
index 000000000000..470d2f31001d
--- /dev/null
+++ b/mail-filter/spamass-milter/files/README.gentoo
@@ -0,0 +1,28 @@
+Simple install instructions by raker@gentoo.org :)
+--------------------------------------------------
+
+Open /etc/mail/sendmail.mc in your favorite editor:
+
+ nano /etc/mail/sendmail.mc
+
+Add these lines before MAILER(local):
+
+INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/spamass-milter.sock, F=, T=C:15m;S:4m;R:4m;E:10m')dnl
+define(`confMILTER_MACROS_CONNECT',`b, j, _, {daemon_name}, {if_name}, {if_addr}')dnl
+
+When that's done run this command:
+
+ m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
+
+Restart associated services:
+
+ /etc/init.d/sendmail stop
+ /etc/init.d/spamass-milter start
+ /etc/init.d/sendmail start
+
+OPTIONAL: To run it automatically after booting:
+
+ rc-update add spamass-milter default
+ rc-update add sendmail default
+
+That's it.
diff --git a/mail-filter/spamass-milter/files/digest-spamass-milter-0.2.0 b/mail-filter/spamass-milter/files/digest-spamass-milter-0.2.0
new file mode 100644
index 000000000000..ac186872819a
--- /dev/null
+++ b/mail-filter/spamass-milter/files/digest-spamass-milter-0.2.0
@@ -0,0 +1 @@
+MD5 70da3e4a6039f5e738ce21f69430e230 spamass-milter-0.2.0.tar.gz 113894
diff --git a/mail-filter/spamass-milter/files/spamass-milter.conf b/mail-filter/spamass-milter/files/spamass-milter.conf
new file mode 100644
index 000000000000..01ff8fcc4518
--- /dev/null
+++ b/mail-filter/spamass-milter/files/spamass-milter.conf
@@ -0,0 +1,8 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.conf,v 1.1 2004/06/03 07:30:32 seemant Exp $
+
+DAEMON=/usr/sbin/spamass-milter
+SOCKET=/var/run/spamass-milter.sock
+PIDFILE=/var/run/spamass-milter.pid
+DESC="Sendmail milter plugin for SpamAssassin"
diff --git a/mail-filter/spamass-milter/files/spamass-milter.rc b/mail-filter/spamass-milter/files/spamass-milter.rc
new file mode 100644
index 000000000000..904d515894bb
--- /dev/null
+++ b/mail-filter/spamass-milter/files/spamass-milter.rc
@@ -0,0 +1,30 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/files/spamass-milter.rc,v 1.1 2004/06/03 07:30:32 seemant Exp $
+
+# NB: Config is in /etc/conf.d/spamass-milter
+
+depend() {
+ need net spamd
+ use logger
+ before sendmail
+}
+
+start() {
+ ebegin "Starting $DESC"
+ start-stop-daemon --start --quiet --make-pidfile --pidfile ${PIDFILE}\
+ --exec ${DAEMON} -- -p ${SOCKET} -f
+ eend $? "Failed to start ${DAEMON}"
+}
+
+stop() {
+ ebegin "Stopping $DESC"
+ {
+ killall ${DAEMON}
+ /bin/sleep 5s
+ /bin/rm -f ${SOCKET}
+ /bin/rm -f ${PIDFILE}
+ } && kill -1 `head -n 1 /var/run/sendmail.pid`
+ eend $? "Failed to stop ${DAEMON}"
+}
diff --git a/mail-filter/spamass-milter/metadata.xml b/mail-filter/spamass-milter/metadata.xml
new file mode 100644
index 000000000000..51f94e3fbe0e
--- /dev/null
+++ b/mail-filter/spamass-milter/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+</pkgmetadata>
diff --git a/mail-filter/spamass-milter/spamass-milter-0.2.0.ebuild b/mail-filter/spamass-milter/spamass-milter-0.2.0.ebuild
new file mode 100644
index 000000000000..9e5abea741df
--- /dev/null
+++ b/mail-filter/spamass-milter/spamass-milter-0.2.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamass-milter/spamass-milter-0.2.0.ebuild,v 1.1 2004/06/03 07:30:32 seemant Exp $
+
+IUSE=""
+
+DESCRIPTION="A Sendmail milter for SpamAssassin"
+HOMEPAGE="http://savannah.nongnu.org/projects/spamass-milt/"
+SRC_URI="http://savannah.nongnu.org/download/spamass-milt/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ~sparc"
+
+DEPEND=">=sys-devel/autoconf-2.57
+ >=sys-devel/automake-1.7.2"
+RDEPEND=">=mail-mta/sendmail-8.12.9
+ >=dev-perl/Mail-SpamAssassin-2.53"
+
+S=${WORKDIR}/${P}
+
+src_compile() {
+ econf || die
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS NEWS README ChangeLog ${FILESDIR}/README.gentoo
+
+ exeinto /etc/init.d ; newexe ${FILESDIR}/spamass-milter.rc spamass-milter
+ insinto /etc/conf.d ; newins ${FILESDIR}/spamass-milter.conf spamass-milter
+}
+
+pkg_postinst() {
+ einfo ""
+ einfo "less /usr/share/doc/spamass-milter-0.2.0/README.gentoo.gz"
+ einfo "Very concise and simple install instructions. :)"
+ einfo ""
+}