Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 300511 | Differences between
and this patch

Collapse All | Expand All

(-)tmda-1.1.4.ebuild.orig (-19 / +19 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2006 Gentoo Foundation
1
# Copyright 1999-2010 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/mail-filter/tmda/tmda-1.1.4.ebuild,v 1.1 2006/05/31 09:48:44 ticho Exp $
3
# $Header: /var/cvsroot/gentoo-x86/mail-filter/tmda/tmda-1.1.4.ebuild,v 1.1 2006/05/31 09:48:44 ticho Exp $
4
4
Lines 6-27 Link Here
6
6
7
DESCRIPTION="Python-based SPAM reduction system"
7
DESCRIPTION="Python-based SPAM reduction system"
8
HOMEPAGE="http://www.tmda.net/"
8
HOMEPAGE="http://www.tmda.net/"
9
LICENSE="GPL-2"
10
11
DEPEND=">=dev-lang/python-2.2
12
	virtual/mta"
13
14
SRC_URI="http://www.tmda.net/releases/unstable/${P}.tgz"
9
SRC_URI="http://www.tmda.net/releases/unstable/${P}.tgz"
10
11
LICENSE="GPL-2"
15
SLOT="0"
12
SLOT="0"
16
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
13
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
17
IUSE=""
14
IUSE=""
18
15
16
DEPEND="dev-lang/python
17
	virtual/mta"
18
19
src_compile () {
19
src_compile () {
20
	# Fix multipart mail handling. (See bug #60367)		-ticho
20
	# Fix multipart mail handling. (See bug #60367)		-ticho
21
	epatch ${FILESDIR}/tmda-1.0-multipart-handling.patch
21
	epatch "${FILESDIR}"/tmda-1.0-multipart-handling.patch
22
22
23
	# Do not open /dev/tty when in batch mode. (bug #67150) -ticho
23
	# Do not open /dev/tty when in batch mode. (bug #67150) -ticho
24
	epatch ${FILESDIR}/tmda-1.0-non-interactive-tty.patch
24
	epatch "${FILESDIR}"/tmda-1.0-non-interactive-tty.patch
25
25
26
	./compileall || die "tmda compilation failed"
26
	./compileall || die "tmda compilation failed"
27
}
27
}
Lines 32-66 Link Here
32
	local pv=`python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:'`
32
	local pv=`python -V 2>&1 | sed -e 's:Python \([0-9].[0-9]\).*:\1:'`
33
33
34
	# Executables
34
	# Executables
35
	dobin bin/tmda-*
35
	dobin bin/tmda-* || die
36
36
37
	# The Python TMDA module
37
	# The Python TMDA module
38
	insinto "/usr/lib/python${pv}/site-packages/TMDA"
38
	insinto "/usr/lib/python${pv}/site-packages/TMDA"
39
	doins TMDA/*.py*
39
	doins TMDA/*.py* || die
40
	insinto "/usr/lib/python${pv}/site-packages/TMDA/pythonlib/email"
40
	insinto "/usr/lib/python${pv}/site-packages/TMDA/pythonlib/email"
41
	doins TMDA/pythonlib/email/*.py*
41
	doins TMDA/pythonlib/email/*.py* || die
42
42
43
	# The templates
43
	# The templates
44
	insinto /etc/tmda
44
	insinto /etc/tmda
45
	doins templates/*.txt
45
	doins templates/*.txt || die
46
46
47
	# Documentation
47
	# Documentation
48
	dodoc COPYING ChangeLog README THANKS UPGRADE CRYPTO CODENAMES INSTALL
48
	dodoc ChangeLog README THANKS UPGRADE CRYPTO CODENAMES INSTALL || die
49
	dohtml -r htdocs/*.html
49
	dohtml -r htdocs/*.html || die
50
	dohtml -r htdocs/img
50
	dohtml -r htdocs/img || die
51
51
52
	# Contributed binaries and stuff
52
	# Contributed binaries and stuff
53
	cd ${S}/contrib
53
	cd "${S}"/contrib
54
54
55
	exeinto /usr/lib/tmda/contrib
55
	exeinto /usr/lib/tmda/contrib
56
	doexe collectaddys def2html printcdb printdbm \
56
	doexe collectaddys def2html printcdb printdbm \
57
	      sendit.sh smtp-check-sender update-internaldomains vadduser-tmda \
57
	      sendit.sh smtp-check-sender update-internaldomains vadduser-tmda \
58
	      vmailmgr-vdir.sh vpopmail-vdir.sh wrapfd3.sh
58
	      vmailmgr-vdir.sh vpopmail-vdir.sh wrapfd3.sh || die
59
59
60
	insinto /usr/lib/tmda/contrib
60
	insinto /usr/lib/tmda/contrib
61
	doins ChangeLog tmda.el tmda.spec \
61
	doins ChangeLog tmda.el tmda.spec \
62
	      tofmipd.init tofmipd.sysconfig vtmdarc
62
	      tofmipd.init tofmipd.sysconfig vtmdarc || die
63
63
64
	insinto /usr/lib/tmda/contrib/dot-tmda
64
	insinto /usr/lib/tmda/contrib/dot-tmda
65
	doins dot-tmda/*
65
	doins dot-tmda/* || die
66
}
66
}

Return to bug 300511