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