From: Ladislav Michl <[email protected]>

This partially reverts commit 9fe5462616de2ce93663f409f471ea83a6d5fbb5.

Signed-off-by: Ladislav Michl <[email protected]>
---
 rules/sepolgen.in   | 29 ++++++++++++++++++++++++
 rules/sepolgen.make | 54 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)
 create mode 100644 rules/sepolgen.in
 create mode 100644 rules/sepolgen.make

diff --git a/rules/sepolgen.in b/rules/sepolgen.in
new file mode 100644
index 000000000..94f2ce071
--- /dev/null
+++ b/rules/sepolgen.in
@@ -0,0 +1,29 @@
+## SECTION=staging
+## old section:
+### SECTION=selinux
+
+config SEPOLGEN
+       tristate
+       prompt "sepolgen"
+       select PYTHON
+       select LIBSELINUX
+       select LIBSELINUX_PYTHON
+       help
+         A Python module used in SELinux policy generation
+
+         This package contains a Python module that forms the core of
+         the modern audit2allow (which is a part of the package
+         policycoreutils). The sepolgen library is structured to give
+         flexibility to the application using it. The library
+         contains: Reference Policy Representation, which are Objects
+         for representing policies and the reference policy
+         interfaces. Secondly, it has objects and algorithms for
+         representing access and sets of access in an abstract way
+         and searching that access. It also has a parser for
+         reference policy "headers". It contains infrastructure for
+         parsing SELinux related messages as produced by the audit
+         system. It has facilities for generating policy based on
+         required access.
+
+         STAGING: remove in ptxdist-2020.06.0
+         Old version that needs to be updated.
diff --git a/rules/sepolgen.make b/rules/sepolgen.make
new file mode 100644
index 000000000..7084e1d1d
--- /dev/null
+++ b/rules/sepolgen.make
@@ -0,0 +1,54 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2013 by Marc Kleine-Budde <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_SEPOLGEN) += sepolgen
+
+#
+# Paths and names
+#
+SEPOLGEN_VERSION       := 1.1.8
+SEPOLGEN_MD5           := d734ff236639cc1bd3a33901774fa98d
+SEPOLGEN               := sepolgen-$(SEPOLGEN_VERSION)
+SEPOLGEN_SUFFIX                := tar.gz
+SEPOLGEN_URL           := 
https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(SEPOLGEN).$(SEPOLGEN_SUFFIX)
+SEPOLGEN_SOURCE                := $(SRCDIR)/$(SEPOLGEN).$(SEPOLGEN_SUFFIX)
+SEPOLGEN_DIR           := $(BUILDDIR)/$(SEPOLGEN)
+SEPOLGEN_LICENSE       := GPL-2.0-only
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+SEPOLGEN_CONF_TOOL := NO
+# no ':=' because of $(PYTHON_SITEPACKAGES)
+SEPOLGEN_MAKE_ENV = PYTHONLIBDIR=$(PYTHON_SITEPACKAGES)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/sepolgen.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, sepolgen)
+       @$(call install_fixup, sepolgen,PRIORITY,optional)
+       @$(call install_fixup, sepolgen,SECTION,base)
+       @$(call install_fixup, sepolgen,AUTHOR,"Marc Kleine-Budde 
<[email protected]>")
+       @$(call install_fixup, sepolgen,DESCRIPTION,missing)
+
+       @$(call install_tree, sepolgen, 0, 0, -, $(PYTHON_SITEPACKAGES))
+       @$(call install_alternative, sepolgen, 0, 0, 0644, 
/var/lib/sepolgen/perm_map)
+
+       @$(call install_finish, sepolgen)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.47.3


Reply via email to