All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Weber <matthew.weber@rockwellcollins.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 05/30] sepolgen: new package
Date: Mon, 15 Dec 2014 21:53:57 -0600	[thread overview]
Message-ID: <1418702062-61039-6-git-send-email-matthew.weber@rockwellcollins.com> (raw)
In-Reply-To: <1418702062-61039-1-git-send-email-matthew.weber@rockwellcollins.com>

From: Clayton Shotwell <clshotwe@rockwellcollins.com>

Signed-off-by: Clayton Shotwell <clshotwe@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
---
 package/Config.in            |  4 ++++
 package/sepolgen/Config.in   | 15 +++++++++++++++
 package/sepolgen/sepolgen.mk | 25 +++++++++++++++++++++++++
 3 files changed, 44 insertions(+)
 create mode 100644 package/sepolgen/Config.in
 create mode 100644 package/sepolgen/sepolgen.mk

diff --git a/package/Config.in b/package/Config.in
index a325cba..63373f7 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1181,6 +1181,10 @@ menu "Real-Time"
 	source "package/xenomai/Config.in"
 endmenu
 
+menu "Security"
+	source "package/sepolgen/Config.in"
+endmenu
+
 menu "Shell and utilities"
 comment "Shells"
 if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
diff --git a/package/sepolgen/Config.in b/package/sepolgen/Config.in
new file mode 100644
index 0000000..c499762
--- /dev/null
+++ b/package/sepolgen/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_SEPOLGEN
+	bool "sepolgen"
+	select BR2_PACKAGE_PYTHON
+	select BR2_PACKAGE_PYTHON_PY_PYC
+	depends on BR2_USE_WCHAR # python
+	depends on BR2_USE_MMU # python
+	help
+	  sepolgen is a python module/library that forms the core
+	  of the modern audit2allow (a rewrite).
+
+	  http://selinuxproject.org/page/Main_Page
+
+comment "sepolgen needs a toolchain w/ wchar"
+	depends on BR2_USE_MMU
+	depends on !BR2_USE_WCHAR
diff --git a/package/sepolgen/sepolgen.mk b/package/sepolgen/sepolgen.mk
new file mode 100644
index 0000000..b330e20
--- /dev/null
+++ b/package/sepolgen/sepolgen.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# sepolgen
+#
+################################################################################
+
+SEPOLGEN_VERSION = 1.1.9
+SEPOLGEN_SITE = http://userspace.selinuxproject.org/releases/20130423/
+SEPOLGEN_LICENSE = GPLv2
+SEPOLGEN_LICENSE_FILES = COPYING
+
+HOST_SEPOLGEN_DEPENDENCIES = host-python
+
+HOST_SEPOLGEN_MAKE_CMDS = $(HOST_CONFIGURE_OPTS) \
+	PYTHONLIBDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
+
+define HOST_SEPOLGEN_BUILD_CMDS
+	$(MAKE) -C $(@D) $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR)
+endef
+
+define HOST_SEPOLGEN_INSTALL_CMDS
+	$(MAKE) -C $(@D) install $(HOST_SEPOLGEN_MAKE_CMDS) DESTDIR=$(HOST_DIR)
+endef
+
+$(eval $(host-generic-package))
-- 
1.9.1

  parent reply	other threads:[~2014-12-16  3:53 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-16  3:53 [Buildroot] [PATCH 00/29] SELinux Buildroot Additions Matt Weber
2014-12-16  3:53 ` [Buildroot] [PATCH 01/30] libselinux: new package Matt Weber
2015-01-01 19:45   ` Thomas Petazzoni
2014-12-16  3:53 ` [Buildroot] [PATCH 02/30] ustr: " Matt Weber
2015-01-01 20:10   ` Thomas Petazzoni
2014-12-16  3:53 ` [Buildroot] [PATCH 03/30] libsemanage: " Matt Weber
2015-01-01 21:43   ` Thomas Petazzoni
2014-12-16  3:53 ` [Buildroot] [PATCH 04/30] checkpolicy: " Matt Weber
2014-12-16  3:53 ` Matt Weber [this message]
2014-12-16  3:53 ` [Buildroot] [PATCH 06/30] sqlite: Add host build support Matt Weber
2014-12-16  3:53 ` [Buildroot] [PATCH 07/30] setools: new package Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 08/30] python-pyparsing: Add host build option Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 09/30] audit: new package Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 10/30] policycoreutils: " Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 11/30] python-pyxml: " Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 12/30] refpolicy: " Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 13/30] repolicy: base policy modifications for embedded target Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 14/30] refpolicy: custom git repo Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 15/30] shadow: new package Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 16/30] busybox: applets as individual binaries Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 17/30] busybox: selinux support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 18/30] busybox: added linux-pam support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 19/30] busybox: default selinux config which disables init and uses sysvinit Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 20/30] qemu_x86_selinux_defconfig: base SELinux QEMU image for x86 Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 21/30] linux-pam: selinux support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 22/30] sysvinit: added libselinux dependency Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 23/30] dbus: selinux file context support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 24/30] logrotate: selinux support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 25/30] openssh: selinux and pam support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 26/30] util-linux: selinux, audit, " Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 27/30] vim: selinux support Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 28/30] rsyslog: fix config file comment style Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 29/30] qemu x86 readme: documented selinux target Matt Weber
2014-12-16  3:54 ` [Buildroot] [PATCH 30/30] readline: host support for host-sqlite Matt Weber
2015-01-01 21:47 ` [Buildroot] [PATCH 00/29] SELinux Buildroot Additions Thomas Petazzoni
2015-01-02 20:59   ` Matthew Weber
2015-01-06  3:15     ` Matthew Weber
2015-01-06  3:37       ` Matthew Weber
2015-01-06  8:34         ` Thomas Petazzoni
2015-01-06 13:53           ` Matthew Weber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418702062-61039-6-git-send-email-matthew.weber@rockwellcollins.com \
    --to=matthew.weber@rockwellcollins.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.