* [gentoo-portage-dev] Configuration files in a package
@ 2004-10-26 17:06 Andrea Carpani
2004-10-26 18:16 ` Thomas de Grenier de Latour
0 siblings, 1 reply; 2+ messages in thread
From: Andrea Carpani @ 2004-10-26 17:06 UTC (permalink / raw
To: gentoo-portage-dev
Hi everybody.
Suppose I have a costom package that contains some executables, data,
lib and config files:
/usr/bin/foo
/usr/share/foo/data
/usr/lib/libfoo.so
/etc/foo.cfg
Is there a way to tag some package files as "configuration files" (in
the custom ebuild with a custom function maybe) so that once the package
is installed I can do something like
# qpkg --get-cfg-files foo
and obtain a list like
/etc/foo.cfg
I'd like to have the same thing for library and executable files.
# qpkg --get-lib-files foo
/usr/lib/libfoo.so
Or maybe something that gives me a LIBS or CONFIG file in
/var/db/pkg/<category>/<app> filled with files that the ebuild tagged in
a special way.
Thanks.
--
andrea@carpani.net
Andrea Carpani
.a.c.
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-portage-dev] Configuration files in a package
2004-10-26 17:06 [gentoo-portage-dev] Configuration files in a package Andrea Carpani
@ 2004-10-26 18:16 ` Thomas de Grenier de Latour
0 siblings, 0 replies; 2+ messages in thread
From: Thomas de Grenier de Latour @ 2004-10-26 18:16 UTC (permalink / raw
To: gentoo-portage-dev
On Tue, 26 Oct 2004 19:06:37 +0200
Andrea Carpani <ml@carpani.net> wrote:
> Is there a way to tag some package files as "configuration
> files" (in the custom ebuild with a custom function maybe) so
> that once the package is installed I can do something like
>
> # qpkg --get-cfg-files foo
>
> and obtain a list like
>
> /etc/foo.cfg
Latest version of "equery" (app-portage/gentoolkit-0.2.0_pre10)
includes that feature. Not sure the manpage is up-to-date tho, so
you may want to have a look on the description on bug #43422:
http://bugs.gentoo.org/show_bug.cgi?id=43422
For config files, it should be something like this:
# equery files --filter=conf foo
The definition of a config file is "a file that is in your
$CONFIG_PROTECT path" (see make.conf or make.globals, it includes
"/etc" and a few other dirs).
> I'd like to have the same thing for library and executable
> files.
For executables, try:
# equery files --filter=cmd foo
The definition of a command is "a file that is in current $PATH".
Thus, a user and the root may have different results if the
package has installed some files in /sbin or /usr/sbin.
There is no option for libraries, but you can try something like
that:
# equery -C files --filter=obj,sym foo \
| sed '/^\//{/.*\.\(so\|a\|la\)[\.0-9]*$/!d}'
It will list files & links named "something.{so,a,la}[.version]".
A "lib" filter rule could probably be added to equery tho, all
that is needed is a correct criteria to recognise this files
(like a regexp match on there name similar to the one above,
or a`file | grep something` test, or a list of directories where
libs are supposed to be installed... well, something like that).
> Or maybe something that gives me a LIBS or CONFIG file in
> /var/db/pkg/<category>/<app> filled with files that the ebuild
> tagged in a special way.
I can't talk for portage devs, but I doubt they are willing to add
db entries and modify portage just for that purpose.
--
TGL.
--
gentoo-portage-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-26 18:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-26 17:06 [gentoo-portage-dev] Configuration files in a package Andrea Carpani
2004-10-26 18:16 ` Thomas de Grenier de Latour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox