summaryrefslogtreecommitdiffstats
path: root/rules/libselinux.make
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2013-01-07 08:14:48 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-02-05 18:54:16 +0100
commitdba04d972c3aa6cafe7d7fcfc00f1002c3e88578 (patch)
tree3caee14c1c9edd05b9a5efb2548323f45054f808 /rules/libselinux.make
parent6ef6c88d8327d1813d147e8317731ea469ce096f (diff)
downloadptxdist-dba04d972c3aa6cafe7d7fcfc00f1002c3e88578.tar.gz
ptxdist-dba04d972c3aa6cafe7d7fcfc00f1002c3e88578.tar.xz
libselinux: add package
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/libselinux.make')
-rw-r--r--rules/libselinux.make82
1 files changed, 82 insertions, 0 deletions
diff --git a/rules/libselinux.make b/rules/libselinux.make
new file mode 100644
index 000000000..78a4347d1
--- /dev/null
+++ b/rules/libselinux.make
@@ -0,0 +1,82 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Wolfram Sang <w.sang@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
+#
+PACKAGES-$(PTXCONF_LIBSELINUX) += libselinux
+
+#
+# Paths and names
+#
+LIBSELINUX_VERSION := 2.1.12
+LIBSELINUX_MD5 := 73270f384a032fad34b5fe075fa05ce2
+LIBSELINUX := libselinux-$(LIBSELINUX_VERSION)
+LIBSELINUX_SUFFIX := tar.gz
+LIBSELINUX_URL := http://userspace.selinuxproject.org/releases/20120924/$(LIBSELINUX).$(LIBSELINUX_SUFFIX)
+LIBSELINUX_SOURCE := $(SRCDIR)/$(LIBSELINUX).$(LIBSELINUX_SUFFIX)
+LIBSELINUX_DIR := $(BUILDDIR)/$(LIBSELINUX)
+LIBSELINUX_LICENSE := public_domain
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSELINUX_CONF_TOOL := NO
+LIBSELINUX_MAKE_ENV := \
+ $(CROSS_ENV) \
+ CFLAGS="-O2 -Wall"
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+LIBSELINUX_PROGS := \
+ avcstat \
+ compute_av \
+ compute_create \
+ compute_member \
+ compute_relabel \
+ compute_user \
+ getconlist \
+ getdefaultcon \
+ getenforce \
+ getfilecon \
+ getpidcon \
+ getsebool \
+ getseuser \
+ matchpathcon \
+ policyvers \
+ selinux_check_securetty_context \
+ selinuxenabled \
+ selinuxexeccon \
+ setenforce \
+ setfilecon \
+ togglesebool
+
+$(STATEDIR)/libselinux.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libselinux)
+ @$(call install_fixup, libselinux,PRIORITY,optional)
+ @$(call install_fixup, libselinux,SECTION,base)
+ @$(call install_fixup, libselinux,AUTHOR,"Wolfram Sang <w.sang@pengutronix.de>")
+ @$(call install_fixup, libselinux,DESCRIPTION,missing)
+
+ @$(call install_lib, libselinux, 0, 0, 0644, libselinux)
+
+ @$(foreach prog, $(LIBSELINUX_PROGS), \
+ $(call install_copy, libselinux, 0, 0, 0755, -, /usr/sbin/$(prog));)
+
+ @$(call install_finish, libselinux)
+
+ @$(call touch)
+
+# vim: syntax=make