python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / rabbitmq-server / rabbitmq-server.mk
blobd55a8cc47cf0b731012de284eb4970dc59448498
1 #############################################################
3 # rabbitmq-server
5 #############################################################
7 RABBITMQ_SERVER_VERSION = 3.6.6
8 RABBITMQ_SERVER_SITE = http://www.rabbitmq.com/releases/rabbitmq-server/v$(RABBITMQ_SERVER_VERSION)
9 RABBITMQ_SERVER_SOURCE = rabbitmq-server-$(RABBITMQ_SERVER_VERSION).tar.xz
10 RABBITMQ_SERVER_LICENSE = MPLv1.1, Apache-2.0, BSD-2c, EPL, MIT, MPLv2.0
11 RABBITMQ_SERVER_LICENSE_FILES = LICENSE-MPL-RabbitMQ \
12 LICENSE LICENSE-APACHE2-ExplorerCanvas \
13 LICENSE-APL2-Rebar LICENSE-APL2-Stomp-Websocket \
14 LICENSE-BSD-base64js LICENSE-BSD-glMatrix \
15 LICENSE-EPL-OTP LICENSE-MIT-EJS10 \
16 LICENSE-MIT-Flot LICENSE-MIT-jQuery164 \
17 LICENSE-MIT-Mochi LICENSE-MIT-Mochiweb \
18 LICENSE-MIT-Sammy060 LICENSE-MIT-SockJS \
19 LICENSE-MPL2
20 RABBITMQ_SERVER_DEPENDENCIES = host-libxslt host-zip erlang libxslt
21 RABBITMQ_SERVER_TARGET_BINS = rabbitmq-plugins rabbitmq-server rabbitmqctl rabbitmq-env rabbitmq-defaults
23 define RABBITMQ_SERVER_BUILD_CMDS
24 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
25 endef
27 define RABBITMQ_SERVER_INSTALL_TARGET_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(@D) install
30 for bin in $(RABBITMQ_SERVER_TARGET_BINS); do \
31 ln -sf ../lib/erlang/lib/rabbitmq_server-$(RABBITMQ_SERVER_VERSION)/sbin/$$bin \
32 $(TARGET_DIR)/usr/sbin/$$bin; \
33 done
34 endef
36 define RABBITMQ_SERVER_INSTALL_INIT_SYSTEMD
37 $(INSTALL) -D -m 0644 package/rabbitmq-server/rabbitmq-server.service \
38 $(TARGET_DIR)/usr/lib/systemd/system/rabbitmq-server.service
40 mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
42 ln -fs ../../../../usr/lib/systemd/system/rabbitmq-server.service \
43 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service
44 endef
46 define RABBITMQ_SERVER_INSTALL_INIT_SYSV
47 $(INSTALL) -D -m 0755 package/rabbitmq-server/S50rabbitmq-server \
48 $(TARGET_DIR)/etc/init.d/S50rabbitmq-server
49 endef
51 define RABBITMQ_SERVER_USERS
52 rabbitmq -1 rabbitmq -1 * /var/lib/rabbitmq /bin/sh - rabbitmq-server daemon
53 endef
55 $(eval $(generic-package))