From: Ladislav Michl <[email protected]>

This partially reverts commit 43c4d983818f726dfe651ea72d4b5ddd6a5c91bc.

Signed-off-by: Ladislav Michl <[email protected]>
---
 rules/host-libsepol.in   |  5 ++++
 rules/host-libsepol.make | 24 ++++++++++++++++++
 rules/libsepol.in        | 10 ++++++++
 rules/libsepol.make      | 55 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 94 insertions(+)
 create mode 100644 rules/host-libsepol.in
 create mode 100644 rules/host-libsepol.make
 create mode 100644 rules/libsepol.in
 create mode 100644 rules/libsepol.make

diff --git a/rules/host-libsepol.in b/rules/host-libsepol.in
new file mode 100644
index 000000000..fd5c71bdf
--- /dev/null
+++ b/rules/host-libsepol.in
@@ -0,0 +1,5 @@
+## SECTION=hosttools_noprompt
+
+config HOST_LIBSEPOL
+       tristate
+       default y if ALLYES
diff --git a/rules/host-libsepol.make b/rules/host-libsepol.make
new file mode 100644
index 000000000..b20b2e113
--- /dev/null
+++ b/rules/host-libsepol.make
@@ -0,0 +1,24 @@
+# -*-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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_LIBSEPOL) += host-libsepol
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_LIBSEPOL_CONF_TOOL := NO
+HOST_LIBSEPOL_MAKE_ENV := \
+       $(HOST_ENV) \
+       SHLIBDIR=$(HOST_LIBSEPOL_PKGDIR)/usr/lib \
+       CFLAGS="-O2 -Wall -g"
+
+# vim: syntax=make
diff --git a/rules/libsepol.in b/rules/libsepol.in
new file mode 100644
index 000000000..4ac087610
--- /dev/null
+++ b/rules/libsepol.in
@@ -0,0 +1,10 @@
+## SECTION=selinux
+
+config LIBSEPOL
+       tristate
+       prompt "libsepol"
+       help
+         libsepol provides an API for the manipulation of SELinux binary 
policies.
+         It is used by checkpolicy (the policy compiler) and similar tools, as 
well
+         as by programs like load_policy that need to perform specific 
transformations
+         on binary policies such as customizing policy boolean settings.
diff --git a/rules/libsepol.make b/rules/libsepol.make
new file mode 100644
index 000000000..cf5f4ef4d
--- /dev/null
+++ b/rules/libsepol.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Wolfram Sang <[email protected]>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBSEPOL) += libsepol
+
+#
+# Paths and names
+#
+LIBSEPOL_VERSION       := 2.1.8
+LIBSEPOL_MD5           := 56fa100ed85d7f06bd92f2892d92b3b0
+LIBSEPOL               := libsepol-$(LIBSEPOL_VERSION)
+LIBSEPOL_SUFFIX                := tar.gz
+LIBSEPOL_URL           := 
https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
+LIBSEPOL_SOURCE                := $(SRCDIR)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
+LIBSEPOL_DIR           := $(BUILDDIR)/$(LIBSEPOL)
+LIBSEPOL_LICENSE       := LGPL-2.1-or-later
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSEPOL_CONF_TOOL := NO
+LIBSEPOL_MAKE_ENV := \
+       $(CROSS_ENV) \
+       SHLIBDIR=$(LIBSEPOL_PKGDIR)/usr/lib \
+       CFLAGS="-O2 -Wall -g"
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libsepol.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, libsepol)
+       @$(call install_fixup, libsepol,PRIORITY,optional)
+       @$(call install_fixup, libsepol,SECTION,base)
+       @$(call install_fixup, libsepol,AUTHOR,"Wolfram Sang 
<[email protected]>")
+       @$(call install_fixup, libsepol,DESCRIPTION,missing)
+
+       @$(call install_lib, libsepol, 0, 0, 0644, libsepol)
+
+       @$(call install_finish, libsepol)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.47.3


Reply via email to