Fixed typos
[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.7+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.7+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 (PARTLY BROKEN)
65   DEPENDS:=+luci-mod-freifunk @BROKEN
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 +luaposix +bitlib
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 @!PACKAGE_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         $(INSTALL_DIR) $(1)/usr/lib/lua
158         $(CP) $(PKG_BUILD_DIR)/contrib/uci/dist/usr/lib/lua/uci.so $(1)/usr/lib/lua
159 endef
160
161
162 define Package/luci-fastindex
163   $(call Package/luci/libtemplate)
164   TITLE:=Fastindex indexing module
165 endef
166
167 define Package/luci-fastindex/install
168         $(call Package/luci/install/template,$(1),libs/fastindex)
169 endef
170
171
172 define Package/luci-http
173   $(call Package/luci/libtemplate)
174   TITLE:=HTTP Protocol implementation
175 endef
176
177 define Package/luci-http/install
178         $(call Package/luci/install/template,$(1),libs/http)
179 endef
180
181
182 define Package/luci-ipkg
183   $(call Package/luci/libtemplate)
184   TITLE:=LuCI IPKG/OPKG call abstraction library
185 endef
186
187 define Package/luci-ipkg/install
188         $(call Package/luci/install/template,$(1),libs/ipkg)
189 endef
190
191
192 define Package/luci-json
193   $(call Package/luci/libtemplate)
194   TITLE:=LuCI JSON Library
195 endef
196
197 define Package/luci-json/install
198         $(call Package/luci/install/template,$(1),libs/json)
199 endef
200
201
202 define Package/luci-sys
203   $(call Package/luci/libtemplate)
204   TITLE:=LuCI Linux/POSIX system library
205 endef
206
207 define Package/luci-sys/install
208         $(call Package/luci/install/template,$(1),libs/sys)
209 endef
210
211
212 define Package/luci-web
213   $(call Package/luci/libtemplate)
214   DEPENDS+=+luci-http +luci-sys +luci-addons +luci-uci +luci-sgi-cgi
215   TITLE:=MVC Webframework
216 endef
217
218 define Package/luci-web/conffiles
219 /etc/config/luci
220 endef
221
222 define Package/luci-web/install
223         $(call Package/luci/install/template,$(1),libs/web)
224 endef
225
226
227 define Package/luci-uvl
228   $(call Package/luci/libtemplate)
229   DEPENDS+=+luci-sys +luci-uci +luci-core
230   TITLE:=UVL - UCI Validation Layer
231 endef
232
233 define Package/luci-uvl/install
234         $(call Package/luci/install/template,$(1),libs/uvl)
235 endef
236
237
238
239 ### HTTPD ###
240
241 define Package/luci-httpd
242   $(call Package/luci/httpdtemplate)
243   DEPENDS:=+luci-http +luasocket
244   TITLE:=Server Core
245 endef
246
247 define Package/luci-httpd/install
248         $(call Package/luci/install/template,$(1),libs/httpd)
249 endef
250
251
252
253 ### Community Packages ###
254
255 define Package/luci-ff-halle
256   $(call Package/luci/fftemplate)
257   DEPENDS+= \
258    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
259    +luci-app-ffwizard-leipzig \
260    +luci-theme-fledermaus \
261    +luci-i18n-german \
262    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
263    +kmod-tun +ip
264   TITLE:=Freifunk Halle Community Meta-Package
265 endef
266
267 define Package/luci-ff-halle/install
268         $(call Package/luci/install/template,$(1),applications/community-halle)
269 endef
270
271
272 define Package/luci-ff-leipzig
273   $(call Package/luci/fftemplate)
274   DEPENDS+= \
275    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
276    +luci-app-ffwizard-leipzig \
277    +luci-theme-fledermaus \
278    +luci-i18n-german \
279    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
280    +kmod-tun +ip
281   TITLE:=Freifunk Leipzig Community Meta-Package
282 endef
283
284 define Package/luci-ff-leipzig/install
285         $(call Package/luci/install/template,$(1),applications/community-leipzig)
286 endef
287
288
289 define Package/luci-ff-hannover
290   $(call Package/luci/fftemplate)
291   DEPENDS+= \
292    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
293    +luci-theme-fledermaus \
294    +luci-i18n-german \
295    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
296   TITLE:=Freifunk Hannover Community Meta-Package
297   URL:=http://www.freifunk-hannover.de/
298   MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
299 endef
300
301 define Package/luci-ff-hannover/install
302         $(call Package/luci/install/template,$(1),applications/community-hannover)
303 endef
304
305
306 define Package/luci-ff-berlin
307   $(call Package/luci/fftemplate)
308   DEPENDS+= \
309    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
310    +luci-theme-fledermaus \
311    +luci-i18n-german \
312    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
313   TITLE:=Freifunk Berlin Community Meta-Package
314 endef
315
316 define Package/luci-ff-berlin/install
317         $(call Package/luci/install/template,$(1),applications/community-berlin)
318 endef
319
320 define Package/luci-ff-augsburg
321   $(call Package/luci/fftemplate)
322   DEPENDS+= \
323    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
324    +luci-theme-fledermaus \
325    +luci-i18n-german \
326    +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
327   TITLE:=Freifunk Augsburg Community Meta-Package
328 endef
329
330 define Package/luci-ff-augsburg/install
331         $(call Package/luci/install/template,$(1),applications/community-augsburg)
332 endef
333
334 ### Modules ###
335
336 define Package/luci-admin-core
337   $(call Package/luci/webtemplate)
338   DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
339   TITLE:=Web UI Core Module
340 endef
341
342 define Package/luci-admin-core/install
343         $(call Package/luci/install/template,$(1),modules/admin-core)
344 endef
345
346
347 define Package/luci-admin-mini
348   $(call Package/luci/webtemplate)
349   DEPENDS+=+luci-admin-core
350   TITLE:=LuCI Essentials - casual user's interface
351 endef
352
353 define Package/luci-admin-mini/install
354         $(call Package/luci/install/template,$(1),modules/admin-mini)
355 endef
356
357
358 define Package/luci-admin-full
359   $(call Package/luci/webtemplate)
360   DEPENDS+=+luci-admin-core +luci-ipkg
361   TITLE:=LuCI Administration - power user's interface
362 endef
363
364 define Package/luci-admin-full/install
365         $(call Package/luci/install/template,$(1),modules/admin-full)
366 endef
367
368
369 define Package/luci-admin-rpc
370   $(call Package/luci/webtemplate)
371   DEPENDS+=+luci-json
372   TITLE:=LuCI RPC - JSON-RPC API
373 endef
374
375 define Package/luci-admin-rpc/install
376         $(call Package/luci/install/template,$(1),modules/rpc)
377 endef
378
379
380 define Package/luci-mod-freifunk
381   $(call Package/luci/fftemplate)
382   DEPENDS:=+luci-admin-full
383   TITLE:=LuCI Freifunk module
384 endef
385
386 define Package/luci-mod-freifunk/conffiles
387 /etc/config/freifunk
388 endef
389
390 define Package/luci-mod-freifunk/install
391         $(call Package/luci/install/template,$(1),modules/freifunk)
392 endef
393
394
395
396 ### Applications ###
397
398 define Package/luci-app-ffwizard-leipzig
399   $(call Package/luci/fftemplate)
400   TITLE:=Freifunk Leipzig configuration wizard
401 endef
402
403 define Package/luci-app-ffwizard-leipzig/install
404         $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
405 endef
406
407
408 define Package/luci-app-firewall
409   $(call Package/luci/webtemplate)
410   DEPENDS+=+luci-admin-core
411   TITLE:=Firewall and Portforwarding application
412 endef
413
414 define Package/luci-app-firewall/install
415         $(call Package/luci/install/template,$(1),applications/luci-fw)
416 endef
417
418
419 define Package/luci-app-olsr
420   $(call Package/luci/webtemplate)
421   DEPENDS+=+luci-admin-full +olsrd +olsrd-mod-txtinfo
422   TITLE:=OLSR configuration and status module
423 endef
424
425 define Package/luci-app-olsr/install
426         $(call Package/luci/install/template,$(1),applications/luci-olsr)
427 endef
428
429
430 define Package/luci-app-qos
431   $(call Package/luci/webtemplate)
432   DEPENDS+=+luci-admin-core +qos-scripts
433   TITLE:=Quality of Service configuration module
434 endef
435
436 define Package/luci-app-qos/install
437         $(call Package/luci/install/template,$(1),applications/luci-qos)
438 endef
439
440
441 define Package/luci-app-splash
442   $(call Package/luci/fftemplate)
443   DEPENDS+=+luasocket
444   TITLE:=Freifunk DHCP-Splash application
445 endef
446
447 define Package/luci-app-splash/conffiles
448 /etc/config/luci_splash
449 endef
450
451 define Package/luci-app-splash/install
452         $(call Package/luci/install/template,$(1),applications/luci-splash)
453 endef
454
455
456 define Package/luci-app-statistics
457   $(call Package/luci/webtemplate)
458   DEPENDS+=+luci-admin-full +collectd +collectd-mod-rrdtool1 +rrdtool1
459   TITLE:=LuCI Statistics Application
460 endef
461
462 define Package/luci-app-statistics/conffiles
463 /etc/config/luci_statistics
464 endef
465
466 define Package/luci-app-statistics/install
467         $(call Package/luci/install/template,$(1),applications/luci-statistics)
468 endef
469
470
471 define Package/luci-app-upnp
472   $(call Package/luci/webtemplate)
473   DEPENDS+=+luci-admin-core +miniupnpd
474   TITLE:=Universal Plug & Play configuration module
475 endef
476
477 define Package/luci-app-upnp/install
478         $(call Package/luci/install/template,$(1),applications/luci-upnp)
479 endef
480
481
482 define Package/luci-app-ntpc
483   $(call Package/luci/webtemplate)
484   DEPENDS+=+luci-admin-core +ntpclient
485   TITLE:=NTP time synchronisation client configuration module
486 endef
487
488 define Package/luci-app-ntpc/install
489         $(call Package/luci/install/template,$(1),applications/luci-ntpc)
490 endef
491
492
493 define Package/luci-app-ddns
494   $(call Package/luci/webtemplate)
495   DEPENDS+=+luci-admin-core +ddns-scripts
496   TITLE:=Dynamic DNS configuration module
497 endef
498
499 define Package/luci-app-ddns/install
500         $(call Package/luci/install/template,$(1),applications/luci-ddns)
501 endef
502
503
504 define Package/luci-app-samba
505   $(call Package/luci/webtemplate)
506   DEPENDS+=+luci-admin-full +samba3
507   TITLE:=Network Shares - Samba SMB/CIFS module
508 endef
509
510 define Package/luci-app-samba/install
511         $(call Package/luci/install/template,$(1),applications/luci-samba)
512 endef
513
514
515 ### Server Gateway Interfaces ###
516
517 define Package/luci-sgi-cgi
518   $(call Package/luci/libtemplate)
519   TITLE:=SGI for CGI
520 endef
521
522 define Package/luci-sgi-cgi/install
523         $(call Package/luci/install/template,$(1),libs/sgi-cgi)
524 endef
525
526 define Package/luci-sgi-luci
527   $(call Package/luci/libtemplate)
528   DEPENDS+=+luci-httpd
529   TITLE:=SGI for LuCI HTTPD
530 endef
531
532 define Package/luci-sgi-luci/install
533         $(call Package/luci/install/template,$(1),libs/sgi-luci)
534 endef
535
536 define Package/luci-sgi-webuci
537   $(call Package/luci/libtemplate)
538   TITLE:=SGI for Webuci
539 endef
540
541 define Package/luci-sgi-webuci/install
542         $(call Package/luci/install/template,$(1),libs/sgi-webuci)
543 endef
544
545 ### Themes ###
546 define Package/luci-theme-fledermaus
547   $(call Package/luci/fftemplate)
548   DEPENDS:=+luci-web
549   TITLE:=Fledermaus Theme
550 endef
551
552 define Package/luci-theme-fledermaus/install
553         $(call Package/luci/install/template,$(1),themes/fledermaus)
554 endef
555
556 define Package/luci-theme-openwrt
557   $(call Package/luci/thtemplate)
558   TITLE:=OpenWRT.org (default)
559 endef
560
561 define Package/luci-theme-openwrt/install
562         $(call Package/luci/install/template,$(1),themes/openwrt.org)
563 endef
564
565 define Package/luci-theme-openwrtlight
566   $(call Package/luci/thtemplate)
567   TITLE:=OpenWRT.org - light variant without images
568 endef
569
570 define Package/luci-theme-openwrtlight/install
571         $(call Package/luci/install/template,$(1),themes/openwrt-light)
572 endef
573
574
575 ### Translations ###
576 define Package/luci-i18n-german
577   $(call Package/luci/i18ntemplate)
578   TITLE:=German
579 endef
580
581 define Package/luci-i18n-german/install
582         $(call Package/luci/install/template,$(1),i18n/german)
583 endef
584
585
586 define Package/luci-i18n-english
587   $(call Package/luci/i18ntemplate)
588   TITLE:=English
589 endef
590
591 define Package/luci-i18n-english/install
592         $(call Package/luci/install/template,$(1),i18n/english)
593 endef
594
595
596 define Package/luci-i18n-french
597   $(call Package/luci/i18ntemplate)
598   TITLE:=French (by Florian Fainelli)
599 endef
600
601 define Package/luci-i18n-french/install
602         $(call Package/luci/install/template,$(1),i18n/french)
603 endef
604
605
606 define Package/luci-i18n-russian
607   $(call Package/luci/i18ntemplate)
608   TITLE:=Russian (by Skryabin Dmitry)
609 endef
610
611 define Package/luci-i18n-russian/install
612         $(call Package/luci/install/template,$(1),i18n/russian)
613 endef
614
615
616
617 ### Compile ###
618 ifneq ($(CONFIG_PACKAGE_luci-core),)
619         PKG_SELECTED_MODULES+=libs/core
620 endif
621 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
622         PKG_SELECTED_MODULES+=libs/cbi
623 endif
624 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
625         PKG_SELECTED_MODULES+=libs/fastindex
626 endif
627 ifneq ($(CONFIG_PACKAGE_luci-http),)
628         PKG_SELECTED_MODULES+=libs/http
629 endif
630 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
631         PKG_SELECTED_MODULES+=libs/ipkg
632 endif
633 ifneq ($(CONFIG_PACKAGE_luci-json),)
634         PKG_SELECTED_MODULES+=libs/json
635 endif
636 ifneq ($(CONFIG_PACKAGE_luci-uci),)
637         PKG_SELECTED_MODULES+=libs/uci contrib/uci
638 endif
639 ifneq ($(CONFIG_PACKAGE_luci-sys),)
640         PKG_SELECTED_MODULES+=libs/sys
641 endif
642 ifneq ($(CONFIG_PACKAGE_luci-web),)
643         PKG_SELECTED_MODULES+=libs/web
644 endif
645 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
646         PKG_SELECTED_MODULES+=libs/uvl
647 endif
648
649 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
650         PKG_SELECTED_MODULES+=libs/httpd
651 endif
652
653 ifneq ($(CONFIG_PACKAGE_luci-ff-halle),)
654         PKG_SELECTED_MODULES+=applications/community-halle
655 endif
656 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig),)
657         PKG_SELECTED_MODULES+=applications/community-leipzig
658 endif
659 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover),)
660         PKG_SELECTED_MODULES+=applications/community-hannover
661 endif
662 ifneq ($(CONFIG_PACKAGE_luci-ff-berlin),)
663         PKG_SELECTED_MODULES+=applications/community-berlin
664 endif
665 ifneq ($(CONFIG_PACKAGE_luci-ff-augsburg),)
666         PKG_SELECTED_MODULES+=applications/community-augsburg
667 endif
668
669 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
670         PKG_SELECTED_MODULES+=modules/admin-core
671 endif
672 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
673         PKG_SELECTED_MODULES+=modules/admin-mini
674 endif
675 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
676         PKG_SELECTED_MODULES+=modules/admin-full
677 endif
678 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
679         PKG_SELECTED_MODULES+=modules/rpc
680 endif
681 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
682         PKG_SELECTED_MODULES+=modules/freifunk
683 endif
684
685 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
686         PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
687 endif
688 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
689         PKG_SELECTED_MODULES+=applications/luci-fw
690 endif
691 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
692         PKG_SELECTED_MODULES+=applications/luci-olsr
693 endif
694 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
695         PKG_SELECTED_MODULES+=applications/luci-qos
696 endif
697 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
698         PKG_SELECTED_MODULES+=applications/luci-splash
699 endif
700 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
701         PKG_SELECTED_MODULES+=applications/luci-statistics
702 endif
703 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
704         PKG_SELECTED_MODULES+=applications/luci-upnp
705 endif
706 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
707         PKG_SELECTED_MODULES+=applications/luci-ntpc
708 endif
709 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
710         PKG_SELECTED_MODULES+=applications/luci-ddns
711 endif
712 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
713         PKG_SELECTED_MODULES+=applications/luci-samba
714 endif
715
716
717 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
718         PKG_SELECTED_MODULES+=libs/sgi-cgi
719 endif
720 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
721         PKG_SELECTED_MODULES+=libs/sgi-luci
722 endif
723 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
724         PKG_SELECTED_MODULES+=libs/sgi-webuci
725 endif
726
727 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
728         PKG_SELECTED_MODULES+=themes/fledermaus
729 endif
730 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
731         PKG_SELECTED_MODULES+=themes/openwrt.org
732 endif
733 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
734         PKG_SELECTED_MODULES+=themes/openwrt-light
735 endif
736
737 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
738         PKG_SELECTED_MODULES+=i18n/german
739 endif
740 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
741         PKG_SELECTED_MODULES+=i18n/english
742 endif
743 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
744         PKG_SELECTED_MODULES+=i18n/french
745 endif
746 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
747         PKG_SELECTED_MODULES+=i18n/russian
748 endif
749
750
751 MAKE_FLAGS += \
752         MODULES="$(PKG_SELECTED_MODULES)" \
753         LUA_TARGET="$(LUA_TARGET)" \
754         LUA_SHLIBS="-llua -lm" \
755         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
756         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
757         OS="Linux"
758
759
760 $(eval $(call BuildPackage,luci-core))
761 $(eval $(call BuildPackage,luci-cbi))
762 $(eval $(call BuildPackage,luci-fastindex))
763 $(eval $(call BuildPackage,luci-http))
764 $(eval $(call BuildPackage,luci-ipkg))
765 $(eval $(call BuildPackage,luci-json))
766 $(eval $(call BuildPackage,luci-uci))
767 $(eval $(call BuildPackage,luci-sys))
768 $(eval $(call BuildPackage,luci-web))
769 $(eval $(call BuildPackage,luci-uvl))
770
771 $(eval $(call BuildPackage,luci-httpd))
772
773 $(eval $(call BuildPackage,luci-ff-halle))
774 $(eval $(call BuildPackage,luci-ff-leipzig))
775 $(eval $(call BuildPackage,luci-ff-hannover))
776 $(eval $(call BuildPackage,luci-ff-berlin))
777 $(eval $(call BuildPackage,luci-ff-augsburg))
778
779 $(eval $(call BuildPackage,luci-admin-core))
780 $(eval $(call BuildPackage,luci-admin-mini))
781 $(eval $(call BuildPackage,luci-admin-full))
782 $(eval $(call BuildPackage,luci-admin-rpc))
783 $(eval $(call BuildPackage,luci-mod-freifunk))
784
785 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
786 $(eval $(call BuildPackage,luci-app-firewall))
787 $(eval $(call BuildPackage,luci-app-olsr))
788 $(eval $(call BuildPackage,luci-app-qos))
789 $(eval $(call BuildPackage,luci-app-splash))
790 $(eval $(call BuildPackage,luci-app-statistics))
791 $(eval $(call BuildPackage,luci-app-upnp))
792 $(eval $(call BuildPackage,luci-app-ntpc))
793 $(eval $(call BuildPackage,luci-app-ddns))
794 $(eval $(call BuildPackage,luci-app-samba))
795
796 $(eval $(call BuildPackage,luci-sgi-cgi))
797 $(eval $(call BuildPackage,luci-sgi-luci))
798 $(eval $(call BuildPackage,luci-sgi-webuci))
799
800 $(eval $(call BuildPackage,luci-theme-fledermaus))
801 $(eval $(call BuildPackage,luci-theme-openwrt))
802 $(eval $(call BuildPackage,luci-theme-openwrtlight))
803
804 $(eval $(call BuildPackage,luci-i18n-german))
805 $(eval $(call BuildPackage,luci-i18n-english))
806 $(eval $(call BuildPackage,luci-i18n-french))
807 $(eval $(call BuildPackage,luci-i18n-russian))