/[gentoo-projects]/portage-utils/HACKING
Gentoo

Contents of /portage-utils/HACKING

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Mar 15 10:22:37 2009 UTC (5 years, 5 months ago) by vapier
Branch: MAIN
Changes since 1.3: +1 -1 lines
fix typo

1 - Adding applets is easy using the q framework.
2 Note: Please try to keep applet names under 8 chars.
3 * cp template.c qmyapplet.c (all applets use the prefix of the letter 'q')
4 * applets.h: add your prototype (see DECLARE_APPLET macro)
5 * applets.h: add a new line to applets[] following the existing syntax
6 * run `make depend` to auto regenerate dependent files
7
8 When and where you can please try to use an existing applet and extend
9 on its functionality by adding more options vs adding a bunch of new
10 little applets.
11
12 - Keep behavior consistent
13 * matching:
14 default is sloppy match
15 -e exact match
16 -r regex match
17
18 ## Examples:
19 * find elf files linking to old openssl
20 qlist -ao | scanelf -BqgN libssl.so.0.9.6 -f -
21
22 * print a package.use
23 qlist -UCq | grep ' ' > package.use
24
25 * find orphan files not owned by any package in /lib and /usr/lib
26 qfile -o {,/usr}/lib/*
27
28 # get PORTDIR
29 DEBUG=: ./q -Ch 2>&1 | grep ^PORTDIR | awk '{print $3}
30
31 # Verify all packages
32 qcheck -a

  ViewVC Help
Powered by ViewVC 1.1.20