From patchwork Wed Sep 25 19:32:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clayton Shotwell X-Patchwork-Id: 277982 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id B77B52C0092 for ; Thu, 26 Sep 2013 05:34:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id CC50C31DA5; Wed, 25 Sep 2013 19:34:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dXhysPeuXlk6; Wed, 25 Sep 2013 19:34:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 592C031EF9; Wed, 25 Sep 2013 19:33:13 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id DA9F11C1007 for ; Wed, 25 Sep 2013 19:33:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id D5E1A8A9CD for ; Wed, 25 Sep 2013 19:33:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O3Fg1Fp2c7GO for ; Wed, 25 Sep 2013 19:33:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs01.rockwellcollins.com (secvs01.rockwellcollins.com [205.175.225.240]) by whitealder.osuosl.org (Postfix) with ESMTPS id 453018A95C for ; Wed, 25 Sep 2013 19:33:02 +0000 (UTC) Received: from nosuchhost.198.131.in-addr.arpa (HELO collinscrsmtp01.rockwellcollins.com) ([131.198.63.132]) by mail-virt.rockwellcollins.com with ESMTP; 25 Sep 2013 14:33:02 -0500 Received: from nyx ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013092514330153-4250846 ; Wed, 25 Sep 2013 14:33:01 -0500 From: Clayton Shotwell To: buildroot@busybox.net Date: Wed, 25 Sep 2013 14:32:42 -0500 Message-Id: <1380137571-688-8-git-send-email-clshotwe@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1380137571-688-1-git-send-email-clshotwe@rockwellcollins.com> References: <1380137571-688-1-git-send-email-clshotwe@rockwellcollins.com> X-MIMETrack: Itemize by SMTP Server on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 09/25/2013 02:33:01 PM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 09/25/2013 02:33:01 PM, Serialize complete at 09/25/2013 02:33:01 PM X-TNEFEvaluated: 1 Cc: Clayton Shotwell Subject: [Buildroot] [PATCH v3 07/16] sepolgen: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Clayton Shotwell --- Changes v2 -> v3: - No changes. Changes v1 -> v2: - General cleanup to the mk file to conform to the standard format. - Changed package dependencies into selects in the config. package/Config.in | 4 ++++ package/sepolgen/Config.in | 8 ++++++++ package/sepolgen/sepolgen.mk | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+), 0 deletions(-) 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 31eefed..056a6ef 100644 --- a/package/Config.in +++ b/package/Config.in @@ -917,6 +917,10 @@ source "package/rtai/Config.in" source "package/xenomai/Config.in" endmenu +menu "Security" +source "package/sepolgen/Config.in" +endmenu + menu "Shell and utilities" source "package/at/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS diff --git a/package/sepolgen/Config.in b/package/sepolgen/Config.in new file mode 100644 index 0000000..2a4b49c --- /dev/null +++ b/package/sepolgen/Config.in @@ -0,0 +1,8 @@ +config BR2_PACKAGE_SEPOLGEN + bool "sepolgen" + select BR2_PACKAGE_PYTHON + help + sepolgen is a python module/library that forms the core + of the modern audit2allow (a rewrite). + + http://selinuxproject.org/page/Main_Page diff --git a/package/sepolgen/sepolgen.mk b/package/sepolgen/sepolgen.mk new file mode 100644 index 0000000..a8c4786 --- /dev/null +++ b/package/sepolgen/sepolgen.mk @@ -0,0 +1,35 @@ +################################################################################ +# +# sepolgen +# +################################################################################ + +SEPOLGEN_VERSION = 1.1.9 +SEPOLGEN_SITE = http://userspace.selinuxproject.org/releases/20130423/ +SEPOLGEN_LICENSE = GPLv2 +SEPOLGEN_LICENSE_FILES = COPYING + +SEPOLGEN_DEPENDENCIES = python + +SEPOLGEN_INSTALL_STAGING = YES + +SEPOLGEN_MAKE_CMDS = $(TARGET_CONFIGURE_OPTS) \ + PYTHONLIBDIR=/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages + +define SEPOLGEN_BUILD_CMDS + $(MAKE) -C $(@D) $(SEPOLGEN_MAKE_CMDS) DESTDIR=$(STAGING_DIR) +endef + +define SEPOLGEN_INSTALL_STAGING_CMDS + $(MAKE) -C $(@D) install $(SEPOLGEN_MAKE_CMDS) DESTDIR=$(STAGING_DIR) +endef + +define SEPOLGEN_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D) install $(SEPOLGEN_MAKE_CMDS) DESTDIR=$(TARGET_DIR) +endef + +define SEPOLGEN_CLEAN_CMDS + $(MAKE) -C $(@D) clean +endef + +$(eval $(generic-package))