/[gentoo-x86]/mail-filter/postgrey/postgrey-1.34-r1.ebuild
Gentoo

Contents of /mail-filter/postgrey/postgrey-1.34-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Nov 21 10:59:50 2012 UTC (2 years ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #439066

(Portage version: 2.1.11.31/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/mail-filter/postgrey/postgrey-1.34-r1.ebuild,v 1.4 2012/10/30 22:42:46 blueness Exp $
4
5 EAPI=4
6
7 inherit eutils user
8
9 DESCRIPTION="Postgrey is a Postfix policy server implementing greylisting"
10 HOMEPAGE="http://postgrey.schweikert.ch/"
11 SRC_URI="http://postgrey.schweikert.ch/pub/${P}.tar.gz
12 http://postgrey.schweikert.ch/pub/old/${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 hppa ~ppc ppc64 x86"
17 IUSE="targrey"
18
19 DEPEND=""
20 RDEPEND=">=dev-lang/perl-5.6.0
21 dev-perl/net-server
22 dev-perl/IO-Multiplex
23 dev-perl/BerkeleyDB
24 dev-perl/Net-DNS
25 dev-perl/Parse-Syslog
26 dev-perl/Net-RBLClient
27 >=sys-libs/db-4.1"
28
29 pkg_setup() {
30 enewgroup ${PN}
31 enewuser ${PN} -1 -1 /dev/null ${PN}
32 }
33
34 src_prepare() {
35 if use targrey ; then
36 epatch "${FILESDIR}"/targrey-0.31-postgrey-1.34.patch
37 fi
38 }
39
40 src_install() {
41 # postgrey data/DB in /var
42 diropts -m0770 -o ${PN} -g ${PN}
43 dodir /var/spool/postfix/${PN}
44 keepdir /var/spool/postfix/${PN}
45 fowners postgrey:postgrey /var/spool/postfix/${PN}
46 fperms 0770 /var/spool/postfix/${PN}
47
48 # postgrey binary
49 dosbin ${PN}
50 dosbin contrib/postgreyreport
51
52 # policy-test script
53 dosbin policy-test
54
55 # postgrey data in /etc/postfix
56 insinto /etc/postfix
57 insopts -o root -g ${PN} -m 0640
58 doins postgrey_whitelist_clients postgrey_whitelist_recipients
59
60 # documentation
61 dodoc Changes README
62
63 # init.d + conf.d files
64 insopts -o root -g root -m 755
65 newinitd "${FILESDIR}"/${PN}.rc.new ${PN}
66 insopts -o root -g root -m 640
67 newconfd "${FILESDIR}"/${PN}.conf.new ${PN}
68 }

  ViewVC Help
Powered by ViewVC 1.1.20