Gentoo Archives: gentoo-dev

From: "Alin Năstac" <mrness@g.o>
To: Donnie Berkholz <dberkholz@g.o>
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-proxy/polipo: ChangeLog polipo-1.0.3.ebuild polipo-1.0.1.ebuild polipo-1.0.0.ebuild polipo-0.9.12-r1.ebuild
Date: Sat, 03 Nov 2007 08:40:10
Message-Id: 472C333B.9010201@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in net-proxy/polipo: ChangeLog polipo-1.0.3.ebuild polipo-1.0.1.ebuild polipo-1.0.0.ebuild polipo-0.9.12-r1.ebuild by Donnie Berkholz
1 Donnie Berkholz wrote:
2 > On 15:38 Fri 02 Nov , Alin Nastac (mrness) wrote:
3 >
4 >> 1.1 net-proxy/polipo/polipo-1.0.3.ebuild
5 >>
6 >> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/polipo/polipo-1.0.3.ebuild?rev=1.1&view=markup
7 >> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-proxy/polipo/polipo-1.0.3.ebuild?rev=1.1&content-type=text/plain
8 >>
9 >
10 >
11 >> pkg_setup() {
12 >> enewgroup polipo
13 >> enewuser polipo -1 -1 /var/cache/polipo polipo
14 >> }
15 >>
16 >
17 > ...
18 >
19 >
20 >> pkg_preinst() {
21 >> pkg_setup
22 >> }
23 >>
24 >
25 > What's up with this?
26 >
27
28 You have to create users and groups in both pkg_ functions:
29 - pkg_setup : when installation is performed the usual way, through
30 compilation
31 - pkg_preinst: when installed from binary package (-k)

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies