# # 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