summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTuan Van <langthang@gentoo.org>2006-07-18 01:06:48 +0000
committerTuan Van <langthang@gentoo.org>2006-07-18 01:06:48 +0000
commitc69ed8ec1c167f77c6971e93615c32adfd78dded (patch)
tree5af93949539e058403d915c89bdbfe8e5a7299c2 /mail-filter
parentForcing mb version (diff)
downloadgentoo-2-c69ed8ec1c167f77c6971e93615c32adfd78dded.tar.gz
gentoo-2-c69ed8ec1c167f77c6971e93615c32adfd78dded.tar.bz2
gentoo-2-c69ed8ec1c167f77c6971e93615c32adfd78dded.zip
Initial import
(Portage version: 2.1.1_pre2-r6)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/sid-milter/ChangeLog12
-rw-r--r--mail-filter/sid-milter/Manifest32
-rw-r--r--mail-filter/sid-milter/files/digest-sid-milter-0.2.133
-rw-r--r--mail-filter/sid-milter/files/sid-filter.conf7
-rwxr-xr-xmail-filter/sid-milter/files/sid-filter.init22
-rw-r--r--mail-filter/sid-milter/files/sid-milter-0.2.13-queueID.patch13
-rw-r--r--mail-filter/sid-milter/files/site.config.m42
-rw-r--r--mail-filter/sid-milter/metadata.xml6
-rw-r--r--mail-filter/sid-milter/sid-milter-0.2.13.ebuild65
9 files changed, 162 insertions, 0 deletions
diff --git a/mail-filter/sid-milter/ChangeLog b/mail-filter/sid-milter/ChangeLog
new file mode 100644
index 000000000000..9049c698303b
--- /dev/null
+++ b/mail-filter/sid-milter/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for mail-filter/sid-filter
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/ChangeLog,v 1.1 2006/07/18 01:06:48 langthang Exp $
+
+*sid-milter-0.2.13 (18 Jul 2006)
+
+ 18 Jul 2006; Tuấn Văn <langthang@gentoo.org>
+ +files/sid-milter-0.2.13-queueID.patch, +files/sid-filter.conf,
+ +files/sid-filter.init, +files/site.config.m4, +metadata.xml,
+ +sid-milter-0.2.13.ebuild:
+ Initial import
+
diff --git a/mail-filter/sid-milter/Manifest b/mail-filter/sid-milter/Manifest
new file mode 100644
index 000000000000..e6cb8e4d327c
--- /dev/null
+++ b/mail-filter/sid-milter/Manifest
@@ -0,0 +1,32 @@
+AUX sid-filter.conf 232 RMD160 680ac0ac2c1c34a772e57aec028332f40958049d SHA1 bda5b00650acd6a79c1c56405f06842916aa0781 SHA256 17ac7a949bd06e369ddc9da81dae7d44ece8b83bbfdc587357c92cd368a7cff0
+MD5 63eab85fa9fc990fc32164b9d91740ec files/sid-filter.conf 232
+RMD160 680ac0ac2c1c34a772e57aec028332f40958049d files/sid-filter.conf 232
+SHA256 17ac7a949bd06e369ddc9da81dae7d44ece8b83bbfdc587357c92cd368a7cff0 files/sid-filter.conf 232
+AUX sid-filter.init 559 RMD160 5503bcc9df90e966f8092fce8187592df62700d7 SHA1 6ad1dc4d59e8abfb0fe90aafbd0e99fce60a03c9 SHA256 6546a9a6a902723dbf810b28d9617862c4af941620fe7f2045e626723303e20c
+MD5 7e8e8e839e6b6b0342497e6dc064b79e files/sid-filter.init 559
+RMD160 5503bcc9df90e966f8092fce8187592df62700d7 files/sid-filter.init 559
+SHA256 6546a9a6a902723dbf810b28d9617862c4af941620fe7f2045e626723303e20c files/sid-filter.init 559
+AUX sid-milter-0.2.13-queueID.patch 351 RMD160 ef69e8c735619087832f516e32e9e84eefca2f94 SHA1 78077f5cca0c28662cf3b62373901b13d9bd2bab SHA256 4a6cefeed01d8a8527bb12bf655f012b10a75c44ce8060508a398ead8a94912e
+MD5 359e72b0945a8eedef8aaf6d2ab95d9a files/sid-milter-0.2.13-queueID.patch 351
+RMD160 ef69e8c735619087832f516e32e9e84eefca2f94 files/sid-milter-0.2.13-queueID.patch 351
+SHA256 4a6cefeed01d8a8527bb12bf655f012b10a75c44ce8060508a398ead8a94912e files/sid-milter-0.2.13-queueID.patch 351
+AUX site.config.m4 94 RMD160 d9de9bfcaaf69bb39f0597e3b59e0195e513559e SHA1 cb3e5528e791716f03541a1e18e403e2f0d9a8bf SHA256 4e177b598ebc524febfcabf0a1da37df8d3d7e4d0d51051476cdde4bee3b5b93
+MD5 daafe563fbfe874bb0d92c1ac2698735 files/site.config.m4 94
+RMD160 d9de9bfcaaf69bb39f0597e3b59e0195e513559e files/site.config.m4 94
+SHA256 4e177b598ebc524febfcabf0a1da37df8d3d7e4d0d51051476cdde4bee3b5b93 files/site.config.m4 94
+DIST sid-milter-0.2.13.tar.gz 340623 RMD160 7ade12202212e479a0b14fb11df9358cabd31607 SHA1 a903ec3b01b6e553d8d01ff5b0ea6d9c300f7545 SHA256 346d143449f9daef75a4f1cea77116024c6913e331c780379863fe6a18951736
+EBUILD sid-milter-0.2.13.ebuild 1447 RMD160 01575f8c60cc0d0dc049e9352903c968ddd81f8d SHA1 ebfb7735253fef582deae17373d34363244f7491 SHA256 28084e1bcd45206cb191ff77d361f6743793a088b9a0f8771e2bea78b2f213ed
+MD5 9a458e7ae4ee0a94f8b11e13004fdd00 sid-milter-0.2.13.ebuild 1447
+RMD160 01575f8c60cc0d0dc049e9352903c968ddd81f8d sid-milter-0.2.13.ebuild 1447
+SHA256 28084e1bcd45206cb191ff77d361f6743793a088b9a0f8771e2bea78b2f213ed sid-milter-0.2.13.ebuild 1447
+MISC ChangeLog 384 RMD160 efba1812e228a62cfece46b4e2a3fca86a225ae2 SHA1 64f2f0b47148b1975c21f950b8f37cbb95677c5c SHA256 0695566f21c0325e8d2341549c1f5a94d79d0bb2636f96d3f0e59a7d4adad697
+MD5 46fb8dae42ae705c72b6885eca20aec3 ChangeLog 384
+RMD160 efba1812e228a62cfece46b4e2a3fca86a225ae2 ChangeLog 384
+SHA256 0695566f21c0325e8d2341549c1f5a94d79d0bb2636f96d3f0e59a7d4adad697 ChangeLog 384
+MISC metadata.xml 221 RMD160 3f13d342b35e471ab3bc6d5b6a491918688ea452 SHA1 1e4ce4ec962e1bae402fdce6f17a1729e1efb4e2 SHA256 9d7907404731a8635f1fb42c8901da3d996aa936fd23e67159a38cf48bb90e0f
+MD5 f1c604a8eaa7929364a593541a1d0efe metadata.xml 221
+RMD160 3f13d342b35e471ab3bc6d5b6a491918688ea452 metadata.xml 221
+SHA256 9d7907404731a8635f1fb42c8901da3d996aa936fd23e67159a38cf48bb90e0f metadata.xml 221
+MD5 14d699248fc2be67881703c36734bd9d files/digest-sid-milter-0.2.13 253
+RMD160 cb12a2816d38938ffc74e5d6902eb981feb9f3f0 files/digest-sid-milter-0.2.13 253
+SHA256 255f086123ba1e4efdeb3cda6d1d54ba6090e0af930c5e05dbc615369c6e0f2d files/digest-sid-milter-0.2.13 253
diff --git a/mail-filter/sid-milter/files/digest-sid-milter-0.2.13 b/mail-filter/sid-milter/files/digest-sid-milter-0.2.13
new file mode 100644
index 000000000000..2f7ff613225e
--- /dev/null
+++ b/mail-filter/sid-milter/files/digest-sid-milter-0.2.13
@@ -0,0 +1,3 @@
+MD5 0cad0d5315827c6176130b9c3f9bce51 sid-milter-0.2.13.tar.gz 340623
+RMD160 7ade12202212e479a0b14fb11df9358cabd31607 sid-milter-0.2.13.tar.gz 340623
+SHA256 346d143449f9daef75a4f1cea77116024c6913e331c780379863fe6a18951736 sid-milter-0.2.13.tar.gz 340623
diff --git a/mail-filter/sid-milter/files/sid-filter.conf b/mail-filter/sid-milter/files/sid-filter.conf
new file mode 100644
index 000000000000..106a01d9ad02
--- /dev/null
+++ b/mail-filter/sid-milter/files/sid-filter.conf
@@ -0,0 +1,7 @@
+# Additional options for the Sender-ID Milter
+# see sid-filter(8) for more information.
+SID_FILTER_OPTS=""
+SOCKETSPEC="inet:8026@localhost"
+DOMAIN="example.com"
+USER="milter"
+SID_FILTER_OPTS="-u milter -l -p $SOCKETSPEC -d $DOMAIN"
diff --git a/mail-filter/sid-milter/files/sid-filter.init b/mail-filter/sid-milter/files/sid-filter.init
new file mode 100755
index 000000000000..aaa2b4f9632e
--- /dev/null
+++ b/mail-filter/sid-milter/files/sid-filter.init
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/files/sid-filter.init,v 1.1 2006/07/18 01:06:48 langthang Exp $
+
+depend() {
+ # need net
+ use dns logger net
+}
+
+start() {
+ ebegin "Starting Sender-ID Filter"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/bin/sid-filter -- ${SID_FILTER_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Sender-ID Filter"
+ start-stop-daemon --stop --quiet --name sid-filter
+ eend $?
+}
diff --git a/mail-filter/sid-milter/files/sid-milter-0.2.13-queueID.patch b/mail-filter/sid-milter/files/sid-milter-0.2.13-queueID.patch
new file mode 100644
index 000000000000..ab84dd367ce2
--- /dev/null
+++ b/mail-filter/sid-milter/files/sid-milter-0.2.13-queueID.patch
@@ -0,0 +1,13 @@
+--- sid-filter/sid-filter.c.orig 2006-07-17 16:01:52.000000000 -0700
++++ sid-filter/sid-filter.c 2006-07-17 16:16:37.000000000 -0700
+@@ -1867,6 +1867,10 @@
+ assert(ctx != NULL);
+ #endif /* !DEBUG */
+
++ ret = mlfi_eoh(ctx);
++ if (ret != SMFIS_CONTINUE)
++ return ret;
++
+ memset(stathdr, '\0', sizeof stathdr);
+
+ sic = (Context) smfi_getpriv(ctx);
diff --git a/mail-filter/sid-milter/files/site.config.m4 b/mail-filter/sid-milter/files/site.config.m4
new file mode 100644
index 000000000000..20dd5abce625
--- /dev/null
+++ b/mail-filter/sid-milter/files/site.config.m4
@@ -0,0 +1,2 @@
+define(`confCCOPTS', `@@confCCOPTS@@')
+APPENDDEF(`confINCDIRS', `@@conf_libmilter_INCDIRS@@')
diff --git a/mail-filter/sid-milter/metadata.xml b/mail-filter/sid-milter/metadata.xml
new file mode 100644
index 000000000000..dda87916e233
--- /dev/null
+++ b/mail-filter/sid-milter/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>net-mail</herd>
+<maintainer><email>net-mail@gentoo.org</email></maintainer>
+</pkgmetadata>
diff --git a/mail-filter/sid-milter/sid-milter-0.2.13.ebuild b/mail-filter/sid-milter/sid-milter-0.2.13.ebuild
new file mode 100644
index 000000000000..081303284b8b
--- /dev/null
+++ b/mail-filter/sid-milter/sid-milter-0.2.13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/sid-milter/sid-milter-0.2.13.ebuild,v 1.1 2006/07/18 01:06:48 langthang Exp $
+
+inherit eutils
+
+DESCRIPTION="A milter-based application provide Sender-ID service"
+
+HOMEPAGE="http://sourceforge.net/projects/sid-milter/"
+
+SRC_URI="mirror://sourceforge/sid-milter/${P}.tar.gz"
+
+LICENSE="Sendmail-Open-Source"
+
+SLOT="0"
+
+KEYWORDS="~x86"
+
+
+IUSE=""
+
+DEPEND="dev-libs/openssl
+ >=sys-libs/db-3.2
+ mail-filter/libmilter"
+
+S=${WORKDIR}/${P}
+
+pkg_setup() {
+ enewgroup milter
+ enewuser milter -1 -1 -1 milter
+}
+
+src_unpack() {
+ unpack "${A}" && cd "${S}"
+
+ # Postfix queue ID patch. See MILTER_README.html#workarounds
+ epatch "${FILESDIR}/"${P}-queueID.patch
+
+ confCCOPTS="${CFLAGS}"
+ conf_libmilter_INCDIRS="-I/usr/include/libmilter"
+ sed -e "s:@@confCCOPTS@@:${confCCOPTS}:" \
+ -e "s:@@conf_libmilter_INCDIRS@@:${conf_libmilter_INCDIRS}:" \
+ "${FILESDIR}"/site.config.m4 > "${S}"/devtools/Site/site.config.m4 \
+ || die "sed failed"
+}
+
+src_install() {
+ OBJDIR="obj.`uname -s`.`uname -r`.`arch`"
+
+ dodir /usr/bin /usr/share/man/man8
+ make DESTDIR=${D} MANROOT=/usr/share/man/man \
+ install -C "${OBJDIR}"/sid-filter \
+ || die "make install failed"
+ doman sid-filter/sid-filter.8
+
+ newinitd "${FILESDIR}/sid-filter.init" sid-filter \
+ || die "newinitd failed"
+ newconfd "${FILESDIR}/sid-filter.conf" sid-filter \
+ || die "newconfd failed"
+}
+
+pkg_postinst() {
+ enewgroup milter
+ enewuser milter -1 -1 -1 milter
+}