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-luci
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_axtls
295 config PACKAGE_luci-nixio_axtls
296 bool "Builtin (axTLS)"
298 config PACKAGE_luci-nixio_cyassl
300 select PACKAGE_libcyassl
302 config PACKAGE_luci-nixio_openssl
304 select PACKAGE_libopenssl
308 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
312 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
314 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
318 define Package/luci-px5g
319 $(call Package/luci/webservertemplate)
320 TITLE:=RSA/X.509 Key Generator (required for LuCId SSL support)
324 define Package/luci-px5g/install
325 $(call Package/luci/install/template,$(1),libs/px5g)
329 define Package/luci-sys
330 $(call Package/luci/libtemplate)
331 TITLE:=LuCI Linux/POSIX system library
332 DEPENDS:=+luci-iwinfo
335 define Package/luci-sys/install
336 $(call Package/luci/install/template,$(1),libs/sys)
340 define Package/luci-web
341 $(call Package/luci/libtemplate)
342 DEPENDS+=+luci-http +luci-sys +luci-uci +luci-lucid +luci-sgi-cgi +luci-lmo
343 TITLE:=MVC Webframework
344 $(call Config,luci.main.lang,string,auto,Default Language)
347 define Package/luci-web/conffiles
351 define Package/luci-web/install
352 $(call Package/luci/install/template,$(1),libs/web)
356 define Package/luci-uvl
357 $(call Package/luci/libtemplate)
358 DEPENDS+=+luci-sys +luci-uci +luci-core
359 TITLE:=UVL - UCI Validation Layer
362 define Package/luci-uvl/install
363 $(call Package/luci/install/template,$(1),libs/uvl)
368 ### Community Packages ###
370 define Package/luci-freifunk-community
371 $(call Package/luci/fftemplate)
373 +luci-lucid +luci-sgi-cgi +luci-app-splash \
374 +luci-app-ffwizard-leipzig \
376 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
377 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
378 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
379 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
380 TITLE:=Freifunk Community Meta-Package
383 define Package/luci-freifunk-community/install
384 $(call Package/luci/install/template,$(1),applications/freifunk-community)
389 define Package/luci-admin-core
390 $(call Package/luci/webtemplate)
391 DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
392 TITLE:=Web UI Core Module
395 define Package/luci-admin-core/conffiles
396 /etc/config/luci_hosts
397 /etc/config/luci_ethers
400 define Package/luci-admin-core/install
401 $(call Package/luci/install/template,$(1),modules/admin-core)
402 touch $(1)/etc/init.d/luci_fixtime || true
406 define Package/luci-niu
407 $(call Package/luci/maintemplate)
408 DEPENDS+=+luci-admin-core @BROKEN
409 TITLE:=NIU - Next Generation Interface
412 define Package/luci-niu/install
413 $(call Package/luci/install/template,$(1),modules/niu)
416 define Package/luci-admin-mini
417 $(call Package/luci/webtemplate)
418 DEPENDS+=+luci-admin-core
419 TITLE:=LuCI Essentials - stripped down and user-friendly
422 define Package/luci-admin-mini/install
423 $(call Package/luci/install/template,$(1),modules/admin-mini)
427 define Package/luci-admin-full
428 $(call Package/luci/webtemplate)
429 DEPENDS+=+luci-admin-core +luci-ipkg
430 TITLE:=LuCI Administration - full-featured for full control
433 define Package/luci-admin-full/install
434 $(call Package/luci/install/template,$(1),modules/admin-full)
438 define Package/luci-admin-rpc
439 $(call Package/luci/webtemplate)
441 TITLE:=LuCI RPC - JSON-RPC API
444 define Package/luci-admin-rpc/install
445 $(call Package/luci/install/template,$(1),modules/rpc)
449 define Package/luci-mod-freifunk
450 $(call Package/luci/fftemplate)
451 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
452 TITLE:=LuCI Freifunk module
455 define Package/luci-mod-freifunk/conffiles
459 define Package/luci-mod-freifunk/install
460 $(call Package/luci/install/template,$(1),modules/freifunk)
467 define Package/luci-app-ffwizard-leipzig
468 $(call Package/luci/fftemplate)
469 TITLE:=Freifunk Leipzig configuration wizard
472 define Package/luci-app-ffwizard-leipzig/install
473 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
477 define Package/luci-app-siitwizard
478 $(call Package/luci/fftemplate)
479 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
480 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
483 define Package/luci-app-siitwizard/install
484 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
488 define Package/luci-app-firewall
489 $(call Package/luci/webtemplate)
490 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
491 TITLE:=Firewall and Portforwarding application
494 define Package/luci-app-firewall/install
495 $(call Package/luci/install/template,$(1),applications/luci-fw)
499 define Package/luci-app-olsr
500 $(call Package/luci/webtemplate)
501 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
502 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
503 TITLE:=OLSR configuration and status module
506 define Package/luci-app-olsr/install
507 $(call Package/luci/install/template,$(1),applications/luci-olsr)
511 define Package/luci-app-qos
512 $(call Package/luci/webtemplate)
513 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
514 TITLE:=Quality of Service configuration module
517 define Package/luci-app-qos/install
518 $(call Package/luci/install/template,$(1),applications/luci-qos)
522 define Package/luci-app-splash
523 $(call Package/luci/fftemplate)
524 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
525 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
526 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
527 +PACKAGE_luci-app-splash:iptables-mod-ipopt
528 TITLE:=Freifunk DHCP-Splash application
531 define Package/luci-app-splash/conffiles
532 /etc/config/luci_splash
535 define Package/luci-app-splash/install
536 $(call Package/luci/install/template,$(1),applications/luci-splash)
540 define Package/luci-app-statistics
541 $(call Package/luci/webtemplate)
542 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
543 +PACKAGE_luci-app-statistics:rrdtool1 \
544 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
545 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
546 +PACKAGE_luci-app-statistics:collectd-mod-interface \
547 +PACKAGE_luci-app-statistics:collectd-mod-load
548 TITLE:=LuCI Statistics Application
551 define Package/luci-app-statistics/conffiles
552 /etc/config/luci_statistics
555 define Package/luci-app-statistics/install
556 $(call Package/luci/install/template,$(1),applications/luci-statistics)
559 define Package/luci-app-diag-core
560 $(call Package/luci/webtemplate)
561 DEPENDS+=+luci-admin-core
562 TITLE:=LuCI Diagnostics Tools (Core)
565 define Package/luci-app-diag-devinfo
566 $(call Package/luci/webtemplate)
567 DEPENDS+=+PACKAGE_luci-app-diag-devinfo:luci-app-diag-core \
568 +PACKAGE_luci-app-diag-devinfo:smap \
569 +PACKAGE_luci-app-diag-devinfo:netdiscover \
570 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
571 +PACKAGE_luci-app-diag-devinfo:httping \
572 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
573 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo
574 TITLE:=LuCI Diagnostics Tools (Device Info)
577 define Package/luci-app-voice-core
578 $(call Package/luci/webtemplate)
579 DEPENDS+=+luci-admin-core
580 TITLE:=LuCI Voice Software (Core)
583 define Package/luci-app-voice-diag
584 $(call Package/luci/webtemplate)
585 DEPENDS+=+PACKAGE_luci-app-voice-diag:luci-app-voice-core \
586 +PACKAGE_luci-app-voice-diag:luci-app-diag-devinfo
587 TITLE:=LuCI Voice Software (Diagnostics)
590 define Package/luci-app-diag-devinfo/conffiles
591 /etc/config/luci_devinfo
594 define Package/luci-app-diag-core/install
595 $(call Package/luci/install/template,$(1),applications/luci-diag-core)
598 define Package/luci-app-diag-devinfo/install
599 $(call Package/luci/install/template,$(1),applications/luci-diag-devinfo)
602 define Package/luci-app-voice-core/install
603 $(call Package/luci/install/template,$(1),applications/luci-voice-core)
606 define Package/luci-app-voice-diag/install
607 $(call Package/luci/install/template,$(1),applications/luci-voice-diag)
610 define Package/luci-app-upnp
611 $(call Package/luci/webtemplate)
612 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
613 TITLE:=Universal Plug & Play configuration module
616 define Package/luci-app-upnp/install
617 $(call Package/luci/install/template,$(1),applications/luci-upnp)
621 define Package/luci-app-ntpc
622 $(call Package/luci/webtemplate)
623 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
624 TITLE:=NTP time synchronisation client configuration module
627 define Package/luci-app-ntpc/install
628 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
632 define Package/luci-app-ddns
633 $(call Package/luci/webtemplate)
634 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
635 TITLE:=Dynamic DNS configuration module
638 define Package/luci-app-ddns/install
639 $(call Package/luci/install/template,$(1),applications/luci-ddns)
643 define Package/luci-app-samba
644 $(call Package/luci/webtemplate)
645 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
646 TITLE:=Network Shares - Samba SMB/CIFS module
649 define Package/luci-app-samba/install
650 $(call Package/luci/install/template,$(1),applications/luci-samba)
654 define Package/luci-app-mmc_over_gpio
655 $(call Package/luci/webtemplate)
656 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
660 define Package/luci-app-mmc_over_gpio/install
661 $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
665 define Package/luci-app-p910nd
666 $(call Package/luci/webtemplate)
667 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
668 TITLE:=p910nd - Printer server module
671 define Package/luci-app-p910nd/install
672 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
676 define Package/luci-app-ushare
677 $(call Package/luci/webtemplate)
678 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
679 TITLE:=ushare - UPnP A/V & DLNA Media Server
682 define Package/luci-app-ushare/install
683 $(call Package/luci/install/template,$(1),applications/luci-ushare)
686 define Package/luci-app-hd_idle
687 $(call Package/luci/webtemplate)
688 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
692 define Package/luci-app-hd_idle/install
693 $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
696 define Package/luci-app-tinyproxy
697 $(call Package/luci/webtemplate)
698 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
699 TITLE:=Tinyproxy - HTTP(S)-Proxy
702 define Package/luci-app-tinyproxy/install
703 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
706 define Package/luci-app-initmgr
707 $(call Package/luci/webtemplate)
708 DEPENDS+=+luci-admin-full
709 TITLE:=LuCI Initscript Management
712 define Package/luci-app-initmgr/install
713 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
716 define Package/luci-app-livestats
717 $(call Package/luci/webtemplate)
718 DEPENDS+=+luci-admin-core +luci-admin-rpc
719 TITLE:=LuCI Realtime Statistics
722 define Package/luci-app-livestats/install
723 $(call Package/luci/install/template,$(1),applications/luci-livestats)
726 define Package/luci-app-asterisk
727 $(call Package/luci/webtemplate)
728 TITLE:=LuCI Support for Asterisk PBX
729 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
732 define Package/luci-app-asterisk/install
733 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
736 define Package/luci-app-polipo
737 $(call Package/luci/webtemplate)
738 TITLE:=LuCI Support for the Polipo Proxy
739 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
742 define Package/luci-app-polipo/install
743 $(call Package/luci/install/template,$(1),applications/luci-polipo)
746 define Package/luci-app-openvpn
747 $(call Package/luci/webtemplate)
748 TITLE:=LuCI Support for OpenVPN
749 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
752 define Package/luci-app-openvpn/install
753 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
756 define Package/luci-app-p2pblock
757 $(call Package/luci/webtemplate)
758 TITLE:=LuCI Support for the Freifunk P2P-Block addon
759 DEPENDS+=+luci-admin-core +luci-app-firewall \
760 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
763 define Package/luci-app-p2pblock/install
764 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
768 ### Server Gateway Interfaces ###
770 define Package/luci-sgi-cgi
771 $(call Package/luci/webservertemplate)
772 TITLE:=CGI Gateway behind existing Webserver
775 define Package/luci-sgi-cgi/install
776 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
780 define Package/luci-theme-base
781 $(call Package/luci/thtemplate)
783 TITLE:=Common base for all themes
786 define Package/luci-theme-base/install
787 $(call Package/luci/install/template,$(1),themes/base)
790 define Package/luci-theme-fledermaus
791 $(call Package/luci/fftemplate)
793 TITLE:=Fledermaus Theme
796 define Package/luci-theme-fledermaus/install
797 $(call Package/luci/install/template,$(1),themes/fledermaus)
800 define Package/luci-theme-freifunk
801 $(call Package/luci/fftemplate)
803 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
804 TITLE:=alternative Freifunk Theme
807 define Package/luci-theme-freifunk/install
808 $(call Package/luci/install/template,$(1),themes/freifunk)
811 define Package/luci-theme-freifunk-bno
812 $(call Package/luci/fftemplate)
814 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
815 TITLE:=Freifunk Berlin Nordost Theme
818 define Package/luci-theme-freifunk-bno/install
819 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
822 define Package/luci-theme-freifunk-hannover
823 $(call Package/luci/fftemplate)
825 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
826 TITLE:=Freifunk Hannover Theme
829 define Package/luci-theme-freifunk-hannover/install
830 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
833 define Package/luci-theme-openwrt
834 $(call Package/luci/thtemplate)
835 TITLE:=OpenWrt.org (default)
836 DEPENDS:=+luci-theme-base luci-core
837 DEFAULT:=y if PACKAGE_luci-core
840 define Package/luci-theme-openwrt/install
841 $(call Package/luci/install/template,$(1),themes/openwrt.org)
844 define Package/luci-theme-openwrtlight
845 $(call Package/luci/thtemplate)
846 TITLE:=OpenWrt.org - light variant without images
847 DEPENDS:=+luci-theme-base
850 define Package/luci-theme-openwrtlight/install
851 $(call Package/luci/install/template,$(1),themes/openwrt-light)
856 define Package/luci-i18n-german
857 $(call Package/luci/i18ntemplate)
861 define Package/luci-i18n-german/install
862 $(call Package/luci/install/template,$(1),i18n/german)
866 define Package/luci-i18n-english
867 $(call Package/luci/i18ntemplate)
871 define Package/luci-i18n-english/install
872 $(call Package/luci/install/template,$(1),i18n/english)
876 define Package/luci-i18n-french
877 $(call Package/luci/i18ntemplate)
878 TITLE:=French (by Florian Fainelli)
881 define Package/luci-i18n-french/install
882 $(call Package/luci/install/template,$(1),i18n/french)
886 define Package/luci-i18n-italian
887 $(call Package/luci/i18ntemplate)
888 TITLE:=Italian (by Matteo Croce)
891 define Package/luci-i18n-italian/install
892 $(call Package/luci/install/template,$(1),i18n/italian)
896 define Package/luci-i18n-russian
897 $(call Package/luci/i18ntemplate)
898 TITLE:=Russian (by Skryabin Dmitry)
901 define Package/luci-i18n-russian/install
902 $(call Package/luci/install/template,$(1),i18n/russian)
906 define Package/luci-i18n-portuguese_brazilian
907 $(call Package/luci/i18ntemplate)
908 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
911 define Package/luci-i18n-portuguese_brazilian/install
912 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
916 define Package/luci-i18n-japanese
917 $(call Package/luci/i18ntemplate)
918 TITLE:=Japanese (by Tsukasa Hamano)
921 define Package/luci-i18n-japanese/install
922 $(call Package/luci/install/template,$(1),i18n/japanese)
926 define Package/luci-i18n-greek
927 $(call Package/luci/i18ntemplate)
928 TITLE:=Greek (by Vasilis Tsiligiannis)
931 define Package/luci-i18n-greek/install
932 $(call Package/luci/install/template,$(1),i18n/greek)
936 define Package/luci-i18n-catalan
937 $(call Package/luci/i18ntemplate)
938 TITLE:=Catalan (by Eduard Duran)
941 define Package/luci-i18n-catalan/install
942 $(call Package/luci/install/template,$(1),i18n/catalan)
946 define Package/luci-i18n-portuguese
947 $(call Package/luci/i18ntemplate)
948 TITLE:=Portuguese (by Jose Monteiro)
951 define Package/luci-i18n-portuguese/install
952 $(call Package/luci/install/template,$(1),i18n/portuguese)
956 define Package/luci-i18n-spanish
957 $(call Package/luci/i18ntemplate)
958 TITLE:=Spanish (by Guillermo Javier Nardoni)
961 define Package/luci-i18n-spanish/install
962 $(call Package/luci/install/template,$(1),i18n/spanish)
966 define Package/luci-i18n-vietnamese
967 $(call Package/luci/i18ntemplate)
968 TITLE:=Vietnamese (by Hong Phuc Dang)
971 define Package/luci-i18n-vietnamese/install
972 $(call Package/luci/install/template,$(1),i18n/vietnamese)
977 define Package/luci-kamikaze
978 $(call Package/luci/collectiontemplate)
979 TITLE:=Standard OpenWrt Kamikaze set including full and mini admin and the standard theme
980 DEPENDS:=+luci-admin-full +luci-admin-mini +luci-theme-openwrt +luci-app-firewall
983 define Package/luci-light
984 $(call Package/luci/collectiontemplate)
985 TITLE:=Minimum package set using only admin mini and a theme without grafics
986 DEPENDS:=+luci-admin-mini +luci-theme-openwrtlight
990 ifneq ($(CONFIG_PACKAGE_luci-core),)
991 PKG_SELECTED_MODULES+=libs/core
993 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
994 PKG_SELECTED_MODULES+=libs/cbi
996 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
997 PKG_SELECTED_MODULES+=libs/fastindex
999 ifneq ($(CONFIG_PACKAGE_luci-http),)
1000 PKG_SELECTED_MODULES+=libs/http
1002 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
1003 PKG_SELECTED_MODULES+=libs/httpclient
1005 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
1006 PKG_SELECTED_MODULES+=libs/ipkg
1008 ifneq ($(CONFIG_PACKAGE_luci-json),)
1009 PKG_SELECTED_MODULES+=libs/json
1011 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
1012 PKG_SELECTED_MODULES+=libs/lmo
1014 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
1015 PKG_SELECTED_MODULES+=libs/luanet
1017 ifneq ($(CONFIG_PACKAGE_luci-iwinfo),)
1018 PKG_SELECTED_MODULES+=libs/iwinfo
1020 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
1021 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
1023 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
1024 PKG_SELECTED_MODULES+=libs/nixio
1026 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
1027 PKG_SELECTED_MODULES+=libs/px5g
1029 ifneq ($(CONFIG_PACKAGE_luci-uci),)
1030 PKG_SELECTED_MODULES+=libs/uci
1032 ifneq ($(CONFIG_PACKAGE_luci-sys),)
1033 PKG_SELECTED_MODULES+=libs/sys
1035 ifneq ($(CONFIG_PACKAGE_luci-web),)
1036 PKG_SELECTED_MODULES+=libs/web
1038 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
1039 PKG_SELECTED_MODULES+=libs/uvl
1042 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
1043 PKG_SELECTED_MODULES+=modules/admin-core
1045 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
1046 PKG_SELECTED_MODULES+=modules/admin-mini
1048 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
1049 PKG_SELECTED_MODULES+=modules/admin-full
1051 ifneq ($(CONFIG_PACKAGE_luci-niu),)
1052 PKG_SELECTED_MODULES+=modules/niu
1054 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
1055 PKG_SELECTED_MODULES+=modules/rpc
1057 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
1058 PKG_SELECTED_MODULES+=modules/freifunk
1061 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
1062 PKG_SELECTED_MODULES+=applications/freifunk-community
1065 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
1066 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
1068 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
1069 PKG_SELECTED_MODULES+=applications/luci-siitwizard
1071 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
1072 PKG_SELECTED_MODULES+=applications/luci-fw
1074 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
1075 PKG_SELECTED_MODULES+=applications/luci-olsr
1077 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
1078 PKG_SELECTED_MODULES+=applications/luci-qos
1080 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
1081 PKG_SELECTED_MODULES+=applications/luci-splash
1083 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
1084 PKG_SELECTED_MODULES+=applications/luci-statistics
1086 ifneq ($(CONFIG_PACKAGE_luci-app-voice-core),)
1087 PKG_SELECTED_MODULES+=applications/luci-voice-core
1089 ifneq ($(CONFIG_PACKAGE_luci-app-voice-diag),)
1090 PKG_SELECTED_MODULES+=applications/luci-voice-diag
1092 ifneq ($(CONFIG_PACKAGE_luci-app-diag-core),)
1093 PKG_SELECTED_MODULES+=applications/luci-diag-core
1095 ifneq ($(CONFIG_PACKAGE_luci-app-diag-devinfo),)
1096 PKG_SELECTED_MODULES+=applications/luci-diag-devinfo
1098 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
1099 PKG_SELECTED_MODULES+=applications/luci-upnp
1101 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
1102 PKG_SELECTED_MODULES+=applications/luci-ntpc
1104 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
1105 PKG_SELECTED_MODULES+=applications/luci-ddns
1107 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
1108 PKG_SELECTED_MODULES+=applications/luci-samba
1110 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
1111 PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
1113 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1114 PKG_SELECTED_MODULES+=applications/luci-p910nd
1116 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1117 PKG_SELECTED_MODULES+=applications/luci-ushare
1119 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
1120 PKG_SELECTED_MODULES+=applications/luci-hd_idle
1122 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1123 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1125 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1126 PKG_SELECTED_MODULES+=applications/luci-initmgr
1128 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1129 PKG_SELECTED_MODULES+=applications/luci-livestats
1131 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1132 PKG_SELECTED_MODULES+=applications/luci-asterisk
1134 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1135 PKG_SELECTED_MODULES+=applications/luci-polipo
1137 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1138 PKG_SELECTED_MODULES+=applications/luci-openvpn
1140 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1141 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1145 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1146 PKG_SELECTED_MODULES+=libs/sgi-cgi
1148 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1149 PKG_SELECTED_MODULES+=libs/sgi-luci
1152 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1153 PKG_SELECTED_MODULES+=themes/base
1155 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1156 PKG_SELECTED_MODULES+=themes/fledermaus
1158 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1159 PKG_SELECTED_MODULES+=themes/freifunk-bno
1161 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1162 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1164 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1165 PKG_SELECTED_MODULES+=themes/freifunk
1167 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1168 PKG_SELECTED_MODULES+=themes/openwrt.org
1170 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1171 PKG_SELECTED_MODULES+=themes/openwrt-light
1174 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1175 PKG_SELECTED_MODULES+=i18n/german
1177 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1178 PKG_SELECTED_MODULES+=i18n/english
1180 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1181 PKG_SELECTED_MODULES+=i18n/french
1183 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1184 PKG_SELECTED_MODULES+=i18n/italian
1186 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1187 PKG_SELECTED_MODULES+=i18n/russian
1189 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1190 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1192 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1193 PKG_SELECTED_MODULES+=i18n/japanese
1195 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1196 PKG_SELECTED_MODULES+=i18n/greek
1198 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1199 PKG_SELECTED_MODULES+=i18n/catalan
1201 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1202 PKG_SELECTED_MODULES+=i18n/portuguese
1204 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1205 PKG_SELECTED_MODULES+=i18n/spanish
1207 ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
1208 PKG_SELECTED_MODULES+=i18n/vietnamese
1213 MODULES="$(PKG_SELECTED_MODULES)" \
1214 LUA_TARGET="$(LUA_TARGET)" \
1215 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1216 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1217 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1218 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1221 $(eval $(call BuildPackage,luci-core))
1222 $(eval $(call BuildPackage,luci-cbi))
1223 $(eval $(call BuildPackage,luci-fastindex))
1224 $(eval $(call BuildPackage,luci-http))
1225 $(eval $(call BuildPackage,luci-httpclient))
1226 $(eval $(call BuildPackage,luci-ipkg))
1227 $(eval $(call BuildPackage,luci-json))
1228 $(eval $(call BuildPackage,luci-lmo))
1229 $(eval $(call BuildPackage,luci-luanet))
1230 $(eval $(call BuildPackage,luci-iwinfo))
1231 $(eval $(call BuildPackage,luci-lucid))
1232 $(eval $(call BuildPackage,luci-nixio))
1233 $(eval $(call BuildPackage,luci-px5g))
1234 $(eval $(call BuildPackage,luci-uci))
1235 $(eval $(call BuildPackage,luci-sys))
1236 $(eval $(call BuildPackage,luci-web))
1237 $(eval $(call BuildPackage,luci-uvl))
1239 $(eval $(call BuildPackage,luci-admin-core))
1240 $(eval $(call BuildPackage,luci-admin-mini))
1241 $(eval $(call BuildPackage,luci-admin-full))
1242 $(eval $(call BuildPackage,luci-niu))
1243 $(eval $(call BuildPackage,luci-admin-rpc))
1244 $(eval $(call BuildPackage,luci-mod-freifunk))
1246 $(eval $(call BuildPackage,luci-freifunk-community))
1248 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1249 $(eval $(call BuildPackage,luci-app-siitwizard))
1250 $(eval $(call BuildPackage,luci-app-firewall))
1251 $(eval $(call BuildPackage,luci-app-olsr))
1252 $(eval $(call BuildPackage,luci-app-qos))
1253 $(eval $(call BuildPackage,luci-app-splash))
1254 $(eval $(call BuildPackage,luci-app-statistics))
1255 $(eval $(call BuildPackage,luci-app-diag-core))
1256 $(eval $(call BuildPackage,luci-app-diag-devinfo))
1257 $(eval $(call BuildPackage,luci-app-voice-core))
1258 $(eval $(call BuildPackage,luci-app-voice-diag))
1259 $(eval $(call BuildPackage,luci-app-upnp))
1260 $(eval $(call BuildPackage,luci-app-ntpc))
1261 $(eval $(call BuildPackage,luci-app-ddns))
1262 $(eval $(call BuildPackage,luci-app-samba))
1263 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1264 $(eval $(call BuildPackage,luci-app-p910nd))
1265 $(eval $(call BuildPackage,luci-app-ushare))
1266 $(eval $(call BuildPackage,luci-app-hd_idle))
1267 $(eval $(call BuildPackage,luci-app-tinyproxy))
1268 $(eval $(call BuildPackage,luci-app-initmgr))
1269 $(eval $(call BuildPackage,luci-app-livestats))
1270 $(eval $(call BuildPackage,luci-app-asterisk))
1271 $(eval $(call BuildPackage,luci-app-polipo))
1272 $(eval $(call BuildPackage,luci-app-openvpn))
1273 $(eval $(call BuildPackage,luci-app-p2pblock))
1275 $(eval $(call BuildPackage,luci-sgi-cgi))
1277 $(eval $(call BuildPackage,luci-theme-base))
1278 $(eval $(call BuildPackage,luci-theme-fledermaus))
1279 $(eval $(call BuildPackage,luci-theme-freifunk))
1280 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1281 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1282 $(eval $(call BuildPackage,luci-theme-openwrt))
1283 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1285 $(eval $(call BuildPackage,luci-i18n-german))
1286 $(eval $(call BuildPackage,luci-i18n-english))
1287 $(eval $(call BuildPackage,luci-i18n-french))
1288 $(eval $(call BuildPackage,luci-i18n-italian))
1289 $(eval $(call BuildPackage,luci-i18n-russian))
1290 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1291 $(eval $(call BuildPackage,luci-i18n-japanese))
1292 $(eval $(call BuildPackage,luci-i18n-greek))
1293 $(eval $(call BuildPackage,luci-i18n-catalan))
1294 $(eval $(call BuildPackage,luci-i18n-portuguese))
1295 $(eval $(call BuildPackage,luci-i18n-spanish))
1296 $(eval $(call BuildPackage,luci-i18n-vietnamese))
1298 $(eval $(call BuildPackage,luci-kamikaze))
1299 $(eval $(call BuildPackage,luci-light))