summaryrefslogtreecommitdiffstats
path: root/rules/libsemanage.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/libsemanage.make')
-rw-r--r--rules/libsemanage.make57
1 files changed, 57 insertions, 0 deletions
diff --git a/rules/libsemanage.make b/rules/libsemanage.make
new file mode 100644
index 000000000..0cbde6f23
--- /dev/null
+++ b/rules/libsemanage.make
@@ -0,0 +1,57 @@
+# -*-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_LIBSEMANAGE) += libsemanage
+
+#
+# Paths and names
+#
+LIBSEMANAGE_VERSION := 2.1.9
+LIBSEMANAGE_MD5 := 209e11da5b36c595a796751583f016f8
+LIBSEMANAGE := libsemanage-$(LIBSEMANAGE_VERSION)
+LIBSEMANAGE_SUFFIX := tar.gz
+LIBSEMANAGE_URL := http://userspace.selinuxproject.org/releases/20120924/$(LIBSEMANAGE).$(LIBSEMANAGE_SUFFIX)
+LIBSEMANAGE_SOURCE := $(SRCDIR)/$(LIBSEMANAGE).$(LIBSEMANAGE_SUFFIX)
+LIBSEMANAGE_DIR := $(BUILDDIR)/$(LIBSEMANAGE)
+LIBSEMANAGE_LICENSE := LGPLv2.1+
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBSEMANAGE_CONF_TOOL := NO
+LIBSEMANAGE_MAKE_ENV := \
+ $(CROSS_ENV) \
+ CFLAGS="-O2 -Wall"
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libsemanage.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libsemanage)
+ @$(call install_fixup, libsemanage,PRIORITY,optional)
+ @$(call install_fixup, libsemanage,SECTION,base)
+ @$(call install_fixup, libsemanage,AUTHOR,"Wolfram Sang <w.sang@pengutronix.de>")
+ @$(call install_fixup, libsemanage,DESCRIPTION,missing)
+
+ @$(call install_lib, libsemanage, 0, 0, 0644, libsemanage)
+ @$(call install_alternative, libsemanage, 0, 0, 0644, /etc/selinux/semanage.conf)
+
+ @$(call install_finish, libsemanage)
+
+ @$(call touch)
+
+# vim: syntax=make