1 |
dertobi123 07/10/22 18:24:58 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mailgraph-1.14.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.3.15) |
8 |
|
9 |
Revision Changes Path |
10 |
1.23 net-mail/mailgraph/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/ChangeLog?rev=1.23&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/ChangeLog?rev=1.23&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/ChangeLog?r1=1.22&r2=1.23 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v |
19 |
retrieving revision 1.22 |
20 |
retrieving revision 1.23 |
21 |
diff -u -r1.22 -r1.23 |
22 |
--- ChangeLog 15 Oct 2007 14:44:23 -0000 1.22 |
23 |
+++ ChangeLog 22 Oct 2007 18:24:57 -0000 1.23 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for net-mail/mailgraph |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.22 2007/10/15 14:44:23 corsair Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/ChangeLog,v 1.23 2007/10/22 18:24:57 dertobi123 Exp $ |
29 |
+ |
30 |
+*mailgraph-1.14 (22 Oct 2007) |
31 |
+ |
32 |
+ 22 Oct 2007; Tobias Scherbaum <dertobi123@g.o> |
33 |
+ +mailgraph-1.14.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
15 Oct 2007; Markus Rothe <corsair@g.o> mailgraph-1.13.ebuild: |
37 |
Stable on ppc64 |
38 |
|
39 |
|
40 |
|
41 |
1.1 net-mail/mailgraph/mailgraph-1.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mailgraph-1.14.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild,v 1.1 2007/10/22 18:24:57 dertobi123 Exp $ |
51 |
|
52 |
inherit eutils webapp |
53 |
|
54 |
DESCRIPTION="A mail statistics RRDtool frontend for Postfix" |
55 |
HOMEPAGE="http://mailgraph.schweikert.ch/" |
56 |
SRC_URI="http://mailgraph.schweikert.ch//pub/${P}.tar.gz" |
57 |
|
58 |
LICENSE="GPL-2" |
59 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
60 |
IUSE="logrotate" |
61 |
|
62 |
RDEPEND="dev-lang/perl |
63 |
dev-perl/File-Tail |
64 |
>=net-analyzer/rrdtool-1.2.2 |
65 |
logrotate? ( app-admin/logrotate )" |
66 |
DEPEND=">=sys-apps/sed-4" |
67 |
|
68 |
user_group_setup() { |
69 |
# add user and group for mailgraph daemon |
70 |
# also add mgraph to the group adm so it's able to |
71 |
# read syslog logfile /var/log/messages (should be owned by |
72 |
# root:adm with permission 0640) |
73 |
enewgroup mgraph |
74 |
enewuser mgraph -1 -1 /var/empty mgraph,adm |
75 |
} |
76 |
|
77 |
pkg_setup() { |
78 |
webapp_pkg_setup |
79 |
built_with_use net-analyzer/rrdtool perl \ |
80 |
|| die "net-analyzer/rrdtool must be built with USE=perl" |
81 |
user_group_setup |
82 |
} |
83 |
|
84 |
src_unpack() { |
85 |
unpack ${A} |
86 |
cd "${S}" |
87 |
sed -i \ |
88 |
-e "s|\(my \$rrd = '\).*'|\1/var/lib/mailgraph/mailgraph.rrd'|" \ |
89 |
-e "s|\(my \$rrd_virus = '\).*'|\1/var/lib/mailgraph/mailgraph_virus.rrd'|" \ |
90 |
mailgraph.cgi || die "sed mailgraph.cgi failed" |
91 |
} |
92 |
|
93 |
pkg_preinst() { |
94 |
user_group_setup |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
webapp_src_preinst |
99 |
# be sure to run webapp_src_install *before* doing the directories below |
100 |
# because it cripples all other permissions :-( |
101 |
webapp_src_install |
102 |
|
103 |
# for the RRDs |
104 |
dodir /var/lib |
105 |
diropts -omgraph -gmgraph -m0750 |
106 |
dodir /var/lib/mailgraph |
107 |
keepdir /var/lib/mailgraph |
108 |
|
109 |
# log and pid file |
110 |
diropts "" |
111 |
dodir /var/log |
112 |
dodir /var/run |
113 |
diropts -omgraph -gadm -m0750 |
114 |
dodir /var/log/mailgraph |
115 |
keepdir /var/log/mailgraph |
116 |
dodir /var/run/mailgraph |
117 |
keepdir /var/run/mailgraph |
118 |
|
119 |
if use logrotate ; then |
120 |
# logrotate config for mailgraph log |
121 |
diropts "" |
122 |
dodir /etc/logrotate.d |
123 |
insopts -m0644 |
124 |
insinto /etc/logrotate.d |
125 |
newins "${FILESDIR}"/mailgraph.logrotate-new mailgraph |
126 |
fi |
127 |
|
128 |
# mailgraph daemon |
129 |
newbin mailgraph.pl mailgraph |
130 |
|
131 |
# mailgraph CGI script |
132 |
exeinto ${MY_CGIBINDIR} |
133 |
doexe mailgraph.cgi |
134 |
|
135 |
# init/conf files for mailgraph daemon |
136 |
newinitd "${FILESDIR}"/mailgraph.initd-new mailgraph |
137 |
newconfd "${FILESDIR}"/mailgraph.confd-new mailgraph |
138 |
|
139 |
# docs |
140 |
dodoc README CHANGES COPYING |
141 |
} |
142 |
|
143 |
pkg_postinst() { |
144 |
# Fix ownerships - previous versions installed these with |
145 |
# root as owner |
146 |
if [[ has_version <=net-mail/mailgraph-1.12 ]] ; then |
147 |
if [[ -d /var/lib/mailgraph ]] ; then |
148 |
chown mgraph:mgraph /var/lib/mailgraph |
149 |
fi |
150 |
if [[ -d /var/log/mailgraph ]] ; then |
151 |
chown mgraph:adm /var/log/mailgraph |
152 |
fi |
153 |
if [[ -d /var/run/mailgraph ]] ; then |
154 |
chown mgraph:adm /var/run/mailgraph |
155 |
fi |
156 |
fi |
157 |
elog |
158 |
elog "Mailgraph will run as user mgraph with group adm by default." |
159 |
elog "This can be changed in /etc/conf.d/mailgraph if it doesn't fit." |
160 |
elog "Remember to adjust MG_DAEMON_LOG, MG_DAEMON_PID and MG_DAEMON_RRD" |
161 |
elog "as well!" |
162 |
elog |
163 |
elog |
164 |
ewarn |
165 |
ewarn "Please make sure the MG_LOGFILE (default: /var/log/messages) is readable" |
166 |
ewarn "by group adm or change MG_DAEMON_GID in /etc/conf.d/mailgraph accordingly!" |
167 |
ewarn |
168 |
ewarn "Please make sure *all* mail related logs (MTA, spamfilter, virus scanner)" |
169 |
ewarn "go to the file /var/log/messages or change MG_LOGFILE in" |
170 |
ewarn "/etc/conf.d/mailgraph accordingly! Otherwise mailgraph won't get to know" |
171 |
ewarn "the corresponding events (virus/spam mail found etc.)." |
172 |
ewarn |
173 |
ewarn |
174 |
elog |
175 |
elog "Checking for user apache" |
176 |
if egetent passwd apache >&/dev/null; then |
177 |
elog |
178 |
elog "Adding user apache to group mgraph so the included" |
179 |
elog "CGI script is able to read the mailgraph RRD files" |
180 |
elog |
181 |
if ! gpasswd -a apache mgraph >&/dev/null; then |
182 |
eerror "Failed to add user apache to group mgraph!" |
183 |
eerror "Please check manually." |
184 |
fi |
185 |
else |
186 |
elog |
187 |
elog "User apache not found, maybe we will be running a" |
188 |
elog "webserver with a different UID?" |
189 |
elog "If that's the case, please add that user to the" |
190 |
elog "group mgraph manually to enable the included" |
191 |
elog "CGI script to read the mailgraph RRD files:" |
192 |
elog |
193 |
elog "\tgpasswd -a <user> mgraph" |
194 |
elog |
195 |
fi |
196 |
} |
197 |
|
198 |
|
199 |
|
200 |
-- |
201 |
gentoo-commits@g.o mailing list |