summaryrefslogtreecommitdiffstats
path: root/rules/libsepol.make
diff options
context:
space:
mode:
authorWolfram Sang <w.sang@pengutronix.de>2013-01-07 08:13:50 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2013-02-05 18:54:16 +0100
commit47e54a383caaf689bcc928ce05398eb6c8b588ce (patch)
tree8f772e525fb2012fe95453451b4a459c051cdc85 /rules/libsepol.make
parentcc297c64bcfdac221cc2a3ee1e86984b5d24d456 (diff)
downloadptxdist-47e54a383caaf689bcc928ce05398eb6c8b588ce.tar.gz
ptxdist-47e54a383caaf689bcc928ce05398eb6c8b588ce.tar.xz
libsepol: add package
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'rules/libsepol.make')
-rw-r--r--rules/libsepol.make56
1 files changed, 56 insertions, 0 deletions
diff --git a/rules/libsepol.make b/rules/libsepol.make
new file mode 100644
index 000000000..2eac5d24d
--- /dev/null
+++ b/rules/libsepol.make
@@ -0,0 +1,56 @@
+# -*-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_LIBSEPOL) += libsepol
+
+#
+# Paths and names
+#
+LIBSEPOL_VERSION := 2.1.8
+LIBSEPOL_MD5 := 56fa100ed85d7f06bd92f2892d92b3b0
+LIBSEPOL := libsepol-$(LIBSEPOL_VERSION)
+LIBSEPOL_SUFFIX := tar.gz
+LIBSEPOL_URL := http://userspace.selinuxproject.org/releases/20120924/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
+LIBSEPOL_SOURCE := $(SRCDIR)/$(LIBSEPOL).$(LIBSEPOL_SUFFIX)
+LIBSEPOL_DIR := $(BUILDDIR)/$(LIBSEPOL)
+LIBSEPOL_LICENSE := LGPLv2.1+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSEPOL_CONF_TOOL := NO
+LIBSEPOL_MAKE_ENV := \
+ $(CROSS_ENV) \
+ CFLAGS="-O2 -Wall"
+
+# ----------------------------------------------------------------------------
+# 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 <w.sang@pengutronix.de>")
+ @$(call install_fixup, libsepol,DESCRIPTION,missing)
+
+ @$(call install_lib, libsepol, 0, 0, 0644, libsepol)
+
+ @$(call install_finish, libsepol)
+
+ @$(call touch)
+
+# vim: syntax=make