d46984acd38c4d2e76dc6da082e237694e621966
[feed/packages.git] / net / respondd / Makefile
1 #
2 # Copyright (C) 2023 David Bauer <mail@david-bauer.net>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=respondd
11 PKG_SOURCE_DATE:=2019-05-01
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://github.com/freifunk-gluon/respondd.git
16 PKG_SOURCE_VERSION:=58405297e76f97d4752dc7511dc15bbc7a01e586
17 PKG_MIRROR_HASH:=22bc00df280fe611cfc895528f17269f03af804ea4c2ca2dc62da2457d3a1ee0
18
19 PKG_MAINTAINER:=David Bauer <mail@david-bauer.net>
20 PKG_LICENSE:=BSD-2-Clause
21
22 CMAKE_SOURCE_SUBDIR:=src
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/respondd
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=@IPV6 +libjson-c
31 TITLE:=Lightweight metadata multicast-responder
32 endef
33
34 define Package/respondd/description
35 respondd is a server distributing information within a network.
36
37 For doing so, respondd spawns a UDP socket (in Gluon 1001/udp),
38 optionally joining a multicast group. When a request is received,
39 the information requested is transmitted to the requester.
40
41 All information is organized in a non-hierarchical namespace.
42 Each entry identifies a request name (e.g. statistics, nodeinfo, ...)
43 implemented by at least one "provider" C module. The respond is the
44 result of merging the outputs of all providers for the given request
45 name.
46 endef
47
48 define Package/respondd/conffiles
49 /etc/config/respondd
50 endef
51
52 define Package/respondd/install
53 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/init.d $(1)/etc/config
54 $(INSTALL_CONF) ./files/respondd.config $(1)/etc/config/respondd
55 $(INSTALL_BIN) ./files/respondd.init $(1)/etc/init.d/respondd
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/respondd $(1)/usr/bin/
57 endef
58
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/include
61 $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/respondd.h $(1)/usr/include/
62 endef
63
64 $(eval $(call BuildPackage,respondd))