Developing lightweight computation at the DSG edge

Makefile 2.26 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
28

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

PKG_NAME:=qmp-small-node
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
29
PKG_VERSION:=3.1
30
PKG_RELEASE:=1
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
31
32
PGK_LICENSE:=GPL-2.0+

33
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
34
35
36
37
38

include $(INCLUDE_DIR)/package.mk

define Package/qmp-small-node
  SECTION:=net
39
  CATEGORY:=qMp
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
40
  TITLE:=Metapackage for setting up a small qMp node (8 MB flash or more)
41
  URL:=http://qmp.cat
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
42
43
  DEPENDS:= +qmp-tiny-node \
	+iputils-arping +iputils-clockdiff +tcpdump-mini +b6m +b6m-spread \
44
	+iputils-ping6 +netperf +mtr \
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
45
46
47
	+munin-mesh +mini-snmpd +cgi-bin-zero +kmod-ipip +kmod-gre \
	+libremap-agent +luci-lib-libremap-contact +luci-lib-libremap-wireless \
	+luci-lib-libremap-system +luci-lib-libremap-location
48
49
50
endef

define Package/qmp-small-node/description
Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
51
52
53
54
55
56
57
58
59
60
 This metapackage installs the packages required for setting up a typical qMp node:
  - BMX6 routing protocol
  - Luci web interface
  - qMp system configuration files
  - IP/TCP utils
  - b6m and libremap
  - SNMP and Munin
  - IP over IP support

 It is intended to be used on devices with 8 MB of flash or more.
61
62
endef

Roger Pueyo Centelles's avatar
Roger Pueyo Centelles committed
63

hitz's avatar
hitz committed
64
65
66
67
68
69
define Build/Configure
endef

define Build/Compile
endef

70
71
72
73
define Build/Prepare
 mkdir -p $(PKG_BUILD_DIR)
endef

hitz's avatar
hitz committed
74
define Package/qmp-small-node/install
75
    $(INSTALL_DIR) $(1)/etc/qmp
hitz's avatar
hitz committed
76
endef
77
78

$(eval $(call BuildPackage,qmp-small-node))