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.10+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-uci
162 $(call Package/luci/libtemplate)
164 TITLE:=High-Level UCI API
167 define Package/luci-uci/install
168 $(call Package/luci/install/template,$(1),libs/uci)
172 define Package/luci-fastindex
173 $(call Package/luci/libtemplate)
174 TITLE:=Fastindex indexing module
177 define Package/luci-fastindex/install
178 $(call Package/luci/install/template,$(1),libs/fastindex)
182 define Package/luci-http
183 $(call Package/luci/libtemplate)
184 TITLE:=HTTP Protocol implementation
187 define Package/luci-http/install
188 $(call Package/luci/install/template,$(1),libs/http)
192 define Package/luci-httpclient
193 $(call Package/luci/libtemplate)
194 TITLE:=HTTP(S) client library
195 DEPENDS+=+luci-http +luci-nixio
198 define Package/luci-httpclient/install
199 $(call Package/luci/install/template,$(1),libs/httpclient)
203 define Package/luci-ipkg
204 $(call Package/luci/libtemplate)
205 TITLE:=LuCI IPKG/OPKG call abstraction library
208 define Package/luci-ipkg/install
209 $(call Package/luci/install/template,$(1),libs/ipkg)
213 define Package/luci-json
214 $(call Package/luci/libtemplate)
215 TITLE:=LuCI JSON Library
218 define Package/luci-json/install
219 $(call Package/luci/install/template,$(1),libs/json)
223 define Package/luci-lmo
224 $(call Package/luci/libtemplate)
228 define Package/luci-lmo/install
229 $(call Package/luci/install/template,$(1),libs/lmo)
233 define Package/luci-luanet
234 $(call Package/luci/libtemplate)
239 define Package/luci-luanet/install
240 $(call Package/luci/install/template,$(1),libs/luanet)
244 define Package/luci-iwinfo
245 $(call Package/luci/libtemplate)
246 TITLE:=Wireless abstration library
249 define Package/luci-iwinfo/install
250 $(call Package/luci/install/template,$(1),libs/iwinfo)
254 define Package/luci-lucid
255 $(call Package/luci/webservertemplate)
256 TITLE:=LuCId Full-Stack Webserver
257 DEPENDS+=+luci-nixio +luci-http +luci-px5g
260 define Package/luci-lucid/install
261 $(call Package/luci/install/template,$(1),libs/lucid)
262 $(call Package/luci/install/template,$(1),libs/lucid-http)
269 define Package/luci-nixio
270 $(call Package/luci/libtemplate)
271 TITLE:=NIXIO POSIX Library
272 DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl
275 define Package/luci-nixio/install
276 $(call Package/luci/install/template,$(1),libs/nixio)
279 define Package/luci-nixio/config
281 prompt "TLS Provider"
282 default PACKAGE_luci-nixio_notls
284 config PACKAGE_luci-nixio_notls
287 config PACKAGE_luci-nixio_axtls
288 bool "Builtin (axTLS)"
290 config PACKAGE_luci-nixio_cyassl
292 select PACKAGE_libcyassl
294 config PACKAGE_luci-nixio_openssl
296 select PACKAGE_libopenssl
300 ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),)
304 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
308 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
310 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
314 define Package/luci-px5g
315 $(call Package/luci/webservertemplate)
316 TITLE:=RSA/X.509 Key Generator (required for LuCId SSL support)
320 define Package/luci-px5g/install
321 $(call Package/luci/install/template,$(1),libs/px5g)
325 define Package/luci-sys
326 $(call Package/luci/libtemplate)
327 TITLE:=LuCI Linux/POSIX system library
328 DEPENDS:=+luci-iwinfo
331 define Package/luci-sys/install
332 $(call Package/luci/install/template,$(1),libs/sys)
336 define Package/luci-web
337 $(call Package/luci/libtemplate)
338 DEPENDS+=+luci-http +luci-sys +luci-nixio +luci-uci \
339 +luci-sgi-cgi +luci-lmo
340 TITLE:=MVC Webframework
341 $(call Config,luci.main.lang,string,auto,Default Language)
344 define Package/luci-web/conffiles
348 define Package/luci-web/install
349 $(call Package/luci/install/template,$(1),libs/web)
353 define Package/luci-uvl
354 $(call Package/luci/libtemplate)
355 DEPENDS+=+luci-sys +luci-uci +luci-core
356 TITLE:=UVL - UCI Validation Layer
359 define Package/luci-uvl/install
360 $(call Package/luci/install/template,$(1),libs/uvl)
365 ### Community Packages ###
367 define Package/luci-freifunk-community
368 $(call Package/luci/fftemplate)
370 +luci-web +luci-app-splash \
371 +luci-app-ffwizard-leipzig \
373 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
374 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
375 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
376 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
377 TITLE:=Freifunk Community Meta-Package
380 define Package/luci-freifunk-community/install
381 $(call Package/luci/install/template,$(1),applications/freifunk-community)
386 define Package/luci-admin-core
387 $(call Package/luci/webtemplate)
388 DEPENDS+=+luci-web +luci-i18n-english
389 TITLE:=Web UI Core Module
392 define Package/luci-admin-core/install
393 $(call Package/luci/install/template,$(1),modules/admin-core)
394 touch $(1)/etc/init.d/luci_fixtime || true
398 define Package/luci-niu
399 $(call Package/luci/maintemplate)
400 DEPENDS+=+luci-admin-core @BROKEN
401 TITLE:=NIU - Next Generation Interface
404 define Package/luci-niu/install
405 $(call Package/luci/install/template,$(1),modules/niu)
408 define Package/luci-admin-mini
409 $(call Package/luci/webtemplate)
410 DEPENDS+=+luci-admin-core
411 TITLE:=LuCI Essentials - stripped down and user-friendly
414 define Package/luci-admin-mini/install
415 $(call Package/luci/install/template,$(1),modules/admin-mini)
419 define Package/luci-admin-full
420 $(call Package/luci/webtemplate)
421 DEPENDS+=+luci-admin-core +luci-ipkg
422 TITLE:=LuCI Administration - full-featured for full control
425 define Package/luci-admin-full/install
426 $(call Package/luci/install/template,$(1),modules/admin-full)
430 define Package/luci-admin-rpc
431 $(call Package/luci/webtemplate)
433 TITLE:=LuCI RPC - JSON-RPC API
436 define Package/luci-admin-rpc/install
437 $(call Package/luci/install/template,$(1),modules/rpc)
441 define Package/luci-mod-freifunk
442 $(call Package/luci/fftemplate)
443 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
444 TITLE:=LuCI Freifunk module
447 define Package/luci-mod-freifunk/conffiles
451 define Package/luci-mod-freifunk/install
452 $(call Package/luci/install/template,$(1),modules/freifunk)
459 define Package/luci-app-ffwizard-leipzig
460 $(call Package/luci/fftemplate)
461 TITLE:=Freifunk Leipzig configuration wizard
464 define Package/luci-app-ffwizard-leipzig/install
465 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
469 define Package/luci-app-siitwizard
470 $(call Package/luci/fftemplate)
471 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
472 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
475 define Package/luci-app-siitwizard/install
476 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
480 define Package/luci-app-firewall
481 $(call Package/luci/webtemplate)
482 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
483 TITLE:=Firewall and Portforwarding application
486 define Package/luci-app-firewall/install
487 $(call Package/luci/install/template,$(1),applications/luci-fw)
491 define Package/luci-app-olsr
492 $(call Package/luci/webtemplate)
493 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
494 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
495 TITLE:=OLSR configuration and status module
498 define Package/luci-app-olsr/install
499 $(call Package/luci/install/template,$(1),applications/luci-olsr)
503 define Package/luci-app-qos
504 $(call Package/luci/webtemplate)
505 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
506 TITLE:=Quality of Service configuration module
509 define Package/luci-app-qos/install
510 $(call Package/luci/install/template,$(1),applications/luci-qos)
514 define Package/luci-app-splash
515 $(call Package/luci/fftemplate)
516 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
517 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
518 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
519 +PACKAGE_luci-app-splash:iptables-mod-ipopt
520 TITLE:=Freifunk DHCP-Splash application
523 define Package/luci-app-splash/conffiles
524 /etc/config/luci_splash
527 define Package/luci-app-splash/install
528 $(call Package/luci/install/template,$(1),applications/luci-splash)
532 define Package/luci-app-statistics
533 $(call Package/luci/webtemplate)
534 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
535 +PACKAGE_luci-app-statistics:rrdtool1 \
536 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
537 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
538 +PACKAGE_luci-app-statistics:collectd-mod-interface \
539 +PACKAGE_luci-app-statistics:collectd-mod-load
540 TITLE:=LuCI Statistics Application
543 define Package/luci-app-statistics/conffiles
544 /etc/config/luci_statistics
547 define Package/luci-app-statistics/install
548 $(call Package/luci/install/template,$(1),applications/luci-statistics)
551 define Package/luci-app-diag-core
552 $(call Package/luci/webtemplate)
553 DEPENDS+=+luci-admin-core
554 TITLE:=LuCI Diagnostics Tools (Core)
557 define Package/luci-app-diag-devinfo
558 $(call Package/luci/webtemplate)
559 DEPENDS+=+PACKAGE_luci-app-diag-devinfo:luci-app-diag-core \
560 +PACKAGE_luci-app-diag-devinfo:smap \
561 +PACKAGE_luci-app-diag-devinfo:netdiscover \
562 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
563 +PACKAGE_luci-app-diag-devinfo:httping \
564 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
565 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo
566 TITLE:=LuCI Diagnostics Tools (Device Info)
569 define Package/luci-app-voice-core
570 $(call Package/luci/webtemplate)
571 DEPENDS+=+luci-admin-core
572 TITLE:=LuCI Voice Software (Core)
575 define Package/luci-app-voice-diag
576 $(call Package/luci/webtemplate)
577 DEPENDS+=+PACKAGE_luci-app-voice-diag:luci-app-voice-core \
578 +PACKAGE_luci-app-voice-diag:luci-app-diag-devinfo
579 TITLE:=LuCI Voice Software (Diagnostics)
582 define Package/luci-app-diag-devinfo/conffiles
583 /etc/config/luci_devinfo
586 define Package/luci-app-diag-core/install
587 $(call Package/luci/install/template,$(1),applications/luci-diag-core)
590 define Package/luci-app-diag-devinfo/install
591 $(call Package/luci/install/template,$(1),applications/luci-diag-devinfo)
594 define Package/luci-app-voice-core/install
595 $(call Package/luci/install/template,$(1),applications/luci-voice-core)
598 define Package/luci-app-voice-diag/install
599 $(call Package/luci/install/template,$(1),applications/luci-voice-diag)
602 define Package/luci-app-upnp
603 $(call Package/luci/webtemplate)
604 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
605 TITLE:=Universal Plug & Play configuration module
608 define Package/luci-app-upnp/install
609 $(call Package/luci/install/template,$(1),applications/luci-upnp)
613 define Package/luci-app-ntpc
614 $(call Package/luci/webtemplate)
615 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
616 TITLE:=NTP time synchronisation client configuration module
619 define Package/luci-app-ntpc/install
620 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
624 define Package/luci-app-ddns
625 $(call Package/luci/webtemplate)
626 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
627 TITLE:=Dynamic DNS configuration module
630 define Package/luci-app-ddns/install
631 $(call Package/luci/install/template,$(1),applications/luci-ddns)
635 define Package/luci-app-samba
636 $(call Package/luci/webtemplate)
637 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
638 TITLE:=Network Shares - Samba SMB/CIFS module
641 define Package/luci-app-samba/install
642 $(call Package/luci/install/template,$(1),applications/luci-samba)
646 define Package/luci-app-mmc-over-gpio
647 $(call Package/luci/webtemplate)
648 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio
652 define Package/luci-app-mmc-over-gpio/install
653 $(call Package/luci/install/template,$(1),applications/luci-mmc-over-gpio)
657 define Package/luci-app-p910nd
658 $(call Package/luci/webtemplate)
659 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
660 TITLE:=p910nd - Printer server module
663 define Package/luci-app-p910nd/install
664 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
668 define Package/luci-app-ushare
669 $(call Package/luci/webtemplate)
670 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
671 TITLE:=ushare - UPnP A/V & DLNA Media Server
674 define Package/luci-app-ushare/install
675 $(call Package/luci/install/template,$(1),applications/luci-ushare)
678 define Package/luci-app-hd-idle
679 $(call Package/luci/webtemplate)
680 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd-idle:hd-idle
684 define Package/luci-app-hd-idle/install
685 $(call Package/luci/install/template,$(1),applications/luci-hd-idle)
688 define Package/luci-app-tinyproxy
689 $(call Package/luci/webtemplate)
690 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
691 TITLE:=Tinyproxy - HTTP(S)-Proxy
694 define Package/luci-app-tinyproxy/install
695 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
698 define Package/luci-app-initmgr
699 $(call Package/luci/webtemplate)
700 DEPENDS+=+luci-admin-full
701 TITLE:=LuCI Initscript Management
704 define Package/luci-app-initmgr/install
705 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
708 define Package/luci-app-livestats
709 $(call Package/luci/webtemplate)
710 DEPENDS+=+luci-admin-core +luci-admin-rpc
711 TITLE:=LuCI Realtime Statistics
714 define Package/luci-app-livestats/install
715 $(call Package/luci/install/template,$(1),applications/luci-livestats)
718 define Package/luci-app-asterisk
719 $(call Package/luci/webtemplate)
720 TITLE:=LuCI Support for Asterisk PBX
721 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
724 define Package/luci-app-asterisk/install
725 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
728 define Package/luci-app-polipo
729 $(call Package/luci/webtemplate)
730 TITLE:=LuCI Support for the Polipo Proxy
731 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
734 define Package/luci-app-polipo/install
735 $(call Package/luci/install/template,$(1),applications/luci-polipo)
738 define Package/luci-app-openvpn
739 $(call Package/luci/webtemplate)
740 TITLE:=LuCI Support for OpenVPN
741 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
744 define Package/luci-app-openvpn/install
745 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
748 define Package/luci-app-p2pblock
749 $(call Package/luci/webtemplate)
750 TITLE:=LuCI Support for the Freifunk P2P-Block addon
751 DEPENDS+=+luci-admin-core +luci-app-firewall \
752 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
755 define Package/luci-app-p2pblock/install
756 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
759 define Package/luci-app-multiwan
760 $(call Package/luci/webtemplate)
761 TITLE:=LuCI Support for the OpenWrt MultiWAN agent
762 DEPENDS+=+luci-admin-core +luci-app-firewall \
763 +PACKAGE_luci-app-multiwan:multiwan
766 define Package/luci-app-multiwan/install
767 $(call Package/luci/install/template,$(1),applications/luci-multiwan)
770 define Package/luci-app-wol
771 $(call Package/luci/webtemplate)
772 TITLE:=LuCI Support for Wake-on-LAN
773 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-wol:etherwake
776 define Package/luci-app-wol/install
777 $(call Package/luci/install/template,$(1),applications/luci-wol)
780 define Package/luci-app-vnstat
781 $(call Package/luci/webtemplate)
782 TITLE:=LuCI Support for VnStat
783 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-vnstat:vnstat \
784 +PACKAGE_luci-app-vnstat:vnstati
787 define Package/luci-app-vnstat/install
788 $(call Package/luci/install/template,$(1),applications/luci-vnstat)
792 ### Server Gateway Interfaces ###
794 define Package/luci-sgi-cgi
795 $(call Package/luci/webservertemplate)
796 TITLE:=CGI Gateway behind existing Webserver
799 define Package/luci-sgi-cgi/install
800 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
803 define Package/luci-sgi-uhttpd
804 $(call Package/luci/libtemplate)
805 TITLE:=Binding for the uHTTPd server
806 DEPENDS+=+uhttpd +uhttpd-mod-lua
809 define Package/luci-sgi-uhttpd/install
810 $(call Package/luci/install/template,$(1),libs/sgi-uhttpd)
815 define Package/luci-theme-base
816 $(call Package/luci/thtemplate)
818 TITLE:=Common base for all themes
821 define Package/luci-theme-base/install
822 $(call Package/luci/install/template,$(1),themes/base)
825 define Package/luci-theme-fledermaus
826 $(call Package/luci/fftemplate)
828 TITLE:=Fledermaus Theme
831 define Package/luci-theme-fledermaus/install
832 $(call Package/luci/install/template,$(1),themes/fledermaus)
835 define Package/luci-theme-freifunk
836 $(call Package/luci/fftemplate)
838 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
839 TITLE:=alternative Freifunk Theme
842 define Package/luci-theme-freifunk/install
843 $(call Package/luci/install/template,$(1),themes/freifunk)
846 define Package/luci-theme-freifunk-bno
847 $(call Package/luci/fftemplate)
849 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
850 TITLE:=Freifunk Berlin Nordost Theme
853 define Package/luci-theme-freifunk-bno/install
854 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
857 define Package/luci-theme-freifunk-hannover
858 $(call Package/luci/fftemplate)
860 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
861 TITLE:=Freifunk Hannover Theme
864 define Package/luci-theme-freifunk-hannover/install
865 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
868 define Package/luci-theme-openwrt
869 $(call Package/luci/thtemplate)
870 TITLE:=OpenWrt.org (default)
871 DEPENDS:=+luci-theme-base luci-core
872 DEFAULT:=y if PACKAGE_luci-core
875 define Package/luci-theme-openwrt/install
876 $(call Package/luci/install/template,$(1),themes/openwrt.org)
879 define Package/luci-theme-openwrtlight
880 $(call Package/luci/thtemplate)
881 TITLE:=OpenWrt.org - light variant without images
882 DEPENDS:=+luci-theme-base
885 define Package/luci-theme-openwrtlight/install
886 $(call Package/luci/install/template,$(1),themes/openwrt-light)
891 define Package/luci-i18n-german
892 $(call Package/luci/i18ntemplate)
896 define Package/luci-i18n-german/install
897 $(call Package/luci/install/template,$(1),i18n/german)
901 define Package/luci-i18n-english
902 $(call Package/luci/i18ntemplate)
906 define Package/luci-i18n-english/install
907 $(call Package/luci/install/template,$(1),i18n/english)
911 define Package/luci-i18n-french
912 $(call Package/luci/i18ntemplate)
913 TITLE:=French (by Florian Fainelli)
916 define Package/luci-i18n-french/install
917 $(call Package/luci/install/template,$(1),i18n/french)
921 define Package/luci-i18n-italian
922 $(call Package/luci/i18ntemplate)
923 TITLE:=Italian (by Matteo Croce)
926 define Package/luci-i18n-italian/install
927 $(call Package/luci/install/template,$(1),i18n/italian)
931 define Package/luci-i18n-russian
932 $(call Package/luci/i18ntemplate)
933 TITLE:=Russian (by Skryabin Dmitry)
936 define Package/luci-i18n-russian/install
937 $(call Package/luci/install/template,$(1),i18n/russian)
941 define Package/luci-i18n-portuguese_brazilian
942 $(call Package/luci/i18ntemplate)
943 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
946 define Package/luci-i18n-portuguese_brazilian/install
947 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
951 define Package/luci-i18n-japanese
952 $(call Package/luci/i18ntemplate)
953 TITLE:=Japanese (by Tsukasa Hamano)
956 define Package/luci-i18n-japanese/install
957 $(call Package/luci/install/template,$(1),i18n/japanese)
961 define Package/luci-i18n-greek
962 $(call Package/luci/i18ntemplate)
963 TITLE:=Greek (by Vasilis Tsiligiannis)
966 define Package/luci-i18n-greek/install
967 $(call Package/luci/install/template,$(1),i18n/greek)
971 define Package/luci-i18n-catalan
972 $(call Package/luci/i18ntemplate)
973 TITLE:=Catalan (by Eduard Duran)
976 define Package/luci-i18n-catalan/install
977 $(call Package/luci/install/template,$(1),i18n/catalan)
981 define Package/luci-i18n-portuguese
982 $(call Package/luci/i18ntemplate)
983 TITLE:=Portuguese (by Jose Monteiro)
986 define Package/luci-i18n-portuguese/install
987 $(call Package/luci/install/template,$(1),i18n/portuguese)
991 define Package/luci-i18n-spanish
992 $(call Package/luci/i18ntemplate)
993 TITLE:=Spanish (by Guillermo Javier Nardoni)
996 define Package/luci-i18n-spanish/install
997 $(call Package/luci/install/template,$(1),i18n/spanish)
1001 define Package/luci-i18n-vietnamese
1002 $(call Package/luci/i18ntemplate)
1003 TITLE:=Vietnamese (by Hong Phuc Dang)
1006 define Package/luci-i18n-vietnamese/install
1007 $(call Package/luci/install/template,$(1),i18n/vietnamese)
1010 define Package/luci-i18n-malay
1011 $(call Package/luci/i18ntemplate)
1012 TITLE:=Malay (by Teow Wai Chet)
1015 define Package/luci-i18n-malay/install
1016 $(call Package/luci/install/template,$(1),i18n/malay)
1022 $(call Package/luci/collectiontemplate)
1023 TITLE:=Standard OpenWrt set including full and mini admin and the standard theme
1024 DEPENDS:=+uhttpd +luci-admin-full +luci-admin-mini +luci-theme-openwrt \
1025 +luci-app-firewall +luci-app-initmgr
1028 define Package/luci/install
1033 define Package/luci-ssl
1034 $(call Package/luci/collectiontemplate)
1035 TITLE:=Standard OpenWrt set with https support
1036 DEPENDS:=+uhttpd +uhttpd-mod-tls +px5g +luci-admin-full +luci-admin-mini \
1037 +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr
1040 define Package/luci-ssl/install
1045 define Package/luci-medium
1046 $(call Package/luci/collectiontemplate)
1047 TITLE:=Medium package set using only admin full and a theme without graphics
1048 DEPENDS:=+uhttpd +luci-admin-full +luci-theme-openwrtlight
1051 define Package/luci-medium/install
1056 define Package/luci-light
1057 $(call Package/luci/collectiontemplate)
1058 TITLE:=Minimum package set using only admin mini and a theme without graphics
1059 DEPENDS:=+uhttpd +luci-admin-mini +luci-theme-openwrtlight
1062 define Package/luci-light/install
1068 ifneq ($(CONFIG_PACKAGE_luci-core),)
1069 PKG_SELECTED_MODULES+=libs/core
1071 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
1072 PKG_SELECTED_MODULES+=libs/fastindex
1074 ifneq ($(CONFIG_PACKAGE_luci-http),)
1075 PKG_SELECTED_MODULES+=libs/http
1077 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
1078 PKG_SELECTED_MODULES+=libs/httpclient
1080 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
1081 PKG_SELECTED_MODULES+=libs/ipkg
1083 ifneq ($(CONFIG_PACKAGE_luci-json),)
1084 PKG_SELECTED_MODULES+=libs/json
1086 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
1087 PKG_SELECTED_MODULES+=libs/lmo
1089 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
1090 PKG_SELECTED_MODULES+=libs/luanet
1092 ifneq ($(CONFIG_PACKAGE_luci-iwinfo),)
1093 PKG_SELECTED_MODULES+=libs/iwinfo
1095 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
1096 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
1098 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
1099 PKG_SELECTED_MODULES+=libs/nixio
1101 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
1102 PKG_SELECTED_MODULES+=libs/px5g
1104 ifneq ($(CONFIG_PACKAGE_luci-uci),)
1105 PKG_SELECTED_MODULES+=libs/uci
1107 ifneq ($(CONFIG_PACKAGE_luci-sys),)
1108 PKG_SELECTED_MODULES+=libs/sys
1110 ifneq ($(CONFIG_PACKAGE_luci-web),)
1111 PKG_SELECTED_MODULES+=libs/web
1113 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
1114 PKG_SELECTED_MODULES+=libs/uvl
1117 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
1118 PKG_SELECTED_MODULES+=modules/admin-core
1120 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
1121 PKG_SELECTED_MODULES+=modules/admin-mini
1123 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
1124 PKG_SELECTED_MODULES+=modules/admin-full
1126 ifneq ($(CONFIG_PACKAGE_luci-niu),)
1127 PKG_SELECTED_MODULES+=modules/niu
1129 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
1130 PKG_SELECTED_MODULES+=modules/rpc
1132 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
1133 PKG_SELECTED_MODULES+=modules/freifunk
1136 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
1137 PKG_SELECTED_MODULES+=applications/freifunk-community
1140 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
1141 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
1143 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
1144 PKG_SELECTED_MODULES+=applications/luci-siitwizard
1146 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
1147 PKG_SELECTED_MODULES+=applications/luci-fw
1149 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
1150 PKG_SELECTED_MODULES+=applications/luci-olsr
1152 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
1153 PKG_SELECTED_MODULES+=applications/luci-qos
1155 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
1156 PKG_SELECTED_MODULES+=applications/luci-splash
1158 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
1159 PKG_SELECTED_MODULES+=applications/luci-statistics
1161 ifneq ($(CONFIG_PACKAGE_luci-app-voice-core),)
1162 PKG_SELECTED_MODULES+=applications/luci-voice-core
1164 ifneq ($(CONFIG_PACKAGE_luci-app-voice-diag),)
1165 PKG_SELECTED_MODULES+=applications/luci-voice-diag
1167 ifneq ($(CONFIG_PACKAGE_luci-app-diag-core),)
1168 PKG_SELECTED_MODULES+=applications/luci-diag-core
1170 ifneq ($(CONFIG_PACKAGE_luci-app-diag-devinfo),)
1171 PKG_SELECTED_MODULES+=applications/luci-diag-devinfo
1173 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
1174 PKG_SELECTED_MODULES+=applications/luci-upnp
1176 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
1177 PKG_SELECTED_MODULES+=applications/luci-ntpc
1179 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
1180 PKG_SELECTED_MODULES+=applications/luci-ddns
1182 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
1183 PKG_SELECTED_MODULES+=applications/luci-samba
1185 ifneq ($(CONFIG_PACKAGE_luci-app-mmc-over-gpio),)
1186 PKG_SELECTED_MODULES+=applications/luci-mmc-over-gpio
1188 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1189 PKG_SELECTED_MODULES+=applications/luci-p910nd
1191 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1192 PKG_SELECTED_MODULES+=applications/luci-ushare
1194 ifneq ($(CONFIG_PACKAGE_luci-app-hd-idle),)
1195 PKG_SELECTED_MODULES+=applications/luci-hd-idle
1197 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1198 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1200 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1201 PKG_SELECTED_MODULES+=applications/luci-initmgr
1203 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1204 PKG_SELECTED_MODULES+=applications/luci-livestats
1206 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1207 PKG_SELECTED_MODULES+=applications/luci-asterisk
1209 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1210 PKG_SELECTED_MODULES+=applications/luci-polipo
1212 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1213 PKG_SELECTED_MODULES+=applications/luci-openvpn
1215 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1216 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1218 ifneq ($(CONFIG_PACKAGE_luci-app-multiwan),)
1219 PKG_SELECTED_MODULES+=applications/luci-multiwan
1221 ifneq ($(CONFIG_PACKAGE_luci-app-wol),)
1222 PKG_SELECTED_MODULES+=applications/luci-wol
1224 ifneq ($(CONFIG_PACKAGE_luci-app-vnstat),)
1225 PKG_SELECTED_MODULES+=applications/luci-vnstat
1229 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1230 PKG_SELECTED_MODULES+=libs/sgi-cgi
1232 ifneq ($(CONFIG_PACKAGE_luci-sgi-uhttpd),)
1233 PKG_SELECTED_MODULES+=libs/sgi-uhttpd
1235 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1236 PKG_SELECTED_MODULES+=libs/sgi-luci
1239 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1240 PKG_SELECTED_MODULES+=themes/base
1242 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1243 PKG_SELECTED_MODULES+=themes/fledermaus
1245 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1246 PKG_SELECTED_MODULES+=themes/freifunk-bno
1248 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1249 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1251 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1252 PKG_SELECTED_MODULES+=themes/freifunk
1254 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1255 PKG_SELECTED_MODULES+=themes/openwrt.org
1257 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1258 PKG_SELECTED_MODULES+=themes/openwrt-light
1261 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1262 PKG_SELECTED_MODULES+=i18n/german
1264 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1265 PKG_SELECTED_MODULES+=i18n/english
1267 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1268 PKG_SELECTED_MODULES+=i18n/french
1270 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1271 PKG_SELECTED_MODULES+=i18n/italian
1273 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1274 PKG_SELECTED_MODULES+=i18n/russian
1276 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1277 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1279 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1280 PKG_SELECTED_MODULES+=i18n/japanese
1282 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1283 PKG_SELECTED_MODULES+=i18n/greek
1285 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1286 PKG_SELECTED_MODULES+=i18n/catalan
1288 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1289 PKG_SELECTED_MODULES+=i18n/portuguese
1291 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1292 PKG_SELECTED_MODULES+=i18n/spanish
1294 ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
1295 PKG_SELECTED_MODULES+=i18n/vietnamese
1297 ifneq ($(CONFIG_PACKAGE_luci-i18n-malay),)
1298 PKG_SELECTED_MODULES+=i18n/malay
1303 MODULES="$(PKG_SELECTED_MODULES)" \
1304 LUA_TARGET="$(LUA_TARGET)" \
1305 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1306 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1307 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1308 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1311 $(eval $(call BuildPackage,luci-core))
1312 $(eval $(call BuildPackage,luci-fastindex))
1313 $(eval $(call BuildPackage,luci-http))
1314 $(eval $(call BuildPackage,luci-httpclient))
1315 $(eval $(call BuildPackage,luci-ipkg))
1316 $(eval $(call BuildPackage,luci-json))
1317 $(eval $(call BuildPackage,luci-lmo))
1318 $(eval $(call BuildPackage,luci-luanet))
1319 $(eval $(call BuildPackage,luci-iwinfo))
1320 $(eval $(call BuildPackage,luci-lucid))
1321 $(eval $(call BuildPackage,luci-nixio))
1322 $(eval $(call BuildPackage,luci-px5g))
1323 $(eval $(call BuildPackage,luci-uci))
1324 $(eval $(call BuildPackage,luci-sys))
1325 $(eval $(call BuildPackage,luci-web))
1326 $(eval $(call BuildPackage,luci-uvl))
1328 $(eval $(call BuildPackage,luci-admin-core))
1329 $(eval $(call BuildPackage,luci-admin-mini))
1330 $(eval $(call BuildPackage,luci-admin-full))
1331 $(eval $(call BuildPackage,luci-niu))
1332 $(eval $(call BuildPackage,luci-admin-rpc))
1333 $(eval $(call BuildPackage,luci-mod-freifunk))
1335 $(eval $(call BuildPackage,luci-freifunk-community))
1337 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1338 $(eval $(call BuildPackage,luci-app-siitwizard))
1339 $(eval $(call BuildPackage,luci-app-firewall))
1340 $(eval $(call BuildPackage,luci-app-olsr))
1341 $(eval $(call BuildPackage,luci-app-qos))
1342 $(eval $(call BuildPackage,luci-app-splash))
1343 $(eval $(call BuildPackage,luci-app-statistics))
1344 $(eval $(call BuildPackage,luci-app-diag-core))
1345 $(eval $(call BuildPackage,luci-app-diag-devinfo))
1346 $(eval $(call BuildPackage,luci-app-voice-core))
1347 $(eval $(call BuildPackage,luci-app-voice-diag))
1348 $(eval $(call BuildPackage,luci-app-upnp))
1349 $(eval $(call BuildPackage,luci-app-ntpc))
1350 $(eval $(call BuildPackage,luci-app-ddns))
1351 $(eval $(call BuildPackage,luci-app-samba))
1352 $(eval $(call BuildPackage,luci-app-mmc-over-gpio))
1353 $(eval $(call BuildPackage,luci-app-p910nd))
1354 $(eval $(call BuildPackage,luci-app-ushare))
1355 $(eval $(call BuildPackage,luci-app-hd-idle))
1356 $(eval $(call BuildPackage,luci-app-tinyproxy))
1357 $(eval $(call BuildPackage,luci-app-initmgr))
1358 $(eval $(call BuildPackage,luci-app-livestats))
1359 $(eval $(call BuildPackage,luci-app-asterisk))
1360 $(eval $(call BuildPackage,luci-app-polipo))
1361 $(eval $(call BuildPackage,luci-app-openvpn))
1362 $(eval $(call BuildPackage,luci-app-p2pblock))
1363 $(eval $(call BuildPackage,luci-app-multiwan))
1364 $(eval $(call BuildPackage,luci-app-wol))
1365 $(eval $(call BuildPackage,luci-app-vnstat))
1367 $(eval $(call BuildPackage,luci-sgi-cgi))
1368 $(eval $(call BuildPackage,luci-sgi-uhttpd))
1370 $(eval $(call BuildPackage,luci-theme-base))
1371 $(eval $(call BuildPackage,luci-theme-fledermaus))
1372 $(eval $(call BuildPackage,luci-theme-freifunk))
1373 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1374 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1375 $(eval $(call BuildPackage,luci-theme-openwrt))
1376 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1378 $(eval $(call BuildPackage,luci-i18n-german))
1379 $(eval $(call BuildPackage,luci-i18n-english))
1380 $(eval $(call BuildPackage,luci-i18n-french))
1381 $(eval $(call BuildPackage,luci-i18n-italian))
1382 $(eval $(call BuildPackage,luci-i18n-russian))
1383 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1384 $(eval $(call BuildPackage,luci-i18n-japanese))
1385 $(eval $(call BuildPackage,luci-i18n-greek))
1386 $(eval $(call BuildPackage,luci-i18n-catalan))
1387 $(eval $(call BuildPackage,luci-i18n-portuguese))
1388 $(eval $(call BuildPackage,luci-i18n-spanish))
1389 $(eval $(call BuildPackage,luci-i18n-vietnamese))
1390 $(eval $(call BuildPackage,luci-i18n-malay))
1392 $(eval $(call BuildPackage,luci))
1393 $(eval $(call BuildPackage,luci-ssl))
1394 $(eval $(call BuildPackage,luci-medium))
1395 $(eval $(call BuildPackage,luci-light))