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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Jun 5 00:03:02 2012 UTC (2 years, 2 months ago) by zmedico
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +2 -2 lines
inherit user for enewgroup and enewuser

(Portage version: 2.2.0_alpha110/cvs/Linux i686)

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.ebuild,v 1.6 2012/03/08 14:55:41 ranger 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=""
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_install() {
35 # postgrey data/DB in /var
36 diropts -m0770 -o ${PN} -g ${PN}
37 dodir /var/spool/postfix/${PN}
38 keepdir /var/spool/postfix/${PN}
39 fowners postgrey:postgrey /var/spool/postfix/${PN}
40 fperms 0770 /var/spool/postfix/${PN}
41
42 # postgrey binary
43 dosbin ${PN}
44 dosbin contrib/postgreyreport
45
46 # policy-test script
47 dosbin policy-test
48
49 # postgrey data in /etc/postfix
50 insinto /etc/postfix
51 insopts -o root -g ${PN} -m 0640
52 doins postgrey_whitelist_clients postgrey_whitelist_recipients
53
54 # documentation
55 dodoc Changes README
56
57 # init.d + conf.d files
58 insopts -o root -g root -m 755
59 newinitd "${FILESDIR}"/${PN}.rc.new ${PN}
60 insopts -o root -g root -m 640
61 newconfd "${FILESDIR}"/${PN}.conf.new ${PN}
62 }

  ViewVC Help
Powered by ViewVC 1.1.20