commit | author | age
|
2cceb0
|
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. |
87e74c
|
13 |
# Copyright 2017 Andreas Grueninger, Grueninger GmbH, (grueni). All rights reserved. |
2cceb0
|
14 |
# |
AS |
15 |
|
|
16 |
include ../../../make-rules/shared-macros.mk |
87e74c
|
17 |
|
G |
18 |
PATH= $(PATH.gnu) |
2cceb0
|
19 |
|
AS |
20 |
COMPONENT_NAME= corosync |
2dc741
|
21 |
COMPONENT_VERSION= 2.4.2 |
ec7cf1
|
22 |
COMPONENT_REVISION= 2 |
2cceb0
|
23 |
COMPONENT_FMRI= application/cluster/$(COMPONENT_NAME) |
AS |
24 |
COMPONENT_CLASSIFICATION= System/Services |
|
25 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
26 |
COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz |
2dc741
|
27 |
COMPONENT_ARCHIVE_HASH= sha256:0dd0ee718253c18c5090e0304eec72a7be8b18b6fe5e03de59ce095fa08c8b63 |
2cceb0
|
28 |
COMPONENT_PROJECT_URL= https://github.com/corosync/corosync |
AS |
29 |
COMPONENT_ARCHIVE_URL= https://github.com/$(COMPONENT_NAME)/$(COMPONENT_NAME)/archive/v$(COMPONENT_VERSION).tar.gz |
|
30 |
COMPONENT_LICENSE= BSD |
|
31 |
COMPONENT_SUMMARY= The Corosync cluster engine. |
|
32 |
|
|
33 |
include $(WS_MAKE_RULES)/prep.mk |
|
34 |
include $(WS_MAKE_RULES)/configure.mk |
|
35 |
include $(WS_MAKE_RULES)/ips.mk |
|
36 |
|
|
37 |
PATCH_LEVEL = 1 |
|
38 |
|
|
39 |
COMPONENT_PREP_ACTION=(cd $(SOURCE_DIR); $(CONFIG_SHELL) autogen.sh ) |
|
40 |
|
|
41 |
COMPONENT_PRE_CONFIGURE_ACTION=($(CLONEY) $(SOURCE_DIR) $(@D)) |
|
42 |
|
|
43 |
CONFIGURE_SCRIPT= $(@D)/configure |
|
44 |
|
87e74c
|
45 |
SNMPCONFIG= /usr/bin/amd64/net-snmp-config |
2cceb0
|
46 |
CFLAGS += -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS |
87e74c
|
47 |
LDFLAGS += -R/usr/lib/mps/$(MACH64) |
2cceb0
|
48 |
|
AS |
49 |
CONFIGURE_OPTIONS += --sysconfdir=/etc |
|
50 |
CONFIGURE_OPTIONS += --libexecdir=$(CONFIGURE_PREFIX)/lib |
|
51 |
CONFIGURE_OPTIONS += --sharedstatedir=/var/hacluster |
|
52 |
CONFIGURE_OPTIONS += --localstatedir=/var |
|
53 |
CONFIGURE_OPTIONS += --enable-monitoring |
|
54 |
CONFIGURE_OPTIONS += --enable-snmp |
|
55 |
CONFIGURE_OPTIONS += --enable-xmlconf |
|
56 |
CONFIGURE_OPTIONS += --enable-testagents |
|
57 |
CONFIGURE_OPTIONS += --enable-augeas |
|
58 |
CONFIGURE_OPTIONS += --enable-qdevices |
ec7cf1
|
59 |
CONFIGURE_OPTIONS += --disable-rpath |
2cceb0
|
60 |
CONFIGURE_OPTIONS += --with-logdir=/var/log/hacluster |
AS |
61 |
|
ec7cf1
|
62 |
CONFIGURE_ENV.64 += LT_SYS_LIBRARY_PATH="/lib/$(MACH64):/usr/lib/$(MACH64)" |
AP |
63 |
|
2cceb0
|
64 |
COMPONENT_POST_INSTALL_ACTION=( \ |
87e74c
|
65 |
$(RM) -r $(PROTO_DIR)/usr/share/corosync/examples; \ |
G |
66 |
$(MKDIR) $(PROTO_DIR)/usr/share/corosync/examples/conf; \ |
|
67 |
$(CP) -r $(PROTO_DIR)/etc/corosync/* $(PROTO_DIR)/usr/share/corosync/examples/conf ; \ |
|
68 |
$(MV) $(PROTO_DIR)/etc/logrotate.d $(PROTO_DIR)/usr/share/corosync/examples; \ |
|
69 |
$(RM) $(PROTO_DIR)/etc/corosync/corosync.conf.example; \ |
|
70 |
$(RM) $(PROTO_DIR)/etc/corosync/corosync.conf.example.udpu; \ |
|
71 |
$(RM) $(PROTO_DIR)/etc/corosync/corosync.xml.example ) |
2cceb0
|
72 |
|
87e74c
|
73 |
# if compilation fails make output verbose |
G |
74 |
#COMPONENT_BUILD_GMAKE_ARGS= V=1 |
2cceb0
|
75 |
|
87e74c
|
76 |
CONFIGURE_BINDIR.64= $(CONFIGURE_BINDIR.32) |
G |
77 |
CONFIGURE_SBINDIR.64= $(CONFIGURE_SBINDIR.32) |
2cceb0
|
78 |
|
87e74c
|
79 |
build: $(BUILD_64) |
G |
80 |
|
|
81 |
install: $(INSTALL_64) |
|
82 |
|
|
83 |
test: $(TESTS_64) |
2cceb0
|
84 |
|
AS |
85 |
REQUIRED_PACKAGES += SUNWcs |
|
86 |
REQUIRED_PACKAGES += library/libqb |
|
87 |
REQUIRED_PACKAGES += library/libstatgrab |
|
88 |
REQUIRED_PACKAGES += library/nspr |
|
89 |
REQUIRED_PACKAGES += shell/bash |
|
90 |
REQUIRED_PACKAGES += system/library |
|
91 |
REQUIRED_PACKAGES += system/library/mozilla-nss |
|
92 |
REQUIRED_PACKAGES += system/management/snmp/net-snmp |