26 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
27 |
27 |
28 PATH=/usr/gnu/bin:/usr/bin:/usr/sbin |
28 PATH=/usr/gnu/bin:/usr/bin:/usr/sbin |
29 |
29 |
30 COMPONENT_NAME= rabbitmq-server |
30 COMPONENT_NAME= rabbitmq-server |
31 COMPONENT_VERSION= 3.5.6 |
31 COMPONENT_VERSION= 3.6.1 |
32 COMPONENT_PROJECT_URL= http://www.rabbitmq.com/ |
32 COMPONENT_PROJECT_URL= http://www.rabbitmq.com/ |
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
34 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.xz |
35 COMPONENT_ARCHIVE_HASH= \ |
35 COMPONENT_ARCHIVE_HASH= \ |
36 sha256:24be1433234112db391e0c5ef32bfb2ca111e51b2e57998cc0f3d97ba361671f |
36 sha256:c696134e863f99191a301288c12d69ff00b7e648107ee52c8686ae047dde1bee |
37 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
37 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/releases/$(COMPONENT_NAME)/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
38 COMPONENT_BUGDB= service/rabbitmq |
38 COMPONENT_BUGDB= service/rabbitmq |
39 |
39 |
40 TPNO= 25764 |
40 TPNO= 27775 |
41 |
41 |
42 include $(WS_MAKE_RULES)/prep.mk |
42 include $(WS_MAKE_RULES)/prep.mk |
43 include $(WS_MAKE_RULES)/justmake.mk |
43 include $(WS_MAKE_RULES)/justmake.mk |
44 include $(WS_MAKE_RULES)/ips.mk |
44 include $(WS_MAKE_RULES)/ips.mk |
45 |
45 |
46 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
46 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
47 |
47 |
48 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) |
48 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
49 |
49 |
50 PKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH32) |
50 # rabbitmq doesn't like cloney |
|
51 COMPONENT_PRE_BUILD_ACTION = ($(CP) -rp $(SOURCE_DIR)/. $(@D)) |
51 |
52 |
52 COMPONENT_INSTALL_ENV += TARGET_DIR=$(PROTO_DIR) |
53 COMPONENT_BUILD_ACTION += /usr/bin/true |
53 COMPONENT_INSTALL_ENV += SBIN_DIR=$(PROTO_DIR)/usr/sbin |
54 |
54 COMPONENT_INSTALL_ENV += MAN_DIR=$(PROTO_DIR)/usr/share/man |
55 COMPONENT_INSTALL_TARGETS = all |
|
56 COMPONENT_INSTALL_TARGETS += install |
|
57 COMPONENT_INSTALL_TARGETS += install-man |
|
58 COMPONENT_INSTALL_ENV += DESTDIR=$(PROTO_DIR) |
|
59 COMPONENT_INSTALL_ENV += MANDIR=/usr/share/man |
|
60 COMPONENT_INSTALL_ENV += RMQ_ROOTDIR=/usr |
|
61 COMPONENT_INSTALL_ENV += RMQ_BINDIR=/usr/lib/rabbitmq/bin |
|
62 COMPONENT_INSTALL_ENV += RMQ_LIBDIR=/usr/lib |
|
63 COMPONENT_INSTALL_ENV += RMQ_ERLAPP_DIR=/usr/lib/rabbitmq |
55 |
64 |
56 # We delegate the running of the tests to a script because it's easier to find |
65 # We delegate the running of the tests to a script because it's easier to find |
57 # and use unique free ports in a single process, and it's easier to make sure |
66 # and use unique free ports in a single process, and it's easier to make sure |
58 # that we don't leave any servers running if the tests themselves fail. |
67 # that we don't leave any servers running if the tests themselves fail. |
59 COMPONENT_TEST_DIR = $(COMPONENT_DIR) |
68 COMPONENT_TEST_DIR = $(COMPONENT_DIR) |
60 COMPONENT_TEST_CMD = $(PYTHON) |
69 COMPONENT_TEST_CMD = $(PYTHON) |
61 COMPONENT_TEST_TARGETS = test.py $(TEST_32) |
70 COMPONENT_TEST_TARGETS = test.py $(TEST_32) |
62 |
71 |
|
72 # taken from justmake.mk but with the CLONEY line removed. |
|
73 # build the configured source |
|
74 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
|
75 $(RM) -r $(@D) ; $(MKDIR) $(@D) |
|
76 $(COMPONENT_PRE_BUILD_ACTION) |
|
77 ($(COMPONENT_BUILD_ACTION)) |
|
78 $(COMPONENT_POST_BUILD_ACTION) |
|
79 |
63 # common targets |
80 # common targets |
64 build: $(BUILD_32) |
|
65 |
|
66 install: $(INSTALL_32) |
81 install: $(INSTALL_32) |
67 |
82 |
68 test: $(TEST_32) |
83 test: $(TEST_32) |
69 |
84 |
70 |
85 |
71 PKG_PROTO_DIRS += $(COMPONENT_DIR)/files |
|
72 |
|
73 REQUIRED_PACKAGES += compress/zip |
86 REQUIRED_PACKAGES += compress/zip |
74 REQUIRED_PACKAGES += runtime/erlang |
87 REQUIRED_PACKAGES += runtime/erlang |
75 REQUIRED_PACKAGES += shell/bash |
88 REQUIRED_PACKAGES += shell/bash |
76 REQUIRED_PACKAGES += shell/ksh93 |
89 REQUIRED_PACKAGES += shell/ksh93 |
77 |
|