Gentoo Archives: gentoo-dev

From: George Shapovalov <georges@×××××××××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Directory create in ebuilds
Date: Wed, 07 Aug 2002 15:42:14
Message-Id: 200208071341.09221.georges@its.caltech.edu
In Reply to: [gentoo-dev] Directory create in ebuilds by Jon Griffin
1 dodir /etc/logcheck
2 also please check the contents of /usr/lib/portage/bin/ for what's available
3 (such as dobin, dodoc ...).
4 You should be using these instead of direct mkdir, cp, mv...
5
6 Sometimes you may want to do something nonstandsrd or may be some recursive
7 task and it may be desireble to do cp -r someplace omeother_place. In any
8 case, *do not* perform any such operation on a "live sustem", that is right
9 under /usr or whereever. Use ${D}/usr/what/ever instead. ${D} will point to
10 the right place, where package gets installed before merging in.
11 Also, it would be usefull to read some doc on sandbox'ing. This is mentioned
12 in developer docs on gentoo.org, "man emerge" and "man ebuild" should also
13 help.
14
15 George
16
17
18 On Wednesday 07 August 2002 13:32, Jon Griffin wrote:
19 > I need to create the /etc/logcheck directory and it seems that (sandbox?)
20 > is preventing this. Any help would be appreciated and if I missed it in the
21 > doc please let me know.
22 >
23 > Here is the error:
24 >
25 > Creating install directory /etc/logcheck
26 > ACCESS DENIED mkdir: /etc/logcheck

Replies

Subject Author
Re[2]: [gentoo-dev] Directory create in ebuilds Jon Griffin <jong@×××.org>
Re: [gentoo-dev] Directory create in ebuilds Mark Guertin <gerk@g.o>