From f807d796a9be89c66ec1b04415d39538ddae8f59 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Mon, 28 Jan 2013 22:45:18 +0100 Subject: host-libsemanage: add package Signed-off-by: Marc Kleine-Budde --- config/libsemanage/host-semanage.conf | 42 +++++++++++++++++++++++++++++++++++ rules/host-libsemanage.in | 9 ++++++++ rules/host-libsemanage.make | 34 ++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 config/libsemanage/host-semanage.conf create mode 100644 rules/host-libsemanage.in create mode 100644 rules/host-libsemanage.make diff --git a/config/libsemanage/host-semanage.conf b/config/libsemanage/host-semanage.conf new file mode 100644 index 000000000..1ebcb8b9f --- /dev/null +++ b/config/libsemanage/host-semanage.conf @@ -0,0 +1,42 @@ +# Authors: Jason Tang +# +# Copyright (C) 2004-2005 Tresys Technology, LLC +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# +# Specify how libsemanage will interact with a SELinux policy manager. +# The four options are: +# +# "source" - libsemanage manipulates a source SELinux policy +# "direct" - libsemanage will write directly to a module store. +# /foo/bar - Write by way of a policy management server, whose +# named socket is at /foo/bar. The path must begin +# with a '/'. +# foo.com:4242 - Establish a TCP connection to a remote policy +# management server at foo.com. If there is a colon +# then the remainder is interpreted as a port number; +# otherwise default to port 4242. +module-store = direct + +# When generating the final linked and expanded policy, by default +# semanage will set the policy version to POLICYDB_VERSION_MAX, as +# given in . Change this setting if a different +# version is necessary. +#policy-version = 19 + +[setfiles] +path = @PTXDIST_SYSROOT_HOST@/sbin/setfiles +args = -q -c $@ $< +[end] diff --git a/rules/host-libsemanage.in b/rules/host-libsemanage.in new file mode 100644 index 000000000..91341fe53 --- /dev/null +++ b/rules/host-libsemanage.in @@ -0,0 +1,9 @@ +## SECTION=hosttools_noprompt + +config HOST_LIBSEMANAGE + tristate + default ALLYES + select HOST_LIBSEPOL + select HOST_LIBSELINUX + select HOST_USTR + select HOST_BZIP2 diff --git a/rules/host-libsemanage.make b/rules/host-libsemanage.make new file mode 100644 index 000000000..b5c3370e6 --- /dev/null +++ b/rules/host-libsemanage.make @@ -0,0 +1,34 @@ +# -*-makefile-*- +# +# Copyright (C) 2013 by Marc Kleine-Budde +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +HOST_PACKAGES-$(PTXCONF_HOST_LIBSEMANAGE) += host-libsemanage + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +HOST_LIBSEMANAGE_CONF_TOOL := NO +HOST_LIBSEMANAGE_MAKE_ENV := $(HOST_ENV) +# no ':=' here +HOST_LIBSEMANAGE_INSTALL_OPT = \ + PREFIX=$(HOST_LIBSEMANAGE_PKGDIR) \ + install + +define semanage/conf_helper +PTXDIST_SYSROOT_HOST=$(PTXDIST_SYSROOT_HOST) \ +ptxd_replace_magic \ + $(call ptx/get_alternative, config/libsemanage, host-semanage.conf) > \ + $(strip $(1))/etc/selinux/semanage.conf +endef + +# vim: syntax=make -- cgit v1.2.3