Gentoo Archives: gentoo-commits

From: "Marc Schiffbauer (mschiff)" <mschiff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-filter/postfwd: postfwd-1.35-r1.ebuild ChangeLog postfwd-1.35.ebuild
Date: Sun, 30 Nov 2014 16:37:22
Message-Id: 20141130163718.C0B72B3B5@oystercatcher.gentoo.org
1 mschiff 14/11/30 16:37:18
2
3 Modified: ChangeLog
4 Added: postfwd-1.35-r1.ebuild
5 Removed: postfwd-1.35.ebuild
6 Log:
7 Fixed typo in init script
8
9 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x296C6CCA35A64134)
10
11 Revision Changes Path
12 1.7 mail-filter/postfwd/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/postfwd/ChangeLog?rev=1.7&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/postfwd/ChangeLog?rev=1.7&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/postfwd/ChangeLog?r1=1.6&r2=1.7
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-filter/postfwd/ChangeLog,v
21 retrieving revision 1.6
22 retrieving revision 1.7
23 diff -u -r1.6 -r1.7
24 --- ChangeLog 28 Nov 2014 20:52:14 -0000 1.6
25 +++ ChangeLog 30 Nov 2014 16:37:18 -0000 1.7
26 @@ -1,6 +1,12 @@
27 # ChangeLog for mail-filter/postfwd
28 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-filter/postfwd/ChangeLog,v 1.6 2014/11/28 20:52:14 jer Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-filter/postfwd/ChangeLog,v 1.7 2014/11/30 16:37:18 mschiff Exp $
31 +
32 +*postfwd-1.35-r1 (30 Nov 2014)
33 +
34 + 30 Nov 2014; Marc Schiffbauer <mschiff@g.o> +postfwd-1.35-r1.ebuild,
35 + -postfwd-1.35.ebuild, files/postfwd.init:
36 + Fixed typo in init script
37
38 28 Nov 2014; Jeroen Roovers <jer@g.o> metadata.xml:
39 Add proxy-maint.
40
41
42
43 1.1 mail-filter/postfwd/postfwd-1.35-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/postfwd/postfwd-1.35-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-filter/postfwd/postfwd-1.35-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: postfwd-1.35-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2014 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-filter/postfwd/postfwd-1.35-r1.ebuild,v 1.1 2014/11/30 16:37:18 mschiff Exp $
53
54 EAPI=4
55
56 inherit eutils user
57
58 DESCRIPTION="Versatile Postfix policy server with a flexible ruleset based configuration"
59 HOMEPAGE="http://www.postfwd.org/"
60 SRC_URI="http://www.postfwd.org/${P}.tar.gz"
61
62 LICENSE="BSD"
63 SLOT="0"
64 KEYWORDS="~amd64 ~x86"
65 IUSE="+tools"
66
67 DEPEND=""
68 RDEPEND=">=dev-lang/perl-5.16.3
69 virtual/perl-Sys-Syslog
70 dev-perl/Net-DNS
71 dev-perl/net-server
72 "
73
74 pkg_setup() {
75 enewgroup postfwd
76 enewuser postfwd -1 -1 -1 postfwd
77 }
78
79 src_install() {
80 local BIN="postfwd2"
81 # programs and tools
82 dosbin "${S}"/sbin/${BIN}
83
84 # man pages and documentation
85 doman "${S}"/man/man8/${BIN}.8
86 dodoc "${S}"/doc/{${BIN}.CHANGELOG,${BIN}.txt}
87
88 # example configuration(s)
89 insinto /usr/share/doc/${PF}/examples
90 newins "${S}"/etc/${PN}.cf.sample ${PN}.cf.dist
91
92 # plugins
93 dodoc -r "${S}"/plugins
94
95 # tools
96 if use tools; then
97 dodoc -r "${S}"/tools
98 fi
99
100 # init script and respective configuration file
101 newinitd "${FILESDIR}"/${PN}.init ${PN}
102 newconfd "${FILESDIR}"/${PN}.conf ${PN}
103 }
104
105 pkg_postinst() {
106 einfo
107 einfo "${PN} has no default configuration for safety reasons. Every"
108 einfo "mail system is different, so you should craft a set of rules"
109 einfo "that is suitable for your environment and save it to:"
110 einfo " /etc/postfix/postfwd.cf"
111 einfo "You can find example configurations in:"
112 einfo " /usr/share/doc/${PF}/examples"
113 einfo
114 einfo "If you want ${PN} to start on system boot, you have to add it your"
115 einfo "default run level:"
116 einfo " # rc-update add postfwd default"
117 einfo "Also remember to edit /etc/conf.d/${PN} to your liking."
118 einfo
119 einfo "A plugins sampe folder has been placed under:"
120 einfo
121 einfo " /usr/share/doc/${PF}/plugins"
122
123 if use tools; then
124 einfo
125 einfo "You can find additional tools for testing ${PN} in:"
126 einfo " /usr/share/doc/${PF}/tools"
127 fi
128
129 ewarn
130 ewarn "Please read the documentation carefully and properly test new"
131 ewarn "rulesets before putting them into production use. Otherwise you"
132 ewarn "risk accidental mail loss or worse."
133 ewarn
134 ewarn "Visit http://www.postfwd.org/ for more information."
135 ewarn
136 }