Developing lightweight computation at the DSG edge

Makefile 2.73 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
21
22
#
# Contributors:
#	Simó Albert i Beltran
#
23
24
25
26
27

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

PKG_NAME:=qmp-small-node
28
PKG_RELEASE:=7
hitz's avatar
hitz committed
29
30
31
#PKG_SOURCE_URL:=@SF/qmp-small-node
#PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
32
33
34
35
36
37
38
39
40

include $(INCLUDE_DIR)/package.mk

define Package/qmp-small-node
  SECTION:=net
  CATEGORY:=Base system
  TITLE:=Required addons for small qmp mesh nodes ( 4MByte )
  URL:=http://qmp.cat
  DEPENDS:= \
41
	+uhttpd +luci +luci-lib-nixio \
42
	+luci-ssl +iwinfo \
43
44
45
	+iputils-arping +iputils-clockdiff +iputils-ping +iputils-tracepath \
	+ahcpd \
	+radvd \
46
	+hostapd-mini +wpa-supplicant-mini \
47
	+wireless-tools +iw +netperf \
48
	+wide-dhcpv6-client +wide-dhcpv6-control +wide-dhcpv6-server \
49
	+bmx6-qmp +bmx6-qmp-uci-config +bmx6-qmp-json +bmx6-qmp-sms +bmx6-luci \
p4u's avatar
p4u committed
50
	+gwck-qmp \
51
	+olsrd +olsrd-mod-txtinfo +olsrd-mod-httpinfo +olsrd-mod-watchdog \
52
	+olsrd-mod-arprefresh \
53
	+luci-i18n-catalan +luci-i18n-spanish +luci-i18n-french \
54
	+firewall \
hakais's avatar
hakais committed
55
	+ip \
56
57
58
59
60
	+ndisc6 +rdisc6 +rdnssd \
	+6in4 +6to4 \
	+ip6tables +ip6tables-utils \
	+kmod-niit \
	+kmod-ipip \
61
	+kmod-ip6-tunnel +kmod-iptunnel6 \
62
	+kmod-tun \
63
	+gwck-qmp \
64
	+b6m-spread \
65

66
67
68
69
70
71
72
endef


define Package/qmp-small-node/description
 Addons for small qmp nodes (4MByte flash)
endef

hitz's avatar
hitz committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86
define Package/qmp-small-node/conffiles
	/etc/config/qmp
endef

define Build/Prepare
	mkdir -p $(PKG_BUILD_DIR)
endef

define Build/Configure
endef

define Build/Compile
endef

hitz's avatar
hitz committed
87
88
define Package/qmp-small-node/install
	$(CP) ./files/* $(1)/
89
	$(CP) ./files/etc/config/qmp $(1)/etc/config/qmp.orig
90
91
	$(SED) 's,$$$$BRANCH,$(BRANCH_GIT),g' $(1)/etc/uci-defaults/qmp_banner
	$(SED) 's,$$$$REV,$(REV_GIT),g' $(1)/etc/uci-defaults/qmp_banner
hitz's avatar
hitz committed
92
	chmod 755 $(1)/etc/init.d/qmp_autoconf
p4u's avatar
p4u committed
93
	date +%Y%m%d > $(1)/etc/qmp/qmp.version
hitz's avatar
hitz committed
94
endef
95
96
97


$(eval $(call BuildPackage,qmp-small-node))
hitz's avatar
hitz committed
98