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