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