2015-12-13 04:09:17 +01:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sse-multiplex
|
2018-02-13 21:23:03 +01:00
|
|
|
PKG_VERSION:=2
|
2015-12-13 04:09:17 +01:00
|
|
|
|
|
|
|
PKG_LICENSE:=BSD-2-Clause
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
|
|
|
|
|
|
|
define Package/sse-multiplex
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
DEPENDS:=
|
|
|
|
TITLE:=Allows multiple clients to receive the same Server-Sent Event stream
|
|
|
|
endef
|
|
|
|
|
2018-03-07 20:51:48 +01:00
|
|
|
CMAKE_OPTIONS += -DSSE_MULTIPLEX_SOCKET:STRING=/var/run/sse-multiplex.sock
|
2015-12-13 04:09:17 +01:00
|
|
|
|
|
|
|
define Package/sse-multiplex/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sse-multiplexd $(1)/usr/sbin/
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/sse-multiplex $(1)/usr/sbin/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) ./files/sse-multiplexd.init $(1)/etc/init.d/sse-multiplexd
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sse-multiplex))
|