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