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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Thu Jun 9 15:27:29 2005 UTC (14 years, 10 months ago) by mcummings
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Cleaning. Next task: get mips bumped
(Portage version: 2.0.51.22-r1)

1 # Copyright 1999-2005 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.11 2005/05/25 16:52:50 mcummings 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 ( >=perl-core/ExtUtils-MakeMaker-6.11-r1
21 >=perl-core/File-Spec-0.8
22 perl-core/Time-Local
23 perl-core/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? ( perl-core/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
65 src_compile() {
66 perl-module_src_compile
67 perl-module_src_test
68 }
69
70 src_install () {
71 perl-module_src_install
72
73 # Add the init and config scripts.
74 dodir /etc/init.d /etc/conf.d
75 insinto /etc/init.d
76 newins ${FILESDIR}/spamd.init spamd
77 fperms 755 /etc/init.d/spamd
78 insinto /etc/conf.d
79 newins ${FILESDIR}/spamd.conf spamd
80 }
81
82 pkg_postinst() {
83 perl-module_pkg_postinst
84
85 if [ -z "`best_version perl-core/DB_File`" ]; then
86 einfo "The Bayes backend requires the Berkeley DB to store its data. You"
87 einfo "need to emerge perl-core/DB_File to make it available."
88 fi
89
90 }

  ViewVC Help
Powered by ViewVC 1.1.20