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