add Italian translation package
[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.9+svn
14 else
15 PKG_SOURCE_URL:=http://svn.luci.subsignal.org/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.9+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 (GERMAN ONLY)
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 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 +luci-uvl +luci-uci
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-json
191 $(call Package/luci/libtemplate)
192 TITLE:=LuCI JSON Library
193 endef
194
195 define Package/luci-json/install
196 $(call Package/luci/install/template,$(1),libs/json)
197 endef
198
199
200 define Package/luci-sys
201 $(call Package/luci/libtemplate)
202 TITLE:=LuCI Linux/POSIX system library
203 endef
204
205 define Package/luci-sys/install
206 $(call Package/luci/install/template,$(1),libs/sys)
207 endef
208
209
210 define Package/luci-web
211 $(call Package/luci/libtemplate)
212 DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
213 TITLE:=MVC Webframework
214 endef
215
216 define Package/luci-web/conffiles
217 /etc/config/luci
218 endef
219
220 define Package/luci-web/install
221 $(call Package/luci/install/template,$(1),libs/web)
222 endef
223
224
225 define Package/luci-uvl
226 $(call Package/luci/libtemplate)
227 DEPENDS+=+luci-sys +luci-uci +luci-core
228 TITLE:=UVL - UCI Validation Layer
229 endef
230
231 define Package/luci-uvl/install
232 $(call Package/luci/install/template,$(1),libs/uvl)
233 endef
234
235
236
237 ### HTTPD ###
238
239 define Package/luci-httpd
240 $(call Package/luci/httpdtemplate)
241 DEPENDS:=+luci-http +libuci
242 TITLE:=Server Core
243 endef
244
245 define Package/luci-httpd/install
246 $(call Package/luci/install/template,$(1),libs/lucittpd)
247 endef
248
249
250
251 ### Community Packages ###
252
253 define Package/luci-freifunk-community
254 $(call Package/luci/fftemplate)
255 DEPENDS+= \
256 +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
257 +luci-app-ffwizard-leipzig \
258 +luci-theme-fledermaus \
259 +luci-i18n-german \
260 +olsrd-luci +olsrd-luci-mod-dyn-gw +olsrd-luci-mod-txtinfo +olsrd-luci-mod-nameservice \
261 +kmod-tun +ip
262 TITLE:=Freifunk Community Meta-Package
263 endef
264
265 define Package/luci-freifunk-community/install
266 $(call Package/luci/install/template,$(1),applications/freifunk-community)
267 endef
268
269 ### Modules ###
270
271 define Package/luci-admin-core
272 $(call Package/luci/webtemplate)
273 DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
274 TITLE:=Web UI Core Module
275 endef
276
277 define Package/luci-admin-core/conffiles
278 /etc/config/luci_hosts
279 /etc/config/luci_ethers
280 endef
281
282 define Package/luci-admin-core/install
283 $(call Package/luci/install/template,$(1),modules/admin-core)
284 endef
285
286
287 define Package/luci-admin-mini
288 $(call Package/luci/webtemplate)
289 DEPENDS+=+luci-admin-core
290 TITLE:=LuCI Essentials - stripped down and user-friendly
291 endef
292
293 define Package/luci-admin-mini/install
294 $(call Package/luci/install/template,$(1),modules/admin-mini)
295 endef
296
297
298 define Package/luci-admin-full
299 $(call Package/luci/webtemplate)
300 DEPENDS+=+luci-admin-core +luci-ipkg +luci-app-firewall
301 TITLE:=LuCI Administration - full-featured for full control
302 endef
303
304 define Package/luci-admin-full/install
305 $(call Package/luci/install/template,$(1),modules/admin-full)
306 endef
307
308
309 define Package/luci-admin-rpc
310 $(call Package/luci/webtemplate)
311 DEPENDS+=+luci-json
312 TITLE:=LuCI RPC - JSON-RPC API
313 endef
314
315 define Package/luci-admin-rpc/install
316 $(call Package/luci/install/template,$(1),modules/rpc)
317 endef
318
319
320 define Package/luci-mod-freifunk
321 $(call Package/luci/fftemplate)
322 DEPENDS:=+luci-admin-full
323 TITLE:=LuCI Freifunk module
324 endef
325
326 define Package/luci-mod-freifunk/conffiles
327 /etc/config/freifunk
328 endef
329
330 define Package/luci-mod-freifunk/install
331 $(call Package/luci/install/template,$(1),modules/freifunk)
332 endef
333
334
335
336 ### Applications ###
337
338 define Package/luci-app-ffwizard-leipzig
339 $(call Package/luci/fftemplate)
340 TITLE:=Freifunk Leipzig configuration wizard
341 endef
342
343 define Package/luci-app-ffwizard-leipzig/install
344 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
345 endef
346
347
348 define Package/luci-app-siitwizard
349 $(call Package/luci/fftemplate)
350 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
351 endef
352
353 define Package/luci-app-siitwizard/install
354 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
355 endef
356
357
358 define Package/luci-app-firewall
359 $(call Package/luci/webtemplate)
360 DEPENDS+=+luci-admin-core
361 TITLE:=Firewall and Portforwarding application
362 endef
363
364 define Package/luci-app-firewall/install
365 $(call Package/luci/install/template,$(1),applications/luci-fw)
366 endef
367
368
369 define Package/luci-app-olsr
370 $(call Package/luci/webtemplate)
371 DEPENDS+=+luci-admin-full +olsrd-luci +olsrd-luci-mod-txtinfo
372 TITLE:=OLSR configuration and status module
373 endef
374
375 define Package/luci-app-olsr/install
376 $(call Package/luci/install/template,$(1),applications/luci-olsr)
377 endef
378
379
380 define Package/luci-app-qos
381 $(call Package/luci/webtemplate)
382 DEPENDS+=+luci-admin-core +qos-scripts
383 TITLE:=Quality of Service configuration module
384 endef
385
386 define Package/luci-app-qos/install
387 $(call Package/luci/install/template,$(1),applications/luci-qos)
388 endef
389
390
391 define Package/luci-app-splash
392 $(call Package/luci/fftemplate)
393 DEPENDS+=+luasocket
394 TITLE:=Freifunk DHCP-Splash application
395 endef
396
397 define Package/luci-app-splash/conffiles
398 /etc/config/luci_splash
399 endef
400
401 define Package/luci-app-splash/install
402 $(call Package/luci/install/template,$(1),applications/luci-splash)
403 endef
404
405
406 define Package/luci-app-statistics
407 $(call Package/luci/webtemplate)
408 DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
409 TITLE:=LuCI Statistics Application
410 endef
411
412 define Package/luci-app-statistics/conffiles
413 /etc/config/luci_statistics
414 endef
415
416 define Package/luci-app-statistics/install
417 $(call Package/luci/install/template,$(1),applications/luci-statistics)
418 endef
419
420
421 define Package/luci-app-upnp
422 $(call Package/luci/webtemplate)
423 DEPENDS+=+luci-admin-core +miniupnpd
424 TITLE:=Universal Plug & Play configuration module
425 endef
426
427 define Package/luci-app-upnp/install
428 $(call Package/luci/install/template,$(1),applications/luci-upnp)
429 endef
430
431
432 define Package/luci-app-ntpc
433 $(call Package/luci/webtemplate)
434 DEPENDS+=+luci-admin-core +ntpclient
435 TITLE:=NTP time synchronisation client configuration module
436 endef
437
438 define Package/luci-app-ntpc/install
439 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
440 endef
441
442
443 define Package/luci-app-ddns
444 $(call Package/luci/webtemplate)
445 DEPENDS+=+luci-admin-core +ddns-scripts
446 TITLE:=Dynamic DNS configuration module
447 endef
448
449 define Package/luci-app-ddns/install
450 $(call Package/luci/install/template,$(1),applications/luci-ddns)
451 endef
452
453
454 define Package/luci-app-samba
455 $(call Package/luci/webtemplate)
456 DEPENDS+=+luci-admin-full +samba3
457 TITLE:=Network Shares - Samba SMB/CIFS module
458 endef
459
460 define Package/luci-app-samba/install
461 $(call Package/luci/install/template,$(1),applications/luci-samba)
462 endef
463
464
465 define Package/luci-app-uvc_streamer
466 $(call Package/luci/webtemplate)
467 DEPENDS+=+luci-admin-full +uvc-streamer
468 TITLE:=Webcam Streaming - UVC-Streamer module
469 endef
470
471 define Package/luci-app-uvc_streamer/install
472 $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
473 endef
474
475
476 define Package/luci-app-mmc_over_gpio
477 $(call Package/luci/webtemplate)
478 DEPENDS+=+luci-admin-full +kmod-mmc-over-gpio
479 TITLE:=mmc_over_gpio
480 endef
481
482 define Package/luci-app-mmc_over_gpio/install
483 $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
484 endef
485
486
487 define Package/luci-app-p910nd
488 $(call Package/luci/webtemplate)
489 DEPENDS+=+luci-admin-full +p910nd
490 TITLE:=p910nd - Printer server module
491 endef
492
493 define Package/luci-app-p910nd/install
494 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
495 endef
496
497
498 define Package/luci-app-ushare
499 $(call Package/luci/webtemplate)
500 DEPENDS+=+luci-admin-full +ushare
501 TITLE:=ushare - UPnP A/V & DLNA Media Server
502 endef
503
504 define Package/luci-app-ushare/install
505 $(call Package/luci/install/template,$(1),applications/luci-ushare)
506 endef
507
508 define Package/luci-app-hd_idle
509 $(call Package/luci/webtemplate)
510 DEPENDS+=+luci-admin-full +hd-idle
511 TITLE:=hd-idle
512 endef
513
514 define Package/luci-app-hd_idle/install
515 $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
516 endef
517
518 define Package/luci-app-tinyproxy
519 $(call Package/luci/webtemplate)
520 DEPENDS+=+luci-admin-full +tinyproxy
521 TITLE:=Tinyproxy - HTTP(S)-Proxy
522 endef
523
524 define Package/luci-app-tinyproxy/install
525 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
526 endef
527
528 define Package/luci-app-initmgr
529 $(call Package/luci/webtemplate)
530 DEPENDS+=+luci-admin-full
531 TITLE:=LuCI Initscript Management
532 endef
533
534 define Package/luci-app-initmgr/install
535 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
536 endef
537
538 define Package/luci-app-livestats
539 $(call Package/luci/webtemplate)
540 DEPENDS+=+luci-admin-core +luci-admin-rpc
541 TITLE:=LuCI Realtime Statistics
542 endef
543
544 define Package/luci-app-livestats/install
545 $(call Package/luci/install/template,$(1),applications/luci-livestats)
546 endef
547
548 define Package/luci-app-asterisk
549 $(call Package/luci/webtemplate)
550 TITLE:=LuCI Support for Asterisk PBX (Incomplete)
551 endef
552
553 define Package/luci-app-asterisk/install
554 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
555 endef
556
557 define Package/luci-app-polipo
558 $(call Package/luci/webtemplate)
559 TITLE:=LuCI Support for the Polipo Proxy
560 DEPENDS+=+luci-admin-core +polipo
561 endef
562
563 define Package/luci-app-polipo/install
564 $(call Package/luci/install/template,$(1),applications/luci-polipo)
565 endef
566
567 define Package/luci-app-openvpn
568 $(call Package/luci/webtemplate)
569 TITLE:=LuCI Support for OpenVPN
570 DEPENDS+=@BROKEN +luci-admin-core +openvpn
571 endef
572
573 define Package/luci-app-openvpn/install
574 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
575 endef
576
577
578 ### Server Gateway Interfaces ###
579
580 define Package/luci-sgi-cgi
581 $(call Package/luci/libtemplate)
582 TITLE:=SGI for CGI
583 endef
584
585 define Package/luci-sgi-cgi/install
586 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
587 endef
588
589 define Package/luci-sgi-luci
590 $(call Package/luci/libtemplate)
591 DEPENDS+=+luci-httpd
592 TITLE:=SGI for LuCIttpd
593 endef
594
595 define Package/luci-sgi-luci/install
596 $(call Package/luci/install/template,$(1),libs/sgi-luci)
597 endef
598
599 define Package/luci-sgi-webuci
600 $(call Package/luci/libtemplate)
601 TITLE:=SGI for Webuci
602 endef
603
604 define Package/luci-sgi-webuci/install
605 $(call Package/luci/install/template,$(1),libs/sgi-webuci)
606 endef
607
608 ### Themes ###
609 define Package/luci-theme-base
610 $(call Package/luci/thtemplate)
611 DEPENDS:=+luci-web
612 TITLE:=Common base for all themes
613 endef
614
615 define Package/luci-theme-base/install
616 $(call Package/luci/install/template,$(1),themes/base)
617 endef
618
619 define Package/luci-theme-fledermaus
620 $(call Package/luci/fftemplate)
621 DEPENDS:=+luci-web
622 TITLE:=Fledermaus Theme
623 endef
624
625 define Package/luci-theme-fledermaus/install
626 $(call Package/luci/install/template,$(1),themes/fledermaus)
627 endef
628
629 define Package/luci-theme-freifunk
630 $(call Package/luci/thtemplate)
631 DEPENDS:=+luci-web
632 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
633 TITLE:=alternative Freifunk Theme
634 endef
635
636 define Package/luci-theme-freifunk/install
637 $(call Package/luci/install/template,$(1),themes/freifunk)
638 endef
639
640 define Package/luci-theme-freifunk-bno
641 $(call Package/luci/thtemplate)
642 DEPENDS:=+luci-web
643 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
644 TITLE:=Freifunk Berlin Nordost Theme
645 endef
646
647 define Package/luci-theme-freifunk-bno/install
648 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
649 endef
650
651 define Package/luci-theme-openwrt
652 $(call Package/luci/thtemplate)
653 TITLE:=OpenWrt.org (default)
654 DEPENDS:=+luci-theme-base
655 endef
656
657 define Package/luci-theme-openwrt/install
658 $(call Package/luci/install/template,$(1),themes/openwrt.org)
659 endef
660
661 define Package/luci-theme-openwrtlight
662 $(call Package/luci/thtemplate)
663 TITLE:=OpenWrt.org - light variant without images
664 DEPENDS:=+luci-theme-base
665 endef
666
667 define Package/luci-theme-openwrtlight/install
668 $(call Package/luci/install/template,$(1),themes/openwrt-light)
669 endef
670
671
672 ### Translations ###
673 define Package/luci-i18n-german
674 $(call Package/luci/i18ntemplate)
675 TITLE:=German
676 endef
677
678 define Package/luci-i18n-german/install
679 $(call Package/luci/install/template,$(1),i18n/german)
680 endef
681
682
683 define Package/luci-i18n-english
684 $(call Package/luci/i18ntemplate)
685 TITLE:=English
686 endef
687
688 define Package/luci-i18n-english/install
689 $(call Package/luci/install/template,$(1),i18n/english)
690 endef
691
692
693 define Package/luci-i18n-french
694 $(call Package/luci/i18ntemplate)
695 TITLE:=French (by Florian Fainelli)
696 endef
697
698 define Package/luci-i18n-french/install
699 $(call Package/luci/install/template,$(1),i18n/french)
700 endef
701
702
703 define Package/luci-i18n-italian
704 $(call Package/luci/i18ntemplate)
705 TITLE:=Italian (by Matteo Croce)
706 endef
707
708 define Package/luci-i18n-italian/install
709 $(call Package/luci/install/template,$(1),i18n/italian)
710 endef
711
712
713 define Package/luci-i18n-russian
714 $(call Package/luci/i18ntemplate)
715 TITLE:=Russian (by Skryabin Dmitry)
716 endef
717
718 define Package/luci-i18n-russian/install
719 $(call Package/luci/install/template,$(1),i18n/russian)
720 endef
721
722
723 define Package/luci-i18n-portuguese_brazilian
724 $(call Package/luci/i18ntemplate)
725 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
726 endef
727
728 define Package/luci-i18n-portuguese_brazilian/install
729 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
730 endef
731
732
733 ### Compile ###
734 ifneq ($(CONFIG_PACKAGE_luci-core),)
735 PKG_SELECTED_MODULES+=libs/core
736 endif
737 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
738 PKG_SELECTED_MODULES+=libs/cbi
739 endif
740 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
741 PKG_SELECTED_MODULES+=libs/fastindex
742 endif
743 ifneq ($(CONFIG_PACKAGE_luci-http),)
744 PKG_SELECTED_MODULES+=libs/http
745 endif
746 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
747 PKG_SELECTED_MODULES+=libs/ipkg
748 endif
749 ifneq ($(CONFIG_PACKAGE_luci-json),)
750 PKG_SELECTED_MODULES+=libs/json
751 endif
752 ifneq ($(CONFIG_PACKAGE_luci-uci),)
753 PKG_SELECTED_MODULES+=libs/uci
754 endif
755 ifneq ($(CONFIG_PACKAGE_luci-sys),)
756 PKG_SELECTED_MODULES+=libs/sys
757 endif
758 ifneq ($(CONFIG_PACKAGE_luci-web),)
759 PKG_SELECTED_MODULES+=libs/web
760 endif
761 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
762 PKG_SELECTED_MODULES+=libs/uvl
763 endif
764
765 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
766 PKG_SELECTED_MODULES+=libs/lucittpd
767 endif
768
769 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
770 PKG_SELECTED_MODULES+=modules/admin-core
771 endif
772 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
773 PKG_SELECTED_MODULES+=modules/admin-mini
774 endif
775 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
776 PKG_SELECTED_MODULES+=modules/admin-full
777 endif
778 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
779 PKG_SELECTED_MODULES+=modules/rpc
780 endif
781 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
782 PKG_SELECTED_MODULES+=modules/freifunk
783 endif
784
785 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
786 PKG_SELECTED_MODULES+=applications/freifunk-community
787 endif
788
789 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
790 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
791 endif
792 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
793 PKG_SELECTED_MODULES+=applications/luci-siitwizard
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-asterisk),)
847 PKG_SELECTED_MODULES+=applications/luci-asterisk
848 endif
849 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
850 PKG_SELECTED_MODULES+=applications/luci-polipo
851 endif
852 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
853 PKG_SELECTED_MODULES+=applications/luci-openvpn
854 endif
855
856
857 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
858 PKG_SELECTED_MODULES+=libs/sgi-cgi
859 endif
860 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
861 PKG_SELECTED_MODULES+=libs/sgi-luci
862 endif
863 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
864 PKG_SELECTED_MODULES+=libs/sgi-webuci
865 endif
866
867 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
868 PKG_SELECTED_MODULES+=themes/base
869 endif
870 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
871 PKG_SELECTED_MODULES+=themes/fledermaus
872 endif
873 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
874 PKG_SELECTED_MODULES+=themes/freifunk-bno
875 endif
876 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
877 PKG_SELECTED_MODULES+=themes/freifunk
878 endif
879 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
880 PKG_SELECTED_MODULES+=themes/openwrt.org
881 endif
882 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
883 PKG_SELECTED_MODULES+=themes/openwrt-light
884 endif
885
886 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
887 PKG_SELECTED_MODULES+=i18n/german
888 endif
889 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
890 PKG_SELECTED_MODULES+=i18n/english
891 endif
892 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
893 PKG_SELECTED_MODULES+=i18n/french
894 endif
895 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
896 PKG_SELECTED_MODULES+=i18n/italian
897 endif
898 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
899 PKG_SELECTED_MODULES+=i18n/russian
900 endif
901 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
902 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
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-siitwizard))
938 $(eval $(call BuildPackage,luci-app-firewall))
939 $(eval $(call BuildPackage,luci-app-olsr))
940 $(eval $(call BuildPackage,luci-app-qos))
941 $(eval $(call BuildPackage,luci-app-splash))
942 $(eval $(call BuildPackage,luci-app-statistics))
943 $(eval $(call BuildPackage,luci-app-upnp))
944 $(eval $(call BuildPackage,luci-app-ntpc))
945 $(eval $(call BuildPackage,luci-app-ddns))
946 $(eval $(call BuildPackage,luci-app-samba))
947 $(eval $(call BuildPackage,luci-app-uvc_streamer))
948 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
949 $(eval $(call BuildPackage,luci-app-p910nd))
950 $(eval $(call BuildPackage,luci-app-ushare))
951 $(eval $(call BuildPackage,luci-app-hd_idle))
952 $(eval $(call BuildPackage,luci-app-tinyproxy))
953 $(eval $(call BuildPackage,luci-app-initmgr))
954 $(eval $(call BuildPackage,luci-app-livestats))
955 $(eval $(call BuildPackage,luci-app-asterisk))
956 $(eval $(call BuildPackage,luci-app-polipo))
957 $(eval $(call BuildPackage,luci-app-openvpn))
958
959 $(eval $(call BuildPackage,luci-sgi-cgi))
960 $(eval $(call BuildPackage,luci-sgi-luci))
961 $(eval $(call BuildPackage,luci-sgi-webuci))
962
963 $(eval $(call BuildPackage,luci-theme-base))
964 $(eval $(call BuildPackage,luci-theme-fledermaus))
965 $(eval $(call BuildPackage,luci-theme-freifunk))
966 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
967 $(eval $(call BuildPackage,luci-theme-openwrt))
968 $(eval $(call BuildPackage,luci-theme-openwrtlight))
969
970 $(eval $(call BuildPackage,luci-i18n-german))
971 $(eval $(call BuildPackage,luci-i18n-english))
972 $(eval $(call BuildPackage,luci-i18n-french))
973 $(eval $(call BuildPackage,luci-i18n-italian))
974 $(eval $(call BuildPackage,luci-i18n-russian))
975 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))