Manifest file support and directory packaging 80/27180/2
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Sep 2014 14:27:27 +0000 (16:27 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Wed, 10 Sep 2014 08:58:20 +0000 (01:58 -0700)
Adds manifest files support and prevent directories from being
installed by every package (unless they are explicitly added). It
allows support for the SMACK security.

Change-Id: I52a2453d42c3940af209ffb20329d53b13880c23
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
classes/metatizen.bbclass

index 144e993..36b1e84 100644 (file)
@@ -8,3 +8,11 @@ python () {
         bootimgdepends = bootimgdepends.replace(d.expand("${INITRD_IMAGE}:do_rootfs"), "")
         d.setVarFlag("do_bootimg", "depends", bootimgdepends)
 }
+
+DIRFILES = "1"
+RPM_EXTRA_PKGDATA = "1"
+
+def package_rpm_extra_pkgdata(splitname, spec_file, d):
+    if d.getVar('MANIFESTFILES', True):
+        spec_file.append('%%manifest %s' % d.getVar('MANIFESTFILES', True))
+