361bff9b2d4b6db41bf5905bedf65813a20cd026
[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 define Package/luci-i18n-spanish
881 $(call Package/luci/i18ntemplate)
882 TITLE:=Spanish (by Guillermo Javier Nardoni)
883 endef
884
885 define Package/luci-i18n-spanish/install
886 $(call Package/luci/install/template,$(1),i18n/spanish)
887 endef
888
889
890 ### Compile ###
891 ifneq ($(CONFIG_PACKAGE_luci-core),)
892 PKG_SELECTED_MODULES+=libs/core
893 endif
894 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
895 PKG_SELECTED_MODULES+=libs/cbi
896 endif
897 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
898 PKG_SELECTED_MODULES+=libs/fastindex
899 endif
900 ifneq ($(CONFIG_PACKAGE_luci-http),)
901 PKG_SELECTED_MODULES+=libs/http
902 endif
903 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
904 PKG_SELECTED_MODULES+=libs/httpclient
905 endif
906 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
907 PKG_SELECTED_MODULES+=libs/ipkg
908 endif
909 ifneq ($(CONFIG_PACKAGE_luci-json),)
910 PKG_SELECTED_MODULES+=libs/json
911 endif
912 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
913 PKG_SELECTED_MODULES+=libs/lmo
914 endif
915 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
916 PKG_SELECTED_MODULES+=libs/luanet
917 endif
918 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
919 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
920 endif
921 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
922 PKG_SELECTED_MODULES+=libs/nixio
923 endif
924 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
925 PKG_SELECTED_MODULES+=libs/px5g
926 endif
927 ifneq ($(CONFIG_PACKAGE_luci-uci),)
928 PKG_SELECTED_MODULES+=libs/uci
929 endif
930 ifneq ($(CONFIG_PACKAGE_luci-sys),)
931 PKG_SELECTED_MODULES+=libs/sys
932 endif
933 ifneq ($(CONFIG_PACKAGE_luci-web),)
934 PKG_SELECTED_MODULES+=libs/web
935 endif
936 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
937 PKG_SELECTED_MODULES+=libs/uvl
938 endif
939
940 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
941 PKG_SELECTED_MODULES+=modules/admin-core
942 endif
943 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
944 PKG_SELECTED_MODULES+=modules/admin-mini
945 endif
946 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
947 PKG_SELECTED_MODULES+=modules/admin-full
948 endif
949 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
950 PKG_SELECTED_MODULES+=modules/rpc
951 endif
952 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
953 PKG_SELECTED_MODULES+=modules/freifunk
954 endif
955
956 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
957 PKG_SELECTED_MODULES+=applications/freifunk-community
958 endif
959
960 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
961 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
962 endif
963 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
964 PKG_SELECTED_MODULES+=applications/luci-siitwizard
965 endif
966 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
967 PKG_SELECTED_MODULES+=applications/luci-fw
968 endif
969 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
970 PKG_SELECTED_MODULES+=applications/luci-olsr
971 endif
972 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
973 PKG_SELECTED_MODULES+=applications/luci-qos
974 endif
975 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
976 PKG_SELECTED_MODULES+=applications/luci-splash
977 endif
978 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
979 PKG_SELECTED_MODULES+=applications/luci-statistics
980 endif
981 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
982 PKG_SELECTED_MODULES+=applications/luci-upnp
983 endif
984 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
985 PKG_SELECTED_MODULES+=applications/luci-ntpc
986 endif
987 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
988 PKG_SELECTED_MODULES+=applications/luci-ddns
989 endif
990 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
991 PKG_SELECTED_MODULES+=applications/luci-samba
992 endif
993 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
994 PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
995 endif
996 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
997 PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
998 endif
999 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1000 PKG_SELECTED_MODULES+=applications/luci-p910nd
1001 endif
1002 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1003 PKG_SELECTED_MODULES+=applications/luci-ushare
1004 endif
1005 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
1006 PKG_SELECTED_MODULES+=applications/luci-hd_idle
1007 endif
1008 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1009 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1010 endif
1011 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1012 PKG_SELECTED_MODULES+=applications/luci-initmgr
1013 endif
1014 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1015 PKG_SELECTED_MODULES+=applications/luci-livestats
1016 endif
1017 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1018 PKG_SELECTED_MODULES+=applications/luci-asterisk
1019 endif
1020 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1021 PKG_SELECTED_MODULES+=applications/luci-polipo
1022 endif
1023 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1024 PKG_SELECTED_MODULES+=applications/luci-openvpn
1025 endif
1026 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1027 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1028 endif
1029
1030
1031 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1032 PKG_SELECTED_MODULES+=libs/sgi-cgi
1033 endif
1034 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1035 PKG_SELECTED_MODULES+=libs/sgi-luci
1036 endif
1037
1038 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1039 PKG_SELECTED_MODULES+=themes/base
1040 endif
1041 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1042 PKG_SELECTED_MODULES+=themes/fledermaus
1043 endif
1044 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1045 PKG_SELECTED_MODULES+=themes/freifunk-bno
1046 endif
1047 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1048 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1049 endif
1050 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1051 PKG_SELECTED_MODULES+=themes/freifunk
1052 endif
1053 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1054 PKG_SELECTED_MODULES+=themes/openwrt.org
1055 endif
1056 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1057 PKG_SELECTED_MODULES+=themes/openwrt-light
1058 endif
1059
1060 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1061 PKG_SELECTED_MODULES+=i18n/german
1062 endif
1063 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1064 PKG_SELECTED_MODULES+=i18n/english
1065 endif
1066 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1067 PKG_SELECTED_MODULES+=i18n/french
1068 endif
1069 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1070 PKG_SELECTED_MODULES+=i18n/italian
1071 endif
1072 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1073 PKG_SELECTED_MODULES+=i18n/russian
1074 endif
1075 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1076 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1077 endif
1078 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1079 PKG_SELECTED_MODULES+=i18n/japanese
1080 endif
1081 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1082 PKG_SELECTED_MODULES+=i18n/greek
1083 endif
1084 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1085 PKG_SELECTED_MODULES+=i18n/catalan
1086 endif
1087 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1088 PKG_SELECTED_MODULES+=i18n/portuguese
1089 endif
1090 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1091 PKG_SELECTED_MODULES+=i18n/spanish
1092 endif
1093
1094
1095 MAKE_FLAGS += \
1096 MODULES="$(PKG_SELECTED_MODULES)" \
1097 LUA_TARGET="$(LUA_TARGET)" \
1098 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1099 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1100 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1101 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1102
1103
1104 $(eval $(call BuildPackage,luci-core))
1105 $(eval $(call BuildPackage,luci-cbi))
1106 $(eval $(call BuildPackage,luci-fastindex))
1107 $(eval $(call BuildPackage,luci-http))
1108 $(eval $(call BuildPackage,luci-httpclient))
1109 $(eval $(call BuildPackage,luci-ipkg))
1110 $(eval $(call BuildPackage,luci-json))
1111 $(eval $(call BuildPackage,luci-lmo))
1112 $(eval $(call BuildPackage,luci-luanet))
1113 $(eval $(call BuildPackage,luci-lucid))
1114 $(eval $(call BuildPackage,luci-nixio))
1115 $(eval $(call BuildPackage,luci-px5g))
1116 $(eval $(call BuildPackage,luci-uci))
1117 $(eval $(call BuildPackage,luci-sys))
1118 $(eval $(call BuildPackage,luci-web))
1119 $(eval $(call BuildPackage,luci-uvl))
1120
1121 $(eval $(call BuildPackage,luci-admin-core))
1122 $(eval $(call BuildPackage,luci-admin-mini))
1123 $(eval $(call BuildPackage,luci-admin-full))
1124 $(eval $(call BuildPackage,luci-admin-rpc))
1125 $(eval $(call BuildPackage,luci-mod-freifunk))
1126
1127 $(eval $(call BuildPackage,luci-freifunk-community))
1128
1129 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1130 $(eval $(call BuildPackage,luci-app-siitwizard))
1131 $(eval $(call BuildPackage,luci-app-firewall))
1132 $(eval $(call BuildPackage,luci-app-olsr))
1133 $(eval $(call BuildPackage,luci-app-qos))
1134 $(eval $(call BuildPackage,luci-app-splash))
1135 $(eval $(call BuildPackage,luci-app-statistics))
1136 $(eval $(call BuildPackage,luci-app-upnp))
1137 $(eval $(call BuildPackage,luci-app-ntpc))
1138 $(eval $(call BuildPackage,luci-app-ddns))
1139 $(eval $(call BuildPackage,luci-app-samba))
1140 $(eval $(call BuildPackage,luci-app-uvc_streamer))
1141 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1142 $(eval $(call BuildPackage,luci-app-p910nd))
1143 $(eval $(call BuildPackage,luci-app-ushare))
1144 $(eval $(call BuildPackage,luci-app-hd_idle))
1145 $(eval $(call BuildPackage,luci-app-tinyproxy))
1146 $(eval $(call BuildPackage,luci-app-initmgr))
1147 $(eval $(call BuildPackage,luci-app-livestats))
1148 $(eval $(call BuildPackage,luci-app-asterisk))
1149 $(eval $(call BuildPackage,luci-app-polipo))
1150 $(eval $(call BuildPackage,luci-app-openvpn))
1151 $(eval $(call BuildPackage,luci-app-p2pblock))
1152
1153 $(eval $(call BuildPackage,luci-sgi-cgi))
1154
1155 $(eval $(call BuildPackage,luci-theme-base))
1156 $(eval $(call BuildPackage,luci-theme-fledermaus))
1157 $(eval $(call BuildPackage,luci-theme-freifunk))
1158 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1159 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1160 $(eval $(call BuildPackage,luci-theme-openwrt))
1161 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1162
1163 $(eval $(call BuildPackage,luci-i18n-german))
1164 $(eval $(call BuildPackage,luci-i18n-english))
1165 $(eval $(call BuildPackage,luci-i18n-french))
1166 $(eval $(call BuildPackage,luci-i18n-italian))
1167 $(eval $(call BuildPackage,luci-i18n-russian))
1168 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1169 $(eval $(call BuildPackage,luci-i18n-japanese))
1170 $(eval $(call BuildPackage,luci-i18n-greek))
1171 $(eval $(call BuildPackage,luci-i18n-catalan))
1172 $(eval $(call BuildPackage,luci-i18n-portuguese))
1173 $(eval $(call BuildPackage,luci-i18n-spanish))