b6a68357ae24d290f38e120c84f0edebf18ea6e2
[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://svn.luci.subsignal.org/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
65   DEPENDS:=+luci-mod-freifunk
66 endef
67
68 define Package/luci/httpdtemplate
69   $(call Package/luci/libtemplate)
70   SUBMENU:=LuCIttpd
71   DEPENDS:=+luci-httpd
72 endef
73
74 define Package/luci/i18ntemplate
75   $(call Package/luci/libtemplate)
76   SUBMENU:=LuCI Translations
77   DEPENDS:=+luci-web
78 endef
79
80 define Package/luci/thtemplate
81   $(call Package/luci/libtemplate)
82   SUBMENU:=LuCI Themes
83   DEPENDS:=+luci-web
84 endef
85
86 define Package/luci/webtemplate
87   $(call Package/luci/libtemplate)
88   SUBMENU:=LuCI Components
89 endef
90
91
92 define Package/luci/install/template
93         $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
94         $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
95 endef
96
97
98
99 ### Core package ###
100
101 define Package/luci-core
102   $(call Package/luci/libtemplate)
103   DEPENDS:=+lua
104   TITLE:=LuCI core libraries
105 endef
106
107 define Package/luci-core/install
108         $(call Package/luci/install/template,$(1),libs/core)
109 endef
110
111 define Package/luci-core/config
112        choice
113                prompt "Build Target"
114                default PACKAGE_luci-core_source
115
116        config PACKAGE_luci-core_compile
117                bool "Precompiled"
118
119        config PACKAGE_luci-core_stripped
120                bool "Stripped"
121
122        config PACKAGE_luci-core_source
123                bool "Full Source"
124
125        endchoice
126 endef
127
128 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
129   LUA_TARGET:=compile
130 endif
131
132 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
133   LUA_TARGET:=strip
134 endif
135
136
137 ### Libraries ###
138 define Package/luci-cbi
139   $(call Package/luci/libtemplate)
140   DEPENDS+=+luci-web +luci-uvl +luci-uci
141   TITLE:=Configuration Binding Interface
142 endef
143
144 define Package/luci-cbi/install
145         $(call Package/luci/install/template,$(1),libs/cbi)
146 endef
147
148
149 define Package/luci-uci
150   $(call Package/luci/libtemplate)
151   DEPENDS+=+libuci-lua
152   TITLE:=High-Level UCI API
153 endef
154
155 define Package/luci-uci/install
156         $(call Package/luci/install/template,$(1),libs/uci)
157 endef
158
159
160 define Package/luci-fastindex
161   $(call Package/luci/libtemplate)
162   TITLE:=Fastindex indexing module
163 endef
164
165 define Package/luci-fastindex/install
166         $(call Package/luci/install/template,$(1),libs/fastindex)
167 endef
168
169
170 define Package/luci-http
171   $(call Package/luci/libtemplate)
172   TITLE:=HTTP Protocol implementation
173 endef
174
175 define Package/luci-http/install
176         $(call Package/luci/install/template,$(1),libs/http)
177 endef
178
179
180 define Package/luci-ipkg
181   $(call Package/luci/libtemplate)
182   TITLE:=LuCI IPKG/OPKG call abstraction library
183 endef
184
185 define Package/luci-ipkg/install
186         $(call Package/luci/install/template,$(1),libs/ipkg)
187 endef
188
189
190 define Package/luci-json
191   $(call Package/luci/libtemplate)
192   TITLE:=LuCI JSON Library
193 endef
194
195 define Package/luci-json/install
196         $(call Package/luci/install/template,$(1),libs/json)
197 endef
198
199
200 define Package/luci-sys
201   $(call Package/luci/libtemplate)
202   TITLE:=LuCI Linux/POSIX system library
203 endef
204
205 define Package/luci-sys/install
206         $(call Package/luci/install/template,$(1),libs/sys)
207 endef
208
209
210 define Package/luci-web
211   $(call Package/luci/libtemplate)
212   DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
213   TITLE:=MVC Webframework
214 endef
215
216 define Package/luci-web/conffiles
217 /etc/config/luci
218 endef
219
220 define Package/luci-web/install
221         $(call Package/luci/install/template,$(1),libs/web)
222 endef
223
224
225 define Package/luci-uvl
226   $(call Package/luci/libtemplate)
227   DEPENDS+=+luci-sys +luci-uci +luci-core
228   TITLE:=UVL - UCI Validation Layer
229 endef
230
231 define Package/luci-uvl/install
232         $(call Package/luci/install/template,$(1),libs/uvl)
233 endef
234
235
236
237 ### HTTPD ###
238
239 define Package/luci-httpd
240   $(call Package/luci/httpdtemplate)
241   DEPENDS:=+luci-http +libuci
242   TITLE:=Server Core
243 endef
244
245 define Package/luci-httpd/install
246         $(call Package/luci/install/template,$(1),libs/lucittpd)
247 endef
248
249
250
251 ### Community Packages ###
252
253 define Package/luci-freifunk-community
254   $(call Package/luci/fftemplate)
255   DEPENDS+= \
256    +luci-sgi-cgi +luci-app-splash +luci-app-olsr \
257    +luci-app-ffwizard-leipzig \
258    +luci-theme-fledermaus \
259    +luci-i18n-german \
260    +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw \
261    +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
262    +PACKAGE_luci-freifunk-community:kmod-tun +PACKAGE_luci-freifunk-community:ip
263   TITLE:=Freifunk Community Meta-Package
264 endef
265
266 define Package/luci-freifunk-community/install
267         $(call Package/luci/install/template,$(1),applications/freifunk-community)
268 endef
269
270 ### Modules ###
271
272 define Package/luci-admin-core
273   $(call Package/luci/webtemplate)
274   DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
275   TITLE:=Web UI Core Module
276 endef
277
278 define Package/luci-admin-core/conffiles
279 /etc/config/luci_hosts
280 /etc/config/luci_ethers
281 endef
282
283 define Package/luci-admin-core/install
284         $(call Package/luci/install/template,$(1),modules/admin-core)
285 endef
286
287
288 define Package/luci-admin-mini
289   $(call Package/luci/webtemplate)
290   DEPENDS+=+luci-admin-core
291   TITLE:=LuCI Essentials - stripped down and user-friendly
292 endef
293
294 define Package/luci-admin-mini/install
295         $(call Package/luci/install/template,$(1),modules/admin-mini)
296 endef
297
298
299 define Package/luci-admin-full
300   $(call Package/luci/webtemplate)
301   DEPENDS+=+luci-admin-core +luci-ipkg +luci-app-firewall
302   TITLE:=LuCI Administration - full-featured for full control
303 endef
304
305 define Package/luci-admin-full/install
306         $(call Package/luci/install/template,$(1),modules/admin-full)
307 endef
308
309
310 define Package/luci-admin-rpc
311   $(call Package/luci/webtemplate)
312   DEPENDS+=+luci-json
313   TITLE:=LuCI RPC - JSON-RPC API
314 endef
315
316 define Package/luci-admin-rpc/install
317         $(call Package/luci/install/template,$(1),modules/rpc)
318 endef
319
320
321 define Package/luci-mod-freifunk
322   $(call Package/luci/fftemplate)
323   DEPENDS:=+luci-admin-full
324   TITLE:=LuCI Freifunk module
325 endef
326
327 define Package/luci-mod-freifunk/conffiles
328 /etc/config/freifunk
329 endef
330
331 define Package/luci-mod-freifunk/install
332         $(call Package/luci/install/template,$(1),modules/freifunk)
333 endef
334
335
336
337 ### Applications ###
338
339 define Package/luci-app-ffwizard-leipzig
340   $(call Package/luci/fftemplate)
341   TITLE:=Freifunk Leipzig configuration wizard
342 endef
343
344 define Package/luci-app-ffwizard-leipzig/install
345         $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
346 endef
347
348
349 define Package/luci-app-siitwizard
350   $(call Package/luci/fftemplate)
351   TITLE:=SIIT IPv4-over-IPv6 configuration wizard
352   DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
353 endef
354
355 define Package/luci-app-siitwizard/install
356         $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
357 endef
358
359
360 define Package/luci-app-firewall
361   $(call Package/luci/webtemplate)
362   DEPENDS+=+luci-admin-core
363   TITLE:=Firewall and Portforwarding application
364 endef
365
366 define Package/luci-app-firewall/install
367         $(call Package/luci/install/template,$(1),applications/luci-fw)
368 endef
369
370
371 define Package/luci-app-olsr
372   $(call Package/luci/webtemplate)
373   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACkAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
374   TITLE:=OLSR configuration and status module
375 endef
376
377 define Package/luci-app-olsr/install
378         $(call Package/luci/install/template,$(1),applications/luci-olsr)
379 endef
380
381
382 define Package/luci-app-qos
383   $(call Package/luci/webtemplate)
384   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
385   TITLE:=Quality of Service configuration module
386 endef
387
388 define Package/luci-app-qos/install
389         $(call Package/luci/install/template,$(1),applications/luci-qos)
390 endef
391
392
393 define Package/luci-app-splash
394   $(call Package/luci/fftemplate)
395   DEPENDS+=+PACKAGE_luci-app-splash:luasocket
396   TITLE:=Freifunk DHCP-Splash application
397 endef
398
399 define Package/luci-app-splash/conffiles
400 /etc/config/luci_splash
401 endef
402
403 define Package/luci-app-splash/install
404         $(call Package/luci/install/template,$(1),applications/luci-splash)
405 endef
406
407
408 define Package/luci-app-statistics
409   $(call Package/luci/webtemplate)
410   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
411    +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 +PACKAGE_luci-app-statistics:rrdtool1
412   TITLE:=LuCI Statistics Application
413 endef
414
415 define Package/luci-app-statistics/conffiles
416 /etc/config/luci_statistics
417 endef
418
419 define Package/luci-app-statistics/install
420         $(call Package/luci/install/template,$(1),applications/luci-statistics)
421 endef
422
423
424 define Package/luci-app-upnp
425   $(call Package/luci/webtemplate)
426   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
427   TITLE:=Universal Plug & Play configuration module
428 endef
429
430 define Package/luci-app-upnp/install
431         $(call Package/luci/install/template,$(1),applications/luci-upnp)
432 endef
433
434
435 define Package/luci-app-ntpc
436   $(call Package/luci/webtemplate)
437   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
438   TITLE:=NTP time synchronisation client configuration module
439 endef
440
441 define Package/luci-app-ntpc/install
442         $(call Package/luci/install/template,$(1),applications/luci-ntpc)
443 endef
444
445
446 define Package/luci-app-ddns
447   $(call Package/luci/webtemplate)
448   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
449   TITLE:=Dynamic DNS configuration module
450 endef
451
452 define Package/luci-app-ddns/install
453         $(call Package/luci/install/template,$(1),applications/luci-ddns)
454 endef
455
456
457 define Package/luci-app-samba
458   $(call Package/luci/webtemplate)
459   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
460   TITLE:=Network Shares - Samba SMB/CIFS module
461 endef
462
463 define Package/luci-app-samba/install
464         $(call Package/luci/install/template,$(1),applications/luci-samba)
465 endef
466
467
468 define Package/luci-app-uvc_streamer
469   $(call Package/luci/webtemplate)
470   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
471   TITLE:=Webcam Streaming - UVC-Streamer module
472 endef
473
474 define Package/luci-app-uvc_streamer/install
475         $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
476 endef
477
478
479 define Package/luci-app-mmc_over_gpio
480   $(call Package/luci/webtemplate)
481   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
482   TITLE:=mmc_over_gpio
483 endef
484
485 define Package/luci-app-mmc_over_gpio/install
486         $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
487 endef
488
489
490 define Package/luci-app-p910nd
491   $(call Package/luci/webtemplate)
492   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
493   TITLE:=p910nd - Printer server module
494 endef
495
496 define Package/luci-app-p910nd/install
497         $(call Package/luci/install/template,$(1),applications/luci-p910nd)
498 endef
499
500
501 define Package/luci-app-ushare
502   $(call Package/luci/webtemplate)
503   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
504   TITLE:=ushare - UPnP A/V & DLNA Media Server
505 endef
506
507 define Package/luci-app-ushare/install
508         $(call Package/luci/install/template,$(1),applications/luci-ushare)
509 endef
510
511 define Package/luci-app-hd_idle
512   $(call Package/luci/webtemplate)
513   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
514   TITLE:=hd-idle
515 endef
516
517 define Package/luci-app-hd_idle/install
518         $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
519 endef
520
521 define Package/luci-app-tinyproxy
522   $(call Package/luci/webtemplate)
523   DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
524   TITLE:=Tinyproxy - HTTP(S)-Proxy
525 endef
526
527 define Package/luci-app-tinyproxy/install
528         $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
529 endef
530
531 define Package/luci-app-initmgr
532   $(call Package/luci/webtemplate)
533   DEPENDS+=+luci-admin-full
534   TITLE:=LuCI Initscript Management
535 endef
536
537 define Package/luci-app-initmgr/install
538         $(call Package/luci/install/template,$(1),applications/luci-initmgr)
539 endef
540
541 define Package/luci-app-livestats
542   $(call Package/luci/webtemplate)
543   DEPENDS+=+luci-admin-core +luci-admin-rpc
544   TITLE:=LuCI Realtime Statistics
545 endef
546
547 define Package/luci-app-livestats/install
548         $(call Package/luci/install/template,$(1),applications/luci-livestats)
549 endef
550
551 define Package/luci-app-asterisk
552   $(call Package/luci/webtemplate)
553   TITLE:=LuCI Support for Asterisk PBX
554   DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14
555 endef
556
557 define Package/luci-app-asterisk/install
558         $(call Package/luci/install/template,$(1),applications/luci-asterisk)
559 endef
560
561 define Package/luci-app-polipo
562   $(call Package/luci/webtemplate)
563   TITLE:=LuCI Support for the Polipo Proxy
564   DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
565 endef
566
567 define Package/luci-app-polipo/install
568         $(call Package/luci/install/template,$(1),applications/luci-polipo)
569 endef
570
571 define Package/luci-app-openvpn
572   $(call Package/luci/webtemplate)
573   TITLE:=LuCI Support for OpenVPN
574   DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
575 endef
576
577 define Package/luci-app-openvpn/install
578         $(call Package/luci/install/template,$(1),applications/luci-openvpn)
579 endef
580
581
582 ### Server Gateway Interfaces ###
583
584 define Package/luci-sgi-cgi
585   $(call Package/luci/libtemplate)
586   TITLE:=SGI for CGI
587 endef
588
589 define Package/luci-sgi-cgi/install
590         $(call Package/luci/install/template,$(1),libs/sgi-cgi)
591 endef
592
593 define Package/luci-sgi-luci
594   $(call Package/luci/libtemplate)
595   DEPENDS+=+luci-httpd
596   TITLE:=SGI for LuCIttpd
597 endef
598
599 define Package/luci-sgi-luci/install
600         $(call Package/luci/install/template,$(1),libs/sgi-luci)
601 endef
602
603 define Package/luci-sgi-webuci
604   $(call Package/luci/libtemplate)
605   TITLE:=SGI for Webuci
606 endef
607
608 define Package/luci-sgi-webuci/install
609         $(call Package/luci/install/template,$(1),libs/sgi-webuci)
610 endef
611
612 ### Themes ###
613 define Package/luci-theme-base
614   $(call Package/luci/thtemplate)
615   DEPENDS:=+luci-web
616   TITLE:=Common base for all themes
617 endef
618
619 define Package/luci-theme-base/install
620         $(call Package/luci/install/template,$(1),themes/base)
621 endef
622
623 define Package/luci-theme-fledermaus
624   $(call Package/luci/fftemplate)
625   DEPENDS:=+luci-web
626   TITLE:=Fledermaus Theme
627 endef
628
629 define Package/luci-theme-fledermaus/install
630         $(call Package/luci/install/template,$(1),themes/fledermaus)
631 endef
632
633 define Package/luci-theme-freifunk
634   $(call Package/luci/thtemplate)
635   DEPENDS:=+luci-web
636   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
637   TITLE:=alternative Freifunk Theme
638 endef
639
640 define Package/luci-theme-freifunk/install
641         $(call Package/luci/install/template,$(1),themes/freifunk)
642 endef
643
644 define Package/luci-theme-freifunk-bno
645   $(call Package/luci/thtemplate)
646   DEPENDS:=+luci-web
647   MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
648   TITLE:=Freifunk Berlin Nordost Theme
649 endef
650
651 define Package/luci-theme-freifunk-bno/install
652         $(call Package/luci/install/template,$(1),themes/freifunk-bno)
653 endef
654
655 define Package/luci-theme-openwrt
656   $(call Package/luci/thtemplate)
657   TITLE:=OpenWrt.org (default)
658   DEPENDS:=+luci-theme-base
659 endef
660
661 define Package/luci-theme-openwrt/install
662         $(call Package/luci/install/template,$(1),themes/openwrt.org)
663 endef
664
665 define Package/luci-theme-openwrtlight
666   $(call Package/luci/thtemplate)
667   TITLE:=OpenWrt.org - light variant without images
668   DEPENDS:=+luci-theme-base
669 endef
670
671 define Package/luci-theme-openwrtlight/install
672         $(call Package/luci/install/template,$(1),themes/openwrt-light)
673 endef
674
675
676 ### Translations ###
677 define Package/luci-i18n-german
678   $(call Package/luci/i18ntemplate)
679   TITLE:=German
680 endef
681
682 define Package/luci-i18n-german/install
683         $(call Package/luci/install/template,$(1),i18n/german)
684 endef
685
686
687 define Package/luci-i18n-english
688   $(call Package/luci/i18ntemplate)
689   TITLE:=English
690 endef
691
692 define Package/luci-i18n-english/install
693         $(call Package/luci/install/template,$(1),i18n/english)
694 endef
695
696
697 define Package/luci-i18n-french
698   $(call Package/luci/i18ntemplate)
699   TITLE:=French (by Florian Fainelli)
700 endef
701
702 define Package/luci-i18n-french/install
703         $(call Package/luci/install/template,$(1),i18n/french)
704 endef
705
706
707 define Package/luci-i18n-italian
708   $(call Package/luci/i18ntemplate)
709   TITLE:=Italian (by Matteo Croce)
710 endef
711
712 define Package/luci-i18n-italian/install
713         $(call Package/luci/install/template,$(1),i18n/italian)
714 endef
715
716
717 define Package/luci-i18n-russian
718   $(call Package/luci/i18ntemplate)
719   TITLE:=Russian (by Skryabin Dmitry)
720 endef
721
722 define Package/luci-i18n-russian/install
723         $(call Package/luci/install/template,$(1),i18n/russian)
724 endef
725
726
727 define Package/luci-i18n-portuguese_brazilian
728   $(call Package/luci/i18ntemplate)
729   TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
730 endef
731
732 define Package/luci-i18n-portuguese_brazilian/install
733         $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
734 endef
735
736
737 ### Compile ###
738 ifneq ($(CONFIG_PACKAGE_luci-core),)
739         PKG_SELECTED_MODULES+=libs/core
740 endif
741 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
742         PKG_SELECTED_MODULES+=libs/cbi
743 endif
744 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
745         PKG_SELECTED_MODULES+=libs/fastindex
746 endif
747 ifneq ($(CONFIG_PACKAGE_luci-http),)
748         PKG_SELECTED_MODULES+=libs/http
749 endif
750 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
751         PKG_SELECTED_MODULES+=libs/ipkg
752 endif
753 ifneq ($(CONFIG_PACKAGE_luci-json),)
754         PKG_SELECTED_MODULES+=libs/json
755 endif
756 ifneq ($(CONFIG_PACKAGE_luci-uci),)
757         PKG_SELECTED_MODULES+=libs/uci
758 endif
759 ifneq ($(CONFIG_PACKAGE_luci-sys),)
760         PKG_SELECTED_MODULES+=libs/sys
761 endif
762 ifneq ($(CONFIG_PACKAGE_luci-web),)
763         PKG_SELECTED_MODULES+=libs/web
764 endif
765 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
766         PKG_SELECTED_MODULES+=libs/uvl
767 endif
768
769 ifneq ($(CONFIG_PACKAGE_luci-httpd),)
770         PKG_SELECTED_MODULES+=libs/lucittpd
771 endif
772
773 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
774         PKG_SELECTED_MODULES+=modules/admin-core
775 endif
776 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
777         PKG_SELECTED_MODULES+=modules/admin-mini
778 endif
779 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
780         PKG_SELECTED_MODULES+=modules/admin-full
781 endif
782 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
783         PKG_SELECTED_MODULES+=modules/rpc
784 endif
785 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
786         PKG_SELECTED_MODULES+=modules/freifunk
787 endif
788
789 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
790         PKG_SELECTED_MODULES+=applications/freifunk-community
791 endif
792
793 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
794         PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
795 endif
796 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
797         PKG_SELECTED_MODULES+=applications/luci-siitwizard
798 endif
799 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
800         PKG_SELECTED_MODULES+=applications/luci-fw
801 endif
802 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
803         PKG_SELECTED_MODULES+=applications/luci-olsr
804 endif
805 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
806         PKG_SELECTED_MODULES+=applications/luci-qos
807 endif
808 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
809         PKG_SELECTED_MODULES+=applications/luci-splash
810 endif
811 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
812         PKG_SELECTED_MODULES+=applications/luci-statistics
813 endif
814 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
815         PKG_SELECTED_MODULES+=applications/luci-upnp
816 endif
817 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
818         PKG_SELECTED_MODULES+=applications/luci-ntpc
819 endif
820 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
821         PKG_SELECTED_MODULES+=applications/luci-ddns
822 endif
823 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
824         PKG_SELECTED_MODULES+=applications/luci-samba
825 endif
826 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
827         PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
828 endif
829 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
830         PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
831 endif
832 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
833         PKG_SELECTED_MODULES+=applications/luci-p910nd
834 endif
835 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
836         PKG_SELECTED_MODULES+=applications/luci-ushare
837 endif
838 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
839        PKG_SELECTED_MODULES+=applications/luci-hd_idle
840 endif
841 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
842        PKG_SELECTED_MODULES+=applications/luci-tinyproxy
843 endif
844 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
845        PKG_SELECTED_MODULES+=applications/luci-initmgr
846 endif
847 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
848        PKG_SELECTED_MODULES+=applications/luci-livestats
849 endif
850 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
851        PKG_SELECTED_MODULES+=applications/luci-asterisk
852 endif
853 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
854        PKG_SELECTED_MODULES+=applications/luci-polipo
855 endif
856 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
857        PKG_SELECTED_MODULES+=applications/luci-openvpn
858 endif
859
860
861 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
862         PKG_SELECTED_MODULES+=libs/sgi-cgi
863 endif
864 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
865         PKG_SELECTED_MODULES+=libs/sgi-luci
866 endif
867 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
868         PKG_SELECTED_MODULES+=libs/sgi-webuci
869 endif
870
871 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
872         PKG_SELECTED_MODULES+=themes/base
873 endif
874 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
875         PKG_SELECTED_MODULES+=themes/fledermaus
876 endif
877 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
878         PKG_SELECTED_MODULES+=themes/freifunk-bno
879 endif
880 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
881         PKG_SELECTED_MODULES+=themes/freifunk
882 endif
883 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
884         PKG_SELECTED_MODULES+=themes/openwrt.org
885 endif
886 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
887         PKG_SELECTED_MODULES+=themes/openwrt-light
888 endif
889
890 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
891         PKG_SELECTED_MODULES+=i18n/german
892 endif
893 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
894         PKG_SELECTED_MODULES+=i18n/english
895 endif
896 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
897         PKG_SELECTED_MODULES+=i18n/french
898 endif
899 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
900         PKG_SELECTED_MODULES+=i18n/italian
901 endif
902 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
903         PKG_SELECTED_MODULES+=i18n/russian
904 endif
905 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
906         PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
907 endif
908
909
910 MAKE_FLAGS += \
911         MODULES="$(PKG_SELECTED_MODULES)" \
912         LUA_TARGET="$(LUA_TARGET)" \
913         LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
914         CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
915         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
916         OS="Linux"
917
918
919 $(eval $(call BuildPackage,luci-core))
920 $(eval $(call BuildPackage,luci-cbi))
921 $(eval $(call BuildPackage,luci-fastindex))
922 $(eval $(call BuildPackage,luci-http))
923 $(eval $(call BuildPackage,luci-ipkg))
924 $(eval $(call BuildPackage,luci-json))
925 $(eval $(call BuildPackage,luci-uci))
926 $(eval $(call BuildPackage,luci-sys))
927 $(eval $(call BuildPackage,luci-web))
928 $(eval $(call BuildPackage,luci-uvl))
929
930 $(eval $(call BuildPackage,luci-httpd))
931
932 $(eval $(call BuildPackage,luci-admin-core))
933 $(eval $(call BuildPackage,luci-admin-mini))
934 $(eval $(call BuildPackage,luci-admin-full))
935 $(eval $(call BuildPackage,luci-admin-rpc))
936 $(eval $(call BuildPackage,luci-mod-freifunk))
937
938 $(eval $(call BuildPackage,luci-freifunk-community))
939
940 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
941 $(eval $(call BuildPackage,luci-app-siitwizard))
942 $(eval $(call BuildPackage,luci-app-firewall))
943 $(eval $(call BuildPackage,luci-app-olsr))
944 $(eval $(call BuildPackage,luci-app-qos))
945 $(eval $(call BuildPackage,luci-app-splash))
946 $(eval $(call BuildPackage,luci-app-statistics))
947 $(eval $(call BuildPackage,luci-app-upnp))
948 $(eval $(call BuildPackage,luci-app-ntpc))
949 $(eval $(call BuildPackage,luci-app-ddns))
950 $(eval $(call BuildPackage,luci-app-samba))
951 $(eval $(call BuildPackage,luci-app-uvc_streamer))
952 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
953 $(eval $(call BuildPackage,luci-app-p910nd))
954 $(eval $(call BuildPackage,luci-app-ushare))
955 $(eval $(call BuildPackage,luci-app-hd_idle))
956 $(eval $(call BuildPackage,luci-app-tinyproxy))
957 $(eval $(call BuildPackage,luci-app-initmgr))
958 $(eval $(call BuildPackage,luci-app-livestats))
959 $(eval $(call BuildPackage,luci-app-asterisk))
960 $(eval $(call BuildPackage,luci-app-polipo))
961 $(eval $(call BuildPackage,luci-app-openvpn))
962
963 $(eval $(call BuildPackage,luci-sgi-cgi))
964 $(eval $(call BuildPackage,luci-sgi-luci))
965 $(eval $(call BuildPackage,luci-sgi-webuci))
966
967 $(eval $(call BuildPackage,luci-theme-base))
968 $(eval $(call BuildPackage,luci-theme-fledermaus))
969 $(eval $(call BuildPackage,luci-theme-freifunk))
970 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
971 $(eval $(call BuildPackage,luci-theme-openwrt))
972 $(eval $(call BuildPackage,luci-theme-openwrtlight))
973
974 $(eval $(call BuildPackage,luci-i18n-german))
975 $(eval $(call BuildPackage,luci-i18n-english))
976 $(eval $(call BuildPackage,luci-i18n-french))
977 $(eval $(call BuildPackage,luci-i18n-italian))
978 $(eval $(call BuildPackage,luci-i18n-russian))
979 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))