summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Martin <slarti@gentoo.org>2006-05-03 17:19:47 +0000
committerTom Martin <slarti@gentoo.org>2006-05-03 17:19:47 +0000
commit9b51d13108b57594b8fd81d13463897203c0f0f3 (patch)
tree3b03dd5eb5f871d56f5b0700584f62d835ac8b6b /mail-filter/gld
parent- version bump and fixed bug with ebuild handling stripping directly (diff)
downloadgentoo-2-9b51d13108b57594b8fd81d13463897203c0f0f3.tar.gz
gentoo-2-9b51d13108b57594b8fd81d13463897203c0f0f3.tar.bz2
gentoo-2-9b51d13108b57594b8fd81d13463897203c0f0f3.zip
Version bump to 1.7; resolve bug #130802 while we're here.
(Portage version: 2.1_pre10-r2)
Diffstat (limited to 'mail-filter/gld')
-rw-r--r--mail-filter/gld/ChangeLog8
-rw-r--r--mail-filter/gld/files/digest-gld-1.73
-rw-r--r--mail-filter/gld/files/tables.sql15
-rw-r--r--mail-filter/gld/gld-1.7.ebuild57
4 files changed, 82 insertions, 1 deletions
diff --git a/mail-filter/gld/ChangeLog b/mail-filter/gld/ChangeLog
index ca6f78edd857..f846f01e312f 100644
--- a/mail-filter/gld/ChangeLog
+++ b/mail-filter/gld/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for mail-filter/gld
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/ChangeLog,v 1.31 2006/04/27 22:22:04 marienz Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/ChangeLog,v 1.32 2006/05/03 17:19:47 slarti Exp $
+
+*gld-1.7 (03 May 2006)
+
+ 03 May 2006; Tom Martin <slarti@gentoo.org> +files/tables.sql,
+ +gld-1.7.ebuild:
+ Version bump to 1.7; resolve bug #130802 while we're here.
27 Apr 2006; Marien Zwart <marienz@gentoo.org> files/digest-gld-1.5.2,
files/digest-gld-1.6, Manifest:
diff --git a/mail-filter/gld/files/digest-gld-1.7 b/mail-filter/gld/files/digest-gld-1.7
new file mode 100644
index 000000000000..7010cffe6224
--- /dev/null
+++ b/mail-filter/gld/files/digest-gld-1.7
@@ -0,0 +1,3 @@
+MD5 d24931630504e8586b9eb4cc3cc9d726 gld-1.7.tgz 40241
+RMD160 0e8190a668ecd88e19c22aa1f80d9a442d1101cf gld-1.7.tgz 40241
+SHA256 c0776f6841afa73b6579e355522d79fd15467de2936f1a4464265e6415cae14b gld-1.7.tgz 40241
diff --git a/mail-filter/gld/files/tables.sql b/mail-filter/gld/files/tables.sql
new file mode 100644
index 000000000000..98ab4e6f3cf1
--- /dev/null
+++ b/mail-filter/gld/files/tables.sql
@@ -0,0 +1,15 @@
+CREATE TABLE `greylist` (
+ `ip` CHAR( 16 ) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL COMMENT 'IP of Sending Host',
+ `sender` CHAR( 242 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'Address of Sender',
+ `recipient` CHAR( 242 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'Address of Recipient',
+ `first` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Date, when this Sender has first been seen',
+ `last` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Date, when this sender has last been seen',
+ `n` INT( 11 ) NOT NULL DEFAULT '0' COMMENT 'Sequence number',
+ PRIMARY KEY ( `ip` , `sender` , `recipient` )
+) ENGINE = MYISAM CHARACTER SET latin1 COLLATE latin1_general_ci COMMENT = 'GLD Greylist Table';
+
+CREATE TABLE `whitelist` (
+ `mail` CHAR( 242 ) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL COMMENT 'Adress which is whitelisted',
+ `comment` CHAR( 242 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'A comment, about why this adress is whitelisted',
+ PRIMARY KEY ( `mail` )
+) ENGINE = MYISAM CHARACTER SET latin1 COLLATE latin1_general_ci COMMENT = 'GLD Whitelist Table';
diff --git a/mail-filter/gld/gld-1.7.ebuild b/mail-filter/gld/gld-1.7.ebuild
new file mode 100644
index 000000000000..56310d100097
--- /dev/null
+++ b/mail-filter/gld/gld-1.7.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/gld/gld-1.7.ebuild,v 1.1 2006/05/03 17:19:47 slarti Exp $
+
+DESCRIPTION="A standalone anti-spam greylisting algorithm on top of Postfix"
+HOMEPAGE="http://www.gasmi.net/gld.html"
+SRC_URI="http://www.gasmi.net/down/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~ppc"
+IUSE="postgres"
+# Not adding a mysql USE flag. The package defaults to it, so we will too.
+DEPEND="virtual/libc
+ sys-libs/zlib
+ >=dev-libs/openssl-0.9.6
+ postgres? ( dev-db/postgresql )
+ !postgres? ( dev-db/mysql )"
+RDEPEND=">=mail-mta/postfix-2.1"
+
+src_compile() {
+ # It's kind of weird. $(use_with postgres pgsql) won't work if you don't
+ # use it...
+ if use postgres ; then
+ myconf="${myconf} --with-pgsql"
+ fi
+
+ econf ${myconf} \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dobin gld
+
+ insinto /etc
+ newins gld.conf gld.conf.example
+ dosed 's:^LOOPBACKONLY=.*:LOOPBACKONLY=1:' /etc/gld.conf.sample
+ dosed 's:^#USER=.*:USER=nobody:' /etc/gld.conf.sample
+ dosed 's:^#GROUP=.*:GROUP=nobody:' /etc/gld.conf.sample
+
+ dodoc HISTORY README*
+
+ insinto /usr/share/${PN}/sql
+ doins *.pgsql *-whitelist.sql ${FILESDIR}/tables.sql
+
+ newinitd ${FILESDIR}/gld.rc gld
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please read /usr/share/doc/${PF}/README.gz for details on how to setup"
+ einfo "gld."
+ einfo
+ einfo "The sql files have been installed to /usr/share/${PN}/sql."
+ einfo
+}