-
Notifications
You must be signed in to change notification settings - Fork 3.4k
/
Makefile
66 lines (53 loc) · 1.76 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
55
56
57
58
59
60
61
62
63
64
65
66
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=ibrdtnd
PKG_VERSION:=1.0.1
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
PKG_HASH:=9bd79636154093ab6bf4fd10d6c62d67c6db45141460847b19def327c93771ed
PKG_MAINTAINER:=Johannes Morgenroth <jm@m-network.de>
PKG_LICENSE:=Apache-2.0
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/ibrdtnd
SECTION:=net
CATEGORY:=Network
DEPENDS:=+dtndht +ibrdtn +libsqlite3
TITLE:=DTN Daemon
endef
define Package/ibrdtnd/conffiles
/etc/config/ibrdtn
endef
define Package/ibrdtnd/description
The implementation of the bundle protocol of the IBR (TU Braunschweig).
endef
CONFIGURE_ARGS += \
--with-tls \
--with-sqlite \
--with-dht \
--without-wifip2p \
--without-vmime \
--disable-libdaemon
TARGET_CXXFLAGS += -std=c++11
define Package/ibrdtnd/install
$(INSTALL_DIR) $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dtnd $(1)/usr/sbin/
$(INSTALL_BIN) files/safety-wrapper.sh $(1)/usr/sbin/dtnd-safety-wrapper.sh
$(INSTALL_DIR) $(1)/usr/share/ibrdtn/
$(INSTALL_BIN) files/build-config.sh $(1)/usr/share/ibrdtn/build-config.sh
$(INSTALL_BIN) files/mkcontainer.sh $(1)/usr/share/ibrdtn/mkcontainer.sh
$(INSTALL_BIN) files/mountcontainer.sh $(1)/usr/share/ibrdtn/mountcontainer.sh
$(INSTALL_BIN) files/systemcheck.sh $(1)/usr/share/ibrdtn/systemcheck.sh
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_BIN) files/ibrdtn.init $(1)/etc/init.d/ibrdtn
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) files/ibrdtn.uci $(1)/etc/config/ibrdtn
endef
$(eval $(call BuildPackage,ibrdtnd))