Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, dertobi123@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-mail/mailgraph: ChangeLog mailgraph-1.14.ebuild
Date: Mon, 22 Oct 2007 19:02:12
Message-Id: 20071022185827.GA29642@supernova
1 On 18:24 Mon 22 Oct , Tobias Scherbaum (dertobi123) wrote:
2 > 1.1 net-mail/mailgraph/mailgraph-1.14.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/mailgraph/mailgraph-1.14.ebuild?rev=1.1&content-type=text/plain
6
7 > user_group_setup() {
8 > # add user and group for mailgraph daemon
9 > # also add mgraph to the group adm so it's able to
10 > # read syslog logfile /var/log/messages (should be owned by
11 > # root:adm with permission 0640)
12 > enewgroup mgraph
13 > enewuser mgraph -1 -1 /var/empty mgraph,adm
14 > }
15 >
16 > pkg_setup() {
17 > webapp_pkg_setup
18 > built_with_use net-analyzer/rrdtool perl \
19 > || die "net-analyzer/rrdtool must be built with USE=perl"
20 > user_group_setup
21 > }
22
23 ...
24
25 > pkg_preinst() {
26 > user_group_setup
27 > }
28
29 Why is user_group_setup() run twice?
30
31 > if [[ has_version <=net-mail/mailgraph-1.12 ]] ; then
32
33 Does this actually work?
34
35 Thanks,
36 Donnie
37 --
38 gentoo-dev@g.o mailing list