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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
|
#
# Copyright (C) 2008-2009 Freifunk Leipzig
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
#
include $(TOPDIR)/rules.mk
PKG_BASENAME:=olsrd
PKG_NAME:=$(PKG_BASENAME)-luci
PKG_BASEVER:=0.5.6-r6
PKG_RELEASE:=1
PKG_HGREV:=438bd63a1ab8
PKG_SOURCE:=$(PKG_HGREV).tar.gz
PKG_SOURCE_URL:=http://gredler.at/hg/olsrd-0.5.6/archive
PKG_MD5SUM:=18cfb6afd823daa29dee8375223201d2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_HGREV)
PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xzf $(DL_DIR)/$(PKG_SOURCE)
PKG_VERSION:=$(PKG_BASEVER)+$(PKG_HGREV)+luci1
#PKG_SOURCE:=$(PKG_BASENAME)-$(PKG_BASEVER).tar.bz2
#PKG_SOURCE_URL:=http://www.olsr.org/releases/0.5
#PKG_MD5SUM:=57a365750457e13e2e1a5c7963b1d344
#PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_BASEVER)
#PKG_UNPACK=$(HOST_TAR) -C $(PKG_BUILD_DIR) --strip-components=1 -xjf $(DL_DIR)/$(PKG_SOURCE)
#PKG_VERSION:=$(PKG_BASEVER)+luci1
include $(INCLUDE_DIR)/package.mk
define Package/olsrd-luci/common_info
SECTION:=luci
CATEGORY:=LuCI
SUBMENU:=Freifunk
TITLE:=OLSR - Optimized Link State Routing Daemon
URL:=http://www.olsr.org/
MAINTAINER:=Jo-Philipp Wich <xm@subsignal.org>
endef
define Package/olsrd-luci
$(call Package/olsrd-luci/common_info)
MENU:=1
DEPENDS:=+libpthread
endef
define Package/olsrd-luci/conffiles
/etc/config/olsrd
endef
define Package/olsrd-luci-mod-arprefresh
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - ARP Refresh Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-dot-draw
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Dot Draw Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-bmf
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Basic Multicast Forwarding Plugin
DEPENDS:=olsrd-luci +kmod-tun
endef
define Package/olsrd-luci-mod-dyn-gw
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Dynamic Gateway Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-dyn-gw-plain
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Dynamic Gateway Plugin (Plain Version)
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-httpinfo
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - HTTP/HTML Info Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-nameservice
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Hostname Propagation Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-secure
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Security Extensions Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-txtinfo
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - HTTP/Plaintext Info Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-quagga
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Quagga Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-watchdog
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - Watchdog Plugin
DEPENDS:=olsrd-luci
endef
define Package/olsrd-luci-mod-mdns
$(call Package/olsrd-luci/common_info)
TITLE:=OLSR - mDNS Plugin
DEPENDS:=olsrd-luci
endef
TARGET_CFLAGS += $(FPIC)
define Build/Compile
$(MAKE) -C "$(PKG_BUILD_DIR)" olsrd libs \
$(TARGET_CONFIGURE_OPTS) \
NODEBUG=1 \
CFLAGS="$(TARGET_CFLAGS) -DSVEN_OLA_UNBLOAT -DNODEBUG" \
OS="linux" \
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
LIBDIR="$(PKG_INSTALL_DIR)/usr/lib" \
SBINDIR="$(PKG_INSTALL_DIR)/usr/sbin/" \
ETCDIR="$(PKG_INSTALL_DIR)/etc" \
MANDIR="$(PKG_INSTALL_DIR)/usr/share/man" \
STRIP="true" \
INSTALL_LIB="true" \
SUBDIRS="arprefresh bmf dot_draw dyn_gw dyn_gw_plain httpinfo nameservice secure txtinfo quagga watchdog mdns"
endef
define Package/olsrd-luci/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/olsrd $(1)/usr/sbin/
$(INSTALL_BIN) ./files/etc/init.d/olsrd $(1)/etc/init.d/
$(INSTALL_CONF) ./files/etc/config/olsrd $(1)/etc/config/
endef
define Package/olsrd-luci-mod-arprefresh/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/arprefresh/olsrd_arprefresh.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-dot-draw/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dot_draw/olsrd_dot_draw.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-bmf/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/bmf/olsrd_bmf.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-dyn-gw/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw/olsrd_dyn_gw.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-dyn-gw-plain/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/dyn_gw_plain/olsrd_dyn_gw_plain.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-httpinfo/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/httpinfo/olsrd_httpinfo.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-nameservice/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/nameservice/olsrd_nameservice.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-secure/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/secure/olsrd_secure.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-txtinfo/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/txtinfo/olsrd_txtinfo.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-quagga/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/quagga/olsrd_quagga.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-watchdog/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/watchdog/olsrd_watchdog.so.* $(1)/usr/lib/
endef
define Package/olsrd-luci-mod-mdns/install
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/mdns/olsrd_mdns.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,olsrd-luci))
$(eval $(call BuildPackage,olsrd-luci-mod-arprefresh))
$(eval $(call BuildPackage,olsrd-luci-mod-dot-draw))
$(eval $(call BuildPackage,olsrd-luci-mod-bmf))
$(eval $(call BuildPackage,olsrd-luci-mod-dyn-gw))
$(eval $(call BuildPackage,olsrd-luci-mod-dyn-gw-plain))
$(eval $(call BuildPackage,olsrd-luci-mod-httpinfo))
$(eval $(call BuildPackage,olsrd-luci-mod-nameservice))
$(eval $(call BuildPackage,olsrd-luci-mod-secure))
$(eval $(call BuildPackage,olsrd-luci-mod-txtinfo))
$(eval $(call BuildPackage,olsrd-luci-mod-quagga))
$(eval $(call BuildPackage,olsrd-luci-mod-watchdog))
$(eval $(call BuildPackage,olsrd-luci-mod-mdns))
|