summaryrefslogtreecommitdiffstats
path: root/rules/host-libsemanage.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/host-libsemanage.make')
-rw-r--r--rules/host-libsemanage.make34
1 files changed, 34 insertions, 0 deletions
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 <mkl@pengutronix.de>
+#
+# 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