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