1 include $(TOPDIR
)/rules.mk
4 PKG_SOURCE_URL
:=https
://dev.leipzig.freifunk.net
/svn
/ff-luci
/$(PKG_BRANCH
)
5 PKG_REV
:=$(shell LC_ALL
=C svn
info ${PKG_SOURCE_URL} | sed
-ne
's/^Last Changed Rev: //p')
8 PKG_VERSION
:=0.7+svn
$(PKG_REV
)
11 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
).
tar.gz
14 PKG_SOURCE_VERSION
:=$(PKG_REV
)
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 PKG_SELECTED_MODULES
:=
23 include $(INCLUDE_DIR
)/package.mk
25 define Build
/Configure
30 define Package
/luci
/libtemplate
32 CATEGORY
:=Administration
33 TITLE
:=LuCI
- Lua Configuration Interface
34 URL
:=http
://luci.freifunk-halle.net
/
35 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
36 SUBMENU
:=LuCI
- Libraries
40 define Package
/luci
/fftemplate
41 $(call Package
/luci
/libtemplate
)
42 SUBMENU
:=LuCI
- Freifunk Support
43 DEPENDS
:=+luci-mod-freifunk
46 define Package
/luci
/httpdtemplate
47 $(call Package
/luci
/libtemplate
)
48 SUBMENU
:=LuCI
- Non-Forking HTTP-Daemon
(EXPERIMENTAL
)
52 define Package
/luci
/i18ntemplate
53 $(call Package
/luci
/libtemplate
)
54 SUBMENU
:=LuCI
- Translations
58 define Package
/luci
/thtemplate
59 $(call Package
/luci
/libtemplate
)
60 SUBMENU
:=LuCI
- Themes
64 define Package
/luci
/webtemplate
65 $(call Package
/luci
/libtemplate
)
66 SUBMENU
:=LuCI
- Webinterface Components
70 define Package
/luci
/install/template
71 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
72 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/ipkg
/* $(1)/CONTROL
/ 2>/dev
/null || true
79 define Package
/luci-core
80 $(call Package
/luci
/libtemplate
)
81 DEPENDS
:=+lua
+luaposix
82 TITLE
:=LuCI core libraries
85 define Package
/luci-core
/install
86 $(call Package
/luci
/install/template
,$(1),libs
/core
)
89 define Package
/luci-core
/config
92 default PACKAGE_luci-core_compile
94 config PACKAGE_luci-core_compile
97 config PACKAGE_luci-core_source
103 ifneq ($(CONFIG_PACKAGE_luci-core_compile
),)
109 define Package
/luci-cbi
110 $(call Package
/luci
/libtemplate
)
112 TITLE
:=Configuration Binding Interface
115 define Package
/luci-cbi
/install
116 $(call Package
/luci
/install/template
,$(1),libs
/cbi
)
120 define Package
/luci-uci
121 $(call Package
/luci
/libtemplate
)
123 TITLE
:=High-Level UCI API
126 define Package
/luci-uci
/install
127 $(call Package
/luci
/install/template
,$(1),libs
/uci
)
131 define Package
/luci-fastindex
132 $(call Package
/luci
/libtemplate
)
133 TITLE
:=Fastindex indexing module
136 define Package
/luci-fastindex
/install
137 $(call Package
/luci
/install/template
,$(1),libs
/fastindex
)
141 define Package
/luci-http
142 $(call Package
/luci
/libtemplate
)
143 TITLE
:=HTTP Protocol implementation
146 define Package
/luci-http
/install
147 $(call Package
/luci
/install/template
,$(1),libs
/http
)
151 define Package
/luci-web
152 $(call Package
/luci
/libtemplate
)
153 DEPENDS
+=+luci-http
+luci-addons
+luci-uci
154 TITLE
:=MVC Webframework
157 define Package
/luci-web
/conffiles
161 define Package
/luci-web
/install
162 $(call Package
/luci
/install/template
,$(1),libs
/web
)
169 define Package
/luci-httpd
170 $(call Package
/luci
/httpdtemplate
)
171 DEPENDS
:=+luci-http
+luasocket
175 define Package
/luci-httpd
/install
176 $(call Package
/luci
/install/template
,$(1),libs
/httpd
)
181 ### Community Packages ###
183 define Package
/luci-ff-halle
184 $(call Package
/luci
/fftemplate
)
186 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
187 +luci-app-ffwizard-leipzig \
188 +luci-theme-fledermaus \
190 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
192 TITLE
:=Freifunk Halle Community Meta-Package
195 define Package
/luci-ff-halle
/install
196 $(call Package
/luci
/install/template
,$(1),applications
/community-halle
)
200 define Package
/luci-ff-leipzig
201 $(call Package
/luci
/fftemplate
)
203 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
204 +luci-app-ffwizard-leipzig \
205 +luci-theme-fledermaus \
207 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
209 TITLE
:=Freifunk Leipzig Community Meta-Package
212 define Package
/luci-ff-leipzig
/install
213 $(call Package
/luci
/install/template
,$(1),applications
/community-leipzig
)
217 define Package
/luci-ff-hannover
218 $(call Package
/luci
/fftemplate
)
220 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
221 +luci-theme-fledermaus \
223 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
224 TITLE
:=Freifunk Hannover Community Meta-Package
225 URL
:=http
://www.freifunk-hannover.de
/
226 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
229 define Package
/luci-ff-hannover
/install
230 $(call Package
/luci
/install/template
,$(1),applications
/community-hannover
)
236 define Package
/luci-mod-admin-core
237 $(call Package
/luci
/webtemplate
)
238 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
+luci-i18n-english
239 TITLE
:=Administration module
242 define Package
/luci-mod-admin-core
/install
243 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
247 define Package
/luci-mod-freifunk
248 $(call Package
/luci
/fftemplate
)
249 DEPENDS
:=+luci-mod-admin-core
250 TITLE
:=LuCI Freifunk module
253 define Package
/luci-mod-freifunk
/conffiles
257 define Package
/luci-mod-freifunk
/install
258 $(call Package
/luci
/install/template
,$(1),modules
/freifunk
)
265 define Package
/luci-app-ffwizard-leipzig
266 $(call Package
/luci
/fftemplate
)
267 DEPENDS
+=+luci-app-firewall
268 TITLE
:=Freifunk Leipzig configuration wizard
271 define Package
/luci-app-ffwizard-leipzig
/install
272 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
276 define Package
/luci-app-firewall
277 $(call Package
/luci
/webtemplate
)
278 DEPENDS
+=+luci-mod-admin-core
279 TITLE
:=Firewall and Portforwarding application
282 define Package
/luci-app-firewall
/conffiles
286 define Package
/luci-app-firewall
/install
287 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
291 define Package
/luci-app-olsr
292 $(call Package
/luci
/webtemplate
)
293 DEPENDS
+=+luci-mod-admin-core
+olsrd-mod-txtinfo
294 TITLE
:=OLSR configuration and status module
297 define Package
/luci-app-olsr
/install
298 $(call Package
/luci
/install/template
,$(1),applications
/luci-olsr
)
302 define Package
/luci-app-qos
303 $(call Package
/luci
/webtemplate
)
304 DEPENDS
+=+luci-mod-admin-core
+qos-scripts
305 TITLE
:=Quality of Service configuration module
308 define Package
/luci-app-qos
/install
309 $(call Package
/luci
/install/template
,$(1),applications
/luci-qos
)
313 define Package
/luci-app-splash
314 $(call Package
/luci
/fftemplate
)
315 DEPENDS
+=+iptables-mod-nat
+iptables-mod-ipopt
316 TITLE
:=Freifunk DHCP-Splash application
319 define Package
/luci-app-splash
/conffiles
320 /etc
/config
/luci_splash
323 define Package
/luci-app-splash
/install
324 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
328 define Package
/luci-app-statistics
329 $(call Package
/luci
/webtemplate
)
330 DEPENDS
+=+luci-mod-admin-core
+collectd
+collectd-mod-rrdtool1
+rrdtool1
331 TITLE
:=LuCI Statistics Application
334 define Package
/luci-app-statistics
/conffiles
335 /etc
/config
/luci_statistics
338 define Package
/luci-app-statistics
/install
339 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
343 ### Server Gateway Interfaces ###
345 define Package
/luci-sgi-cgi
346 $(call Package
/luci
/libtemplate
)
351 define Package
/luci-sgi-cgi
/install
352 $(call Package
/luci
/install/template
,$(1),libs
/sgi-cgi
)
355 define Package
/luci-sgi-luci
356 $(call Package
/luci
/libtemplate
)
357 DEPENDS
+=+luci-web
+luci-httpd
358 TITLE
:=SGI for LuCI HTTPD
361 define Package
/luci-sgi-luci
/install
362 $(call Package
/luci
/install/template
,$(1),libs
/sgi-luci
)
365 define Package
/luci-sgi-webuci
366 $(call Package
/luci
/libtemplate
)
368 TITLE
:=SGI for Webuci
371 define Package
/luci-sgi-webuci
/install
372 $(call Package
/luci
/install/template
,$(1),libs
/sgi-webuci
)
376 define Package
/luci-theme-fledermaus
377 $(call Package
/luci
/fftemplate
)
379 TITLE
:=Fledermaus Theme
382 define Package
/luci-theme-fledermaus
/install
383 $(call Package
/luci
/install/template
,$(1),themes
/fledermaus
)
386 define Package
/luci-theme-openwrt
387 $(call Package
/luci
/thtemplate
)
388 TITLE
:=OpenWRT.org
(default
)
391 define Package
/luci-theme-openwrt
/install
392 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
396 define Package
/luci-i18n-german
397 $(call Package
/luci
/i18ntemplate
)
401 define Package
/luci-i18n-german
/install
402 $(call Package
/luci
/install/template
,$(1),i18n
/german
)
406 define Package
/luci-i18n-english
407 $(call Package
/luci
/i18ntemplate
)
408 TITLE
:=English
(incomplete
)
411 define Package
/luci-i18n-english
/install
412 $(call Package
/luci
/install/template
,$(1),i18n
/english
)
418 ifneq ($(CONFIG_PACKAGE_luci-core
),)
419 PKG_SELECTED_MODULES
+=libs
/core
421 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
422 PKG_SELECTED_MODULES
+=libs
/cbi
424 ifneq ($(CONFIG_PACKAGE_luci-fastindex
),)
425 PKG_SELECTED_MODULES
+=libs
/fastindex
427 ifneq ($(CONFIG_PACKAGE_luci-http
),)
428 PKG_SELECTED_MODULES
+=libs
/http
430 ifneq ($(CONFIG_PACKAGE_luci-uci
),)
431 PKG_SELECTED_MODULES
+=libs
/uci
433 ifneq ($(CONFIG_PACKAGE_luci-web
),)
434 PKG_SELECTED_MODULES
+=libs
/web
437 ifneq ($(CONFIG_PACKAGE_luci-httpd
),)
438 PKG_SELECTED_MODULES
+=libs
/httpd
441 ifneq ($(CONFIG_PACKAGE_luci-ff-halle
),)
442 PKG_SELECTED_MODULES
+=applications
/community-halle
444 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig
),)
445 PKG_SELECTED_MODULES
+=applications
/community-leipzig
447 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover
),)
448 PKG_SELECTED_MODULES
+=applications
/community-hannover
451 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core
),)
452 PKG_SELECTED_MODULES
+=modules
/admin-core
454 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk
),)
455 PKG_SELECTED_MODULES
+=modules
/freifunk
458 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig
),)
459 PKG_SELECTED_MODULES
+=applications
/luci-ffwizard-leipzig
461 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
462 PKG_SELECTED_MODULES
+=applications
/luci-fw
464 ifneq ($(CONFIG_PACKAGE_luci-app-olsr
),)
465 PKG_SELECTED_MODULES
+=applications
/luci-olsr
467 ifneq ($(CONFIG_PACKAGE_luci-app-qos
),)
468 PKG_SELECTED_MODULES
+=applications
/luci-qos
470 ifneq ($(CONFIG_PACKAGE_luci-app-splash
),)
471 PKG_SELECTED_MODULES
+=applications
/luci-splash
473 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
474 PKG_SELECTED_MODULES
+=applications
/luci-statistics
477 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi
),)
478 PKG_SELECTED_MODULES
+=libs
/sgi-cgi
480 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci
),)
481 PKG_SELECTED_MODULES
+=libs
/sgi-luci
483 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci
),)
484 PKG_SELECTED_MODULES
+=libs
/sgi-webuci
487 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus
),)
488 PKG_SELECTED_MODULES
+=themes
/fledermaus
490 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
491 PKG_SELECTED_MODULES
+=themes
/openwrt.org
494 ifneq ($(CONFIG_PACKAGE_luci-i18n-german
),)
495 PKG_SELECTED_MODULES
+=i18n
/german
497 ifneq ($(CONFIG_PACKAGE_luci-i18n-english
),)
498 PKG_SELECTED_MODULES
+=i18n
/english
502 MAKE_FLAGS
+= MODULES
="$(PKG_SELECTED_MODULES)" LUA_TARGET
="$(LUA_TARGET)" CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" LDFLAGS
="$(TARGET_LDFLAGS)"
505 $(eval
$(call BuildPackage
,luci-core
))
506 $(eval
$(call BuildPackage
,luci-cbi
))
507 $(eval
$(call BuildPackage
,luci-fastindex
))
508 $(eval
$(call BuildPackage
,luci-http
))
509 $(eval
$(call BuildPackage
,luci-uci
))
510 $(eval
$(call BuildPackage
,luci-web
))
512 $(eval
$(call BuildPackage
,luci-httpd
))
514 $(eval
$(call BuildPackage
,luci-ff-halle
))
515 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
516 $(eval
$(call BuildPackage
,luci-ff-hannover
))
518 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
519 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
521 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
522 $(eval
$(call BuildPackage
,luci-app-firewall
))
523 $(eval
$(call BuildPackage
,luci-app-olsr
))
524 $(eval
$(call BuildPackage
,luci-app-qos
))
525 $(eval
$(call BuildPackage
,luci-app-splash
))
526 $(eval
$(call BuildPackage
,luci-app-statistics
))
528 $(eval
$(call BuildPackage
,luci-sgi-cgi
))
529 $(eval
$(call BuildPackage
,luci-sgi-luci
))
530 $(eval
$(call BuildPackage
,luci-sgi-webuci
))
532 $(eval
$(call BuildPackage
,luci-theme-fledermaus
))
533 $(eval
$(call BuildPackage
,luci-theme-openwrt
))
535 $(eval
$(call BuildPackage
,luci-i18n-german
))
536 $(eval
$(call BuildPackage
,luci-i18n-english
))