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