Gary Mills
2021-02-06 c403b759f39aff857845a6fded42aee989dcf576
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
16 include ../../../make-rules/shared-macros.mk
17
18 COMPONENT_NAME= cluster-glue
19 COMPONENT_VERSION= 1.0.12
c403b7 20 COMPONENT_REVISION= 6
3d2c4f 21 COMPONENT_FMRI= application/cluster/$(COMPONENT_NAME)
AS 22 COMPONENT_CLASSIFICATION= System/Services
c0c8b0 23 COMPONENT_COMMIT= bdd95fd0f89f31b19fa46ffa0ea3f5022ebcd858
AP 24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_COMMIT)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
26 COMPONENT_ARCHIVE_HASH= sha256:ae8cf05384e76be1cb0cd6b75708271e70f143a34aae1426684ed5b19033748f
3d2c4f 27 COMPONENT_PROJECT_URL= http://linux-ha.org/wiki/Cluster_Glue
c0c8b0 28 COMPONENT_ARCHIVE_URL=  https://github.com/ClusterLabs/cluster-glue/archive/$(COMPONENT_COMMIT).zip
3d2c4f 29 COMPONENT_LICENSE= GPLv2, LGPLv2
AS 30 COMPONENT_SUMMARY= Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.
31
32 include $(WS_MAKE_RULES)/prep.mk
33 include $(WS_MAKE_RULES)/configure.mk
34 include $(WS_MAKE_RULES)/ips.mk
35
36 PATCH_LEVEL= 1
37
38 CFLAGS += -lssp -lssp_nonshared
39
81389d 40 CONFIGURE_BINDIR.64= $(CONFIGURE_PREFIX)/bin
AP 41 CONFIGURE_SBINDIR.64= $(CONFIGURE_PREFIX)/sbin
42
3d2c4f 43 CONFIGURE_OPTIONS += --sysconfdir=/etc
AS 44 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
45 CONFIGURE_OPTIONS += --sharedstatedir=/var/cluster
46 CONFIGURE_OPTIONS += --localstatedir=/var
47 CONFIGURE_OPTIONS += --enable-ansi=no
48 CONFIGURE_OPTIONS += --enable-fatal-warnings=no
49 CONFIGURE_OPTIONS += --with-daemon-user=hacluster
50 CONFIGURE_OPTIONS += --with-daemon-group=haclient
51 CONFIGURE_OPTIONS += --with-ocf-root=$(CONFIGURE_PREFIX)/lib/ocf
52 CONFIGURE_OPTIONS += --with-rundir=/var/run
53 CONFIGURE_OPTIONS += --enable-libnet
61ff4f 54 CONFIGURE_OPTIONS += --disable-rpath
AP 55
56 CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
3d2c4f 57
AS 58 COMPONENT_PREP_ACTION=(cd $(@D); $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) autogen.sh)
59
60 COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D))
61
81389d 62 COMPONENT_POST_INSTALL_ACTION+= cd $(PROTO_DIR) &&  \
AP 63     $(MV) usr/include/heartbeat/glue_config.h usr/include/heartbeat/glue_config-$(BITS).h
3d2c4f 64
81389d 65 build:          $(BUILD_32_and_64)
3d2c4f 66
81389d 67 install:        $(INSTALL_32_and_64)
AP 68
69 test:           $(TEST_32_and_64)
3d2c4f 70
a41bfd 71 # Build dependencies
AL 72 REQUIRED_PACKAGES += text/asciidoc
73
74 # Auto-generated dependencies
3d2c4f 75 REQUIRED_PACKAGES += SUNWcs
AS 76 REQUIRED_PACKAGES += compress/bzip2
77 REQUIRED_PACKAGES += library/glib2
78 REQUIRED_PACKAGES += library/libtool/libltdl
79 REQUIRED_PACKAGES += library/libxml2
80 REQUIRED_PACKAGES += library/zlib
a41bfd 81 REQUIRED_PACKAGES += runtime/perl-522
AL 82 REQUIRED_PACKAGES += runtime/perl-524
c403b7 83 REQUIRED_PACKAGES += runtime/python-37
a41bfd 84 REQUIRED_PACKAGES += shell/bash
3d2c4f 85 REQUIRED_PACKAGES += system/library
bfff23 86 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
3d2c4f 87 REQUIRED_PACKAGES += system/management/snmp/net-snmp
AS 88 REQUIRED_PACKAGES += web/curl
bfff23 89 # Bogus dependency due to libssp
AL 90 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)