1 |
Hi, |
2 |
|
3 |
It seems everybody agrees to make a configurable exclude-list for your |
4 |
Script. |
5 |
What I suggest is that you take the debian "cruft" package, and modify |
6 |
It so that it works with gentoo. |
7 |
The way it works is easy : |
8 |
1) produces a list of every file in the system (find /) |
9 |
2) runs every script in /etc/cruft/exclude/ (or whatever) |
10 |
3) remove 2 from 1 |
11 |
4) remove all package-owned files from 1) |
12 |
5) print the rest |
13 |
|
14 |
As a result, you can configure the files you want excluded by creating |
15 |
simple |
16 |
#!/bin/sh |
17 |
find /usr/local |
18 |
|
19 |
Scripts, for example.. |
20 |
|
21 |
|
22 |
Sam |
23 |
|
24 |
> -----Original Message----- |
25 |
> From: Andy Arbon [mailto:gentoo@××××××××××××××.uk] |
26 |
> Sent: dimanche 2 mars 2003 17:44 |
27 |
> To: gentoo-dev |
28 |
> Subject: [gentoo-dev] Cruft detecting script |
29 |
> |
30 |
> |
31 |
> -----BEGIN PGP SIGNED MESSAGE----- |
32 |
> Hash: SHA1 |
33 |
> |
34 |
> Hello, |
35 |
> |
36 |
> I've been wondering about writing a cruft detecting script.. |
37 |
> The basic idea would be: |
38 |
> * Produce a list of every file that Portage claims |
39 |
> responsibility for on the current system (ie. the results of |
40 |
> qpkg -l `qpkg -I`) |
41 |
> * Produce a list of every file in the system (ie. find /) |
42 |
> * Remove the first set from the second |
43 |
> * Whatever's left is 'cruft' |
44 |
> |
45 |
> The above needs to be tweaked so that find doesn't look in |
46 |
> areas that are not used for system things, eg. /home, /tmp etc. |
47 |
> |
48 |
> Has anyone written something like this, and does anyone have |
49 |
> any reason why something like this wouldn't work or be useful? |
50 |
> |
51 |
> Cheers, |
52 |
> |
53 |
> Andy |
54 |
> |
55 |
> -----BEGIN PGP SIGNATURE----- |
56 |
> Version: GnuPG v1.2.1 (GNU/Linux) |
57 |
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
58 |
> |
59 |
> iD8DBQE+YjTeX3TTUvZURBERAhcmAKCgpIMVRugO9gbeKvTKG+TgObI0pgCeO4fb |
60 |
> bRqkUTm51aLUB8/Lpn5J1BQ= |
61 |
> =4xNI |
62 |
> -----END PGP SIGNATURE----- |
63 |
> |
64 |
> |
65 |
> -- |
66 |
> gentoo-dev@g.o mailing list |
67 |
> |
68 |
> |
69 |
> |
70 |
|
71 |
|
72 |
-- |
73 |
gentoo-dev@g.o mailing list |