/[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.6 - (hide annotations) (download)
Tue May 24 14:48:18 2005 UTC (15 years, 2 months ago) by mcummings
Branch: MAIN
Changes since 1.5: +4 -4 lines
dev-perl/DB_File => perl-core/DB_File
(Portage version: 2.0.51.22-r1)

1 mcummings 1.5 # Copyright 1999-2005 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 mcummings 1.6 # $Header: /var/cvsroot/gentoo-x86/mail-filter/spamassassin/spamassassin-2.63-r1.ebuild,v 1.5 2005/01/24 15:41:15 mcummings Exp $
4 robbat2 1.1
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 mcummings 1.4 LICENSE="|| ( GPL-2 Artistic )"
15 robbat2 1.1 SLOT="0"
16 tgall 1.3 KEYWORDS="~x86 ~ppc ~sparc ~alpha ~hppa ~mips ~ia64 ~amd64 ppc64"
17 robbat2 1.1 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 mcummings 1.6 berkdb? ( perl-core/DB_File )"
31 robbat2 1.1
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 mr_bones_ 1.2 sample-spam.txt
64 robbat2 1.1 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 mr_bones_ 1.2
84 robbat2 1.1 into /usr
85     dobin qmail/qmail-spamc
86     }
87    
88     pkg_postinst() {
89     perl-module_pkg_postinst
90    
91 mcummings 1.6 if [ -z "`best_version perl-core/DB_File`" ]; then
92 robbat2 1.1 einfo "The Bayes backend requires the Berkeley DB to store its data. You"
93 mcummings 1.6 einfo "need to emerge perl-core/DB_File to make it available."
94 robbat2 1.1 fi
95    
96     }

  ViewVC Help
Powered by ViewVC 1.1.20