2859a81a2b4409134b0c2cd29866454df6290139
[oweals/luci.git] / contrib / package / luci / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_BRANCH:=branches/luci-0.8
4
5 ifeq ($(DUMP),)
6   USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
7 endif
8
9 PKG_NAME:=luci
10 PKG_RELEASE:=1
11
12 ifeq ($(USELOCAL),1)
13   PKG_VERSION:=0.8+svn
14 else
15   PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
16   ifeq ($(DUMP),)
17     PKG_REV:=HEAD
18     PKG_VERSION:=0.8.6
19   endif
20   PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21   PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22   PKG_SOURCE_PROTO:=svn
23   PKG_SOURCE_VERSION:=$(PKG_REV)
24 endif
25
26 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
28
29 PKG_BUILD_DEPENDS:=libnotimpl
30 LUA_TARGET:=source
31 PKG_SELECTED_MODULES:=
32
33
34 include $(INCLUDE_DIR)/package.mk
35
36 ifeq ($(USELOCAL),1)
37   define Build/Prepare
38         mkdir -p $(PKG_BUILD_DIR)
39         $(TAR) c -C ../../../ . \
40                 --exclude=.pc --exclude=.svn --exclude=.git \
41                 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
42                 --exclude=dist | \
43                         tar x -C $(PKG_BUILD_DIR)/
44   endef
45 endif
46
47 define Build/Configure
48 endef
49
50 ### Templates ###
51
52 define Package/luci/libtemplate
53   SECTION:=admin
54   CATEGORY:=Administration
55   TITLE:=LuCI - Lua Configuration Interface
56   URL:=http://luci.freifunk-halle.net/
57   MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
58   SUBMENU:=LuCI Libraries
59   DEPENDS:=+luci-core
60 endef
61
62 define Package/luci/fftemplate
63   $(call Package/luci/libtemplate)
64   SUBMENU:=LuCI Freifunk Support
65   DEPENDS:=+luci-mod-freifunk
66 endef
67
68 define Package/luci/httpdtemplate
69   $(call Package/luci/libtemplate)
70   SUBMENU:=LuCIttpd
71   DEPENDS:=+luci-httpd
72 endef
73
74 define Package/luci/i18ntemplate
75   $(call Package/luci/libtemplate)
76   SUBMENU:=LuCI Translations
77   DEPENDS:=+luci-web
78 endef
79
80 define Package/luci/thtemplate
81   $(call Package/luci/libtemplate)
82   SUBMENU:=LuCI Themes
83   DEPENDS:=+luci-web
84 endef
85
86 define Package/luci/webtemplate
87   $(call Package/luci/libtemplate)
88   SUBMENU:=LuCI Components
89 endef
90
91
92 define Package/luci/install/template
93         $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
94         $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
95 endef
96
97
98
99 ### Core package ###
100
101 define Package/luci-core
102   $(call Package/luci/libtemplate)
103   DEPENDS:=+lua
104   TITLE:=LuCI core libraries
105 endef
106
107 define Package/luci-core/install
108         $(call Package/luci/install/template,$(1),libs/core)
109         $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
110                 "OpenWrt Firmware" \
111                 "$(OPENWRTVERSION)" \
112                 "$(PKG_BRANCH)" \
113                 "$(PKG_VERSION)"
114 endef
115
116 define Package/luci-core/config
117        choice
118                prompt "Build Target"
119                default PACKAGE_luci-core_source
120
121        config PACKAGE_luci-core_compile
122                bool "Precompiled"
123
124        config PACKAGE_luci-core_stripped
125                bool "Stripped"
126
127        config PACKAGE_luci-core_source
128                bool "Full Source"
129
130        endchoice
131 endef
132
133 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
134   LUA_TARGET:=compile
135 endif
136
137 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
138   LUA_TARGET:=strip
139 endif
140
141
142 ### Libraries ###
143 define Package/luci-cbi
144   $(call Package/luci/libtemplate)
145   DEPENDS+=+luci-web +luci-uvl +luci-uci
146   TITLE:=Configuration Binding Interface
147 endef
148
149 define Package/luci-cbi/install
150         $(call Package/luci/install/template,$(1),libs/cbi)
151 endef
152
153
154 define Package/luci-uci
155   $(call Package/luci/libtemplate)
156   DEPENDS+=+libuci-lua
157   TITLE:=High-Level UCI API
158 endef
159
160 define Package/luci-uci/install
161         $(call Package/luci/install/template,$(1),libs/uci)
162 endef
163
164
165 define Package/luci-fastindex
166   $(call Package/luci/libtemplate)
167   TITLE:=Fastindex indexing module
168 endef
169
170 define Package/luci-fastindex/install
171         $(call Package/luci/install/template,$(1),libs/fastindex)
172 endef
173
174
175 define Package/luci-http
176   $(call Package/luci/libtemplate)
177   TITLE:=HTTP Protocol implementation
178 endef
179
180 define Package/luci-http/install
181         $(call Package/luci/install/template,$(1),libs/http)
182 endef
183
184
185 define Package/luci-ipkg
186   $(call Package/luci/libtemplate)
187   TITLE:=LuCI IPKG/OPKG call abstraction library
188 endef
189
190 define Package/luci-ipkg/install
191         $(call Package/luci/install/template,$(1),libs/ipkg)
192 endef
193
194
195 define Package/luci-json
196   $(call Package/luci/libtemplate)
197   TITLE:=LuCI JSON Library
198 endef
199
200 define Package/luci-json/install
201         $(call Package/luci/install/template,$(1),libs/json)
202 endef
203
204
205 define Package/luci-sys
206   $(call Package/luci/libtemplate)
207   TITLE:=LuCI Linux/POSIX system library
208 endef
209
210 define Package/luci-sys/install
211         $(call Package/luci/install/template,$(1),libs/sys)
212 endef
213
214
215 define Package/luci-web
216   $(call Package/luci/libtemplate)
217   DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
218   TITLE:=MVC Webframework
219 endef
220
221 define Package/luci-web/conffiles
222 /etc/config/luci
223 endef
224
225 define Package/luci-web/install
226         $(call Package/luci/install/template,$(1),libs/web)
227 endef
228
229
230 define Package/luci-uvl
231   $(call Package/luci/libtemplate)
232   DEPENDS+=+luci-sys +luci-uci +luci-core
233   TITLE:=UVL - UCI Validation Layer
234 endef
235
236 define Package/luci-uvl/install
237         $(call Package/luci/install/template,$(1),libs/uvl)
238 endef
239
240
241
242 ### HTTPD ###
243
244 define Package/luci-httpd
245   $(call Package/luci/httpdtemplate)
246   DEPENDS:=+luci-http +libuci
247   TITLE:=Server Core
248 endef
249
250 define Package/luci-httpd/install
251         $(call Package/luci/install/template,$(1),libs/lucittpd)
252 endef
253
254
255
256 ### Community Packages ###
257
258 define Package/luci-freifunk-community
259   $(call Package/luci/fftemplate)
260   DEPENDS+= \
261    +luci-sgi-cgi +luci-app-splash \
262    +luci-app-ffwizard-leipzig \
263    +luci-i18n-german \
264    +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
265    +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
266    +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
267    +PACKAGE_luci-freifunk-community:ip +luci-app-olsr
268   TITLE:=Freifunk Community Meta-Package
269 endef
270
271 define Package/luci-freifunk-community/install
272         $(call Package/luci/install/template,$(1),applications/freifunk-community)
273 endef
274
275 ### Modules ###
276
277 define Package/luci-admin-core
278   $(call Package/luci/webtemplate)
279   DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
280   TITLE:=Web UI Core Module
281 endef
282
283 define Package/luci-admin-core/conffiles
284 /etc/config/luci_hosts
285 /etc/config/luci_ethers
286 endef
287
288 define Package/luci-admin-core/install
289         $(call Package/luci/install/template,$(1),modules/admin-core)
290         touch $(1)/etc/init.d/luci_fixtime || true
291 endef
292
293
294 define Package/luci-admin-mini
295   $(call Package/luci/webtemplate)
296   DEPENDS+=+luci-admin-core
297   TITLE:=LuCI Essentials - stripped down and user-friendly
298 endef
299
300 define Package/luci-admin-mini/install
301         $(call Package/luci/install/template,$(1),modules/admin-mini)
302 endef
303
304
305 define Package/luci-admin-full
306   $(call Package/luci/webtemplate)
307   DEPENDS+=+luci-admin-core +luci-ipkg
308   TITLE:=LuCI Administration - full-featured for full control
309 endef
310
311 define Package/luci-admin-full/install
312         $(call Package/luci/install/template,$(1),modules/admin-full)
313 endef
314
315
316 define Package/luci-admin-rpc
317   $(call Package/luci/webtemplate)
318   DEPENDS+=+luci-json
319   TITLE:=LuCI RPC - JSON-RPC API
320 endef
321
322 define Package/luci-admin-rpc/install
323         $(call Package/luci/install/template,$(1),modules/rpc)
324 endef
325
326
327 define Package/luci-mod-freifunk
328   $(call Package/luci/fftemplate)
329   DEPENDS:=+luci-admin-full +luci-json
330   TITLE:=LuCI Freifunk module
331 endef
332
333 define Package/luci-mod-freifunk/conffiles
334 /etc/config/freifunk
335 endef
336
337 define Package/luci-mod-freifunk/install
338         $(call Package/luci/install/template,$(1),modules/freifunk)
339 endef
340
341
342
343 ### Applications ###
344
345 define Package/luci-app-ffwizard-leipzig
346   $(call Package/luci/fftemplate)
347   TITLE:=Freifunk Leipzig configuration wizard
348 endef
349
350 define Package/luci-app-ffwizard-leipzig/install
351         $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
352 endef
353
354
355 define Package/luci-app-firewall
356   $(call Package/luci/webtemplate)
357   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
358   TITLE:=Firewall and Portforwarding application
359 endef
360
361 define Package/luci-app-firewall/install
362         $(call Package/luci/install/template,$(1),applications/luci-fw)
363 endef
364
365
366 define Package/luci-app-olsr
367   $(call Package/luci/webtemplate)
368   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
369   TITLE:=OLSR configuration and status module
370 endef
371
372 define Package/luci-app-olsr/install
373         $(call Package/luci/install/template,$(1),applications/luci-olsr)
374 endef
375
376
377 define Package/luci-app-qos
378   $(call Package/luci/webtemplate)
379   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
380   TITLE:=Quality of Service configuration module
381 endef
382
383 define Package/luci-app-qos/install
384         $(call Package/luci/install/template,$(1),applications/luci-qos)
385 endef
386
387
388 define Package/luci-app-splash
389   $(call Package/luci/fftemplate)
390   DEPENDS+=+PACKAGE_luci-app-splash:luasocket
391   TITLE:=Freifunk DHCP-Splash application
392 endef
393
394 define Package/luci-app-splash/conffiles
395 /etc/config/luci_splash
396 endef
397
398 define Package/luci-app-splash/install
399         $(call Package/luci/install/template,$(1),applications/luci-splash)
400 endef
401
402
403 define Package/luci-app-statistics
404   $(call Package/luci/webtemplate)
405   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
406    +PACKAGE_luci-app-statistics:rrdtool1 \
407    +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
408    +PACKAGE_luci-app-statistics:collectd-mod-wireless \
409    +PACKAGE_luci-app-statistics:collectd-mod-interfaces \
410    +PACKAGE_luci-app-statistics:collectd-mod-load
411   TITLE:=LuCI Statistics Application
412 endef
413
414 define Package/luci-app-statistics/conffiles
415 /etc/config/luci_statistics
416 endef
417
418 define Package/luci-app-statistics/install
419         $(call Package/luci/install/template,$(1),applications/luci-statistics)
420 endef
421
422
423 define Package/luci-app-upnp
424   $(call Package/luci/webtemplate)
425   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
426   TITLE:=Universal Plug & Play configuration module
427 endef
428
429 define Package/luci-app-upnp/install
430         $(call Package/luci/install/template,$(1),applications/luci-upnp)
431 endef
432
433
434 define Package/luci-app-ntpc
435   $(call Package/luci/webtemplate)
436   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
437   TITLE:=NTP time synchronisation client configuration module
438 endef
439
440 define Package/luci-app-ntpc/install
441         $(call Package/luci/install/template,$(1),applications/luci-ntpc)
442 endef
443
444
445 define Package/luci-app-ddns
446   $(call Package/luci/webtemplate)
447   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
448   TITLE:=Dynamic DNS configuration module
449 endef
450
451 define Package/luci-app-ddns/install
452         $(call Package/luci/install/template,$(1),applications/luci-ddns)
453 endef
454
455
456 define Package/luci-app-samba
457   $(call Package/luci/webtemplate)
458   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
459   TITLE:=Network Shares - Samba SMB/CIFS module
460 endef
461
462 define Package/luci-app-samba/install
463         $(call Package/luci/install/template,$(1),applications/luci-samba)
464 endef
465
466
467 define Package/luci-app-uvc_streamer
468   $(call Package/luci/webtemplate)
469   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
470   TITLE:=Webcam Streaming - UVC-Streamer module
471 endef
472
473 define Package/luci-app-uvc_streamer/install
474         $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
475 endef
476
477
478 define Package/luci-app-mmc_over_gpio
479   $(call Package/luci/webtemplate)
480   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
481   TITLE:=mmc_over_gpio
482 endef
483
484 define Package/luci-app-mmc_over_gpio/install
485         $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
486 endef
487
488
489 define Package/luci-app-p910nd
490   $(call Package/luci/webtemplate)
491   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
492   TITLE:=p910nd - Printer server module
493 endef
494
495 define Package/luci-app-p910nd/install
496         $(call Package/luci/install/template,$(1),applications/luci-p910nd)
497 endef
498
499
500 define Package/luci-app-ushare
501   $(call Package/luci/webtemplate)
502   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
503   TITLE:=ushare - UPnP A/V & DLNA Media Server
504 endef
505
506 define Package/luci-app-ushare/install
507         $(call Package/luci/install/template,$(1),applications/luci-ushare)
508 endef
509
510 define Package/luci-app-hd_idle
511   $(call Package/luci/webtemplate)
512   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
513   TITLE:=hd-idle
514 endef
515
516 define Package/luci-app-hd_idle/install
517         $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
518 endef
519
520 define Package/luci-app-tinyproxy
521   $(call Package/luci/webtemplate)
522   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
523   TITLE:=Tinyproxy - HTTP(S)-Proxy
524 endef
525
526 define Package/luci-app-tinyproxy/install
527         $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
528 endef
529
530 define Package/luci-app-initmgr
531   $(call Package/luci/webtemplate)
532   DEPENDS+=+luci-admin-full
533   TITLE:=LuCI Initscript Management
534 endef
535
536 define Package/luci-app-initmgr/install
537         $(call Package/luci/install/template,$(1),applications/luci-initmgr)
538 endef
539
540 define Package/luci-app-livestats
541   $(call Package/luci/webtemplate)
542   DEPENDS+=+luci-admin-core +luci-admin-rpc
543   TITLE:=LuCI Realtime Statistics
544 endef
545
546 define Package/luci-app-livestats/install
547         $(call Package/luci/install/template,$(1),applications/luci-livestats)
548 endef
549
550 define Package/luci-app-polipo
551   $(call Package/luci/webtemplate)
552   TITLE:=LuCI Support for the Polipo Proxy
553   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
554 endef
555
556 define Package/luci-app-polipo/install
557         $(call Package/luci/install/template,$(1),applications/luci-polipo)
558 endef
559
560
561 ### Server Gateway Interfaces ###
562
563 define Package/luci-sgi-cgi
564   $(call Package/luci/libtemplate)
565   TITLE:=SGI for CGI
566 endef
567
568 define Package/luci-sgi-cgi/install
569         $(call Package/luci/install/template,$(1),libs/sgi-cgi)
570 endef
571
572 define Package/luci-sgi-luci
573   $(call Package/luci/libtemplate)
574   DEPENDS+=+luci-httpd
575   TITLE:=SGI for LuCIttpd
576 endef
577
578 define Package/luci-sgi-luci/install
579         $(call Package/luci/install/template,$(1),libs/sgi-luci)
580 endef
581
582 define Package/luci-sgi-webuci
583   $(call Package/luci/libtemplate)
584   TITLE:=SGI for Webuci
585 endef
586
587 define Package/luci-sgi-webuci/install
588         $(call Package/luci/install/template,$(1),libs/sgi-webuci)
589 endef
590
591 ### Themes ###
592 define Package/luci-theme-base
593   $(call Package/luci/thtemplate)
594   DEPENDS:=+luci-web
595   TITLE:=Common base for all themes
596 endef
597
598 define Package/luci-theme-base/install
599         $(call Package/luci/install/template,$(1),themes/base)
600 endef
601
602 define Package/luci-theme-fledermaus
603   $(call Package/luci/fftemplate)
604   DEPENDS:=+luci-web
605   TITLE:=Fledermaus Theme
606 endef
607
608 define Package/luci-theme-fledermaus/install
609         $(call Package/luci/install/template,$(1),themes/fledermaus)
610 endef
611
612 define Package/luci-theme-freifunk
613   $(call Package/luci/fftemplate)
614   DEPENDS:=+luci-web
615   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
616   TITLE:=alternative Freifunk Theme
617 endef
618
619 define Package/luci-theme-freifunk/install
620         $(call Package/luci/install/template,$(1),themes/freifunk)
621 endef
622
623 define Package/luci-theme-freifunk-bno
624   $(call Package/luci/fftemplate)
625   DEPENDS:=+luci-web
626   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
627   TITLE:=Freifunk Berlin Nordost Theme
628 endef
629
630 define Package/luci-theme-freifunk-bno/install
631         $(call Package/luci/install/template,$(1),themes/freifunk-bno)
632 endef
633
634 define Package/luci-theme-openwrt
635   $(call Package/luci/thtemplate)
636   TITLE:=OpenWrt.org (default)
637   DEPENDS:=+luci-theme-base
638 endef
639
640 define Package/luci-theme-openwrt/install
641         $(call Package/luci/install/template,$(1),themes/openwrt.org)
642 endef
643
644 define Package/luci-theme-openwrtlight
645   $(call Package/luci/thtemplate)
646   TITLE:=OpenWrt.org - light variant without images
647   DEPENDS:=+luci-theme-base
648 endef
649
650 define Package/luci-theme-openwrtlight/install
651         $(call Package/luci/install/template,$(1),themes/openwrt-light)
652 endef
653
654
655 ### Translations ###
656 define Package/luci-i18n-german
657   $(call Package/luci/i18ntemplate)
658   TITLE:=German
659 endef
660
661 define Package/luci-i18n-german/install
662         $(call Package/luci/install/template,$(1),i18n/german)
663 endef
664
665
666 define Package/luci-i18n-english
667   $(call Package/luci/i18ntemplate)
668   TITLE:=English
669 endef
670
671 define Package/luci-i18n-english/install
672         $(call Package/luci/install/template,$(1),i18n/english)
673 endef
674
675
676 define Package/luci-i18n-french
677   $(call Package/luci/i18ntemplate)
678   TITLE:=French (by Florian Fainelli)
679 endef
680
681 define Package/luci-i18n-french/install
682         $(call Package/luci/install/template,$(1),i18n/french)
683 endef
684
685
686 define Package/luci-i18n-italian
687   $(call Package/luci/i18ntemplate)
688   TITLE:=Italian (by Matteo Croce)
689 endef
690
691 define Package/luci-i18n-italian/install
692         $(call Package/luci/install/template,$(1),i18n/italian)
693 endef
694
695
696 define Package/luci-i18n-russian
697   $(call Package/luci/i18ntemplate)
698   TITLE:=Russian (by Skryabin Dmitry)
699 endef
700
701 define Package/luci-i18n-russian/install
702         $(call Package/luci/install/template,$(1),i18n/russian)
703 endef
704
705
706 define Package/luci-i18n-portuguese_brazilian
707   $(call Package/luci/i18ntemplate)
708   TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
709 endef
710
711 define Package/luci-i18n-portuguese_brazilian/install
712         $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
713 endef
714
715
716 define Package/luci-i18n-japanese
717   $(call Package/luci/i18ntemplate)
718   TITLE:=Japanese (by Tsukasa Hamano)
719 endef
720
721 define Package/luci-i18n-japanese/install
722         $(call Package/luci/install/template,$(1),i18n/japanese)
723 endef
724
725
726 define Package/luci-i18n-greek
727   $(call Package/luci/i18ntemplate)
728   TITLE:=Greek (by Vasilis Tsiligiannis)
729 endef
730
731 define Package/luci-i18n-greek/install
732         $(call Package/luci/install/template,$(1),i18n/greek)
733 endef
734
735
736 ### Compile ###
737 ifneq ($(CONFIG_PACKAGE_luci-core),)
738         PKG_SELECTED_MODULES+=libs/core
739 endif
740 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
741         PKG_SELECTED_MODULES+=libs/cbi
742 endif
743 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
744         PKG_SELECTED_MODULES+=libs/fastindex
745 endif
746 ifneq ($(CONFIG_PACKAGE_luci-http),)
747         PKG_SELECTED_MODULES+=libs/http
748 endif
749 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
750         PKG_SELECTED_MODULES+=libs/ipkg
751 endif
752 ifneq ($(CONFIG_PACKAGE_luci-json),)
753         PKG_SELECTED_MODULES+=libs/json
754 endif
755 ifneq ($(CONFIG_PACKAGE_luci-uci),)
756         PKG_SELECTED_MODULES+=libs/uci
757 endif
758 ifneq ($(CONFIG_PACKAGE_luci-sys),)
759         PKG_SELECTED_MODULES+=libs/sys
760 endif
761 ifneq ($(CONFIG_PACKAGE_luci-web),)
762         PKG_SELECTED_MODULES+=libs/web
763 endif
764 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
765         PKG_SELECTED_MODULES+=libs/uvl
766 endif
767
768 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
769         PKG_SELECTED_MODULES+=libs/lucittpd
770 endif
771
772 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
773         PKG_SELECTED_MODULES+=modules/admin-core
774 endif
775 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
776         PKG_SELECTED_MODULES+=modules/admin-mini
777 endif
778 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
779         PKG_SELECTED_MODULES+=modules/admin-full
780 endif
781 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
782         PKG_SELECTED_MODULES+=modules/rpc
783 endif
784 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
785         PKG_SELECTED_MODULES+=modules/freifunk
786 endif
787
788 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
789         PKG_SELECTED_MODULES+=applications/freifunk-community
790 endif
791
792 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
793         PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
794 endif
795 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
796         PKG_SELECTED_MODULES+=applications/luci-fw
797 endif
798 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
799         PKG_SELECTED_MODULES+=applications/luci-olsr
800 endif
801 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
802         PKG_SELECTED_MODULES+=applications/luci-qos
803 endif
804 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
805         PKG_SELECTED_MODULES+=applications/luci-splash
806 endif
807 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
808         PKG_SELECTED_MODULES+=applications/luci-statistics
809 endif
810 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
811         PKG_SELECTED_MODULES+=applications/luci-upnp
812 endif
813 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
814         PKG_SELECTED_MODULES+=applications/luci-ntpc
815 endif
816 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
817         PKG_SELECTED_MODULES+=applications/luci-ddns
818 endif
819 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
820         PKG_SELECTED_MODULES+=applications/luci-samba
821 endif
822 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
823         PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
824 endif
825 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
826         PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
827 endif
828 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
829         PKG_SELECTED_MODULES+=applications/luci-p910nd
830 endif
831 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
832         PKG_SELECTED_MODULES+=applications/luci-ushare
833 endif
834 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
835        PKG_SELECTED_MODULES+=applications/luci-hd_idle
836 endif
837 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
838        PKG_SELECTED_MODULES+=applications/luci-tinyproxy
839 endif
840 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
841        PKG_SELECTED_MODULES+=applications/luci-initmgr
842 endif
843 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
844        PKG_SELECTED_MODULES+=applications/luci-livestats
845 endif
846 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
847        PKG_SELECTED_MODULES+=applications/luci-polipo
848 endif
849
850
851 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
852         PKG_SELECTED_MODULES+=libs/sgi-cgi
853 endif
854 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
855         PKG_SELECTED_MODULES+=libs/sgi-luci
856 endif
857 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
858         PKG_SELECTED_MODULES+=libs/sgi-webuci
859 endif
860
861 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
862         PKG_SELECTED_MODULES+=themes/base
863 endif
864 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
865         PKG_SELECTED_MODULES+=themes/fledermaus
866 endif
867 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
868         PKG_SELECTED_MODULES+=themes/freifunk-bno
869 endif
870 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
871         PKG_SELECTED_MODULES+=themes/freifunk
872 endif
873 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
874         PKG_SELECTED_MODULES+=themes/openwrt.org
875 endif
876 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
877         PKG_SELECTED_MODULES+=themes/openwrt-light
878 endif
879
880 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
881         PKG_SELECTED_MODULES+=i18n/german
882 endif
883 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
884         PKG_SELECTED_MODULES+=i18n/english
885 endif
886 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
887         PKG_SELECTED_MODULES+=i18n/french
888 endif
889 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
890         PKG_SELECTED_MODULES+=i18n/italian
891 endif
892 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
893         PKG_SELECTED_MODULES+=i18n/russian
894 endif
895 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
896         PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
897 endif
898 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
899         PKG_SELECTED_MODULES+=i18n/japanese
900 endif
901 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
902         PKG_SELECTED_MODULES+=i18n/greek
903 endif
904
905
906 MAKE_FLAGS += \
907         MODULES="$(PKG_SELECTED_MODULES)" \
908         LUA_TARGET="$(LUA_TARGET)" \
909         LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
910         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
911         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
912         OS="Linux"
913
914
915 $(eval $(call BuildPackage,luci-core))
916 $(eval $(call BuildPackage,luci-cbi))
917 $(eval $(call BuildPackage,luci-fastindex))
918 $(eval $(call BuildPackage,luci-http))
919 $(eval $(call BuildPackage,luci-ipkg))
920 $(eval $(call BuildPackage,luci-json))
921 $(eval $(call BuildPackage,luci-uci))
922 $(eval $(call BuildPackage,luci-sys))
923 $(eval $(call BuildPackage,luci-web))
924 $(eval $(call BuildPackage,luci-uvl))
925
926 $(eval $(call BuildPackage,luci-httpd))
927
928 $(eval $(call BuildPackage,luci-admin-core))
929 $(eval $(call BuildPackage,luci-admin-mini))
930 $(eval $(call BuildPackage,luci-admin-full))
931 $(eval $(call BuildPackage,luci-admin-rpc))
932 $(eval $(call BuildPackage,luci-mod-freifunk))
933
934 $(eval $(call BuildPackage,luci-freifunk-community))
935
936 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
937 $(eval $(call BuildPackage,luci-app-firewall))
938 $(eval $(call BuildPackage,luci-app-olsr))
939 $(eval $(call BuildPackage,luci-app-qos))
940 $(eval $(call BuildPackage,luci-app-splash))
941 $(eval $(call BuildPackage,luci-app-statistics))
942 $(eval $(call BuildPackage,luci-app-upnp))
943 $(eval $(call BuildPackage,luci-app-ntpc))
944 $(eval $(call BuildPackage,luci-app-ddns))
945 $(eval $(call BuildPackage,luci-app-samba))
946 $(eval $(call BuildPackage,luci-app-uvc_streamer))
947 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
948 $(eval $(call BuildPackage,luci-app-p910nd))
949 $(eval $(call BuildPackage,luci-app-ushare))
950 $(eval $(call BuildPackage,luci-app-hd_idle))
951 $(eval $(call BuildPackage,luci-app-tinyproxy))
952 $(eval $(call BuildPackage,luci-app-initmgr))
953 $(eval $(call BuildPackage,luci-app-livestats))
954 $(eval $(call BuildPackage,luci-app-polipo))
955
956 $(eval $(call BuildPackage,luci-sgi-cgi))
957 $(eval $(call BuildPackage,luci-sgi-luci))
958 $(eval $(call BuildPackage,luci-sgi-webuci))
959
960 $(eval $(call BuildPackage,luci-theme-base))
961 $(eval $(call BuildPackage,luci-theme-fledermaus))
962 $(eval $(call BuildPackage,luci-theme-freifunk))
963 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
964 $(eval $(call BuildPackage,luci-theme-openwrt))
965 $(eval $(call BuildPackage,luci-theme-openwrtlight))
966
967 $(eval $(call BuildPackage,luci-i18n-german))
968 $(eval $(call BuildPackage,luci-i18n-english))
969 $(eval $(call BuildPackage,luci-i18n-french))
970 $(eval $(call BuildPackage,luci-i18n-italian))
971 $(eval $(call BuildPackage,luci-i18n-russian))
972 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
973 $(eval $(call BuildPackage,luci-i18n-japanese))
974 $(eval $(call BuildPackage,luci-i18n-greek))