Gentoo Archives: gentoo-commits

From: "Alfredo Tupone (tupone)" <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/spamdyke: ChangeLog spamdyke-4.2.0.ebuild
Date: Fri, 25 Feb 2011 08:08:57
Message-Id: 20110225080846.D8B8920054@flycatcher.gentoo.org
1 tupone 11/02/25 08:08:46
2
3 Modified: ChangeLog
4 Added: spamdyke-4.2.0.ebuild
5 Log:
6 Version bump to 4.2.0
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.18 mail-filter/spamdyke/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamdyke/ChangeLog?rev=1.18&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamdyke/ChangeLog?rev=1.18&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamdyke/ChangeLog?r1=1.17&r2=1.18
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v
20 retrieving revision 1.17
21 retrieving revision 1.18
22 diff -u -r1.17 -r1.18
23 --- ChangeLog 18 Feb 2010 08:41:05 -0000 1.17
24 +++ ChangeLog 25 Feb 2011 08:08:46 -0000 1.18
25 @@ -1,6 +1,11 @@
26 # ChangeLog for mail-filter/spamdyke
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.17 2010/02/18 08:41:05 tupone Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.18 2011/02/25 08:08:46 tupone Exp $
31 +
32 +*spamdyke-4.2.0 (25 Feb 2011)
33 +
34 + 25 Feb 2011; Alfredo Tupone <tupone@g.o> +spamdyke-4.2.0.ebuild:
35 + Version bump to 4.2.0
36
37 *spamdyke-4.0.10-r1 (18 Feb 2010)
38
39
40
41
42 1.1 mail-filter/spamdyke/spamdyke-4.2.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamdyke/spamdyke-4.2.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/spamdyke/spamdyke-4.2.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: spamdyke-4.2.0.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-4.2.0.ebuild,v 1.1 2011/02/25 08:08:46 tupone Exp $
52
53 EAPI="2"
54
55 DESCRIPTION="A drop-in connection-time spam filter for qmail"
56 HOMEPAGE="http://www.spamdyke.org/"
57 SRC_URI="http://www.spamdyke.org/releases/${P}.tgz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~x86"
62 IUSE="+tls"
63
64 DEPEND="tls? ( dev-libs/openssl )"
65 RDEPEND="${DEPEND}
66 virtual/qmail"
67
68 S=${WORKDIR}/${P}/${PN}
69
70 src_prepare() {
71 echo "# Configuration option for ${PN}" > ${PN}.conf
72 if use tls; then
73 echo "tls-certificate-file=/var/qmail/control/clientcert.pem" \
74 >> ${PN}.conf
75 fi
76 echo "graylist-level=always-create-dir" >> ${PN}.conf
77 echo "graylist-dir=/var/tmp/${PN}/graylist" >> ${PN}.conf
78 echo "reject-empty-rdns" >> ${PN}.conf
79 echo "reject-unresolvable-rdns" >> ${PN}.conf
80 echo "dns-blacklist-entry=zen.spamhaus.org" >> ${PN}.conf
81 echo "local-domains-file=/var/qmail/control/rcpthosts" >> ${PN}.conf
82 sed -i \
83 -e "/STRIP_CMD/d" \
84 Makefile.in || die "sed on Makefile.in failed"
85 }
86
87 src_configure() {
88 econf --with-debug \
89 $(use_enable tls) || die "econf failed"
90 cd ../utils
91 econf || die "econf failed in utils"
92 }
93
94 src_compile() {
95 emake CFLAGS="${CFLAGS}" || die "emake failed"
96 cd ../utils
97 emake CFLAGS="${CFLAGS}" || die "emake in utils died"
98 }
99
100 src_install() {
101 dobin ${PN} || die "Installing ${PN} binary failed"
102 insinto /etc/${PN}
103 doins ${PN}.conf || die "Installing ${PN} configuration file failed"
104 dodir /var/tmp/${PN}/graylist
105 fowners -R qmaild /var/tmp/${PN}/graylist
106 cd ../utils
107 dobin domain2path || die "Installing domain2path binary failed"
108 cd ../documentation
109 dodoc {Changelog,INSTALL,UPGRADING}.txt
110 dohtml FAQ.html \
111 README.html \
112 README_ip_file_format.html \
113 README_rdns_directory_format.html \
114 README_rdns_file_format.html
115 }
116
117 pkg_postinst() {
118 elog "In /var/qmail/control/conf-smtpd insert the line:"
119 elog "QMAIL_SMTP_PRE=\"${QMAIL_SMTP_PRE} spamdyke -f /etc/${PN}/${PN}.conf\""
120 elog "Run spamdyke with the '-h' flag to see the available options and"
121 elog "update /etc/spamdyke/spamdyke.conf accordingly"
122 }