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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Aug 16 09:52:10 2005 UTC (14 years, 7 months ago) by mcummings
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Cleaning up; bug 91430 resolved, added secrets.cf and a note to the local.cf file
(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.64-r1.ebuild,v 1.7 2005/05/25 16:53:11 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://old.spamassassin.org/released/${MY_P}.tar.bz2"
13
14 LICENSE="|| ( GPL-2 Artistic )"
15 SLOT="0"
16 KEYWORDS="x86 ppc sparc mips alpha hppa amd64 ia64 ppc64"
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 # Neither for 'make install'.
33 myinst=""
34
35 # Some more files to be installed (README* and Changes are already
36 # included per default)
37 mydoc="License
38 COPYRIGHT
39 TRADEMARK
40 CONTRIB_CERT
41 BUGS
42 USAGE
43 procmailrc.example
44 sample-nonspam.txt
45 sample-spam.txt
46 qmail/README.qmail-spamc"
47
48 src_compile() {
49 # If ssl is enabled, spamc can be built with ssl support
50 use ssl && myconf="${myconf} ENABLE_SSL=yes"
51
52 # if you are going to enable taint mode, make sure that the bug where
53 # spamd doesn't start when the PATH contains . is addressed, and make
54 # sure you deal with versions of razor <2.36-r1 not being taint-safe.
55 # <http://bugzilla.spamassassin.org/show_bug.cgi?id=2511> and
56 # <http://spamassassin.org/released/Razor2.patch>.
57 myconf="${myconf} PERL_TAINT=no"
58
59 # No settings needed for 'make all'.
60 mymake=""
61
62 export PERL_MM_USE_DEFAULT=1
63 perl-module_src_compile
64
65 # without this check, portage .51 runs test suite twice for people
66 # with the maketest feature
67
68 if ! hasq maketest $FEATURES; then
69 perl-module_src_test
70 fi
71 cd ${S}
72 make qmail/qmail-spamc
73 }
74
75 src_install () {
76 perl-module_src_install
77
78 # Add the init and config scripts.
79 dodir /etc/init.d /etc/conf.d
80 insinto /etc/init.d
81 newins ${FILESDIR}/spamd.init spamd
82 fperms 755 /etc/init.d/spamd
83 insinto /etc/conf.d
84 newins ${FILESDIR}/spamd.conf spamd
85
86 into /usr
87 dobin qmail/qmail-spamc
88 }
89
90 pkg_postinst() {
91 perl-module_pkg_postinst
92
93 if [ -z "`best_version perl-core/DB_File`" ]; then
94 einfo "The Bayes backend requires the Berkeley DB to store its data. You"
95 einfo "need to emerge perl-core/DB_File to make it available."
96 fi
97
98 }

  ViewVC Help
Powered by ViewVC 1.1.20