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