Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 29404
Collapse All | Expand All

(-)/usr/portage/dev-perl/Mail-SpamAssassin/Mail-SpamAssassin-2.60.ebuild (-6 / +16 lines)
Lines 6-12 Link Here
6
6
7
S=${WORKDIR}/${P}
7
S=${WORKDIR}/${P}
8
DESCRIPTION="Perl Mail::SpamAssassin - A program to filter spam"
8
DESCRIPTION="Perl Mail::SpamAssassin - A program to filter spam"
9
SRC_URI="http://www.spamassassin.org/released/${P}.tar.gz"
9
SRC_URI="http://www.spamassassin.org/released/${P}.tar.bz2"
10
HOMEPAGE="http://www.spamassassin.org"
10
HOMEPAGE="http://www.spamassassin.org"
11
IUSE=""
11
IUSE=""
12
SLOT="0"
12
SLOT="0"
Lines 14-19 Link Here
14
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha"
14
KEYWORDS="~x86 ~amd64 ~ppc ~sparc ~alpha"
15
15
16
DEPEND="dev-perl/Net-DNS
16
DEPEND="dev-perl/Net-DNS
17
	>=dev-perl/ExtUtils-MakeMaker-6.11
17
	dev-perl/HTML-Parser
18
	dev-perl/HTML-Parser
18
	dev-perl/PodParser
19
	dev-perl/PodParser
19
	dev-perl/Time-Local
20
	dev-perl/Time-Local
Lines 21-27 Link Here
21
22
22
RAZORVERINS=`best_version net-mail/razor`
23
RAZORVERINS=`best_version net-mail/razor`
23
24
24
myconf="INST_PREFIX=/usr SITEPREFIX=\$(PREFIX) INST_SYSCONFDIR=/etc SYSCONFDIR=${D}/etc CONTACT_ADDRESS=root@localhost"
25
myconf="PREFIX=/usr SYSCONFDIR=/etc DESTDIR=${D} CONTACT_ADDRESS=root@localhost"
25
26
26
# If ssl is enabled, spamc can be built with ssl support
27
# If ssl is enabled, spamc can be built with ssl support
27
if [ "`use ssl`" ];
28
if [ "`use ssl`" ];
Lines 31-54 Link Here
31
32
32
if [ ! -z "${RAZORVERINS}" ];
33
if [ ! -z "${RAZORVERINS}" ];
33
then
34
then
34
	myconf="${myconf} RUN_RAZOR2_TESTS=n"
35
	myconf="${myconf} RUN_RAZOR_TESTS=n"
35
fi
36
fi
36
37
37
mymake="PREFIX=/usr SYSCONFDIR=/etc"
38
mydoc="License Changes procmailrc.example sample-nonspam.txt sample-spam.txt"
38
mydoc="License Changes procmailrc.example sample-nonspam.txt sample-spam.txt"
39
39
40
40
41
41
42
src_compile() {
42
src_compile() {
43
43
44
	perl-module_src_compile
44
	perl Makefile.PL ${myconf} INSTALLDIRS=vendor 
45
	make || die "compilation failed"
45
	dodir /etc/mail/spamassassin
46
	dodir /etc/mail/spamassassin
46
47
47
}
48
}
48
49
49
src_install () {
50
src_install () {
50
51
51
	perl-module_src_install
52
	perlinfo
53
	dodir ${POD_DIR}
54
	
55
	make install || die
56
57
	for FILE in `find ${D} -type f -name "*.html" -o -name ".packlist"`; do
58
    	sed -i -e "s:${D}:/:g" ${FILE}
59
	done
60
61
	dodoc Change* MANIFEST* README* ${mydoc}
52
62
53
	dodir /etc/init.d /etc/conf.d
63
	dodir /etc/init.d /etc/conf.d
54
	cp ${FILESDIR}/spamd.init ${D}/etc/init.d/spamd
64
	cp ${FILESDIR}/spamd.init ${D}/etc/init.d/spamd

Return to bug 29404