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