ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / cluster / corosync / Makefile
bloba3e481e64049486ff8b4d1aa25b69cf3914ee0cb
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.
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.
12 # Copyright 2013 Adam Stevko. All rights reserved.
13 # Copyright 2019 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved.
16 BUILD_STYLE= configure
17 BUILD_BITS= 64
18 USE_PARALLEL_BUILD= yes
19 include ../../../make-rules/shared-macros.mk
21 PATH= $(PATH.gnu)
23 COMPONENT_NAME= corosync
24 COMPONENT_VERSION= 2.4.5
25 COMPONENT_REVISION= 3
26 COMPONENT_SUMMARY= The Corosync cluster engine.
27 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
29 COMPONENT_ARCHIVE_HASH= sha256:1637b9fcc90ecb719f0c24bdb5bf98bbe7b7f8dbaf19fbe1e5ca5640512565e1
30 COMPONENT_PROJECT_URL= https://github.com/corosync/corosync
31 COMPONENT_ARCHIVE_URL= https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz
32 COMPONENT_FMRI= application/cluster/$(COMPONENT_NAME)
33 COMPONENT_CLASSIFICATION=System/Services
34 COMPONENT_LICENSE= BSD
35 COMPONENT_LICENSE_FILE= LICENSE
37 include $(WS_MAKE_RULES)/common.mk
39 COMPONENT_PREP_ACTION= ( cd $(SOURCE_DIR); $(CONFIG_SHELL) autogen.sh )
41 COMPONENT_PRE_CONFIGURE_ACTION= ( $(CLONEY) $(SOURCE_DIR) $(@D) )
43 CONFIGURE_SCRIPT= $(@D)/configure
45 CFLAGS += $(XPG6MODE) -D_POSIX_PTHREAD_SEMANTICS
46 LDFLAGS += -R/usr/lib/mps/$(MACH64)
48 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
49 CONFIGURE_OPTIONS += --sharedstatedir=$(VARDIR)/hacluster
50 CONFIGURE_OPTIONS += --localstatedir=$(VARDIR)
51 CONFIGURE_OPTIONS += --enable-monitoring
52 CONFIGURE_OPTIONS += --enable-snmp
53 CONFIGURE_OPTIONS += --enable-xmlconf
54 CONFIGURE_OPTIONS += --enable-testagents
55 CONFIGURE_OPTIONS += --enable-augeas
56 CONFIGURE_OPTIONS += --enable-qdevices
57 CONFIGURE_OPTIONS += --disable-rpath
58 CONFIGURE_OPTIONS += --with-logdir=$(VARDIR)/log/hacluster
60 CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)"
62 COMPONENT_POST_INSTALL_ACTION=( \
63 $(RM) -r $(PROTO_DIR)/usr/share/corosync/examples; \
64 $(MKDIR) $(PROTO_DIR)/usr/share/corosync/examples/conf; \
65 $(CP) -r $(PROTO_DIR)/etc/corosync/* $(PROTO_DIR)/usr/share/corosync/examples/conf ; \
66 $(MV) $(PROTO_DIR)/etc/logrotate.d $(PROTO_DIR)/usr/share/corosync/examples; \
67 $(RM) $(PROTO_DIR)/etc/corosync/corosync.conf.example; \
68 $(RM) $(PROTO_DIR)/etc/corosync/corosync.conf.example.udpu; \
69 $(RM) $(PROTO_DIR)/etc/corosync/corosync.xml.example )
71 # Auto-generated dependencies
72 REQUIRED_PACKAGES += library/libqb
73 REQUIRED_PACKAGES += library/libstatgrab
74 REQUIRED_PACKAGES += library/nspr
75 REQUIRED_PACKAGES += shell/bash
76 REQUIRED_PACKAGES += shell/ksh93
77 REQUIRED_PACKAGES += system/library
78 REQUIRED_PACKAGES += system/library/mozilla-nss
79 REQUIRED_PACKAGES += system/management/snmp/net-snmp