summaryrefslogtreecommitdiff
blob: 9f5077b0fcc1e6f87ee76691c3d5c174aaae0f02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/mail-filter/ask/ask-2.4.1.ebuild,v 1.5 2005/06/05 11:53:47 hansmi Exp $

DESCRIPTION="Active Spam Killer: A program to filter spam"
HOMEPAGE="http://www.paganini.net/ask/index.html"
SRC_URI="mirror://sourceforge/a-s-k/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc x86"

IUSE="procmail"
RDEPEND=">=dev-lang/python-2.2
		virtual/mta
		procmail? ( >=mail-filter/procmail-3.22 )"

src_install() {
	into /
	dobin ask.py asksetup.py askversion.py utils/asksenders.py

	insinto /usr/lib/ask
	doins askconfig.py asklock.py asklog.py askmail.py askmain.py \
		 askmessage.py askremote.py

	insinto /usr/share/ask/samples
	doins samples/*

	insinto /usr/share/ask/templates
	doins templates/*

	insinto /usr/share/ask/utils
	doins utils/*

	doman docs/*.1

	dodoc ChangeLog TODO docs/ask_doc*
}

pkg_postinst() {
	einfo
	einfo "You MUST run the asksetup.py file to configure ASK!"
	einfo
	if use procmail; then
		einfo "To use ASK's procmail support these should be your first two procmail rules:"
		einfo
		einfo ":0 fW"
		einfo "|/path_to_ask/ask.py --procmail --loglevel=5 --logfile=/your_home/ask.log"
		einfo
		einfo ":0 e"
		einfo "/dev/null"
		einfo
		einfo "The second rule above instructs procmail to deliver the message to /dev/null"
		einfo "if ASK returns a fail code. If you're truly paranoid, you can save those"
		einfo "messages to a file instead for later inspection."
	fi
}