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