From patchwork Wed Sep 4 23:09:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Clayton Shotwell X-Patchwork-Id: 272754 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 7DB2A2C00E1 for ; Thu, 5 Sep 2013 09:11:17 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id C70BE32906; Wed, 4 Sep 2013 23:11:06 +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 37n9-dqEY7zb; Wed, 4 Sep 2013 23:11:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8B4F93290A; Wed, 4 Sep 2013 23:10:28 +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 80A351C1EF4 for ; Wed, 4 Sep 2013 23:10:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 7A0AF8C571 for ; Wed, 4 Sep 2013 23:10:24 +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 BG+mNhXe0rHv for ; Wed, 4 Sep 2013 23:10:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from secvs02.rockwellcollins.com (secvs02.rockwellcollins.com [205.175.225.241]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3CB738C67A for ; Wed, 4 Sep 2013 23:10:23 +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; 04 Sep 2013 18:10:20 -0500 Received: from nyx ([131.198.63.11]) by collinscrsmtp01.rockwellcollins.com (Lotus Domino Release 8.5.2FP2 HF162) with ESMTP id 2013090418101949-1724716 ; Wed, 4 Sep 2013 18:10:19 -0500 From: Clayton Shotwell To: buildroot@busybox.net Date: Wed, 4 Sep 2013 18:09:45 -0500 Message-Id: <1378336196-27403-7-git-send-email-clshotwe@rockwellcollins.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1378336196-27403-1-git-send-email-clshotwe@rockwellcollins.com> References: <1378336196-27403-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/04/2013 06:10:19 PM, Serialize by Router on CollinsCRSMTP01/CedarRapids/Collins/Rockwell(Release 8.5.2FP2 HF162|May 16, 2011) at 09/04/2013 06:10:19 PM, Serialize complete at 09/04/2013 06:10:19 PM X-TNEFEvaluated: 1 Cc: Clayton Shotwell Subject: [Buildroot] [PATCH 06/17] 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 --- package/Config.in | 1 + package/sepolgen/Config.in | 7 ++++++ package/sepolgen/sepolgen.mk | 46 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 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 5c4adb9..ca38111 100644 --- a/package/Config.in +++ b/package/Config.in @@ -902,6 +902,7 @@ source "package/checkpolicy/Config.in" source "package/libsepol/Config.in" source "package/libselinux/Config.in" source "package/libsemanage/Config.in" +source "package/sepolgen/Config.in" endmenu menu "System tools" diff --git a/package/sepolgen/Config.in b/package/sepolgen/Config.in new file mode 100644 index 0000000..9954890 --- /dev/null +++ b/package/sepolgen/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_SEPOLGEN + bool "sepolgen" + 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..17f7108 --- /dev/null +++ b/package/sepolgen/sepolgen.mk @@ -0,0 +1,46 @@ +############################################################# +# +# sepolgen +# +############################################################# +SEPOLGEN_VERSION = 1.1.9 +SEPOLGEN_SOURCE = sepolgen-$(SEPOLGEN_VERSION).tar.gz +SEPOLGEN_SITE = http://userspace.selinuxproject.org/releases/20130423/ +SEPOLGEN_LICENSE = GPLv2 +SEPOLGEN_LICENSE_FILES = COPYING + +SEPOLGEN_DEPENDENCIES = python + +SEPOLGEN_INSTALL_STAGING = YES +SEPOLGEN_INSTALL_TARGET = 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 + +define SEPOLGEN_UNINSTALL_STAGING_CMDS + rm -rf $(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/dist-packages/sepolgen/ + rm -rf $(STAGING_DIR)/var/lib/sepolgen/ +endef + +define SEPOLGEN_UNINSTALL_TARGET_CMDS + rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/dist-packages/sepolgen/ + rm -rf $(TARGET_DIR)/var/lib/sepolgen/ +endef + +$(eval $(generic-package))