On Mon, January 26, 2009 17:48, Mike Kazantsev wrote: > On Mon, 26 Jan 2009 08:41:52 -0800 > Grant <[email protected]> wrote: > >> What do you guys think of this? Do you know of a good cruft removal >> script? > > Yep, there's quite good one in gentoo itself. > > Basically, you'll need to write a short config for it, consisting of > lines like "cruft name", "cruft src uri" and a few more lines if you'll > need to pass some extra parameters to configure/make/install. > It'll build the package in a sandbox, then transfer it to destination, > memorizing every change it did and preventing collisions and config > overwrites. > > Just put that config script into an ebuild file and use portage to > build it - as simple as it gets ;)
If you have to learn to write anything, I suggest learning to write ebuilds instead which will probably be a better long term solution. That way you can reuse that knowledge in your Gentoo experience and you don't need a cruft remover either because you can just emerge -C your program. -- Jesús Guerrero

