1 |
swift 12/08/24 15:50:10 |
2 |
|
3 |
Modified: selinux-development.xml |
4 |
Log: |
5 |
Add info on changing SRC_URI when developing your own SELinux ebuilds |
6 |
|
7 |
Revision Changes Path |
8 |
1.5 xml/htdocs/proj/en/hardened/selinux-development.xml |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml?rev=1.5&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml?rev=1.5&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml?r1=1.4&r2=1.5 |
13 |
|
14 |
Index: selinux-development.xml |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v |
17 |
retrieving revision 1.4 |
18 |
retrieving revision 1.5 |
19 |
diff -u -r1.4 -r1.5 |
20 |
--- selinux-development.xml 26 May 2012 18:03:15 -0000 1.4 |
21 |
+++ selinux-development.xml 24 Aug 2012 15:50:10 -0000 1.5 |
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/proj/en/hardened/selinux-development.xml,v 1.4 2012/05/26 18:03:15 swift Exp $ --> |
26 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v 1.5 2012/08/24 15:50:10 swift Exp $ --> |
27 |
|
28 |
<guide link="/proj/en/hardened/selinux-development.xml" lang="en"> |
29 |
<title>Gentoo Hardened SELinux Development</title> |
30 |
@@ -18,8 +18,8 @@ |
31 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
32 |
<license/> |
33 |
|
34 |
-<version>4</version> |
35 |
-<date>2012-05-26</date> |
36 |
+<version>5</version> |
37 |
+<date>2012-08-24</date> |
38 |
|
39 |
<chapter> |
40 |
<title>Introduction</title> |
41 |
@@ -1214,7 +1214,7 @@ |
42 |
<pre caption="Skeleton for ebuilds, example for postfix"> |
43 |
# Copyright 1999-2012 Gentoo Foundation |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
-# $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v 1.4 2012/05/26 18:03:15 swift Exp $ |
46 |
+# $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v 1.5 2012/08/24 15:50:10 swift Exp $ |
47 |
EAPI="4" |
48 |
|
49 |
IUSE="" |
50 |
@@ -1259,6 +1259,25 @@ |
51 |
directory, put the bundle online somewhere, create the updated ebuild and try it out. |
52 |
</p> |
53 |
|
54 |
+<p> |
55 |
+However, the moment you modify the base package(s), you will also need to change |
56 |
+the <path>selinux-policy-2.eclass</path> file and the base policy ebuild. This |
57 |
+is because, by default, the ebuilds will look for their files in the Gentoo |
58 |
+download locations instead of wherever you would like to store the patches and |
59 |
+sources. |
60 |
+</p> |
61 |
+ |
62 |
+<p> |
63 |
+Put a copy of the eclass inside your overlay and edit the <c>SRC_URI</c> |
64 |
+definition to point to your new location. Then edit the |
65 |
+<path>selinux-base</path> and <path>selinux-base-policy</path> ebuilds (inside |
66 |
+your overlay again) and change their <c>SRC_URI</c> too. |
67 |
+</p> |
68 |
+ |
69 |
+<p> |
70 |
+Once this is done, you can go onwards with building a new base policy package. |
71 |
+</p> |
72 |
+ |
73 |
<pre caption="Building a base policy package"> |
74 |
<comment># Go to the location where all patches are currently extracted</comment> |
75 |
~$ <i>cd dev/hardened/base-patches</i> |
76 |
@@ -1328,7 +1347,7 @@ |
77 |
<pre caption="Third party policy ebuild"> |
78 |
# Copyright 1999-2012 Gentoo Foundation |
79 |
# Distributed under the terms of the GNU General Public License v2 |
80 |
-# $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v 1.4 2012/05/26 18:03:15 swift Exp $ |
81 |
+# $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/hardened/selinux-development.xml,v 1.5 2012/08/24 15:50:10 swift Exp $ |
82 |
EAPI="4" |
83 |
|
84 |
IUSE="" |