Gentoo Archives: gentoo-embedded

From: Daniel <dragonheart@g.o>
To: solar@g.o
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] busybox default Config.h
Date: Wed, 21 Jan 2004 00:41:38
Message-Id: 200401211006.56901.dragonheart@gentoo.org
In Reply to: Re: [gentoo-embedded] busybox default Config.h by Ned Ludd
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4
5 > Sure we can do something like this, but what shall our trigger be?
6 >
7
8 I think the existance of the file is a trigger enough
9
10 > How about something like this?
11 >
12 > if [ `use this_trigger` ] ; then
13 > for conf in {${PN}-${PV}-${PR},${PN}-${PV},${PN}}.config
14 > if [ -r /etc/${PN}/${conf} ] ; then
15 > cp ${conf} ${S}/.config
16 > break;
17 > fi
18 > done
19 > fi
20 >
21 > [ ! -r .config ] && make a config
22 > .. existing stuff
23 >
24 > post install phase
25 >
26 > [ `use this_trigger` ] && copy .confg /etc/${PN}/${PN}.config
27
28 This could just be default (no trigger) - I think lisa has done it a few times
29 in her ebuilds.
30
31 >
32 > -----
33 >
34 > Idea here would be fine grained config control by searching
35 > /etc/busybox/ for
36 >
37 > [package]-[version]-[revision].config
38 > [package]-[version].config
39 > [package].config
40 >
41
42 I realy like this idea.
43
44 I like how the default is ${PN}.config too.
45
46 > The config would be searched for in that order and once a config is copied,
47 > no more attempts would be made.
48
49 Very good.
50
51 Daniel
52 -----BEGIN PGP SIGNATURE-----
53 Version: GnuPG v1.2.3 (GNU/Linux)
54
55 iD8DBQFADcmmTDSbtjKmTcgRAmwrAKClw7bHtW8BO/qeriIvXSrci9z9KACfQkJq
56 q85z8ms6dXKAqTi/ualNsWM=
57 =rYlX
58 -----END PGP SIGNATURE-----
59
60
61 --
62 gentoo-embedded@g.o mailing list

Replies

Subject Author
Re: [gentoo-embedded] busybox default Config.h Ned Ludd <solar@g.o>