-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
54 lines (43 loc) · 1.81 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
include $(TOPDIR)/rules.mk
PKG_NAME:=serval-dna
PKG_VERSION:=START-3236-g1848493
PKG_RELEASE=4
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/servalproject/serval-dna.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=1848493468cd5de4d32a84863a1fc4edc4187031
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_FIXUP:=autoreconf
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=
include $(INCLUDE_DIR)/package.mk
define Package/serval-dna
TITLE:=Serval DNA mesh networking daemon
SECTION:=net
CATEGORY:=Network
SUBMENU:=Mesh networking
DEPENDS:=+libpthread +librt
MAINTAINER:=Serval DNA Maintainer <[email protected]>
endef
define Package/serval-dna/description
Serval DNA is a daemon that implements the Serval Mesh network protocol as an
overlay network encapsulated within UDP/IP packets over Wi-Fi. The daemon,
when running, joins the OpenWRT router to the local Serval Mesh Wi-Fi
network. This allows it to participate in dynamic mesh routing (using
Serval's own mesh routing protocol), file distribution (using the Rhizome
store-and-forward protocol), secure text messaging (using the MeshMS
protocol), and to relay secure voice calls (using the VoMP voice-over-mesh
protocol) and other secure Serval traffic (such as tunnelled SOCKS proxy
connections) between Android devices running the Serval Mesh app.
The Serval Mesh Extender device is essentially a Wi-Fi router running the
Serval DNA daemon on OpenWRT.
endef
define Build/Configure
echo "$(PKG_VERSION)" >$(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3))/VERSION.txt
$(call Build/Configure/Default,$(1),$(2),$(3))
endef
define Package/serval-dna/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
endef
$(eval $(call BuildPackage,serval-dna))