From: Ladislav Michl <[email protected]> This partially reverts commit be09c6089c7c6c818b17701af5127ed47160d625.
Signed-off-by: Ladislav Michl <[email protected]> --- CHANGES: - v2: None rules/checkpolicy.in | 36 ++++++++++++++++++++++++++ rules/checkpolicy.make | 59 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) create mode 100644 rules/checkpolicy.in create mode 100644 rules/checkpolicy.make diff --git a/rules/checkpolicy.in b/rules/checkpolicy.in new file mode 100644 index 000000000..b1e8bca01 --- /dev/null +++ b/rules/checkpolicy.in @@ -0,0 +1,36 @@ +## SECTION=staging +## old section: +### SECTION=selinux + +config CHECKPOLICY + tristate + prompt "checkpolicy" + # + # The target package is not functional yet, but we need the host + # package. Depend on broken for now. + # + depends on BROKEN + select LIBSELINUX + select LIBSEPOL + select FLEX + help + Security-enhanced Linux is a patch of the Linux kernel and a + number of utilities with enhanced security functionality + designed to add mandatory access controls to Linux. The + Security-enhanced Linux kernel contains new architectural + components originally developed to improve the security of + the Flask operating system. These architectural components + provide general support for the enforcement of many kinds of + mandatory access control policies, including those based on + the concepts of Type Enforcement, Role-based Access Control, + and Multi-level Security. + + This package contains checkpolicy, the SELinux policy + compiler. Only required for building policies. It uses + libsepol to generate the binary policy. checkpolicy uses + the static libsepol since it deals with low level details of + the policy that have not been encapsulated/abstracted by a + proper shared library interface. + + STAGING: remove in ptxdist-2020.12.0 + Old version that need to be updated. Moved to staging with libselinux. diff --git a/rules/checkpolicy.make b/rules/checkpolicy.make new file mode 100644 index 000000000..6946fcecd --- /dev/null +++ b/rules/checkpolicy.make @@ -0,0 +1,59 @@ +# -*-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_CHECKPOLICY) += checkpolicy + +# +# Paths and names +# +CHECKPOLICY_VERSION := 2.1.11 +CHECKPOLICY_MD5 := 046b590de004f8a6cee655c4e95a7970 +CHECKPOLICY := checkpolicy-$(CHECKPOLICY_VERSION) +CHECKPOLICY_SUFFIX := tar.gz +CHECKPOLICY_URL := https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20120924/$(CHECKPOLICY).$(CHECKPOLICY_SUFFIX) +CHECKPOLICY_SOURCE := $(SRCDIR)/$(CHECKPOLICY).$(CHECKPOLICY_SUFFIX) +CHECKPOLICY_DIR := $(BUILDDIR)/$(CHECKPOLICY) +CHECKPOLICY_LICENSE := unknown + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +CHECKPOLICY_CONF_TOOL := NO +CHECKPOLICY_MAKE_ENV := $(CROSS_ENV) +CHECKPOLICY_MAKE_OPT := LIBDIR=$(PTXDIST_SYSROOT_TARGET)/usr/lib +CHECKPOLICY_INSTALL_OPT = \ + PREFIX=$(CHECKPOLICY_PKGDIR) \ + install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/checkpolicy.targetinstall: + @$(call targetinfo) + + @$(call install_init, checkpolicy) + @$(call install_fixup, checkpolicy,PRIORITY,optional) + @$(call install_fixup, checkpolicy,SECTION,base) + @$(call install_fixup, checkpolicy,AUTHOR,"Marc Kleine-Budde <[email protected]>") + @$(call install_fixup, checkpolicy,DESCRIPTION,missing) + + @$(call install_copy, checkpolicy, 0, 0, 0755, $(CHECKPOLICY_DIR)/foobar, /dev/null) + + @$(call install_finish, checkpolicy) + + @$(call touch) + +# vim: syntax=make -- 2.47.3
