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