blob: 32553c4a9530c689db9700f3ae8770561a804926 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<?xml version="1.0" encoding="UTF-8"?>
<devbook self="ebuild-writing/functions/pkg_postrm/">
<chapter>
<title>pkg_postrm</title>
<body>
<table>
<tr>
<th>Function</th>
<ti><c>pkg_postrm</c></ti>
</tr>
<tr>
<th>Purpose</th>
<ti>Called after a package is unmerged</ti>
</tr>
<tr>
<th>Sandbox</th>
<ti>Disabled</ti>
</tr>
<tr>
<th>Privilege</th>
<ti>root</ti>
</tr>
<tr>
<th>Called for</th>
<ti>ebuild, binary</ti>
</tr>
</table>
</body>
<section>
<title>Default <c>pkg_postrm</c></title>
<body>
<codesample lang="ebuild">
pkg_postrm() {
return
}
</codesample>
</body>
</section>
<section>
<title>Sample <c>pkg_postrm</c></title>
<body>
<codesample lang="ebuild">
inherit xdg-utils
pkg_postrm() {
xdg_desktop_database_update
xdg_mimeinfo_database_update
}
</codesample>
</body>
</section>
<section>
<title>Common <c>pkg_postrm</c> tasks</title>
<body>
<p>
<c>pkg_postrm</c> is is used to update symlinks, cache files and other
generated content after a package has been uninstalled.
</p>
</body>
</section>
</chapter>
</devbook>
|