diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:50:43 -0600 |
---|---|---|
committer | Mark Hatle <mark.hatle@windriver.com> | 2012-01-17 16:50:43 -0600 |
commit | 321e2b1a18ea809cc57fb9a5c2675e285537efe5 (patch) | |
tree | 3fcf729b9eefd2dcc5fbd9ddd7467fc658f3f084 | |
parent | ade3c4896881d3cb68e55b32ae3dccdf166b1965 (diff) | |
download | meta-selinux-321e2b1a18ea809cc57fb9a5c2675e285537efe5.tar.gz |
checkpolicy: Add version 2.1.0
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r-- | recipes-security/selinux/checkpolicy-2.1.0/test_makefile.patch | 18 | ||||
-rw-r--r-- | recipes-security/selinux/checkpolicy_2.1.0.bb | 17 |
2 files changed, 35 insertions, 0 deletions
diff --git a/recipes-security/selinux/checkpolicy-2.1.0/test_makefile.patch b/recipes-security/selinux/checkpolicy-2.1.0/test_makefile.patch new file mode 100644 index 0000000..9e5f6c3 --- /dev/null +++ b/recipes-security/selinux/checkpolicy-2.1.0/test_makefile.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | Fix hard coded directories in the test makefile | ||
2 | |||
3 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
4 | |||
5 | diff -ur checkpolicy-2.1.0.orig/test/Makefile checkpolicy-2.1.0/test/Makefile | ||
6 | --- checkpolicy-2.1.0.orig/test/Makefile 2011-07-27 14:32:54.000000000 -0500 | ||
7 | +++ checkpolicy-2.1.0/test/Makefile 2012-01-16 18:21:32.140776138 -0600 | ||
8 | @@ -2,8 +2,8 @@ | ||
9 | # Makefile for building the dispol program | ||
10 | # | ||
11 | PREFIX ?= $(DESTDIR)/usr | ||
12 | -BINDIR=$(PREFIX)/bin | ||
13 | -LIBDIR=$(PREFIX)/lib | ||
14 | +BINDIR ?= $(PREFIX)/bin | ||
15 | +LIBDIR ?= $(PREFIX)/lib | ||
16 | INCLUDEDIR ?= $(PREFIX)/include | ||
17 | |||
18 | CFLAGS ?= -g -Wall -O2 -pipe | ||
diff --git a/recipes-security/selinux/checkpolicy_2.1.0.bb b/recipes-security/selinux/checkpolicy_2.1.0.bb new file mode 100644 index 0000000..06a4212 --- /dev/null +++ b/recipes-security/selinux/checkpolicy_2.1.0.bb | |||
@@ -0,0 +1,17 @@ | |||
1 | SUMMARY = "SELinux policy compiler" | ||
2 | DESCRIPTION = "SELinux policy compiler" | ||
3 | SECTION = "base" | ||
4 | PR = "r1" | ||
5 | LICENSE = "GPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | ||
7 | |||
8 | include selinux.inc | ||
9 | |||
10 | SRC_URI[md5sum] = "c447f1d6cc6897f058d7e44e961fe3fd" | ||
11 | SRC_URI[sha256sum] = "9eaa15d1fbd23faebda9b1aef902d986edd3a9f9e75791e081b322875ab4f1aa" | ||
12 | |||
13 | SRC_URI += "file://test_makefile.patch" | ||
14 | |||
15 | DEPENDS += "libsepol flex-native flex" | ||
16 | |||
17 | EXTRA_OEMAKE += "INCLUDEDIR='${STAGING_INCDIR}' LIBDIR='${STAGING_LIBDIR}'" | ||