Marcel Telka
2024-04-03 72d66ff28ec33bc2c05b355c6218d98d13b79450
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL)". You may
# only use this file in accordance with the terms of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source. A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2013 Adam Stevko. All rights reserved.
# Copyright 2019 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
#
 
BUILD_STYLE= configure
BUILD_BITS= 64
USE_PARALLEL_BUILD= yes
include ../../../make-rules/shared-macros.mk
 
PATH= $(PATH.gnu)
 
COMPONENT_NAME=         corosync
COMPONENT_VERSION=      2.4.5
COMPONENT_REVISION=     3
COMPONENT_SUMMARY=      The Corosync cluster engine.
COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_ARCHIVE=      $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
COMPONENT_ARCHIVE_HASH= sha256:1637b9fcc90ecb719f0c24bdb5bf98bbe7b7f8dbaf19fbe1e5ca5640512565e1
COMPONENT_PROJECT_URL=  https://github.com/corosync/corosync
COMPONENT_ARCHIVE_URL=  https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz
COMPONENT_FMRI=         application/cluster/$(COMPONENT_NAME)
COMPONENT_CLASSIFICATION=System/Services
COMPONENT_LICENSE=      BSD
COMPONENT_LICENSE_FILE= LICENSE
 
include $(WS_MAKE_RULES)/common.mk
 
COMPONENT_PREP_ACTION= ( cd $(SOURCE_DIR); $(CONFIG_SHELL) autogen.sh )
 
COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
 
CONFIGURE_SCRIPT= $(@D)/configure
 
CFLAGS += $(XPG6MODE) -D_POSIX_PTHREAD_SEMANTICS
LDFLAGS += -R/usr/lib/mps/$(MACH64)
 
CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/hacluster
CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
CONFIGURE_OPTIONS += --enable-monitoring
CONFIGURE_OPTIONS += --enable-snmp
CONFIGURE_OPTIONS += --enable-xmlconf
CONFIGURE_OPTIONS += --enable-testagents
CONFIGURE_OPTIONS += --enable-augeas
CONFIGURE_OPTIONS += --enable-qdevices
CONFIGURE_OPTIONS += --disable-rpath
CONFIGURE_OPTIONS += --with-logdir=$(VARDIR)/log/hacluster
 
CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
 
COMPONENT_POST_INSTALL_ACTION=( \
    $(RM) -r $(PROTO_DIR)/usr/share/corosync/examples; \
    $(MKDIR) $(PROTO_DIR)/usr/share/corosync/examples/conf; \
    $(CP) -r $(PROTO_DIR)/etc/corosync/*  $(PROTO_DIR)/usr/share/corosync/examples/conf ; \
    $(MV)    $(PROTO_DIR)/etc/logrotate.d $(PROTO_DIR)/usr/share/corosync/examples; \
    $(RM)    $(PROTO_DIR)/etc/corosync/corosync.conf.example; \
    $(RM)    $(PROTO_DIR)/etc/corosync/corosync.conf.example.udpu; \
    $(RM)    $(PROTO_DIR)/etc/corosync/corosync.xml.example )
 
# Auto-generated dependencies
REQUIRED_PACKAGES += library/libqb
REQUIRED_PACKAGES += library/libstatgrab
REQUIRED_PACKAGES += library/nspr
REQUIRED_PACKAGES += shell/bash
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/mozilla-nss
REQUIRED_PACKAGES += system/management/snmp/net-snmp