Marcel Telka
2024-04-02 f1b1912adc00984cd165470b728dda03ac81b2c6
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 2013 Adam Stevko. All rights reserved. 
c7e332 13 # Copyright 2019 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
3d2c4f 14 #
AS 15
ef06dc 16 BUILD_STYLE=configure
AL 17 BUILD_BITS=64
3d2c4f 18 include ../../../make-rules/shared-macros.mk
AS 19
ef06dc 20 COMPONENT_NAME=         resource-agents
AL 21 COMPONENT_VERSION=      4.1.0
22 COMPONENT_REVISION=     2
23 COMPONENT_FMRI=         application/cluster/$(COMPONENT_NAME)
24 COMPONENT_CLASSIFICATION=System/Libraries
25 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
26 COMPONENT_ARCHIVE=      $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
c7e332 27 COMPONENT_ARCHIVE_HASH= sha256:e9391b3c1d2d8828a36547440597c50a983ac2779c411d0b5ab26e06412b499f
ef06dc 28 COMPONENT_PROJECT_URL=  https://github.com/ClusterLabs/resource-agents
AL 29 COMPONENT_ARCHIVE_URL=  https://github.com/ClusterLabs/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz
30 COMPONENT_LICENSE=      LGPLv2,GPLv2,GPLv3
31 COMPONENT_SUMMARY=      Combined repository of OCF agents from the RHCS and Linux-HA projects
3d2c4f 32
ef06dc 33 include $(WS_MAKE_RULES)/common.mk
3d2c4f 34
32158f 35 PATH=$(PATH.gnu)
3d2c4f 36 CFLAGS += "-lnsl"
AS 37
38 CONFIGURE_SCRIPT = $(@D)/configure
39
40 CONFIGURE_OPTIONS += --sysconfdir=/etc
41 CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib
42 CONFIGURE_OPTIONS += --sharedstatedir=/var/hacluster
43 CONFIGURE_OPTIONS += --localstatedir=/var
44 CONFIGURE_OPTIONS += --enable-fatal-warnings=no
45 CONFIGURE_OPTIONS += --enable-ansi
46 CONFIGURE_OPTIONS += --with-ocf-root=$(CONFIGURE_PREFIX)/lib/ocf
47
48 COMPONENT_PREP_ACTION=(cd $(SOURCE_DIR); ./autogen.sh) 
49
50 COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D))
51
901cf6 52 # leaving this folder prevents repeated install actions
G 53 COMPONENT_PRE_INSTALL_ACTION = ( $(RM) -r $(PROTO_DIR)/usr/lib/ocf/; ) 
3d2c4f 54
4d7d67 55 # Auto-generated dependencies
ef06dc 56 PERL_REQUIRED_PACKAGES += runtime/perl
9a156b 57 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
ef06dc 58 REQUIRED_PACKAGES += application/cluster/cluster-glue
AL 59 REQUIRED_PACKAGES += shell/bash
60 REQUIRED_PACKAGES += shell/ksh93
61 REQUIRED_PACKAGES += system/library
4d7d67 62 REQUIRED_PACKAGES += system/library/libnet
AL 63 REQUIRED_PACKAGES += text/gawk
9a156b 64 # Bogus dependency due to libssp
AL 65 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)