1 |
swift 12/04/29 17:26:08 |
2 |
|
3 |
Modified: mailfilter-guide.xml |
4 |
Log: |
5 |
Fix bug #399803 - Repeat chown after upgrade of amavisd-new |
6 |
|
7 |
Revision Changes Path |
8 |
1.27 xml/htdocs/doc/en/mailfilter-guide.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.27&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml?rev=1.27&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml?r1=1.26&r2=1.27 |
13 |
|
14 |
Index: mailfilter-guide.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v |
17 |
retrieving revision 1.26 |
18 |
retrieving revision 1.27 |
19 |
diff -u -r1.26 -r1.27 |
20 |
--- mailfilter-guide.xml 19 Jun 2011 09:12:09 -0000 1.26 |
21 |
+++ mailfilter-guide.xml 29 Apr 2012 17:26:08 -0000 1.27 |
22 |
@@ -1,6 +1,6 @@ |
23 |
<?xml version='1.0' encoding='utf-8'?> |
24 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
25 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v 1.26 2011/06/19 09:12:09 nightmorph Exp $ --> |
26 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/mailfilter-guide.xml,v 1.27 2012/04/29 17:26:08 swift Exp $ --> |
27 |
|
28 |
<guide> |
29 |
<title>Gentoo mailfiltering gateway guide</title> |
30 |
@@ -25,8 +25,8 @@ |
31 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
32 |
<license/> |
33 |
|
34 |
-<version>5</version> |
35 |
-<date>2011-06-19</date> |
36 |
+<version>2</version> |
37 |
+<date>2012-04-29</date> |
38 |
|
39 |
<chapter> |
40 |
<title>Introduction</title> |
41 |
@@ -1913,6 +1913,35 @@ |
42 |
</body> |
43 |
</section> |
44 |
<section> |
45 |
+<title>Repeating tasks after installation</title> |
46 |
+<body> |
47 |
+ |
48 |
+<p> |
49 |
+Some of the activities mentioned in this guide will need to be repeated after |
50 |
+upgrades. For instance, the <c>chown -R amavis:mailusers</c> in the section on |
51 |
+<uri link="#doc_chap6">Autolearning and sidelining emails</uri> will need to be |
52 |
+repeated after every update of amavisd-new. |
53 |
+</p> |
54 |
+ |
55 |
+<p> |
56 |
+Luckily, Gentoo provides you with the means to perform these steps |
57 |
+automatically. In <uri |
58 |
+link="/doc/en/handbook/handbook-amd64.xml?part=3&chap=6#doc_chap3">Hooking in |
59 |
+the Emerge Process</uri>, the Gentoo Handbook explains how to execute tasks |
60 |
+after installations of a particular package, like so: |
61 |
+</p> |
62 |
+ |
63 |
+<pre caption="Example bashrc snippet for running the mentioned chown"> |
64 |
+if [ "${PN}" == "amavisd-new" ] && |
65 |
+ [ "${EBUILD_PHASE}" == "postinst" ]; |
66 |
+then |
67 |
+ chown -R amavis:mailusers /var/amavis/.maildir |
68 |
+fi |
69 |
+</pre> |
70 |
+ |
71 |
+</body> |
72 |
+</section> |
73 |
+<section> |
74 |
<title>Getting help</title> |
75 |
<body> |