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
21
22
23
24

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

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

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:= \
37
	+uhttpd +luci +luci-lib-nixio \
38
	+luci-ssl \
39
40
41
	+iputils-arping +iputils-clockdiff +iputils-ping +iputils-tracepath \
	+ahcpd \
	+radvd \
42
	+hostapd \
43
	+wireless-tools +iw +netperf \
44
	+wide-dhcpv6-client +wide-dhcpv6-control +wide-dhcpv6-server \
45
	+bmx6-qmp +bmx6-qmp-uci-config +bmx6-qmp-json +bmx6-qmp-sms +bmx6-luci +qmp-tinyproxy\
46
47
	+olsrd +olsrd-mod-txtinfo +olsrd-mod-httpinfo +olsrd-mod-watchdog \
	+olsrd-mod-arprefresh +olsrd-luci \
48
	+luci-i18n-catalan +luci-i18n-spanish +luci-i18n-french \
49
	+firewall \
50
	+babeld \
hakais's avatar
hakais committed
51
	+ip \
52
53
54
55
56
	+ndisc6 +rdisc6 +rdnssd \
	+6in4 +6to4 \
	+ip6tables +ip6tables-utils \
	+kmod-niit \
	+kmod-ipip \
57
	+kmod-ip6-tunnel +kmod-iptunnel6 \
58
	+kmod-tun \
59
	+kmod-madwifi \
60
	+kmod-ath9k \
61
62
	+kmod-ath5k \
	+gwck-qmp
63

64
65
66
67
68
69
70
endef


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

hitz's avatar
hitz committed
71
72
73
74
75
76
77
78
79
80
81
82
83
84
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
85
86
define Package/qmp-small-node/install
	$(CP) ./files/* $(1)/
87
	$(CP) ./files/etc/config/qmp $(1)/etc/config/qmp.orig
88
89
	$(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
90
91
	chmod 755 $(1)/etc/init.d/qmp_autoconf
endef
92
93
94


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