Marcel Telka
2023-12-31 258e4e421be01f8973408e51e114ae31896f599f
commit | author | age
3d2c4f 1 #
AS 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.
5 #
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.
9 #
10
11 #
12 # Copyright (c) 2013 Adam Stevko <adam.stevko@gmail.com>
13 # Copyright 2016 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved. 
14 #
15
258e4e 16 DROP_STATIC_LIBRARIES = yes
216b7c 17
3d2c4f 18 include ../../../make-rules/shared-macros.mk
AS 19
20 COMPONENT_NAME= cluster-glue
21 COMPONENT_VERSION= 1.0.12
258e4e 22 COMPONENT_REVISION= 8
3d2c4f 23 COMPONENT_FMRI= application/cluster/$(COMPONENT_NAME)
AS 24 COMPONENT_CLASSIFICATION= System/Services
c0c8b0 25 COMPONENT_COMMIT= bdd95fd0f89f31b19fa46ffa0ea3f5022ebcd858
AP 26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_COMMIT)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
28 COMPONENT_ARCHIVE_HASH= sha256:ae8cf05384e76be1cb0cd6b75708271e70f143a34aae1426684ed5b19033748f
3d2c4f 29 COMPONENT_PROJECT_URL= http://linux-ha.org/wiki/Cluster_Glue
c0c8b0 30 COMPONENT_ARCHIVE_URL=  https://github.com/ClusterLabs/cluster-glue/archive/$(COMPONENT_COMMIT).zip
3d2c4f 31 COMPONENT_SUMMARY= Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.
258e4e 32 COMPONENT_LICENSE=    GPL-2.0-only
MT 33 COMPONENT_LICENSE_FILE=    COPYING
3d2c4f 34
216b7c 35 include $(WS_MAKE_RULES)/common.mk
3d2c4f 36
258e4e 37 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
3d2c4f 38 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
258e4e 39 CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/cluster
MT 40 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
3d2c4f 41 CONFIGURE_OPTIONS += --enable-ansi=no
AS 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
258e4e 46 CONFIGURE_OPTIONS += --with-rundir=$(VARDIR)/run
3d2c4f 47 CONFIGURE_OPTIONS += --enable-libnet
AS 48
49 COMPONENT_PREP_ACTION=(cd $(@D); $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) autogen.sh)
50
51 COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D))
52
258e4e 53 # We do not want to distribute tests, init scripts, and compiled Python files
MT 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__ ;
57
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
3d2c4f 63
a41bfd 64 # Build dependencies
AL 65 REQUIRED_PACKAGES += text/asciidoc
216b7c 66 REQUIRED_PACKAGES += system/library/libnet
a41bfd 67
AL 68 # Auto-generated dependencies
258e4e 69 PYTHON_REQUIRED_PACKAGES += runtime/python
MT 70 REQUIRED_PACKAGES += SUNWcs
3d2c4f 71 REQUIRED_PACKAGES += compress/bzip2
AS 72 REQUIRED_PACKAGES += library/glib2
73 REQUIRED_PACKAGES += library/libtool/libltdl
74 REQUIRED_PACKAGES += library/libxml2
75 REQUIRED_PACKAGES += library/zlib
258e4e 76 REQUIRED_PACKAGES += runtime/perl
a41bfd 77 REQUIRED_PACKAGES += shell/bash
216b7c 78 REQUIRED_PACKAGES += shell/ksh93
3d2c4f 79 REQUIRED_PACKAGES += system/library
AS 80 REQUIRED_PACKAGES += system/management/snmp/net-snmp
81 REQUIRED_PACKAGES += web/curl