/[gentoo-x86]/mail-filter/spamassassin/spamassassin-2.63-r1.ebuild
Gentoo

Contents of /mail-filter/spamassassin/spamassassin-2.63-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jul 5 01:37:44 2004 UTC (15 years, 10 months ago) by robbat2
Branch: MAIN
add in functionality from bug #49448, qmail-spamc.

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-2.63.ebuild,v 1.4 2004/06/24 22:22:23 agriffis Exp $
4
5 inherit perl-module
6
7 MY_P=Mail-SpamAssassin-${PV}
8
9 S=${WORKDIR}/${MY_P}
10 DESCRIPTION="Perl Mail::SpamAssassin - A program to filter spam"
11 HOMEPAGE="http://spamassassin.org/"
12 SRC_URI="http://spamassassin.org/released/${MY_P}.tar.bz2"
13
14 LICENSE="GPL-2 | Artistic"
15 SLOT="0"
16 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~ia64 ~amd64"
17 IUSE="berkdb ssl"
18
19 DEPEND="|| ( >=dev-lang/perl-5.8.2-r1
20 ( >=dev-perl/ExtUtils-MakeMaker-6.11-r1
21 >=dev-perl/File-Spec-0.8
22 dev-perl/Time-Local
23 dev-perl/Getopt-Long
24 ) )
25 >=dev-perl/PodParser-1.22
26 >=dev-perl/HTML-Parser-3.24
27 dev-perl/Net-DNS
28 dev-perl/Digest-SHA1
29 ssl? ( dev-perl/IO-Socket-SSL )
30 berkdb? ( dev-perl/DB_File )"
31
32 myconf="CONTACT_ADDRESS=root@localhost RUN_RAZOR_TESTS=0"
33
34 # If ssl is enabled, spamc can be built with ssl support
35 if use ssl; then
36 myconf="${myconf} ENABLE_SSL=yes"
37 fi
38
39 # if you are going to enable taint mode, make sure that the bug where
40 # spamd doesn't start when the PATH contains . is addressed, and make
41 # sure you deal with versions of razor <2.36-r1 not being taint-safe.
42 # <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and
43 # <http://spamassassin.org/released/Razor2.patch>.
44
45 myconf="${myconf} PERL_TAINT=no"
46
47 # No settings needed for 'make all'.
48 mymake=""
49
50 # Neither for 'make install'.
51 myinst=""
52
53 # Some more files to be installed (README* and Changes are already
54 # included per default)
55 mydoc="License
56 COPYRIGHT
57 TRADEMARK
58 CONTRIB_CERT
59 BUGS
60 USAGE
61 procmailrc.example
62 sample-nonspam.txt
63 sample-spam.txt
64 qmail/README.qmail-spamc"
65
66 src_compile() {
67 perl-module_src_compile
68 perl-module_src_test
69 cd ${S}
70 make qmail/qmail-spamc
71 }
72
73 src_install () {
74 perl-module_src_install
75
76 # Add the init and config scripts.
77 dodir /etc/init.d /etc/conf.d
78 insinto /etc/init.d
79 newins ${FILESDIR}/spamd.init spamd
80 fperms 755 /etc/init.d/spamd
81 insinto /etc/conf.d
82 newins ${FILESDIR}/spamd.conf spamd
83
84 into /usr
85 dobin qmail/qmail-spamc
86 }
87
88 pkg_postinst() {
89 perl-module_pkg_postinst
90
91 if [ -z "`best_version dev-perl/DB_File`" ]; then
92 einfo "The Bayes backend requires the Berkeley DB to store its data. You"
93 einfo "need to emerge dev-perl/DB_File to make it available."
94 fi
95
96 }

  ViewVC Help
Powered by ViewVC 1.1.20