Marcel Telka
2022-08-04 216b7ca6205a798efd775132aa142fc51ba68c0d
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
216b7c 16 BUILD_BITS = 64_and_32
MT 17
3d2c4f 18 include ../../../make-rules/shared-macros.mk
AS 19
20 COMPONENT_NAME= cluster-glue
21 COMPONENT_VERSION= 1.0.12
216b7c 22 COMPONENT_REVISION= 7
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_LICENSE= GPLv2, LGPLv2
AS 32 COMPONENT_SUMMARY= Cluster Glue is a set of libraries, tools and utilities suitable for the Heartbeat/Pacemaker cluster stack.
33
216b7c 34 include $(WS_MAKE_RULES)/common.mk
3d2c4f 35
AS 36 PATCH_LEVEL= 1
37
38 CFLAGS += -lssp -lssp_nonshared
81389d 39
3d2c4f 40 CONFIGURE_OPTIONS += --sysconfdir=/etc
AS 41 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
42 CONFIGURE_OPTIONS += --sharedstatedir=/var/cluster
43 CONFIGURE_OPTIONS += --localstatedir=/var
44 CONFIGURE_OPTIONS += --enable-ansi=no
45 CONFIGURE_OPTIONS += --enable-fatal-warnings=no
46 CONFIGURE_OPTIONS += --with-daemon-user=hacluster
47 CONFIGURE_OPTIONS += --with-daemon-group=haclient
48 CONFIGURE_OPTIONS += --with-ocf-root=$(CONFIGURE_PREFIX)/lib/ocf
49 CONFIGURE_OPTIONS += --with-rundir=/var/run
50 CONFIGURE_OPTIONS += --enable-libnet
61ff4f 51 CONFIGURE_OPTIONS += --disable-rpath
AP 52
53 CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
3d2c4f 54
AS 55 COMPONENT_PREP_ACTION=(cd $(@D); $(ENV) $(CONFIGURE_ENV) $(CONFIG_SHELL) autogen.sh)
56
57 COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D))
58
81389d 59 COMPONENT_POST_INSTALL_ACTION+= cd $(PROTO_DIR) &&  \
AP 60     $(MV) usr/include/heartbeat/glue_config.h usr/include/heartbeat/glue_config-$(BITS).h
3d2c4f 61
a41bfd 62 # Build dependencies
AL 63 REQUIRED_PACKAGES += text/asciidoc
216b7c 64 REQUIRED_PACKAGES += system/library/libnet
a41bfd 65
AL 66 # Auto-generated dependencies
216b7c 67 PERL_REQUIRED_PACKAGES += runtime/perl
MT 68 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
3d2c4f 69 REQUIRED_PACKAGES += compress/bzip2
AS 70 REQUIRED_PACKAGES += library/glib2
71 REQUIRED_PACKAGES += library/libtool/libltdl
72 REQUIRED_PACKAGES += library/libxml2
73 REQUIRED_PACKAGES += library/zlib
c403b7 74 REQUIRED_PACKAGES += runtime/python-37
a41bfd 75 REQUIRED_PACKAGES += shell/bash
216b7c 76 REQUIRED_PACKAGES += shell/ksh93
MT 77 REQUIRED_PACKAGES += SUNWcs
3d2c4f 78 REQUIRED_PACKAGES += system/library
AS 79 REQUIRED_PACKAGES += system/management/snmp/net-snmp
80 REQUIRED_PACKAGES += web/curl