1 |
tupone 10/02/18 08:41:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: spamdyke-4.0.10-r1.ebuild |
5 |
Log: |
6 |
Moving to EAPI=2 Changing default config options |
7 |
(Portage version: 2.1.7.16/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.17 mail-filter/spamdyke/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamdyke/ChangeLog?rev=1.17&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamdyke/ChangeLog?rev=1.17&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamdyke/ChangeLog?r1=1.16&r2=1.17 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v |
19 |
retrieving revision 1.16 |
20 |
retrieving revision 1.17 |
21 |
diff -u -r1.16 -r1.17 |
22 |
--- ChangeLog 27 May 2009 12:41:58 -0000 1.16 |
23 |
+++ ChangeLog 18 Feb 2010 08:41:05 -0000 1.17 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-filter/spamdyke |
26 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.16 2009/05/27 12:41:58 tupone Exp $ |
28 |
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.17 2010/02/18 08:41:05 tupone Exp $ |
30 |
+ |
31 |
+*spamdyke-4.0.10-r1 (18 Feb 2010) |
32 |
+ |
33 |
+ 18 Feb 2010; Alfredo Tupone <tupone@g.o> |
34 |
+ +spamdyke-4.0.10-r1.ebuild: |
35 |
+ Moving to EAPI=2 Changing default config options |
36 |
|
37 |
27 May 2009; Alfredo Tupone <tupone@g.o> -spamdyke-3.1.8.ebuild, |
38 |
-spamdyke-4.0.9.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/spamdyke/spamdyke-4.0.10-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: spamdyke-4.0.10-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 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.0.10-r1.ebuild,v 1.1 2010/02/18 08:41:06 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 |
|
67 |
S=${WORKDIR}/${P}/${PN} |
68 |
|
69 |
src_prepare() { |
70 |
echo "# Configuration option for ${PN}" > ${PN}.conf |
71 |
if use tls; then |
72 |
echo "tls-certificate-file=/var/qmail/control/clientcert.pem" \ |
73 |
>> ${PN}.conf |
74 |
fi |
75 |
echo "graylist-level=always-create-dir" >> ${PN}.conf |
76 |
echo "graylist-dir=/var/tmp/${PN}/graylist" >> ${PN}.conf |
77 |
echo "reject-empty-rdns" >> ${PN}.conf |
78 |
echo "reject-unresolvable-rdns" >> ${PN}.conf |
79 |
echo "dns-blacklist-entry=zen.spamhaus.org" >> ${PN}.conf |
80 |
echo "local-domains-file=/var/qmail/control/rcpthosts" >> ${PN}.conf |
81 |
sed -i \ |
82 |
-e "/STRIP_CMD/d" \ |
83 |
Makefile.in || die "sed on Makefile.in failed" |
84 |
} |
85 |
|
86 |
src_configure() { |
87 |
econf --with-debug \ |
88 |
$(use_enable tls) || die "econf failed" |
89 |
cd ../utils |
90 |
econf || die "econf failed in utils" |
91 |
} |
92 |
|
93 |
src_compile() { |
94 |
emake CFLAGS="${CFLAGS}" || die "emake failed" |
95 |
cd ../utils |
96 |
emake CFLAGS="${CFLAGS}" || die "emake in utils died" |
97 |
} |
98 |
|
99 |
src_install() { |
100 |
dobin ${PN} || die "Installing ${PN} binary failed" |
101 |
insinto /etc/${PN} |
102 |
doins ${PN}.conf || die "Installing ${PN} configuration file failed" |
103 |
dodir /var/tmp/${PN}/graylist |
104 |
fowners -R qmaild /var/tmp/${PN}/graylist |
105 |
cd ../utils |
106 |
dobin domain2path || die "Installing domain2path binary failed" |
107 |
cd ../documentation |
108 |
dodoc {Changelog,INSTALL,UPGRADING}.txt |
109 |
dohtml FAQ.html \ |
110 |
README.html \ |
111 |
README_ip_file_format.html \ |
112 |
README_rdns_directory_format.html \ |
113 |
README_rdns_file_format.html |
114 |
} |
115 |
|
116 |
pkg_postinst() { |
117 |
elog "In /var/qmail/control/conf-smtpd insert the line:" |
118 |
elog "QMAIL_SMTP_PRE=\"${QMAIL_SMTP_PRE} spamdyke -f /etc/${PN}/${PN}.conf\"" |
119 |
elog "Run spamdyke with the '-h' flag to see the available options and" |
120 |
elog "update /etc/spamdyke.conf accordingly" |
121 |
} |