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-fastindex
162 $(call Package/luci/libtemplate)
163 TITLE:=Fastindex indexing module
166 define Package/luci-fastindex/install
167 $(call Package/luci/install/template,$(1),libs/fastindex)
171 define Package/luci-httpclient
172 $(call Package/luci/libtemplate)
173 TITLE:=HTTP(S) client library
174 DEPENDS+=+luci-web +luci-nixio
177 define Package/luci-httpclient/install
178 $(call Package/luci/install/template,$(1),libs/httpclient)
182 define Package/luci-ipkg
183 $(call Package/luci/libtemplate)
184 TITLE:=LuCI IPKG/OPKG call abstraction library
187 define Package/luci-ipkg/install
188 $(call Package/luci/install/template,$(1),libs/ipkg)
192 define Package/luci-json
193 $(call Package/luci/libtemplate)
194 TITLE:=LuCI JSON Library
197 define Package/luci-json/install
198 $(call Package/luci/install/template,$(1),libs/json)
202 define Package/luci-lmo
203 $(call Package/luci/libtemplate)
207 define Package/luci-lmo/install
208 $(call Package/luci/install/template,$(1),libs/lmo)
212 define Package/luci-luanet
213 $(call Package/luci/libtemplate)
218 define Package/luci-luanet/install
219 $(call Package/luci/install/template,$(1),libs/luanet)
223 define Package/luci-lucid
224 $(call Package/luci/webservertemplate)
225 TITLE:=LuCId Full-Stack Webserver
226 DEPENDS+=+luci-nixio +luci-web +luci-px5g
229 define Package/luci-lucid/install
230 $(call Package/luci/install/template,$(1),libs/lucid)
231 $(call Package/luci/install/template,$(1),libs/lucid-http)
238 define Package/luci-nixio
239 $(call Package/luci/libtemplate)
240 TITLE:=NIXIO POSIX Library
241 DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl
244 define Package/luci-nixio/install
245 $(call Package/luci/install/template,$(1),libs/nixio)
248 define Package/luci-nixio/config
250 prompt "TLS Provider"
251 default PACKAGE_luci-nixio_notls
253 config PACKAGE_luci-nixio_notls
256 config PACKAGE_luci-nixio_axtls
257 bool "Builtin (axTLS)"
259 config PACKAGE_luci-nixio_cyassl
261 select PACKAGE_libcyassl
263 config PACKAGE_luci-nixio_openssl
265 select PACKAGE_libopenssl
269 ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),)
273 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
277 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
279 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
283 define Package/luci-px5g
284 $(call Package/luci/webservertemplate)
285 TITLE:=RSA/X.509 Key Generator (required for LuCId SSL support)
289 define Package/luci-px5g/install
290 $(call Package/luci/install/template,$(1),libs/px5g)
294 define Package/luci-sys
295 $(call Package/luci/libtemplate)
296 TITLE:=LuCI Linux/POSIX system library
300 define Package/luci-sys/install
301 $(call Package/luci/install/template,$(1),libs/sys)
305 define Package/luci-web
306 $(call Package/luci/libtemplate)
307 DEPENDS+=+luci-sys +luci-nixio +luci-core \
308 +luci-sgi-cgi +luci-lmo
309 TITLE:=MVC Webframework
310 $(call Config,luci.main.lang,string,auto,Default Language)
313 define Package/luci-web/conffiles
317 define Package/luci-web/install
318 $(call Package/luci/install/template,$(1),libs/web)
322 define Package/luci-uvl
323 $(call Package/luci/libtemplate)
324 DEPENDS+=+luci-sys +luci-core
325 TITLE:=UVL - UCI Validation Layer
328 define Package/luci-uvl/install
329 $(call Package/luci/install/template,$(1),libs/uvl)
334 ### Community Packages ###
336 define Package/luci-freifunk-community
337 $(call Package/luci/fftemplate)
339 +luci-web +luci-app-splash \
340 +luci-app-ffwizard-leipzig \
342 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
343 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
344 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
345 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
346 TITLE:=Freifunk Community Meta-Package
349 define Package/luci-freifunk-community/install
350 $(call Package/luci/install/template,$(1),applications/freifunk-community)
355 define Package/luci-admin-core
356 $(call Package/luci/webtemplate)
357 DEPENDS+=+luci-web +luci-i18n-english
358 TITLE:=Web UI Core Module
361 define Package/luci-admin-core/install
362 $(call Package/luci/install/template,$(1),modules/admin-core)
363 touch $(1)/etc/init.d/luci_fixtime || true
367 define Package/luci-niu
368 $(call Package/luci/maintemplate)
369 DEPENDS+=+luci-admin-core @BROKEN
370 TITLE:=NIU - Next Generation Interface
373 define Package/luci-niu/install
374 $(call Package/luci/install/template,$(1),modules/niu)
377 define Package/luci-admin-mini
378 $(call Package/luci/webtemplate)
379 DEPENDS+=+luci-admin-core
380 TITLE:=LuCI Essentials - stripped down and user-friendly
383 define Package/luci-admin-mini/install
384 $(call Package/luci/install/template,$(1),modules/admin-mini)
388 define Package/luci-admin-full
389 $(call Package/luci/webtemplate)
390 DEPENDS+=+luci-admin-core +luci-ipkg
391 TITLE:=LuCI Administration - full-featured for full control
394 define Package/luci-admin-full/install
395 $(call Package/luci/install/template,$(1),modules/admin-full)
399 define Package/luci-admin-rpc
400 $(call Package/luci/webtemplate)
402 TITLE:=LuCI RPC - JSON-RPC API
405 define Package/luci-admin-rpc/install
406 $(call Package/luci/install/template,$(1),modules/rpc)
410 define Package/luci-mod-freifunk
411 $(call Package/luci/fftemplate)
412 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
413 TITLE:=LuCI Freifunk module
416 define Package/luci-mod-freifunk/conffiles
420 define Package/luci-mod-freifunk/install
421 $(call Package/luci/install/template,$(1),modules/freifunk)
428 define Package/luci-app-ffwizard-leipzig
429 $(call Package/luci/fftemplate)
430 TITLE:=Freifunk Leipzig configuration wizard
433 define Package/luci-app-ffwizard-leipzig/install
434 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
438 define Package/luci-app-siitwizard
439 $(call Package/luci/fftemplate)
440 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
441 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
444 define Package/luci-app-siitwizard/install
445 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
449 define Package/luci-app-firewall
450 $(call Package/luci/webtemplate)
451 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
452 TITLE:=Firewall and Portforwarding application
455 define Package/luci-app-firewall/install
456 $(call Package/luci/install/template,$(1),applications/luci-fw)
460 define Package/luci-app-olsr
461 $(call Package/luci/webtemplate)
462 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
463 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
464 TITLE:=OLSR configuration and status module
467 define Package/luci-app-olsr/install
468 $(call Package/luci/install/template,$(1),applications/luci-olsr)
472 define Package/luci-app-qos
473 $(call Package/luci/webtemplate)
474 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
475 TITLE:=Quality of Service configuration module
478 define Package/luci-app-qos/install
479 $(call Package/luci/install/template,$(1),applications/luci-qos)
483 define Package/luci-app-splash
484 $(call Package/luci/fftemplate)
485 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
486 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
487 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
488 +PACKAGE_luci-app-splash:iptables-mod-ipopt
489 TITLE:=Freifunk DHCP-Splash application
492 define Package/luci-app-splash/conffiles
493 /etc/config/luci_splash
496 define Package/luci-app-splash/install
497 $(call Package/luci/install/template,$(1),applications/luci-splash)
501 define Package/luci-app-statistics
502 $(call Package/luci/webtemplate)
503 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
504 +PACKAGE_luci-app-statistics:rrdtool1 \
505 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
506 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
507 +PACKAGE_luci-app-statistics:collectd-mod-interface \
508 +PACKAGE_luci-app-statistics:collectd-mod-load
509 TITLE:=LuCI Statistics Application
512 define Package/luci-app-statistics/conffiles
513 /etc/config/luci_statistics
516 define Package/luci-app-statistics/install
517 $(call Package/luci/install/template,$(1),applications/luci-statistics)
520 define Package/luci-app-diag-core
521 $(call Package/luci/webtemplate)
522 DEPENDS+=+luci-admin-core
523 TITLE:=LuCI Diagnostics Tools (Core)
526 define Package/luci-app-diag-devinfo
527 $(call Package/luci/webtemplate)
528 DEPENDS+=+PACKAGE_luci-app-diag-devinfo:luci-app-diag-core \
529 +PACKAGE_luci-app-diag-devinfo:smap \
530 +PACKAGE_luci-app-diag-devinfo:netdiscover \
531 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
532 +PACKAGE_luci-app-diag-devinfo:httping \
533 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
534 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo
535 TITLE:=LuCI Diagnostics Tools (Device Info)
538 define Package/luci-app-voice-core
539 $(call Package/luci/webtemplate)
540 DEPENDS+=+luci-admin-core
541 TITLE:=LuCI Voice Software (Core)
544 define Package/luci-app-voice-diag
545 $(call Package/luci/webtemplate)
546 DEPENDS+=+PACKAGE_luci-app-voice-diag:luci-app-voice-core \
547 +PACKAGE_luci-app-voice-diag:luci-app-diag-devinfo
548 TITLE:=LuCI Voice Software (Diagnostics)
551 define Package/luci-app-diag-devinfo/conffiles
552 /etc/config/luci_devinfo
555 define Package/luci-app-diag-core/install
556 $(call Package/luci/install/template,$(1),applications/luci-diag-core)
559 define Package/luci-app-diag-devinfo/install
560 $(call Package/luci/install/template,$(1),applications/luci-diag-devinfo)
563 define Package/luci-app-voice-core/install
564 $(call Package/luci/install/template,$(1),applications/luci-voice-core)
567 define Package/luci-app-voice-diag/install
568 $(call Package/luci/install/template,$(1),applications/luci-voice-diag)
571 define Package/luci-app-upnp
572 $(call Package/luci/webtemplate)
573 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
574 TITLE:=Universal Plug & Play configuration module
577 define Package/luci-app-upnp/install
578 $(call Package/luci/install/template,$(1),applications/luci-upnp)
582 define Package/luci-app-ntpc
583 $(call Package/luci/webtemplate)
584 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
585 TITLE:=NTP time synchronisation client configuration module
588 define Package/luci-app-ntpc/install
589 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
593 define Package/luci-app-ddns
594 $(call Package/luci/webtemplate)
595 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
596 TITLE:=Dynamic DNS configuration module
599 define Package/luci-app-ddns/install
600 $(call Package/luci/install/template,$(1),applications/luci-ddns)
604 define Package/luci-app-samba
605 $(call Package/luci/webtemplate)
606 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
607 TITLE:=Network Shares - Samba SMB/CIFS module
610 define Package/luci-app-samba/install
611 $(call Package/luci/install/template,$(1),applications/luci-samba)
615 define Package/luci-app-mmc-over-gpio
616 $(call Package/luci/webtemplate)
617 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio
621 define Package/luci-app-mmc-over-gpio/install
622 $(call Package/luci/install/template,$(1),applications/luci-mmc-over-gpio)
626 define Package/luci-app-p910nd
627 $(call Package/luci/webtemplate)
628 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
629 TITLE:=p910nd - Printer server module
632 define Package/luci-app-p910nd/install
633 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
637 define Package/luci-app-ushare
638 $(call Package/luci/webtemplate)
639 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
640 TITLE:=ushare - UPnP A/V & DLNA Media Server
643 define Package/luci-app-ushare/install
644 $(call Package/luci/install/template,$(1),applications/luci-ushare)
647 define Package/luci-app-hd-idle
648 $(call Package/luci/webtemplate)
649 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd-idle:hd-idle
653 define Package/luci-app-hd-idle/install
654 $(call Package/luci/install/template,$(1),applications/luci-hd-idle)
657 define Package/luci-app-tinyproxy
658 $(call Package/luci/webtemplate)
659 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
660 TITLE:=Tinyproxy - HTTP(S)-Proxy
663 define Package/luci-app-tinyproxy/install
664 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
667 define Package/luci-app-initmgr
668 $(call Package/luci/webtemplate)
669 DEPENDS+=+luci-admin-full
670 TITLE:=LuCI Initscript Management
673 define Package/luci-app-initmgr/install
674 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
677 define Package/luci-app-livestats
678 $(call Package/luci/webtemplate)
679 DEPENDS+=+luci-admin-core +luci-admin-rpc
680 TITLE:=LuCI Realtime Statistics
683 define Package/luci-app-livestats/install
684 $(call Package/luci/install/template,$(1),applications/luci-livestats)
687 define Package/luci-app-asterisk
688 $(call Package/luci/webtemplate)
689 TITLE:=LuCI Support for Asterisk PBX
690 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
693 define Package/luci-app-asterisk/install
694 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
697 define Package/luci-app-polipo
698 $(call Package/luci/webtemplate)
699 TITLE:=LuCI Support for the Polipo Proxy
700 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
703 define Package/luci-app-polipo/install
704 $(call Package/luci/install/template,$(1),applications/luci-polipo)
707 define Package/luci-app-openvpn
708 $(call Package/luci/webtemplate)
709 TITLE:=LuCI Support for OpenVPN
710 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
713 define Package/luci-app-openvpn/install
714 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
717 define Package/luci-app-p2pblock
718 $(call Package/luci/webtemplate)
719 TITLE:=LuCI Support for the Freifunk P2P-Block addon
720 DEPENDS+=+luci-admin-core +luci-app-firewall \
721 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
724 define Package/luci-app-p2pblock/install
725 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
728 define Package/luci-app-multiwan
729 $(call Package/luci/webtemplate)
730 TITLE:=LuCI Support for the OpenWrt MultiWAN agent
731 DEPENDS+=+luci-admin-core +luci-app-firewall \
732 +PACKAGE_luci-app-multiwan:multiwan
735 define Package/luci-app-multiwan/install
736 $(call Package/luci/install/template,$(1),applications/luci-multiwan)
739 define Package/luci-app-wol
740 $(call Package/luci/webtemplate)
741 TITLE:=LuCI Support for Wake-on-LAN
742 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-wol:etherwake
745 define Package/luci-app-wol/install
746 $(call Package/luci/install/template,$(1),applications/luci-wol)
749 define Package/luci-app-vnstat
750 $(call Package/luci/webtemplate)
751 TITLE:=LuCI Support for VnStat
752 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-vnstat:vnstat \
753 +PACKAGE_luci-app-vnstat:vnstati
756 define Package/luci-app-vnstat/install
757 $(call Package/luci/install/template,$(1),applications/luci-vnstat)
761 ### Server Gateway Interfaces ###
763 define Package/luci-sgi-cgi
764 $(call Package/luci/webservertemplate)
765 TITLE:=CGI Gateway behind existing Webserver
768 define Package/luci-sgi-cgi/install
769 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
772 define Package/luci-sgi-uhttpd
773 $(call Package/luci/libtemplate)
774 TITLE:=Binding for the uHTTPd server
775 DEPENDS+=+uhttpd +uhttpd-mod-lua
778 define Package/luci-sgi-uhttpd/install
779 $(call Package/luci/install/template,$(1),libs/sgi-uhttpd)
784 define Package/luci-theme-base
785 $(call Package/luci/thtemplate)
787 TITLE:=Common base for all themes
790 define Package/luci-theme-base/install
791 $(call Package/luci/install/template,$(1),themes/base)
794 define Package/luci-theme-fledermaus
795 $(call Package/luci/fftemplate)
797 TITLE:=Fledermaus Theme
800 define Package/luci-theme-fledermaus/install
801 $(call Package/luci/install/template,$(1),themes/fledermaus)
804 define Package/luci-theme-freifunk
805 $(call Package/luci/fftemplate)
807 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
808 TITLE:=alternative Freifunk Theme
811 define Package/luci-theme-freifunk/install
812 $(call Package/luci/install/template,$(1),themes/freifunk)
815 define Package/luci-theme-freifunk-bno
816 $(call Package/luci/fftemplate)
818 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
819 TITLE:=Freifunk Berlin Nordost Theme
822 define Package/luci-theme-freifunk-bno/install
823 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
826 define Package/luci-theme-freifunk-hannover
827 $(call Package/luci/fftemplate)
829 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
830 TITLE:=Freifunk Hannover Theme
833 define Package/luci-theme-freifunk-hannover/install
834 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
837 define Package/luci-theme-openwrt
838 $(call Package/luci/thtemplate)
839 TITLE:=OpenWrt.org (default)
840 DEPENDS:=+luci-theme-base luci-core
841 DEFAULT:=y if PACKAGE_luci-core
844 define Package/luci-theme-openwrt/install
845 $(call Package/luci/install/template,$(1),themes/openwrt.org)
848 define Package/luci-theme-openwrtlight
849 $(call Package/luci/thtemplate)
850 TITLE:=OpenWrt.org - light variant without images
851 DEPENDS:=+luci-theme-base
854 define Package/luci-theme-openwrtlight/install
855 $(call Package/luci/install/template,$(1),themes/openwrt-light)
860 define Package/luci-i18n-german
861 $(call Package/luci/i18ntemplate)
865 define Package/luci-i18n-german/install
866 $(call Package/luci/install/template,$(1),i18n/german)
870 define Package/luci-i18n-english
871 $(call Package/luci/i18ntemplate)
875 define Package/luci-i18n-english/install
876 $(call Package/luci/install/template,$(1),i18n/english)
880 define Package/luci-i18n-french
881 $(call Package/luci/i18ntemplate)
882 TITLE:=French (by Florian Fainelli)
885 define Package/luci-i18n-french/install
886 $(call Package/luci/install/template,$(1),i18n/french)
890 define Package/luci-i18n-italian
891 $(call Package/luci/i18ntemplate)
892 TITLE:=Italian (by Matteo Croce)
895 define Package/luci-i18n-italian/install
896 $(call Package/luci/install/template,$(1),i18n/italian)
900 define Package/luci-i18n-russian
901 $(call Package/luci/i18ntemplate)
902 TITLE:=Russian (by Skryabin Dmitry)
905 define Package/luci-i18n-russian/install
906 $(call Package/luci/install/template,$(1),i18n/russian)
910 define Package/luci-i18n-portuguese_brazilian
911 $(call Package/luci/i18ntemplate)
912 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
915 define Package/luci-i18n-portuguese_brazilian/install
916 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
920 define Package/luci-i18n-japanese
921 $(call Package/luci/i18ntemplate)
922 TITLE:=Japanese (by Tsukasa Hamano)
925 define Package/luci-i18n-japanese/install
926 $(call Package/luci/install/template,$(1),i18n/japanese)
930 define Package/luci-i18n-greek
931 $(call Package/luci/i18ntemplate)
932 TITLE:=Greek (by Vasilis Tsiligiannis)
935 define Package/luci-i18n-greek/install
936 $(call Package/luci/install/template,$(1),i18n/greek)
940 define Package/luci-i18n-catalan
941 $(call Package/luci/i18ntemplate)
942 TITLE:=Catalan (by Eduard Duran)
945 define Package/luci-i18n-catalan/install
946 $(call Package/luci/install/template,$(1),i18n/catalan)
950 define Package/luci-i18n-portuguese
951 $(call Package/luci/i18ntemplate)
952 TITLE:=Portuguese (by Jose Monteiro)
955 define Package/luci-i18n-portuguese/install
956 $(call Package/luci/install/template,$(1),i18n/portuguese)
960 define Package/luci-i18n-spanish
961 $(call Package/luci/i18ntemplate)
962 TITLE:=Spanish (by Guillermo Javier Nardoni)
965 define Package/luci-i18n-spanish/install
966 $(call Package/luci/install/template,$(1),i18n/spanish)
970 define Package/luci-i18n-vietnamese
971 $(call Package/luci/i18ntemplate)
972 TITLE:=Vietnamese (by Hong Phuc Dang)
975 define Package/luci-i18n-vietnamese/install
976 $(call Package/luci/install/template,$(1),i18n/vietnamese)
979 define Package/luci-i18n-malay
980 $(call Package/luci/i18ntemplate)
981 TITLE:=Malay (by Teow Wai Chet)
984 define Package/luci-i18n-malay/install
985 $(call Package/luci/install/template,$(1),i18n/malay)
991 $(call Package/luci/collectiontemplate)
992 TITLE:=Standard OpenWrt set including full and mini admin and the standard theme
993 DEPENDS:=+uhttpd +luci-admin-full +luci-admin-mini +luci-theme-openwrt \
994 +luci-app-firewall +luci-app-initmgr
997 define Package/luci/install
1002 define Package/luci-ssl
1003 $(call Package/luci/collectiontemplate)
1004 TITLE:=Standard OpenWrt set with https support
1005 DEPENDS:=+uhttpd +uhttpd-mod-tls +px5g +luci-admin-full +luci-admin-mini \
1006 +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr
1009 define Package/luci-ssl/install
1014 define Package/luci-medium
1015 $(call Package/luci/collectiontemplate)
1016 TITLE:=Medium package set using only admin full and a theme without graphics
1017 DEPENDS:=+uhttpd +luci-admin-full +luci-theme-openwrtlight
1020 define Package/luci-medium/install
1025 define Package/luci-light
1026 $(call Package/luci/collectiontemplate)
1027 TITLE:=Minimum package set using only admin mini and a theme without graphics
1028 DEPENDS:=+uhttpd +luci-admin-mini +luci-theme-openwrtlight
1031 define Package/luci-light/install
1037 ifneq ($(CONFIG_PACKAGE_luci-core),)
1038 PKG_SELECTED_MODULES+=libs/core
1040 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
1041 PKG_SELECTED_MODULES+=libs/fastindex
1043 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
1044 PKG_SELECTED_MODULES+=libs/httpclient
1046 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
1047 PKG_SELECTED_MODULES+=libs/ipkg
1049 ifneq ($(CONFIG_PACKAGE_luci-json),)
1050 PKG_SELECTED_MODULES+=libs/json
1052 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
1053 PKG_SELECTED_MODULES+=libs/lmo
1055 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
1056 PKG_SELECTED_MODULES+=libs/luanet
1058 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
1059 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
1061 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
1062 PKG_SELECTED_MODULES+=libs/nixio
1064 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
1065 PKG_SELECTED_MODULES+=libs/px5g
1067 ifneq ($(CONFIG_PACKAGE_luci-sys),)
1068 PKG_SELECTED_MODULES+=libs/sys
1070 ifneq ($(CONFIG_PACKAGE_luci-web),)
1071 PKG_SELECTED_MODULES+=libs/web
1073 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
1074 PKG_SELECTED_MODULES+=libs/uvl
1077 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
1078 PKG_SELECTED_MODULES+=modules/admin-core
1080 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
1081 PKG_SELECTED_MODULES+=modules/admin-mini
1083 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
1084 PKG_SELECTED_MODULES+=modules/admin-full
1086 ifneq ($(CONFIG_PACKAGE_luci-niu),)
1087 PKG_SELECTED_MODULES+=modules/niu
1089 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
1090 PKG_SELECTED_MODULES+=modules/rpc
1092 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
1093 PKG_SELECTED_MODULES+=modules/freifunk
1096 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
1097 PKG_SELECTED_MODULES+=applications/freifunk-community
1100 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
1101 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
1103 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
1104 PKG_SELECTED_MODULES+=applications/luci-siitwizard
1106 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
1107 PKG_SELECTED_MODULES+=applications/luci-fw
1109 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
1110 PKG_SELECTED_MODULES+=applications/luci-olsr
1112 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
1113 PKG_SELECTED_MODULES+=applications/luci-qos
1115 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
1116 PKG_SELECTED_MODULES+=applications/luci-splash
1118 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
1119 PKG_SELECTED_MODULES+=applications/luci-statistics
1121 ifneq ($(CONFIG_PACKAGE_luci-app-voice-core),)
1122 PKG_SELECTED_MODULES+=applications/luci-voice-core
1124 ifneq ($(CONFIG_PACKAGE_luci-app-voice-diag),)
1125 PKG_SELECTED_MODULES+=applications/luci-voice-diag
1127 ifneq ($(CONFIG_PACKAGE_luci-app-diag-core),)
1128 PKG_SELECTED_MODULES+=applications/luci-diag-core
1130 ifneq ($(CONFIG_PACKAGE_luci-app-diag-devinfo),)
1131 PKG_SELECTED_MODULES+=applications/luci-diag-devinfo
1133 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
1134 PKG_SELECTED_MODULES+=applications/luci-upnp
1136 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
1137 PKG_SELECTED_MODULES+=applications/luci-ntpc
1139 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
1140 PKG_SELECTED_MODULES+=applications/luci-ddns
1142 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
1143 PKG_SELECTED_MODULES+=applications/luci-samba
1145 ifneq ($(CONFIG_PACKAGE_luci-app-mmc-over-gpio),)
1146 PKG_SELECTED_MODULES+=applications/luci-mmc-over-gpio
1148 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1149 PKG_SELECTED_MODULES+=applications/luci-p910nd
1151 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1152 PKG_SELECTED_MODULES+=applications/luci-ushare
1154 ifneq ($(CONFIG_PACKAGE_luci-app-hd-idle),)
1155 PKG_SELECTED_MODULES+=applications/luci-hd-idle
1157 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1158 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1160 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1161 PKG_SELECTED_MODULES+=applications/luci-initmgr
1163 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1164 PKG_SELECTED_MODULES+=applications/luci-livestats
1166 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1167 PKG_SELECTED_MODULES+=applications/luci-asterisk
1169 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1170 PKG_SELECTED_MODULES+=applications/luci-polipo
1172 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1173 PKG_SELECTED_MODULES+=applications/luci-openvpn
1175 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1176 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1178 ifneq ($(CONFIG_PACKAGE_luci-app-multiwan),)
1179 PKG_SELECTED_MODULES+=applications/luci-multiwan
1181 ifneq ($(CONFIG_PACKAGE_luci-app-wol),)
1182 PKG_SELECTED_MODULES+=applications/luci-wol
1184 ifneq ($(CONFIG_PACKAGE_luci-app-vnstat),)
1185 PKG_SELECTED_MODULES+=applications/luci-vnstat
1189 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1190 PKG_SELECTED_MODULES+=libs/sgi-cgi
1192 ifneq ($(CONFIG_PACKAGE_luci-sgi-uhttpd),)
1193 PKG_SELECTED_MODULES+=libs/sgi-uhttpd
1195 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1196 PKG_SELECTED_MODULES+=libs/sgi-luci
1199 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1200 PKG_SELECTED_MODULES+=themes/base
1202 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1203 PKG_SELECTED_MODULES+=themes/fledermaus
1205 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1206 PKG_SELECTED_MODULES+=themes/freifunk-bno
1208 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1209 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1211 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1212 PKG_SELECTED_MODULES+=themes/freifunk
1214 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1215 PKG_SELECTED_MODULES+=themes/openwrt.org
1217 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1218 PKG_SELECTED_MODULES+=themes/openwrt-light
1221 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1222 PKG_SELECTED_MODULES+=i18n/german
1224 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1225 PKG_SELECTED_MODULES+=i18n/english
1227 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1228 PKG_SELECTED_MODULES+=i18n/french
1230 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1231 PKG_SELECTED_MODULES+=i18n/italian
1233 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1234 PKG_SELECTED_MODULES+=i18n/russian
1236 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1237 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1239 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1240 PKG_SELECTED_MODULES+=i18n/japanese
1242 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1243 PKG_SELECTED_MODULES+=i18n/greek
1245 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1246 PKG_SELECTED_MODULES+=i18n/catalan
1248 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1249 PKG_SELECTED_MODULES+=i18n/portuguese
1251 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1252 PKG_SELECTED_MODULES+=i18n/spanish
1254 ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
1255 PKG_SELECTED_MODULES+=i18n/vietnamese
1257 ifneq ($(CONFIG_PACKAGE_luci-i18n-malay),)
1258 PKG_SELECTED_MODULES+=i18n/malay
1263 MODULES="$(PKG_SELECTED_MODULES)" \
1264 LUA_TARGET="$(LUA_TARGET)" \
1265 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1266 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1267 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1268 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1271 $(eval $(call BuildPackage,luci-core))
1272 $(eval $(call BuildPackage,luci-fastindex))
1273 $(eval $(call BuildPackage,luci-httpclient))
1274 $(eval $(call BuildPackage,luci-ipkg))
1275 $(eval $(call BuildPackage,luci-json))
1276 $(eval $(call BuildPackage,luci-lmo))
1277 $(eval $(call BuildPackage,luci-luanet))
1278 $(eval $(call BuildPackage,luci-lucid))
1279 $(eval $(call BuildPackage,luci-nixio))
1280 $(eval $(call BuildPackage,luci-px5g))
1281 $(eval $(call BuildPackage,luci-sys))
1282 $(eval $(call BuildPackage,luci-web))
1283 $(eval $(call BuildPackage,luci-uvl))
1285 $(eval $(call BuildPackage,luci-admin-core))
1286 $(eval $(call BuildPackage,luci-admin-mini))
1287 $(eval $(call BuildPackage,luci-admin-full))
1288 $(eval $(call BuildPackage,luci-niu))
1289 $(eval $(call BuildPackage,luci-admin-rpc))
1290 $(eval $(call BuildPackage,luci-mod-freifunk))
1292 $(eval $(call BuildPackage,luci-freifunk-community))
1294 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1295 $(eval $(call BuildPackage,luci-app-siitwizard))
1296 $(eval $(call BuildPackage,luci-app-firewall))
1297 $(eval $(call BuildPackage,luci-app-olsr))
1298 $(eval $(call BuildPackage,luci-app-qos))
1299 $(eval $(call BuildPackage,luci-app-splash))
1300 $(eval $(call BuildPackage,luci-app-statistics))
1301 $(eval $(call BuildPackage,luci-app-diag-core))
1302 $(eval $(call BuildPackage,luci-app-diag-devinfo))
1303 $(eval $(call BuildPackage,luci-app-voice-core))
1304 $(eval $(call BuildPackage,luci-app-voice-diag))
1305 $(eval $(call BuildPackage,luci-app-upnp))
1306 $(eval $(call BuildPackage,luci-app-ntpc))
1307 $(eval $(call BuildPackage,luci-app-ddns))
1308 $(eval $(call BuildPackage,luci-app-samba))
1309 $(eval $(call BuildPackage,luci-app-mmc-over-gpio))
1310 $(eval $(call BuildPackage,luci-app-p910nd))
1311 $(eval $(call BuildPackage,luci-app-ushare))
1312 $(eval $(call BuildPackage,luci-app-hd-idle))
1313 $(eval $(call BuildPackage,luci-app-tinyproxy))
1314 $(eval $(call BuildPackage,luci-app-initmgr))
1315 $(eval $(call BuildPackage,luci-app-livestats))
1316 $(eval $(call BuildPackage,luci-app-asterisk))
1317 $(eval $(call BuildPackage,luci-app-polipo))
1318 $(eval $(call BuildPackage,luci-app-openvpn))
1319 $(eval $(call BuildPackage,luci-app-p2pblock))
1320 $(eval $(call BuildPackage,luci-app-multiwan))
1321 $(eval $(call BuildPackage,luci-app-wol))
1322 $(eval $(call BuildPackage,luci-app-vnstat))
1324 $(eval $(call BuildPackage,luci-sgi-cgi))
1325 $(eval $(call BuildPackage,luci-sgi-uhttpd))
1327 $(eval $(call BuildPackage,luci-theme-base))
1328 $(eval $(call BuildPackage,luci-theme-fledermaus))
1329 $(eval $(call BuildPackage,luci-theme-freifunk))
1330 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1331 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1332 $(eval $(call BuildPackage,luci-theme-openwrt))
1333 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1335 $(eval $(call BuildPackage,luci-i18n-german))
1336 $(eval $(call BuildPackage,luci-i18n-english))
1337 $(eval $(call BuildPackage,luci-i18n-french))
1338 $(eval $(call BuildPackage,luci-i18n-italian))
1339 $(eval $(call BuildPackage,luci-i18n-russian))
1340 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1341 $(eval $(call BuildPackage,luci-i18n-japanese))
1342 $(eval $(call BuildPackage,luci-i18n-greek))
1343 $(eval $(call BuildPackage,luci-i18n-catalan))
1344 $(eval $(call BuildPackage,luci-i18n-portuguese))
1345 $(eval $(call BuildPackage,luci-i18n-spanish))
1346 $(eval $(call BuildPackage,luci-i18n-vietnamese))
1347 $(eval $(call BuildPackage,luci-i18n-malay))
1349 $(eval $(call BuildPackage,luci))
1350 $(eval $(call BuildPackage,luci-ssl))
1351 $(eval $(call BuildPackage,luci-medium))
1352 $(eval $(call BuildPackage,luci-light))