* luci/applications: add init manager
[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://dev.leipzig.freifunk.net/svn/ff-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 (GERMAN ONLY)
65   DEPENDS:=+luci-mod-freifunk
66 endef
67
68 define Package/luci/httpdtemplate
69   $(call Package/luci/libtemplate)
70   SUBMENU:=LuCI Non-Forking HTTP-Daemon (EXPERIMENTAL)
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 +luasocket
242   TITLE:=Server Core
243 endef
244
245 define Package/luci-httpd/install
246         $(call Package/luci/install/template,$(1),libs/httpd)
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
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-firewall
349   $(call Package/luci/webtemplate)
350   DEPENDS+=+luci-admin-core
351   TITLE:=Firewall and Portforwarding application
352 endef
353
354 define Package/luci-app-firewall/install
355         $(call Package/luci/install/template,$(1),applications/luci-fw)
356 endef
357
358
359 define Package/luci-app-olsr
360   $(call Package/luci/webtemplate)
361   DEPENDS+=+luci-admin-full +olsrd-luci +olsrd-luci-mod-txtinfo
362   TITLE:=OLSR configuration and status module
363 endef
364
365 define Package/luci-app-olsr/install
366         $(call Package/luci/install/template,$(1),applications/luci-olsr)
367 endef
368
369
370 define Package/luci-app-qos
371   $(call Package/luci/webtemplate)
372   DEPENDS+=+luci-admin-core +qos-scripts
373   TITLE:=Quality of Service configuration module
374 endef
375
376 define Package/luci-app-qos/install
377         $(call Package/luci/install/template,$(1),applications/luci-qos)
378 endef
379
380
381 define Package/luci-app-splash
382   $(call Package/luci/fftemplate)
383   DEPENDS+=+luasocket
384   TITLE:=Freifunk DHCP-Splash application
385 endef
386
387 define Package/luci-app-splash/conffiles
388 /etc/config/luci_splash
389 endef
390
391 define Package/luci-app-splash/install
392         $(call Package/luci/install/template,$(1),applications/luci-splash)
393 endef
394
395
396 define Package/luci-app-statistics
397   $(call Package/luci/webtemplate)
398   DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
399   TITLE:=LuCI Statistics Application
400 endef
401
402 define Package/luci-app-statistics/conffiles
403 /etc/config/luci_statistics
404 endef
405
406 define Package/luci-app-statistics/install
407         $(call Package/luci/install/template,$(1),applications/luci-statistics)
408 endef
409
410
411 define Package/luci-app-upnp
412   $(call Package/luci/webtemplate)
413   DEPENDS+=+luci-admin-core +miniupnpd
414   TITLE:=Universal Plug & Play configuration module
415 endef
416
417 define Package/luci-app-upnp/install
418         $(call Package/luci/install/template,$(1),applications/luci-upnp)
419 endef
420
421
422 define Package/luci-app-ntpc
423   $(call Package/luci/webtemplate)
424   DEPENDS+=+luci-admin-core +ntpclient
425   TITLE:=NTP time synchronisation client configuration module
426 endef
427
428 define Package/luci-app-ntpc/install
429         $(call Package/luci/install/template,$(1),applications/luci-ntpc)
430 endef
431
432
433 define Package/luci-app-ddns
434   $(call Package/luci/webtemplate)
435   DEPENDS+=+luci-admin-core +ddns-scripts
436   TITLE:=Dynamic DNS configuration module
437 endef
438
439 define Package/luci-app-ddns/install
440         $(call Package/luci/install/template,$(1),applications/luci-ddns)
441 endef
442
443
444 define Package/luci-app-samba
445   $(call Package/luci/webtemplate)
446   DEPENDS+=+luci-admin-full +samba3
447   TITLE:=Network Shares - Samba SMB/CIFS module
448 endef
449
450 define Package/luci-app-samba/install
451         $(call Package/luci/install/template,$(1),applications/luci-samba)
452 endef
453
454
455 define Package/luci-app-uvc_streamer
456   $(call Package/luci/webtemplate)
457   DEPENDS+=+luci-admin-full +uvc-streamer
458   TITLE:=Webcam Streaming - UVC-Streamer module
459 endef
460
461 define Package/luci-app-uvc_streamer/install
462         $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
463 endef
464
465
466 define Package/luci-app-p910nd
467   $(call Package/luci/webtemplate)
468   DEPENDS+=+luci-admin-full +p910nd
469   TITLE:=p910nd - Printer server module
470 endef
471
472 define Package/luci-app-p910nd/install
473         $(call Package/luci/install/template,$(1),applications/luci-p910nd)
474 endef
475
476
477 define Package/luci-app-ushare
478   $(call Package/luci/webtemplate)
479   DEPENDS+=+luci-admin-full +ushare
480   TITLE:=ushare - UPnP A/V & DLNA Media Server
481 endef
482
483 define Package/luci-app-ushare/install
484         $(call Package/luci/install/template,$(1),applications/luci-ushare)
485 endef
486
487 define Package/luci-app-hd_idle
488   $(call Package/luci/webtemplate)
489   DEPENDS+=+luci-admin-full +hd-idle
490   TITLE:=hd-idle
491 endef
492
493 define Package/luci-app-hd_idle/install
494         $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
495 endef
496
497 define Package/luci-app-tinyproxy
498   $(call Package/luci/webtemplate)
499   DEPENDS+=+luci-admin-full +tinyproxy
500   TITLE:=Tinyproxy - HTTP(S)-Proxy
501 endef
502
503 define Package/luci-app-tinyproxy/install
504         $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
505 endef
506
507 define Package/luci-app-initmgr
508   $(call Package/luci/webtemplate)
509   DEPENDS+=+luci-admin-full
510   TITLE:=LuCI Initscript Management
511 endef
512
513 define Package/luci-app-initmgr/install
514         $(call Package/luci/install/template,$(1),applications/luci-initmgr)
515 endef
516
517
518 ### Server Gateway Interfaces ###
519
520 define Package/luci-sgi-cgi
521   $(call Package/luci/libtemplate)
522   TITLE:=SGI for CGI
523 endef
524
525 define Package/luci-sgi-cgi/install
526         $(call Package/luci/install/template,$(1),libs/sgi-cgi)
527 endef
528
529 define Package/luci-sgi-luci
530   $(call Package/luci/libtemplate)
531   DEPENDS+=+luci-httpd
532   TITLE:=SGI for LuCI HTTPD
533 endef
534
535 define Package/luci-sgi-luci/install
536         $(call Package/luci/install/template,$(1),libs/sgi-luci)
537 endef
538
539 define Package/luci-sgi-webuci
540   $(call Package/luci/libtemplate)
541   TITLE:=SGI for Webuci
542 endef
543
544 define Package/luci-sgi-webuci/install
545         $(call Package/luci/install/template,$(1),libs/sgi-webuci)
546 endef
547
548 ### Themes ###
549 define Package/luci-theme-fledermaus
550   $(call Package/luci/fftemplate)
551   DEPENDS:=+luci-web
552   TITLE:=Fledermaus Theme
553 endef
554
555 define Package/luci-theme-fledermaus/install
556         $(call Package/luci/install/template,$(1),themes/fledermaus)
557 endef
558
559 define Package/luci-theme-freifunk
560   $(call Package/luci/thtemplate)
561   DEPENDS:=+luci-web
562   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
563   TITLE:=alternative Freifunk Theme
564 endef
565
566 define Package/luci-theme-freifunk/install
567         $(call Package/luci/install/template,$(1),themes/freifunk)
568 endef
569
570 define Package/luci-theme-freifunk-bno
571   $(call Package/luci/thtemplate)
572   DEPENDS:=+luci-web
573   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
574   TITLE:=Freifunk Berlin Nordost Theme
575 endef
576
577 define Package/luci-theme-freifunk-bno/install
578         $(call Package/luci/install/template,$(1),themes/freifunk-bno)
579 endef
580
581 define Package/luci-theme-openwrt
582   $(call Package/luci/thtemplate)
583   TITLE:=OpenWRT.org (default)
584 endef
585
586 define Package/luci-theme-openwrt/install
587         $(call Package/luci/install/template,$(1),themes/openwrt.org)
588 endef
589
590 define Package/luci-theme-openwrtlight
591   $(call Package/luci/thtemplate)
592   TITLE:=OpenWRT.org - light variant without images
593 endef
594
595 define Package/luci-theme-openwrtlight/install
596         $(call Package/luci/install/template,$(1),themes/openwrt-light)
597 endef
598
599
600 ### Translations ###
601 define Package/luci-i18n-german
602   $(call Package/luci/i18ntemplate)
603   TITLE:=German
604 endef
605
606 define Package/luci-i18n-german/install
607         $(call Package/luci/install/template,$(1),i18n/german)
608 endef
609
610
611 define Package/luci-i18n-english
612   $(call Package/luci/i18ntemplate)
613   TITLE:=English
614 endef
615
616 define Package/luci-i18n-english/install
617         $(call Package/luci/install/template,$(1),i18n/english)
618 endef
619
620
621 define Package/luci-i18n-french
622   $(call Package/luci/i18ntemplate)
623   TITLE:=French (by Florian Fainelli)
624 endef
625
626 define Package/luci-i18n-french/install
627         $(call Package/luci/install/template,$(1),i18n/french)
628 endef
629
630
631 define Package/luci-i18n-russian
632   $(call Package/luci/i18ntemplate)
633   TITLE:=Russian (by Skryabin Dmitry)
634 endef
635
636 define Package/luci-i18n-russian/install
637         $(call Package/luci/install/template,$(1),i18n/russian)
638 endef
639
640
641 define Package/luci-i18n-portuguese_brazilian
642   $(call Package/luci/i18ntemplate)
643   TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
644 endef
645
646 define Package/luci-i18n-portuguese_brazilian/install
647         $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
648 endef
649
650
651 ### Compile ###
652 ifneq ($(CONFIG_PACKAGE_luci-core),)
653         PKG_SELECTED_MODULES+=libs/core
654 endif
655 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
656         PKG_SELECTED_MODULES+=libs/cbi
657 endif
658 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
659         PKG_SELECTED_MODULES+=libs/fastindex
660 endif
661 ifneq ($(CONFIG_PACKAGE_luci-http),)
662         PKG_SELECTED_MODULES+=libs/http
663 endif
664 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
665         PKG_SELECTED_MODULES+=libs/ipkg
666 endif
667 ifneq ($(CONFIG_PACKAGE_luci-json),)
668         PKG_SELECTED_MODULES+=libs/json
669 endif
670 ifneq ($(CONFIG_PACKAGE_luci-uci),)
671         PKG_SELECTED_MODULES+=libs/uci
672 endif
673 ifneq ($(CONFIG_PACKAGE_luci-sys),)
674         PKG_SELECTED_MODULES+=libs/sys
675 endif
676 ifneq ($(CONFIG_PACKAGE_luci-web),)
677         PKG_SELECTED_MODULES+=libs/web
678 endif
679 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
680         PKG_SELECTED_MODULES+=libs/uvl
681 endif
682
683 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
684         PKG_SELECTED_MODULES+=libs/httpd
685 endif
686
687 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
688         PKG_SELECTED_MODULES+=modules/admin-core
689 endif
690 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
691         PKG_SELECTED_MODULES+=modules/admin-mini
692 endif
693 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
694         PKG_SELECTED_MODULES+=modules/admin-full
695 endif
696 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
697         PKG_SELECTED_MODULES+=modules/rpc
698 endif
699 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
700         PKG_SELECTED_MODULES+=modules/freifunk
701 endif
702
703 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
704         PKG_SELECTED_MODULES+=applications/freifunk-community
705 endif
706
707 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
708         PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
709 endif
710 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
711         PKG_SELECTED_MODULES+=applications/luci-fw
712 endif
713 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
714         PKG_SELECTED_MODULES+=applications/luci-olsr
715 endif
716 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
717         PKG_SELECTED_MODULES+=applications/luci-qos
718 endif
719 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
720         PKG_SELECTED_MODULES+=applications/luci-splash
721 endif
722 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
723         PKG_SELECTED_MODULES+=applications/luci-statistics
724 endif
725 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
726         PKG_SELECTED_MODULES+=applications/luci-upnp
727 endif
728 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
729         PKG_SELECTED_MODULES+=applications/luci-ntpc
730 endif
731 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
732         PKG_SELECTED_MODULES+=applications/luci-ddns
733 endif
734 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
735         PKG_SELECTED_MODULES+=applications/luci-samba
736 endif
737 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
738         PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
739 endif
740 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
741         PKG_SELECTED_MODULES+=applications/luci-p910nd
742 endif
743 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
744         PKG_SELECTED_MODULES+=applications/luci-ushare
745 endif
746 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
747        PKG_SELECTED_MODULES+=applications/luci-hd_idle
748 endif
749 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
750        PKG_SELECTED_MODULES+=applications/luci-tinyproxy
751 endif
752 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
753        PKG_SELECTED_MODULES+=applications/luci-initmgr
754 endif
755
756
757 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
758         PKG_SELECTED_MODULES+=libs/sgi-cgi
759 endif
760 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
761         PKG_SELECTED_MODULES+=libs/sgi-luci
762 endif
763 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
764         PKG_SELECTED_MODULES+=libs/sgi-webuci
765 endif
766
767 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
768         PKG_SELECTED_MODULES+=themes/fledermaus
769 endif
770 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
771         PKG_SELECTED_MODULES+=themes/freifunk-bno
772 endif
773 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
774         PKG_SELECTED_MODULES+=themes/freifunk
775 endif
776 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
777         PKG_SELECTED_MODULES+=themes/openwrt.org
778 endif
779 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
780         PKG_SELECTED_MODULES+=themes/openwrt-light
781 endif
782
783 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
784         PKG_SELECTED_MODULES+=i18n/german
785 endif
786 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
787         PKG_SELECTED_MODULES+=i18n/english
788 endif
789 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
790         PKG_SELECTED_MODULES+=i18n/french
791 endif
792 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
793         PKG_SELECTED_MODULES+=i18n/russian
794 endif
795 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
796         PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
797 endif
798
799
800 MAKE_FLAGS += \
801         MODULES="$(PKG_SELECTED_MODULES)" \
802         LUA_TARGET="$(LUA_TARGET)" \
803         LUA_SHLIBS="-llua -lm" \
804         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
805         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
806         OS="Linux"
807
808
809 $(eval $(call BuildPackage,luci-core))
810 $(eval $(call BuildPackage,luci-cbi))
811 $(eval $(call BuildPackage,luci-fastindex))
812 $(eval $(call BuildPackage,luci-http))
813 $(eval $(call BuildPackage,luci-ipkg))
814 $(eval $(call BuildPackage,luci-json))
815 $(eval $(call BuildPackage,luci-uci))
816 $(eval $(call BuildPackage,luci-sys))
817 $(eval $(call BuildPackage,luci-web))
818 $(eval $(call BuildPackage,luci-uvl))
819
820 $(eval $(call BuildPackage,luci-httpd))
821
822 $(eval $(call BuildPackage,luci-admin-core))
823 $(eval $(call BuildPackage,luci-admin-mini))
824 $(eval $(call BuildPackage,luci-admin-full))
825 $(eval $(call BuildPackage,luci-admin-rpc))
826 $(eval $(call BuildPackage,luci-mod-freifunk))
827
828 $(eval $(call BuildPackage,luci-freifunk-community))
829
830 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
831 $(eval $(call BuildPackage,luci-app-firewall))
832 $(eval $(call BuildPackage,luci-app-olsr))
833 $(eval $(call BuildPackage,luci-app-qos))
834 $(eval $(call BuildPackage,luci-app-splash))
835 $(eval $(call BuildPackage,luci-app-statistics))
836 $(eval $(call BuildPackage,luci-app-upnp))
837 $(eval $(call BuildPackage,luci-app-ntpc))
838 $(eval $(call BuildPackage,luci-app-ddns))
839 $(eval $(call BuildPackage,luci-app-samba))
840 $(eval $(call BuildPackage,luci-app-uvc_streamer))
841 $(eval $(call BuildPackage,luci-app-p910nd))
842 $(eval $(call BuildPackage,luci-app-ushare))
843 $(eval $(call BuildPackage,luci-app-hd_idle))
844 $(eval $(call BuildPackage,luci-app-tinyproxy))
845 $(eval $(call BuildPackage,luci-app-initmgr))
846
847 $(eval $(call BuildPackage,luci-sgi-cgi))
848 $(eval $(call BuildPackage,luci-sgi-luci))
849 $(eval $(call BuildPackage,luci-sgi-webuci))
850
851 $(eval $(call BuildPackage,luci-theme-fledermaus))
852 $(eval $(call BuildPackage,luci-theme-freifunk))
853 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
854 $(eval $(call BuildPackage,luci-theme-openwrt))
855 $(eval $(call BuildPackage,luci-theme-openwrtlight))
856
857 $(eval $(call BuildPackage,luci-i18n-german))
858 $(eval $(call BuildPackage,luci-i18n-english))
859 $(eval $(call BuildPackage,luci-i18n-french))
860 $(eval $(call BuildPackage,luci-i18n-russian))
861 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))