rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / cluster / cluster-glue / Makefile
blob4a42ce809a252e6455425cd062a802af6706eb4b
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2013 Adam Stevko <adam.stevko@gmail.com>
13 # Copyright 2016 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
16 DROP_STATIC_LIBRARIES = yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= cluster-glue
21 COMPONENT_VERSION= 1.0.12
22 COMPONENT_REVISION= 8
23 COMPONENT_FMRI= application/cluster/$(COMPONENT_NAME)
24 COMPONENT_CLASSIFICATION= System/Services
25 COMPONENT_COMMIT= bdd95fd0f89f31b19fa46ffa0ea3f5022ebcd858
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_COMMIT)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
28 COMPONENT_ARCHIVE_HASH= sha256:ae8cf05384e76be1cb0cd6b75708271e70f143a34aae1426684ed5b19033748f
29 COMPONENT_PROJECT_URL= http://linux-ha.org/wiki/Cluster_Glue
30 COMPONENT_ARCHIVE_URL= https://github.com/ClusterLabs/cluster-glue/archive/$(COMPONENT_COMMIT).zip
31 COMPONENT_SUMMARY= Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.
32 COMPONENT_LICENSE= GPL-2.0-only
33 COMPONENT_LICENSE_FILE= COPYING
35 include $(WS_MAKE_RULES)/common.mk
37 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
38 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
39 CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/cluster
40 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
41 CONFIGURE_OPTIONS += --enable-ansi=no
42 CONFIGURE_OPTIONS += --enable-fatal-warnings=no
43 CONFIGURE_OPTIONS += --with-daemon-user=hacluster
44 CONFIGURE_OPTIONS += --with-daemon-group=haclient
45 CONFIGURE_OPTIONS += --with-ocf-root=$(CONFIGURE_PREFIX)/lib/ocf
46 CONFIGURE_OPTIONS += --with-rundir=$(VARDIR)/run
47 CONFIGURE_OPTIONS += --enable-libnet
49 COMPONENT_PREP_ACTION=(cd $(@D); $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) autogen.sh)
51 COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D))
53 # We do not want to distribute tests, init scripts, and compiled Python files
54 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRSHAREDIR)/cluster-glue/lrmtest ;
55 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOETCDIR)/init.d ;
56 COMPONENT_POST_INSTALL_ACTION += $(RM) -r $(PROTOUSRLIBDIR.$(BITS))/stonith/plugins/stonith2/__pycache__ ;
58 # Make sure the Python shebang points to right Python
59 PYTHON_SCRIPTS += usr/lib/$(MACH64)/stonith/plugins/external/dracmc-telnet
60 PYTHON_SCRIPTS += usr/lib/$(MACH64)/stonith/plugins/external/ibmrsa-telnet
61 PYTHON_SCRIPTS += usr/lib/$(MACH64)/stonith/plugins/external/riloe
62 PYTHON_SCRIPTS += usr/lib/$(MACH64)/stonith/plugins/stonith2/ribcl.py
64 # Build dependencies
65 REQUIRED_PACKAGES += text/asciidoc
66 REQUIRED_PACKAGES += system/library/libnet
68 # Auto-generated dependencies
69 PYTHON_REQUIRED_PACKAGES += runtime/python
70 REQUIRED_PACKAGES += SUNWcs
71 REQUIRED_PACKAGES += compress/bzip2
72 REQUIRED_PACKAGES += library/glib2
73 REQUIRED_PACKAGES += library/libtool/libltdl
74 REQUIRED_PACKAGES += library/libxml2
75 REQUIRED_PACKAGES += library/zlib
76 REQUIRED_PACKAGES += runtime/perl
77 REQUIRED_PACKAGES += shell/bash
78 REQUIRED_PACKAGES += shell/ksh93
79 REQUIRED_PACKAGES += system/library
80 REQUIRED_PACKAGES += system/management/snmp/net-snmp
81 REQUIRED_PACKAGES += web/curl