* luci/contrib: add uvl to makefile
[project/luci.git] / contrib / package / luci / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_BRANCH:=trunk
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.7+svn
14 else
15   PKG_SOURCE_URL:=http://dev.leipzig.freifunk.net/svn/ff-luci/$(PKG_BRANCH)
16   ifeq ($(DUMP),)
17     PKG_REV:=$(shell LC_ALL=C svn info ${PKG_SOURCE_URL} | sed -ne's/^Last Changed Rev: //p')
18     PKG_VERSION:=0.7+svn$(PKG_REV)
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 (PARTLY BROKEN)
65   DEPENDS:=+luci-mod-freifunk @BROKEN
66 endef
67
68 define Package/luci/httpdtemplate
69   $(call Package/luci/libtemplate)
70   SUBMENU:=LuCI Non-Forking HTTP-Daemon (EXPERIMENTAL)
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 +luaposix +bitlib
104   TITLE:=LuCI core libraries
105 endef
106
107 define Package/luci-core/install
108         $(call Package/luci/install/template,$(1),libs/core)
109 endef
110
111 define Package/luci-core/config
112        choice
113                prompt "Build Target"
114                default PACKAGE_luci-core_source
115
116        config PACKAGE_luci-core_compile
117                bool "Precompiled"
118
119        config PACKAGE_luci-core_stripped
120                bool "Stripped"
121
122        config PACKAGE_luci-core_source
123                bool "Full Source"
124
125        endchoice
126 endef
127
128 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
129   LUA_TARGET:=compile
130 endif
131
132 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
133   LUA_TARGET:=strip
134 endif
135
136
137 ### Libraries ###
138 define Package/luci-cbi
139   $(call Package/luci/libtemplate)
140   DEPENDS+=+luci-web
141   TITLE:=Configuration Binding Interface
142 endef
143
144 define Package/luci-cbi/install
145         $(call Package/luci/install/template,$(1),libs/cbi)
146 endef
147
148
149 define Package/luci-uci
150   $(call Package/luci/libtemplate)
151   DEPENDS+=+libuci-lua
152   TITLE:=High-Level UCI API
153 endef
154
155 define Package/luci-uci/install
156         $(call Package/luci/install/template,$(1),libs/uci)
157 endef
158
159
160 define Package/luci-fastindex
161   $(call Package/luci/libtemplate)
162   TITLE:=Fastindex indexing module
163 endef
164
165 define Package/luci-fastindex/install
166         $(call Package/luci/install/template,$(1),libs/fastindex)
167 endef
168
169
170 define Package/luci-http
171   $(call Package/luci/libtemplate)
172   TITLE:=HTTP Protocol implementation
173 endef
174
175 define Package/luci-http/install
176         $(call Package/luci/install/template,$(1),libs/http)
177 endef
178
179
180 define Package/luci-ipkg
181   $(call Package/luci/libtemplate)
182   TITLE:=LuCI IPKG/OPKG call abstraction library
183 endef
184
185 define Package/luci-ipkg/install
186         $(call Package/luci/install/template,$(1),libs/ipkg)
187 endef
188
189
190 define Package/luci-sys
191   $(call Package/luci/libtemplate)
192   TITLE:=LuCI Linux/POSIX system library
193 endef
194
195 define Package/luci-sys/install
196         $(call Package/luci/install/template,$(1),libs/sys)
197 endef
198
199
200 define Package/luci-web
201   $(call Package/luci/libtemplate)
202   DEPENDS+=+luci-http +luci-sys +luci-addons +luci-uci +luci-sgi-cgi
203   TITLE:=MVC Webframework
204 endef
205
206 define Package/luci-web/conffiles
207 /etc/config/luci
208 endef
209
210 define Package/luci-web/install
211         $(call Package/luci/install/template,$(1),libs/web)
212 endef
213
214
215 define Package/luci-uvl
216   $(call Package/luci/libtemplate)
217   DEPENDS+=+luci-sys +luci-uci +luci-core
218   TITLE:=UVL - UCI Validation Layer
219 endef
220
221 define Package/luci-uvl/install
222         $(call Package/luci/install/template,$(1),libs/uvl)
223 endef
224
225
226
227 ### HTTPD ###
228
229 define Package/luci-httpd
230   $(call Package/luci/httpdtemplate)
231   DEPENDS:=+luci-http +luasocket
232   TITLE:=Server Core
233 endef
234
235 define Package/luci-httpd/install
236         $(call Package/luci/install/template,$(1),libs/httpd)
237 endef
238
239
240
241 ### Community Packages ###
242
243 define Package/luci-ff-halle
244   $(call Package/luci/fftemplate)
245   DEPENDS+= \
246    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
247    +luci-app-ffwizard-leipzig \
248    +luci-theme-fledermaus \
249    +luci-i18n-german \
250    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
251    +kmod-tun +ip
252   TITLE:=Freifunk Halle Community Meta-Package
253 endef
254
255 define Package/luci-ff-halle/install
256         $(call Package/luci/install/template,$(1),applications/community-halle)
257 endef
258
259
260 define Package/luci-ff-leipzig
261   $(call Package/luci/fftemplate)
262   DEPENDS+= \
263    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
264    +luci-app-ffwizard-leipzig \
265    +luci-theme-fledermaus \
266    +luci-i18n-german \
267    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
268    +kmod-tun +ip
269   TITLE:=Freifunk Leipzig Community Meta-Package
270 endef
271
272 define Package/luci-ff-leipzig/install
273         $(call Package/luci/install/template,$(1),applications/community-leipzig)
274 endef
275
276
277 define Package/luci-ff-hannover
278   $(call Package/luci/fftemplate)
279   DEPENDS+= \
280    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
281    +luci-theme-fledermaus \
282    +luci-i18n-german \
283    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
284   TITLE:=Freifunk Hannover Community Meta-Package
285   URL:=http://www.freifunk-hannover.de/
286   MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
287 endef
288
289 define Package/luci-ff-hannover/install
290         $(call Package/luci/install/template,$(1),applications/community-hannover)
291 endef
292
293
294 define Package/luci-ff-berlin
295   $(call Package/luci/fftemplate)
296   DEPENDS+= \
297    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
298    +luci-theme-fledermaus \
299    +luci-i18n-german \
300    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
301   TITLE:=Freifunk Berlin Community Meta-Package
302 endef
303
304 define Package/luci-ff-berlin/install
305         $(call Package/luci/install/template,$(1),applications/community-berlin)
306 endef
307
308 define Package/luci-ff-augsburg
309   $(call Package/luci/fftemplate)
310   DEPENDS+= \
311    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
312    +luci-theme-fledermaus \
313    +luci-i18n-german \
314    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
315   TITLE:=Freifunk Augsburg Community Meta-Package
316 endef
317
318 define Package/luci-ff-augsburg/install
319         $(call Package/luci/install/template,$(1),applications/community-augsburg)
320 endef
321
322 ### Modules ###
323
324 define Package/luci-admin-core
325   $(call Package/luci/webtemplate)
326   DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
327   TITLE:=Web UI Core Module
328 endef
329
330 define Package/luci-admin-core/install
331         $(call Package/luci/install/template,$(1),modules/admin-core)
332 endef
333
334
335 define Package/luci-admin-mini
336   $(call Package/luci/webtemplate)
337   DEPENDS+=+luci-admin-core
338   TITLE:=LuCI Essentials - casual user's interface
339 endef
340
341 define Package/luci-admin-mini/install
342         $(call Package/luci/install/template,$(1),modules/admin-mini)
343 endef
344
345
346 define Package/luci-admin-full
347   $(call Package/luci/webtemplate)
348   DEPENDS+=+luci-admin-core +luci-ipkg
349   TITLE:=LuCI Administration - power user's interface
350 endef
351
352 define Package/luci-admin-full/install
353         $(call Package/luci/install/template,$(1),modules/admin-full)
354 endef
355
356
357 define Package/luci-mod-freifunk
358   $(call Package/luci/fftemplate)
359   DEPENDS:=+luci-admin-full
360   TITLE:=LuCI Freifunk module
361 endef
362
363 define Package/luci-mod-freifunk/conffiles
364 /etc/config/freifunk
365 endef
366
367 define Package/luci-mod-freifunk/install
368         $(call Package/luci/install/template,$(1),modules/freifunk)
369 endef
370
371
372
373 ### Applications ###
374
375 define Package/luci-app-ffwizard-leipzig
376   $(call Package/luci/fftemplate)
377   DEPENDS+=+luci-app-firewall
378   TITLE:=Freifunk Leipzig configuration wizard
379 endef
380
381 define Package/luci-app-ffwizard-leipzig/install
382         $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
383 endef
384
385
386 define Package/luci-app-firewall
387   $(call Package/luci/webtemplate)
388   DEPENDS+=+luci-admin-core +firewall
389   TITLE:=Firewall and Portforwarding application
390 endef
391
392 define Package/luci-app-firewall/install
393         $(call Package/luci/install/template,$(1),applications/luci-fw)
394 endef
395
396
397 define Package/luci-app-olsr
398   $(call Package/luci/webtemplate)
399   DEPENDS+=+luci-admin-full +olsrd +olsrd-mod-txtinfo
400   TITLE:=OLSR configuration and status module
401 endef
402
403 define Package/luci-app-olsr/install
404         $(call Package/luci/install/template,$(1),applications/luci-olsr)
405 endef
406
407
408 define Package/luci-app-qos
409   $(call Package/luci/webtemplate)
410   DEPENDS+=+luci-admin-core +qos-scripts
411   TITLE:=Quality of Service configuration module
412 endef
413
414 define Package/luci-app-qos/install
415         $(call Package/luci/install/template,$(1),applications/luci-qos)
416 endef
417
418
419 define Package/luci-app-splash
420   $(call Package/luci/fftemplate)
421   DEPENDS+=+luasocket +luci-app-firewall
422   TITLE:=Freifunk DHCP-Splash application
423 endef
424
425 define Package/luci-app-splash/conffiles
426 /etc/config/luci_splash
427 endef
428
429 define Package/luci-app-splash/install
430         $(call Package/luci/install/template,$(1),applications/luci-splash)
431 endef
432
433
434 define Package/luci-app-statistics
435   $(call Package/luci/webtemplate)
436   DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
437   TITLE:=LuCI Statistics Application
438 endef
439
440 define Package/luci-app-statistics/conffiles
441 /etc/config/luci_statistics
442 endef
443
444 define Package/luci-app-statistics/install
445         $(call Package/luci/install/template,$(1),applications/luci-statistics)
446 endef
447
448
449 define Package/luci-app-upnp
450   $(call Package/luci/webtemplate)
451   DEPENDS+=+luci-admin-core +miniupnpd
452   TITLE:=Universal Plug & Play configuration module
453 endef
454
455 define Package/luci-app-upnp/install
456         $(call Package/luci/install/template,$(1),applications/luci-upnp)
457 endef
458
459
460 define Package/luci-app-ntpc
461   $(call Package/luci/webtemplate)
462   DEPENDS+=+luci-admin-core +ntpclient
463   TITLE:=NTP time synchronisation client configuration module
464 endef
465
466 define Package/luci-app-ntpc/install
467         $(call Package/luci/install/template,$(1),applications/luci-ntpc)
468 endef
469
470
471 define Package/luci-app-ddns
472   $(call Package/luci/webtemplate)
473   DEPENDS+=+luci-admin-core +ddns-scripts
474   TITLE:=Dynamic DNS configuration module
475 endef
476
477 define Package/luci-app-ddns/install
478         $(call Package/luci/install/template,$(1),applications/luci-ddns)
479 endef
480
481
482 define Package/luci-app-samba
483   $(call Package/luci/webtemplate)
484   DEPENDS+=+luci-admin-full +samba3
485   TITLE:=Network Shares - Samba SMB/CIFS module
486 endef
487
488 define Package/luci-app-samba/install
489         $(call Package/luci/install/template,$(1),applications/luci-samba)
490 endef
491
492
493 ### Server Gateway Interfaces ###
494
495 define Package/luci-sgi-cgi
496   $(call Package/luci/libtemplate)
497   TITLE:=SGI for CGI
498 endef
499
500 define Package/luci-sgi-cgi/install
501         $(call Package/luci/install/template,$(1),libs/sgi-cgi)
502 endef
503
504 define Package/luci-sgi-luci
505   $(call Package/luci/libtemplate)
506   DEPENDS+=+luci-httpd
507   TITLE:=SGI for LuCI HTTPD
508 endef
509
510 define Package/luci-sgi-luci/install
511         $(call Package/luci/install/template,$(1),libs/sgi-luci)
512 endef
513
514 define Package/luci-sgi-webuci
515   $(call Package/luci/libtemplate)
516   TITLE:=SGI for Webuci
517 endef
518
519 define Package/luci-sgi-webuci/install
520         $(call Package/luci/install/template,$(1),libs/sgi-webuci)
521 endef
522
523 ### Themes ###
524 define Package/luci-theme-fledermaus
525   $(call Package/luci/fftemplate)
526   DEPENDS:=+luci-web
527   TITLE:=Fledermaus Theme
528 endef
529
530 define Package/luci-theme-fledermaus/install
531         $(call Package/luci/install/template,$(1),themes/fledermaus)
532 endef
533
534 define Package/luci-theme-openwrt
535   $(call Package/luci/thtemplate)
536   TITLE:=OpenWRT.org (default)
537 endef
538
539 define Package/luci-theme-openwrt/install
540         $(call Package/luci/install/template,$(1),themes/openwrt.org)
541 endef
542
543 define Package/luci-theme-openwrtlight
544   $(call Package/luci/thtemplate)
545   TITLE:=OpenWRT.org - light variant without images
546 endef
547
548 define Package/luci-theme-openwrtlight/install
549         $(call Package/luci/install/template,$(1),themes/openwrt-light)
550 endef
551
552
553 ### Translations ###
554 define Package/luci-i18n-german
555   $(call Package/luci/i18ntemplate)
556   TITLE:=German
557 endef
558
559 define Package/luci-i18n-german/install
560         $(call Package/luci/install/template,$(1),i18n/german)
561 endef
562
563
564 define Package/luci-i18n-english
565   $(call Package/luci/i18ntemplate)
566   TITLE:=English
567 endef
568
569 define Package/luci-i18n-english/install
570         $(call Package/luci/install/template,$(1),i18n/english)
571 endef
572
573
574 define Package/luci-i18n-french
575   $(call Package/luci/i18ntemplate)
576   TITLE:=French (by Florian Fainelli)
577 endef
578
579 define Package/luci-i18n-french/install
580         $(call Package/luci/install/template,$(1),i18n/french)
581 endef
582
583
584 define Package/luci-i18n-russian
585   $(call Package/luci/i18ntemplate)
586   TITLE:=Russian (by Skryabin Dmitry)
587 endef
588
589 define Package/luci-i18n-russian/install
590         $(call Package/luci/install/template,$(1),i18n/russian)
591 endef
592
593
594
595 ### Compile ###
596 ifneq ($(CONFIG_PACKAGE_luci-core),)
597         PKG_SELECTED_MODULES+=libs/core
598 endif
599 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
600         PKG_SELECTED_MODULES+=libs/cbi
601 endif
602 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
603         PKG_SELECTED_MODULES+=libs/fastindex
604 endif
605 ifneq ($(CONFIG_PACKAGE_luci-http),)
606         PKG_SELECTED_MODULES+=libs/http
607 endif
608 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
609         PKG_SELECTED_MODULES+=libs/ipkg
610 endif
611 ifneq ($(CONFIG_PACKAGE_luci-uci),)
612         PKG_SELECTED_MODULES+=libs/uci
613 endif
614 ifneq ($(CONFIG_PACKAGE_luci-sys),)
615         PKG_SELECTED_MODULES+=libs/sys
616 endif
617 ifneq ($(CONFIG_PACKAGE_luci-web),)
618         PKG_SELECTED_MODULES+=libs/web
619 endif
620 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
621         PKG_SELECTED_MODULES+=libs/uvl
622 endif
623
624 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
625         PKG_SELECTED_MODULES+=libs/httpd
626 endif
627
628 ifneq ($(CONFIG_PACKAGE_luci-ff-halle),)
629         PKG_SELECTED_MODULES+=applications/community-halle
630 endif
631 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig),)
632         PKG_SELECTED_MODULES+=applications/community-leipzig
633 endif
634 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover),)
635         PKG_SELECTED_MODULES+=applications/community-hannover
636 endif
637 ifneq ($(CONFIG_PACKAGE_luci-ff-berlin),)
638         PKG_SELECTED_MODULES+=applications/community-berlin
639 endif
640 ifneq ($(CONFIG_PACKAGE_luci-ff-augsburg),)
641         PKG_SELECTED_MODULES+=applications/community-augsburg
642 endif
643
644 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
645         PKG_SELECTED_MODULES+=modules/admin-core
646 endif
647 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
648         PKG_SELECTED_MODULES+=modules/admin-mini
649 endif
650 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
651         PKG_SELECTED_MODULES+=modules/admin-full
652 endif
653 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
654         PKG_SELECTED_MODULES+=modules/freifunk
655 endif
656
657 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
658         PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
659 endif
660 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
661         PKG_SELECTED_MODULES+=applications/luci-fw
662 endif
663 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
664         PKG_SELECTED_MODULES+=applications/luci-olsr
665 endif
666 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
667         PKG_SELECTED_MODULES+=applications/luci-qos
668 endif
669 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
670         PKG_SELECTED_MODULES+=applications/luci-splash
671 endif
672 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
673         PKG_SELECTED_MODULES+=applications/luci-statistics
674 endif
675 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
676         PKG_SELECTED_MODULES+=applications/luci-upnp
677 endif
678 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
679         PKG_SELECTED_MODULES+=applications/luci-ntpc
680 endif
681 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
682         PKG_SELECTED_MODULES+=applications/luci-ddns
683 endif
684 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
685         PKG_SELECTED_MODULES+=applications/luci-samba
686 endif
687
688
689 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
690         PKG_SELECTED_MODULES+=libs/sgi-cgi
691 endif
692 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
693         PKG_SELECTED_MODULES+=libs/sgi-luci
694 endif
695 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
696         PKG_SELECTED_MODULES+=libs/sgi-webuci
697 endif
698
699 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
700         PKG_SELECTED_MODULES+=themes/fledermaus
701 endif
702 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
703         PKG_SELECTED_MODULES+=themes/openwrt.org
704 endif
705 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
706         PKG_SELECTED_MODULES+=themes/openwrt-light
707 endif
708
709 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
710         PKG_SELECTED_MODULES+=i18n/german
711 endif
712 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
713         PKG_SELECTED_MODULES+=i18n/english
714 endif
715 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
716         PKG_SELECTED_MODULES+=i18n/french
717 endif
718 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
719         PKG_SELECTED_MODULES+=i18n/russian
720 endif
721
722
723 MAKE_FLAGS += \
724         MODULES="$(PKG_SELECTED_MODULES)" \
725         LUA_TARGET="$(LUA_TARGET)" \
726         LUA_SHLIBS="-llua -lm" \
727         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
728         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
729         OS="Linux"
730
731
732 $(eval $(call BuildPackage,luci-core))
733 $(eval $(call BuildPackage,luci-cbi))
734 $(eval $(call BuildPackage,luci-fastindex))
735 $(eval $(call BuildPackage,luci-http))
736 $(eval $(call BuildPackage,luci-ipkg))
737 $(eval $(call BuildPackage,luci-uci))
738 $(eval $(call BuildPackage,luci-sys))
739 $(eval $(call BuildPackage,luci-web))
740 $(eval $(call BuildPackage,luci-uvl))
741
742 $(eval $(call BuildPackage,luci-httpd))
743
744 $(eval $(call BuildPackage,luci-ff-halle))
745 $(eval $(call BuildPackage,luci-ff-leipzig))
746 $(eval $(call BuildPackage,luci-ff-hannover))
747 $(eval $(call BuildPackage,luci-ff-berlin))
748 $(eval $(call BuildPackage,luci-ff-augsburg))
749
750 $(eval $(call BuildPackage,luci-admin-core))
751 $(eval $(call BuildPackage,luci-admin-mini))
752 $(eval $(call BuildPackage,luci-admin-full))
753 $(eval $(call BuildPackage,luci-mod-freifunk))
754
755 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
756 $(eval $(call BuildPackage,luci-app-firewall))
757 $(eval $(call BuildPackage,luci-app-olsr))
758 $(eval $(call BuildPackage,luci-app-qos))
759 $(eval $(call BuildPackage,luci-app-splash))
760 $(eval $(call BuildPackage,luci-app-statistics))
761 $(eval $(call BuildPackage,luci-app-upnp))
762 $(eval $(call BuildPackage,luci-app-ntpc))
763 $(eval $(call BuildPackage,luci-app-ddns))
764 $(eval $(call BuildPackage,luci-app-samba))
765
766 $(eval $(call BuildPackage,luci-sgi-cgi))
767 $(eval $(call BuildPackage,luci-sgi-luci))
768 $(eval $(call BuildPackage,luci-sgi-webuci))
769
770 $(eval $(call BuildPackage,luci-theme-fledermaus))
771 $(eval $(call BuildPackage,luci-theme-openwrt))
772 $(eval $(call BuildPackage,luci-theme-openwrtlight))
773
774 $(eval $(call BuildPackage,luci-i18n-german))
775 $(eval $(call BuildPackage,luci-i18n-english))
776 $(eval $(call BuildPackage,luci-i18n-french))
777 $(eval $(call BuildPackage,luci-i18n-russian))