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