summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-07-16 22:03:20 +0000
committerNick Hadaway <raker@gentoo.org>2003-07-16 22:03:20 +0000
commit21346958c37c5f3f886e0184ec17b9c63e509cc2 (patch)
treece6b696e6270120730910914e7ecee901f70c330 /net-mail/spamass-milter
parentCleanup the build again. Fix my BOOTS kludge, and remove the patch. (diff)
downloadhistorical-21346958c37c5f3f886e0184ec17b9c63e509cc2.tar.gz
historical-21346958c37c5f3f886e0184ec17b9c63e509cc2.tar.bz2
historical-21346958c37c5f3f886e0184ec17b9c63e509cc2.zip
New ebuild. Nice plugin. :)
Diffstat (limited to 'net-mail/spamass-milter')
-rw-r--r--net-mail/spamass-milter/ChangeLog10
-rw-r--r--net-mail/spamass-milter/Manifest6
-rw-r--r--net-mail/spamass-milter/files/README.gentoo28
-rw-r--r--net-mail/spamass-milter/files/digest-spamass-milter-0.2.01
-rw-r--r--net-mail/spamass-milter/files/spamass-milter.conf10
-rw-r--r--net-mail/spamass-milter/files/spamass-milter.rc37
-rw-r--r--net-mail/spamass-milter/spamass-milter-0.2.0.ebuild41
7 files changed, 133 insertions, 0 deletions
diff --git a/net-mail/spamass-milter/ChangeLog b/net-mail/spamass-milter/ChangeLog
new file mode 100644
index 000000000000..fb1721b41edf
--- /dev/null
+++ b/net-mail/spamass-milter/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-mail/spamass-milter
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/ChangeLog,v 1.1 2003/07/16 22:03:20 raker Exp $
+
+*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/net-mail/spamass-milter/Manifest b/net-mail/spamass-milter/Manifest
new file mode 100644
index 000000000000..a24b5194f207
--- /dev/null
+++ b/net-mail/spamass-milter/Manifest
@@ -0,0 +1,6 @@
+MD5 f2b3146f3a74ff216f54e2bc9e453593 spamass-milter-0.2.0.ebuild 1023
+MD5 7441a08ff0b6beec1579303de9e3557c ChangeLog 464
+MD5 6eb8a3de8515f037fac65110c0f01563 files/README.gentoo 756
+MD5 743a0f95c8c470ddbadbe3c355526cc3 files/spamass-milter.rc 881
+MD5 8366b48906aec5d343a1796672b3bea3 files/digest-spamass-milter-0.2.0 72
+MD5 b189a3084e4706869379a40b5b0d3fdc files/spamass-milter.conf 336
diff --git a/net-mail/spamass-milter/files/README.gentoo b/net-mail/spamass-milter/files/README.gentoo
new file mode 100644
index 000000000000..470d2f31001d
--- /dev/null
+++ b/net-mail/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/net-mail/spamass-milter/files/digest-spamass-milter-0.2.0 b/net-mail/spamass-milter/files/digest-spamass-milter-0.2.0
new file mode 100644
index 000000000000..ac186872819a
--- /dev/null
+++ b/net-mail/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/net-mail/spamass-milter/files/spamass-milter.conf b/net-mail/spamass-milter/files/spamass-milter.conf
new file mode 100644
index 000000000000..d36316c7f866
--- /dev/null
+++ b/net-mail/spamass-milter/files/spamass-milter.conf
@@ -0,0 +1,10 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Config file for /etc/init.d/spamass-milter
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.conf,v 1.1 2003/07/16 22:03:20 raker 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/net-mail/spamass-milter/files/spamass-milter.rc b/net-mail/spamass-milter/files/spamass-milter.rc
new file mode 100644
index 000000000000..a4efd39a6828
--- /dev/null
+++ b/net-mail/spamass-milter/files/spamass-milter.rc
@@ -0,0 +1,37 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Sample init script for Gentoo Linux
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/files/spamass-milter.rc,v 1.1 2003/07/16 22:03:20 raker Exp $
+
+# NB: Config is in /etc/conf.d/spamass-milter
+#DAEMON=/usr/sbin/spamass-milter
+#SOCKET=/var/run/spamass-milter.sock
+#PIDFILE=/var/run/spamass-milter.pid
+#DESC="Sendmail milter plugin for SpamAssassin"
+
+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 -1 /var/run/sendmail.pid`
+ eend $? "Failed to stop ${DAEMON}"
+}
+
diff --git a/net-mail/spamass-milter/spamass-milter-0.2.0.ebuild b/net-mail/spamass-milter/spamass-milter-0.2.0.ebuild
new file mode 100644
index 000000000000..6fda59e3f13d
--- /dev/null
+++ b/net-mail/spamass-milter/spamass-milter-0.2.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-mail/spamass-milter/spamass-milter-0.2.0.ebuild,v 1.1 2003/07/16 22:03:20 raker 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=">=net-mail/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 ""
+}