summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2012-01-17 16:50:43 -0600
committerMark Hatle <mark.hatle@windriver.com>2012-01-17 16:50:43 -0600
commit321e2b1a18ea809cc57fb9a5c2675e285537efe5 (patch)
tree3fcf729b9eefd2dcc5fbd9ddd7467fc658f3f084
parentade3c4896881d3cb68e55b32ae3dccdf166b1965 (diff)
downloadmeta-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.patch18
-rw-r--r--recipes-security/selinux/checkpolicy_2.1.0.bb17
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 @@
1Fix hard coded directories in the test makefile
2
3Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
4
5diff -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 @@
1SUMMARY = "SELinux policy compiler"
2DESCRIPTION = "SELinux policy compiler"
3SECTION = "base"
4PR = "r1"
5LICENSE = "GPLv2+"
6LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833"
7
8include selinux.inc
9
10SRC_URI[md5sum] = "c447f1d6cc6897f058d7e44e961fe3fd"
11SRC_URI[sha256sum] = "9eaa15d1fbd23faebda9b1aef902d986edd3a9f9e75791e081b322875ab4f1aa"
12
13SRC_URI += "file://test_makefile.patch"
14
15DEPENDS += "libsepol flex-native flex"
16
17EXTRA_OEMAKE += "INCLUDEDIR='${STAGING_INCDIR}' LIBDIR='${STAGING_LIBDIR}'"