1 include $(TOPDIR)/rules.mk
6 USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
15 PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
17 PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p')
18 PKG_VERSION:=0.9+svn$(PKG_REV)
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
23 PKG_SOURCE_VERSION:=$(PKG_REV)
26 PKG_BUILD_DEPENDS:=$(if $(STAGING_DIR_ROOT),lua/host)
27 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
28 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
32 PKG_SELECTED_MODULES:=
34 ifeq ($(BOARD),brcm-2.4)
35 MAKE_FLAGS += CRAP="1"
39 include $(INCLUDE_DIR)/package.mk
43 mkdir -p $(PKG_BUILD_DIR)
44 $(TAR) c -C ../../../ . \
45 --exclude=.pc --exclude=.svn --exclude=.git \
46 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
48 tar x -C $(PKG_BUILD_DIR)/
52 define Build/Configure
57 define Package/luci/libtemplate
60 TITLE:=LuCI - Lua Configuration Interface
61 URL:=http://luci.freifunk-halle.net/
62 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
63 SUBMENU:=Internal Libraries
67 define Package/luci/webservertemplate
68 $(call Package/luci/libtemplate)
72 define Package/luci/fftemplate
73 $(call Package/luci/libtemplate)
75 DEPENDS:=+luci-mod-freifunk
78 define Package/luci/i18ntemplate
79 $(call Package/luci/libtemplate)
84 define Package/luci/thtemplate
85 $(call Package/luci/libtemplate)
90 define Package/luci/maintemplate
91 $(call Package/luci/libtemplate)
95 define Package/luci/webtemplate
96 $(call Package/luci/libtemplate)
100 define Package/luci/collectiontemplate
101 $(call Package/luci/libtemplate)
106 define Package/luci/install/template
107 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
108 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
115 define Package/luci-core
116 $(call Package/luci/libtemplate)
117 DEPENDS:=+lua +luci-nixio
118 TITLE:=LuCI core libraries
121 define Package/luci-core/install
122 $(call Package/luci/install/template,$(1),libs/core)
123 $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
125 "$(OPENWRTVERSION)" \
130 define Package/luci-core/config
132 prompt "Build Target"
133 default PACKAGE_luci-core_source
135 config PACKAGE_luci-core_compile
138 config PACKAGE_luci-core_stripped
141 config PACKAGE_luci-core_source
147 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
151 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
155 ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
161 define Package/luci-cbi
162 $(call Package/luci/libtemplate)
163 DEPENDS+=+luci-web +luci-uvl +luci-uci
164 TITLE:=Configuration Binding Interface
167 define Package/luci-cbi/install
168 $(call Package/luci/install/template,$(1),libs/cbi)
172 define Package/luci-uci
173 $(call Package/luci/libtemplate)
175 TITLE:=High-Level UCI API
178 define Package/luci-uci/install
179 $(call Package/luci/install/template,$(1),libs/uci)
183 define Package/luci-fastindex
184 $(call Package/luci/libtemplate)
185 TITLE:=Fastindex indexing module
188 define Package/luci-fastindex/install
189 $(call Package/luci/install/template,$(1),libs/fastindex)
193 define Package/luci-http
194 $(call Package/luci/libtemplate)
195 TITLE:=HTTP Protocol implementation
198 define Package/luci-http/install
199 $(call Package/luci/install/template,$(1),libs/http)
203 define Package/luci-httpclient
204 $(call Package/luci/libtemplate)
205 TITLE:=HTTP(S) client library
206 DEPENDS+=+luci-http +luci-nixio
209 define Package/luci-httpclient/install
210 $(call Package/luci/install/template,$(1),libs/httpclient)
214 define Package/luci-ipkg
215 $(call Package/luci/libtemplate)
216 TITLE:=LuCI IPKG/OPKG call abstraction library
219 define Package/luci-ipkg/install
220 $(call Package/luci/install/template,$(1),libs/ipkg)
224 define Package/luci-json
225 $(call Package/luci/libtemplate)
226 TITLE:=LuCI JSON Library
229 define Package/luci-json/install
230 $(call Package/luci/install/template,$(1),libs/json)
234 define Package/luci-lmo
235 $(call Package/luci/libtemplate)
239 define Package/luci-lmo/install
240 $(call Package/luci/install/template,$(1),libs/lmo)
244 define Package/luci-luanet
245 $(call Package/luci/libtemplate)
250 define Package/luci-luanet/install
251 $(call Package/luci/install/template,$(1),libs/luanet)
255 define Package/luci-iwinfo
256 $(call Package/luci/libtemplate)
257 TITLE:=Wireless abstration library
260 define Package/luci-iwinfo/install
261 $(call Package/luci/install/template,$(1),libs/iwinfo)
265 define Package/luci-lucid
266 $(call Package/luci/webservertemplate)
267 TITLE:=LuCId Full-Stack Webserver
268 DEPENDS+=+luci-nixio +luci-http +luci-px5g
271 define Package/luci-lucid/install
272 $(call Package/luci/install/template,$(1),libs/lucid)
273 $(call Package/luci/install/template,$(1),libs/lucid-http)
280 define Package/luci-nixio
281 $(call Package/luci/libtemplate)
282 TITLE:=NIXIO POSIX Library
283 DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl
286 define Package/luci-nixio/install
287 $(call Package/luci/install/template,$(1),libs/nixio)
290 define Package/luci-nixio/config
292 prompt "TLS Provider"
293 default PACKAGE_luci-nixio_notls
295 config PACKAGE_luci-nixio_notls
298 config PACKAGE_luci-nixio_axtls
299 bool "Builtin (axTLS)"
301 config PACKAGE_luci-nixio_cyassl
303 select PACKAGE_libcyassl
305 config PACKAGE_luci-nixio_openssl
307 select PACKAGE_libopenssl
311 ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),)
315 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
319 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
321 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
325 define Package/luci-px5g
326 $(call Package/luci/webservertemplate)
327 TITLE:=RSA/X.509 Key Generator (required for LuCId SSL support)
331 define Package/luci-px5g/install
332 $(call Package/luci/install/template,$(1),libs/px5g)
336 define Package/luci-sys
337 $(call Package/luci/libtemplate)
338 TITLE:=LuCI Linux/POSIX system library
339 DEPENDS:=+luci-iwinfo
342 define Package/luci-sys/install
343 $(call Package/luci/install/template,$(1),libs/sys)
347 define Package/luci-web
348 $(call Package/luci/libtemplate)
349 DEPENDS+=+luci-http +luci-sys +luci-nixio +luci-uci \
350 +luci-sgi-cgi +luci-lmo
351 TITLE:=MVC Webframework
352 $(call Config,luci.main.lang,string,auto,Default Language)
355 define Package/luci-web/conffiles
359 define Package/luci-web/install
360 $(call Package/luci/install/template,$(1),libs/web)
364 define Package/luci-uvl
365 $(call Package/luci/libtemplate)
366 DEPENDS+=+luci-sys +luci-uci +luci-core
367 TITLE:=UVL - UCI Validation Layer
370 define Package/luci-uvl/install
371 $(call Package/luci/install/template,$(1),libs/uvl)
376 ### Community Packages ###
378 define Package/luci-freifunk-community
379 $(call Package/luci/fftemplate)
381 +luci-web +luci-app-splash \
382 +luci-app-ffwizard-leipzig \
384 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
385 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
386 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
387 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
388 TITLE:=Freifunk Community Meta-Package
391 define Package/luci-freifunk-community/install
392 $(call Package/luci/install/template,$(1),applications/freifunk-community)
397 define Package/luci-admin-core
398 $(call Package/luci/webtemplate)
399 DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
400 TITLE:=Web UI Core Module
403 define Package/luci-admin-core/install
404 $(call Package/luci/install/template,$(1),modules/admin-core)
405 touch $(1)/etc/init.d/luci_fixtime || true
409 define Package/luci-niu
410 $(call Package/luci/maintemplate)
411 DEPENDS+=+luci-admin-core @BROKEN
412 TITLE:=NIU - Next Generation Interface
415 define Package/luci-niu/install
416 $(call Package/luci/install/template,$(1),modules/niu)
419 define Package/luci-admin-mini
420 $(call Package/luci/webtemplate)
421 DEPENDS+=+luci-admin-core
422 TITLE:=LuCI Essentials - stripped down and user-friendly
425 define Package/luci-admin-mini/install
426 $(call Package/luci/install/template,$(1),modules/admin-mini)
430 define Package/luci-admin-full
431 $(call Package/luci/webtemplate)
432 DEPENDS+=+luci-admin-core +luci-ipkg
433 TITLE:=LuCI Administration - full-featured for full control
436 define Package/luci-admin-full/install
437 $(call Package/luci/install/template,$(1),modules/admin-full)
441 define Package/luci-admin-rpc
442 $(call Package/luci/webtemplate)
444 TITLE:=LuCI RPC - JSON-RPC API
447 define Package/luci-admin-rpc/install
448 $(call Package/luci/install/template,$(1),modules/rpc)
452 define Package/luci-mod-freifunk
453 $(call Package/luci/fftemplate)
454 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
455 TITLE:=LuCI Freifunk module
458 define Package/luci-mod-freifunk/conffiles
462 define Package/luci-mod-freifunk/install
463 $(call Package/luci/install/template,$(1),modules/freifunk)
470 define Package/luci-app-ffwizard-leipzig
471 $(call Package/luci/fftemplate)
472 TITLE:=Freifunk Leipzig configuration wizard
475 define Package/luci-app-ffwizard-leipzig/install
476 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
480 define Package/luci-app-siitwizard
481 $(call Package/luci/fftemplate)
482 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
483 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
486 define Package/luci-app-siitwizard/install
487 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
491 define Package/luci-app-firewall
492 $(call Package/luci/webtemplate)
493 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
494 TITLE:=Firewall and Portforwarding application
497 define Package/luci-app-firewall/install
498 $(call Package/luci/install/template,$(1),applications/luci-fw)
502 define Package/luci-app-olsr
503 $(call Package/luci/webtemplate)
504 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
505 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
506 TITLE:=OLSR configuration and status module
509 define Package/luci-app-olsr/install
510 $(call Package/luci/install/template,$(1),applications/luci-olsr)
514 define Package/luci-app-qos
515 $(call Package/luci/webtemplate)
516 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
517 TITLE:=Quality of Service configuration module
520 define Package/luci-app-qos/install
521 $(call Package/luci/install/template,$(1),applications/luci-qos)
525 define Package/luci-app-splash
526 $(call Package/luci/fftemplate)
527 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
528 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
529 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
530 +PACKAGE_luci-app-splash:iptables-mod-ipopt
531 TITLE:=Freifunk DHCP-Splash application
534 define Package/luci-app-splash/conffiles
535 /etc/config/luci_splash
538 define Package/luci-app-splash/install
539 $(call Package/luci/install/template,$(1),applications/luci-splash)
543 define Package/luci-app-statistics
544 $(call Package/luci/webtemplate)
545 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
546 +PACKAGE_luci-app-statistics:rrdtool1 \
547 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
548 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
549 +PACKAGE_luci-app-statistics:collectd-mod-interface \
550 +PACKAGE_luci-app-statistics:collectd-mod-load
551 TITLE:=LuCI Statistics Application
554 define Package/luci-app-statistics/conffiles
555 /etc/config/luci_statistics
558 define Package/luci-app-statistics/install
559 $(call Package/luci/install/template,$(1),applications/luci-statistics)
562 define Package/luci-app-diag-core
563 $(call Package/luci/webtemplate)
564 DEPENDS+=+luci-admin-core
565 TITLE:=LuCI Diagnostics Tools (Core)
568 define Package/luci-app-diag-devinfo
569 $(call Package/luci/webtemplate)
570 DEPENDS+=+PACKAGE_luci-app-diag-devinfo:luci-app-diag-core \
571 +PACKAGE_luci-app-diag-devinfo:smap \
572 +PACKAGE_luci-app-diag-devinfo:netdiscover \
573 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
574 +PACKAGE_luci-app-diag-devinfo:httping \
575 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
576 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo
577 TITLE:=LuCI Diagnostics Tools (Device Info)
580 define Package/luci-app-voice-core
581 $(call Package/luci/webtemplate)
582 DEPENDS+=+luci-admin-core
583 TITLE:=LuCI Voice Software (Core)
586 define Package/luci-app-voice-diag
587 $(call Package/luci/webtemplate)
588 DEPENDS+=+PACKAGE_luci-app-voice-diag:luci-app-voice-core \
589 +PACKAGE_luci-app-voice-diag:luci-app-diag-devinfo
590 TITLE:=LuCI Voice Software (Diagnostics)
593 define Package/luci-app-diag-devinfo/conffiles
594 /etc/config/luci_devinfo
597 define Package/luci-app-diag-core/install
598 $(call Package/luci/install/template,$(1),applications/luci-diag-core)
601 define Package/luci-app-diag-devinfo/install
602 $(call Package/luci/install/template,$(1),applications/luci-diag-devinfo)
605 define Package/luci-app-voice-core/install
606 $(call Package/luci/install/template,$(1),applications/luci-voice-core)
609 define Package/luci-app-voice-diag/install
610 $(call Package/luci/install/template,$(1),applications/luci-voice-diag)
613 define Package/luci-app-upnp
614 $(call Package/luci/webtemplate)
615 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
616 TITLE:=Universal Plug & Play configuration module
619 define Package/luci-app-upnp/install
620 $(call Package/luci/install/template,$(1),applications/luci-upnp)
624 define Package/luci-app-ntpc
625 $(call Package/luci/webtemplate)
626 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
627 TITLE:=NTP time synchronisation client configuration module
630 define Package/luci-app-ntpc/install
631 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
635 define Package/luci-app-ddns
636 $(call Package/luci/webtemplate)
637 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
638 TITLE:=Dynamic DNS configuration module
641 define Package/luci-app-ddns/install
642 $(call Package/luci/install/template,$(1),applications/luci-ddns)
646 define Package/luci-app-samba
647 $(call Package/luci/webtemplate)
648 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
649 TITLE:=Network Shares - Samba SMB/CIFS module
652 define Package/luci-app-samba/install
653 $(call Package/luci/install/template,$(1),applications/luci-samba)
657 define Package/luci-app-mmc-over-gpio
658 $(call Package/luci/webtemplate)
659 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio
663 define Package/luci-app-mmc-over-gpio/install
664 $(call Package/luci/install/template,$(1),applications/luci-mmc-over-gpio)
668 define Package/luci-app-p910nd
669 $(call Package/luci/webtemplate)
670 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
671 TITLE:=p910nd - Printer server module
674 define Package/luci-app-p910nd/install
675 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
679 define Package/luci-app-ushare
680 $(call Package/luci/webtemplate)
681 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
682 TITLE:=ushare - UPnP A/V & DLNA Media Server
685 define Package/luci-app-ushare/install
686 $(call Package/luci/install/template,$(1),applications/luci-ushare)
689 define Package/luci-app-hd-idle
690 $(call Package/luci/webtemplate)
691 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd-idle:hd-idle
695 define Package/luci-app-hd-idle/install
696 $(call Package/luci/install/template,$(1),applications/luci-hd-idle)
699 define Package/luci-app-tinyproxy
700 $(call Package/luci/webtemplate)
701 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
702 TITLE:=Tinyproxy - HTTP(S)-Proxy
705 define Package/luci-app-tinyproxy/install
706 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
709 define Package/luci-app-initmgr
710 $(call Package/luci/webtemplate)
711 DEPENDS+=+luci-admin-full
712 TITLE:=LuCI Initscript Management
715 define Package/luci-app-initmgr/install
716 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
719 define Package/luci-app-livestats
720 $(call Package/luci/webtemplate)
721 DEPENDS+=+luci-admin-core +luci-admin-rpc
722 TITLE:=LuCI Realtime Statistics
725 define Package/luci-app-livestats/install
726 $(call Package/luci/install/template,$(1),applications/luci-livestats)
729 define Package/luci-app-asterisk
730 $(call Package/luci/webtemplate)
731 TITLE:=LuCI Support for Asterisk PBX
732 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
735 define Package/luci-app-asterisk/install
736 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
739 define Package/luci-app-polipo
740 $(call Package/luci/webtemplate)
741 TITLE:=LuCI Support for the Polipo Proxy
742 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
745 define Package/luci-app-polipo/install
746 $(call Package/luci/install/template,$(1),applications/luci-polipo)
749 define Package/luci-app-openvpn
750 $(call Package/luci/webtemplate)
751 TITLE:=LuCI Support for OpenVPN
752 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
755 define Package/luci-app-openvpn/install
756 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
759 define Package/luci-app-p2pblock
760 $(call Package/luci/webtemplate)
761 TITLE:=LuCI Support for the Freifunk P2P-Block addon
762 DEPENDS+=+luci-admin-core +luci-app-firewall \
763 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
766 define Package/luci-app-p2pblock/install
767 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
771 ### Server Gateway Interfaces ###
773 define Package/luci-sgi-cgi
774 $(call Package/luci/webservertemplate)
775 TITLE:=CGI Gateway behind existing Webserver
778 define Package/luci-sgi-cgi/install
779 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
782 define Package/luci-sgi-uhttpd
783 $(call Package/luci/libtemplate)
784 TITLE:=Binding for the uHTTPd server
785 DEPENDS+=+uhttpd +uhttpd-mod-lua
788 define Package/luci-sgi-uhttpd/install
789 $(call Package/luci/install/template,$(1),libs/sgi-uhttpd)
794 define Package/luci-theme-base
795 $(call Package/luci/thtemplate)
797 TITLE:=Common base for all themes
800 define Package/luci-theme-base/install
801 $(call Package/luci/install/template,$(1),themes/base)
804 define Package/luci-theme-fledermaus
805 $(call Package/luci/fftemplate)
807 TITLE:=Fledermaus Theme
810 define Package/luci-theme-fledermaus/install
811 $(call Package/luci/install/template,$(1),themes/fledermaus)
814 define Package/luci-theme-freifunk
815 $(call Package/luci/fftemplate)
817 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
818 TITLE:=alternative Freifunk Theme
821 define Package/luci-theme-freifunk/install
822 $(call Package/luci/install/template,$(1),themes/freifunk)
825 define Package/luci-theme-freifunk-bno
826 $(call Package/luci/fftemplate)
828 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
829 TITLE:=Freifunk Berlin Nordost Theme
832 define Package/luci-theme-freifunk-bno/install
833 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
836 define Package/luci-theme-freifunk-hannover
837 $(call Package/luci/fftemplate)
839 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
840 TITLE:=Freifunk Hannover Theme
843 define Package/luci-theme-freifunk-hannover/install
844 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
847 define Package/luci-theme-openwrt
848 $(call Package/luci/thtemplate)
849 TITLE:=OpenWrt.org (default)
850 DEPENDS:=+luci-theme-base luci-core
851 DEFAULT:=y if PACKAGE_luci-core
854 define Package/luci-theme-openwrt/install
855 $(call Package/luci/install/template,$(1),themes/openwrt.org)
858 define Package/luci-theme-openwrtlight
859 $(call Package/luci/thtemplate)
860 TITLE:=OpenWrt.org - light variant without images
861 DEPENDS:=+luci-theme-base
864 define Package/luci-theme-openwrtlight/install
865 $(call Package/luci/install/template,$(1),themes/openwrt-light)
870 define Package/luci-i18n-german
871 $(call Package/luci/i18ntemplate)
875 define Package/luci-i18n-german/install
876 $(call Package/luci/install/template,$(1),i18n/german)
880 define Package/luci-i18n-english
881 $(call Package/luci/i18ntemplate)
885 define Package/luci-i18n-english/install
886 $(call Package/luci/install/template,$(1),i18n/english)
890 define Package/luci-i18n-french
891 $(call Package/luci/i18ntemplate)
892 TITLE:=French (by Florian Fainelli)
895 define Package/luci-i18n-french/install
896 $(call Package/luci/install/template,$(1),i18n/french)
900 define Package/luci-i18n-italian
901 $(call Package/luci/i18ntemplate)
902 TITLE:=Italian (by Matteo Croce)
905 define Package/luci-i18n-italian/install
906 $(call Package/luci/install/template,$(1),i18n/italian)
910 define Package/luci-i18n-russian
911 $(call Package/luci/i18ntemplate)
912 TITLE:=Russian (by Skryabin Dmitry)
915 define Package/luci-i18n-russian/install
916 $(call Package/luci/install/template,$(1),i18n/russian)
920 define Package/luci-i18n-portuguese_brazilian
921 $(call Package/luci/i18ntemplate)
922 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
925 define Package/luci-i18n-portuguese_brazilian/install
926 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
930 define Package/luci-i18n-japanese
931 $(call Package/luci/i18ntemplate)
932 TITLE:=Japanese (by Tsukasa Hamano)
935 define Package/luci-i18n-japanese/install
936 $(call Package/luci/install/template,$(1),i18n/japanese)
940 define Package/luci-i18n-greek
941 $(call Package/luci/i18ntemplate)
942 TITLE:=Greek (by Vasilis Tsiligiannis)
945 define Package/luci-i18n-greek/install
946 $(call Package/luci/install/template,$(1),i18n/greek)
950 define Package/luci-i18n-catalan
951 $(call Package/luci/i18ntemplate)
952 TITLE:=Catalan (by Eduard Duran)
955 define Package/luci-i18n-catalan/install
956 $(call Package/luci/install/template,$(1),i18n/catalan)
960 define Package/luci-i18n-portuguese
961 $(call Package/luci/i18ntemplate)
962 TITLE:=Portuguese (by Jose Monteiro)
965 define Package/luci-i18n-portuguese/install
966 $(call Package/luci/install/template,$(1),i18n/portuguese)
970 define Package/luci-i18n-spanish
971 $(call Package/luci/i18ntemplate)
972 TITLE:=Spanish (by Guillermo Javier Nardoni)
975 define Package/luci-i18n-spanish/install
976 $(call Package/luci/install/template,$(1),i18n/spanish)
980 define Package/luci-i18n-vietnamese
981 $(call Package/luci/i18ntemplate)
982 TITLE:=Vietnamese (by Hong Phuc Dang)
985 define Package/luci-i18n-vietnamese/install
986 $(call Package/luci/install/template,$(1),i18n/vietnamese)
992 $(call Package/luci/collectiontemplate)
993 TITLE:=Standard OpenWrt set including full and mini admin and the standard theme
994 DEPENDS:=+uhttpd +luci-admin-full +luci-admin-mini +luci-theme-openwrt \
995 +luci-app-firewall +luci-app-initmgr
998 define Package/luci/install
1003 define Package/luci-ssl
1004 $(call Package/luci/collectiontemplate)
1005 TITLE:=Standard OpenWrt set with https support
1006 DEPENDS:=+uhttpd +uhttpd-mod-tls +px5g +luci-admin-full +luci-admin-mini \
1007 +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr
1010 define Package/luci-ssl/install
1015 define Package/luci-light
1016 $(call Package/luci/collectiontemplate)
1017 TITLE:=Minimum package set using only admin mini and a theme without grafics
1018 DEPENDS:=+uhttpd +luci-admin-mini +luci-theme-openwrtlight
1021 define Package/luci-light/install
1027 ifneq ($(CONFIG_PACKAGE_luci-core),)
1028 PKG_SELECTED_MODULES+=libs/core
1030 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
1031 PKG_SELECTED_MODULES+=libs/cbi
1033 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
1034 PKG_SELECTED_MODULES+=libs/fastindex
1036 ifneq ($(CONFIG_PACKAGE_luci-http),)
1037 PKG_SELECTED_MODULES+=libs/http
1039 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
1040 PKG_SELECTED_MODULES+=libs/httpclient
1042 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
1043 PKG_SELECTED_MODULES+=libs/ipkg
1045 ifneq ($(CONFIG_PACKAGE_luci-json),)
1046 PKG_SELECTED_MODULES+=libs/json
1048 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
1049 PKG_SELECTED_MODULES+=libs/lmo
1051 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
1052 PKG_SELECTED_MODULES+=libs/luanet
1054 ifneq ($(CONFIG_PACKAGE_luci-iwinfo),)
1055 PKG_SELECTED_MODULES+=libs/iwinfo
1057 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
1058 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
1060 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
1061 PKG_SELECTED_MODULES+=libs/nixio
1063 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
1064 PKG_SELECTED_MODULES+=libs/px5g
1066 ifneq ($(CONFIG_PACKAGE_luci-uci),)
1067 PKG_SELECTED_MODULES+=libs/uci
1069 ifneq ($(CONFIG_PACKAGE_luci-sys),)
1070 PKG_SELECTED_MODULES+=libs/sys
1072 ifneq ($(CONFIG_PACKAGE_luci-web),)
1073 PKG_SELECTED_MODULES+=libs/web
1075 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
1076 PKG_SELECTED_MODULES+=libs/uvl
1079 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
1080 PKG_SELECTED_MODULES+=modules/admin-core
1082 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
1083 PKG_SELECTED_MODULES+=modules/admin-mini
1085 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
1086 PKG_SELECTED_MODULES+=modules/admin-full
1088 ifneq ($(CONFIG_PACKAGE_luci-niu),)
1089 PKG_SELECTED_MODULES+=modules/niu
1091 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
1092 PKG_SELECTED_MODULES+=modules/rpc
1094 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
1095 PKG_SELECTED_MODULES+=modules/freifunk
1098 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
1099 PKG_SELECTED_MODULES+=applications/freifunk-community
1102 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
1103 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
1105 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
1106 PKG_SELECTED_MODULES+=applications/luci-siitwizard
1108 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
1109 PKG_SELECTED_MODULES+=applications/luci-fw
1111 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
1112 PKG_SELECTED_MODULES+=applications/luci-olsr
1114 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
1115 PKG_SELECTED_MODULES+=applications/luci-qos
1117 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
1118 PKG_SELECTED_MODULES+=applications/luci-splash
1120 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
1121 PKG_SELECTED_MODULES+=applications/luci-statistics
1123 ifneq ($(CONFIG_PACKAGE_luci-app-voice-core),)
1124 PKG_SELECTED_MODULES+=applications/luci-voice-core
1126 ifneq ($(CONFIG_PACKAGE_luci-app-voice-diag),)
1127 PKG_SELECTED_MODULES+=applications/luci-voice-diag
1129 ifneq ($(CONFIG_PACKAGE_luci-app-diag-core),)
1130 PKG_SELECTED_MODULES+=applications/luci-diag-core
1132 ifneq ($(CONFIG_PACKAGE_luci-app-diag-devinfo),)
1133 PKG_SELECTED_MODULES+=applications/luci-diag-devinfo
1135 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
1136 PKG_SELECTED_MODULES+=applications/luci-upnp
1138 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
1139 PKG_SELECTED_MODULES+=applications/luci-ntpc
1141 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
1142 PKG_SELECTED_MODULES+=applications/luci-ddns
1144 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
1145 PKG_SELECTED_MODULES+=applications/luci-samba
1147 ifneq ($(CONFIG_PACKAGE_luci-app-mmc-over-gpio),)
1148 PKG_SELECTED_MODULES+=applications/luci-mmc-over-gpio
1150 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1151 PKG_SELECTED_MODULES+=applications/luci-p910nd
1153 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1154 PKG_SELECTED_MODULES+=applications/luci-ushare
1156 ifneq ($(CONFIG_PACKAGE_luci-app-hd-idle),)
1157 PKG_SELECTED_MODULES+=applications/luci-hd-idle
1159 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1160 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1162 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1163 PKG_SELECTED_MODULES+=applications/luci-initmgr
1165 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1166 PKG_SELECTED_MODULES+=applications/luci-livestats
1168 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1169 PKG_SELECTED_MODULES+=applications/luci-asterisk
1171 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1172 PKG_SELECTED_MODULES+=applications/luci-polipo
1174 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1175 PKG_SELECTED_MODULES+=applications/luci-openvpn
1177 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1178 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1182 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1183 PKG_SELECTED_MODULES+=libs/sgi-cgi
1185 ifneq ($(CONFIG_PACKAGE_luci-sgi-uhttpd),)
1186 PKG_SELECTED_MODULES+=libs/sgi-uhttpd
1188 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1189 PKG_SELECTED_MODULES+=libs/sgi-luci
1192 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1193 PKG_SELECTED_MODULES+=themes/base
1195 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1196 PKG_SELECTED_MODULES+=themes/fledermaus
1198 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1199 PKG_SELECTED_MODULES+=themes/freifunk-bno
1201 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1202 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1204 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1205 PKG_SELECTED_MODULES+=themes/freifunk
1207 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1208 PKG_SELECTED_MODULES+=themes/openwrt.org
1210 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1211 PKG_SELECTED_MODULES+=themes/openwrt-light
1214 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1215 PKG_SELECTED_MODULES+=i18n/german
1217 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1218 PKG_SELECTED_MODULES+=i18n/english
1220 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1221 PKG_SELECTED_MODULES+=i18n/french
1223 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1224 PKG_SELECTED_MODULES+=i18n/italian
1226 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1227 PKG_SELECTED_MODULES+=i18n/russian
1229 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1230 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1232 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1233 PKG_SELECTED_MODULES+=i18n/japanese
1235 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1236 PKG_SELECTED_MODULES+=i18n/greek
1238 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1239 PKG_SELECTED_MODULES+=i18n/catalan
1241 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1242 PKG_SELECTED_MODULES+=i18n/portuguese
1244 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1245 PKG_SELECTED_MODULES+=i18n/spanish
1247 ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
1248 PKG_SELECTED_MODULES+=i18n/vietnamese
1253 MODULES="$(PKG_SELECTED_MODULES)" \
1254 LUA_TARGET="$(LUA_TARGET)" \
1255 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1256 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1257 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1258 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1261 $(eval $(call BuildPackage,luci-core))
1262 $(eval $(call BuildPackage,luci-cbi))
1263 $(eval $(call BuildPackage,luci-fastindex))
1264 $(eval $(call BuildPackage,luci-http))
1265 $(eval $(call BuildPackage,luci-httpclient))
1266 $(eval $(call BuildPackage,luci-ipkg))
1267 $(eval $(call BuildPackage,luci-json))
1268 $(eval $(call BuildPackage,luci-lmo))
1269 $(eval $(call BuildPackage,luci-luanet))
1270 $(eval $(call BuildPackage,luci-iwinfo))
1271 $(eval $(call BuildPackage,luci-lucid))
1272 $(eval $(call BuildPackage,luci-nixio))
1273 $(eval $(call BuildPackage,luci-px5g))
1274 $(eval $(call BuildPackage,luci-uci))
1275 $(eval $(call BuildPackage,luci-sys))
1276 $(eval $(call BuildPackage,luci-web))
1277 $(eval $(call BuildPackage,luci-uvl))
1279 $(eval $(call BuildPackage,luci-admin-core))
1280 $(eval $(call BuildPackage,luci-admin-mini))
1281 $(eval $(call BuildPackage,luci-admin-full))
1282 $(eval $(call BuildPackage,luci-niu))
1283 $(eval $(call BuildPackage,luci-admin-rpc))
1284 $(eval $(call BuildPackage,luci-mod-freifunk))
1286 $(eval $(call BuildPackage,luci-freifunk-community))
1288 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1289 $(eval $(call BuildPackage,luci-app-siitwizard))
1290 $(eval $(call BuildPackage,luci-app-firewall))
1291 $(eval $(call BuildPackage,luci-app-olsr))
1292 $(eval $(call BuildPackage,luci-app-qos))
1293 $(eval $(call BuildPackage,luci-app-splash))
1294 $(eval $(call BuildPackage,luci-app-statistics))
1295 $(eval $(call BuildPackage,luci-app-diag-core))
1296 $(eval $(call BuildPackage,luci-app-diag-devinfo))
1297 $(eval $(call BuildPackage,luci-app-voice-core))
1298 $(eval $(call BuildPackage,luci-app-voice-diag))
1299 $(eval $(call BuildPackage,luci-app-upnp))
1300 $(eval $(call BuildPackage,luci-app-ntpc))
1301 $(eval $(call BuildPackage,luci-app-ddns))
1302 $(eval $(call BuildPackage,luci-app-samba))
1303 $(eval $(call BuildPackage,luci-app-mmc-over-gpio))
1304 $(eval $(call BuildPackage,luci-app-p910nd))
1305 $(eval $(call BuildPackage,luci-app-ushare))
1306 $(eval $(call BuildPackage,luci-app-hd-idle))
1307 $(eval $(call BuildPackage,luci-app-tinyproxy))
1308 $(eval $(call BuildPackage,luci-app-initmgr))
1309 $(eval $(call BuildPackage,luci-app-livestats))
1310 $(eval $(call BuildPackage,luci-app-asterisk))
1311 $(eval $(call BuildPackage,luci-app-polipo))
1312 $(eval $(call BuildPackage,luci-app-openvpn))
1313 $(eval $(call BuildPackage,luci-app-p2pblock))
1315 $(eval $(call BuildPackage,luci-sgi-cgi))
1316 $(eval $(call BuildPackage,luci-sgi-uhttpd))
1318 $(eval $(call BuildPackage,luci-theme-base))
1319 $(eval $(call BuildPackage,luci-theme-fledermaus))
1320 $(eval $(call BuildPackage,luci-theme-freifunk))
1321 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1322 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1323 $(eval $(call BuildPackage,luci-theme-openwrt))
1324 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1326 $(eval $(call BuildPackage,luci-i18n-german))
1327 $(eval $(call BuildPackage,luci-i18n-english))
1328 $(eval $(call BuildPackage,luci-i18n-french))
1329 $(eval $(call BuildPackage,luci-i18n-italian))
1330 $(eval $(call BuildPackage,luci-i18n-russian))
1331 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1332 $(eval $(call BuildPackage,luci-i18n-japanese))
1333 $(eval $(call BuildPackage,luci-i18n-greek))
1334 $(eval $(call BuildPackage,luci-i18n-catalan))
1335 $(eval $(call BuildPackage,luci-i18n-portuguese))
1336 $(eval $(call BuildPackage,luci-i18n-spanish))
1337 $(eval $(call BuildPackage,luci-i18n-vietnamese))
1339 $(eval $(call BuildPackage,luci))
1340 $(eval $(call BuildPackage,luci-ssl))
1341 $(eval $(call BuildPackage,luci-light))