Developing lightweight computation at the DSG edge

Makefile 2.67 KB
Newer Older
1
#    Copyright (C) 2011 Fundacio Privada per a la Xarxa Oberta, Lliure i Neutral guifi.net
2
#
3
4
5
6
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
7
#
8
9
10
11
12
13
14
15
16
17
18
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License along
#    with this program; if not, write to the Free Software Foundation, Inc.,
#    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
#    The full GNU General Public License is included in this distribution in
#    the file called "COPYING".
19
20
#
# Contributors:
21
#	Pau Escrich <p4u@dabax.net>
22
23
#	Simó Albert i Beltran
#
24
25
26
27

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

28
29
30
31
32
33
QMP_FEED_DIR?=$(CURDIR)

QMP_GIT_BRANCH?=$(shell git -C $(QMP_FEED_DIR) rev-parse --abbrev-ref HEAD)
QMP_GIT_REV?=$(shell git -C $(QMP_FEED_DIR) rev-parse --short HEAD)
QMP_GIT_DATE?=$(shell git -C $(QMP_FEED_DIR) log -1 --format=%cd --date=format:%Y%m%d)
QMP_GIT_TIME?=$(shell git -C $(QMP_FEED_DIR) log -1 --format=%cd --date=format:%H%M)
34

Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
35
QMP_RELEASE?=4.2.4
36
QMP_PKGRELEASE=r$(QMP_GIT_DATE)_$(QMP_GIT_TIME)
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
37
QMP_CODENAME?=Macondo
38
QMP_BUILDDATE:=$(shell date +%Y%m%d-%H%M)
39

40
PKG_NAME:=qmp-big-node
41
PKG_VERSION:=$(QMP_RELEASE)-$(QMP_PKGRELEASE)
42
PKG_RELEASE:=$(QMP_CODENAME)-$(QMP_GIT_REV)
43
PKG_LICENSE:=GPL-3.0+
44

45
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
46
47
48
49

include $(INCLUDE_DIR)/package.mk

define Package/qmp-big-node
50
  TITLE:=Quick Mesh Project (qMp) full-featured node (8+ MB flash)
51
  SECTION:=net
52
  CATEGORY:=qMp
53
  URL:=https://qmp.cat
54
  DEPENDS:= +qmp-small-node \
55
56
	+qmp-tinyproxy +tinymce \
	+openssl-util +luci-ssl \
57
	+lsof +wget +bmon +bwm-ng +ebtables +pv
58
59
60
endef

define Package/qmp-big-node/description
61
62
63
 This metapackage provides a full-blown qMp node with all the features and extra
 addons:
  - qMp system configuration files and scripts
64
  - BMX6 routing protocol
65
  - Full LuCI web interface (via HTTPS with SSL)
66
  - IP/TCP utils
67
  - LibreMap and b6m tools
68
  - SNMP and Munin
69
70
  - IP over IP tunneling support
  - Tinyproxy with captive portal
71

72
 It is intended to be used on devices with more than 8 MB of flash.
73
74
endef

75
define Build/Prepare
76
	mkdir -p $(PKG_BUILD_DIR)
77
78
endef

79
80
81
82
83
84
define Build/Configure
endef

define Build/Compile
endef

85
define Package/qmp-big-node/install
86
	$(INSTALL_DIR) $(1)/etc/qmp
87
88
endef

89
$(eval $(call BuildPackage,qmp-big-node))