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