1 include $(TOPDIR)/rules.mk
3 PKG_BRANCH:=branches/luci-0.9
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_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
31 PKG_SELECTED_MODULES:=
34 include $(INCLUDE_DIR)/package.mk
38 mkdir -p $(PKG_BUILD_DIR)
39 $(TAR) c -C ../../../ . \
40 --exclude=.pc --exclude=.svn --exclude=.git \
41 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
43 tar x -C $(PKG_BUILD_DIR)/
47 define Build/Configure
52 define Package/luci/libtemplate
55 TITLE:=LuCI - Lua Configuration Interface
56 URL:=http://luci.freifunk-halle.net/
57 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
62 define Package/luci/fftemplate
63 $(call Package/luci/libtemplate)
65 DEPENDS:=+luci-mod-freifunk
68 define Package/luci/i18ntemplate
69 $(call Package/luci/libtemplate)
74 define Package/luci/thtemplate
75 $(call Package/luci/libtemplate)
80 define Package/luci/webtemplate
81 $(call Package/luci/libtemplate)
86 define Package/luci/install/template
87 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
88 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
95 define Package/luci-core
96 $(call Package/luci/libtemplate)
98 TITLE:=LuCI core libraries
101 define Package/luci-core/install
102 $(call Package/luci/install/template,$(1),libs/core)
103 $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
105 "$(OPENWRTVERSION)" \
110 define Package/luci-core/config
112 prompt "Build Target"
113 default PACKAGE_luci-core_source
115 config PACKAGE_luci-core_compile
118 config PACKAGE_luci-core_stripped
121 config PACKAGE_luci-core_source
124 config PACKAGE_luci-core_zipped
125 bool "Precompiled and compressed"
130 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
134 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
138 ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
144 define Package/luci-cbi
145 $(call Package/luci/libtemplate)
146 DEPENDS+=+luci-web +luci-uvl +luci-uci
147 TITLE:=Configuration Binding Interface
150 define Package/luci-cbi/install
151 $(call Package/luci/install/template,$(1),libs/cbi)
155 define Package/luci-uci
156 $(call Package/luci/libtemplate)
158 TITLE:=High-Level UCI API
161 define Package/luci-uci/install
162 $(call Package/luci/install/template,$(1),libs/uci)
166 define Package/luci-fastindex
167 $(call Package/luci/libtemplate)
168 TITLE:=Fastindex indexing module
171 define Package/luci-fastindex/install
172 $(call Package/luci/install/template,$(1),libs/fastindex)
176 define Package/luci-http
177 $(call Package/luci/libtemplate)
178 TITLE:=HTTP Protocol implementation
181 define Package/luci-http/install
182 $(call Package/luci/install/template,$(1),libs/http)
186 define Package/luci-httpclient
187 $(call Package/luci/libtemplate)
188 TITLE:=HTTP(S) client library
189 DEPENDS+=+luci-http +luci-nixio
192 define Package/luci-httpclient/install
193 $(call Package/luci/install/template,$(1),libs/httpclient)
197 define Package/luci-ipkg
198 $(call Package/luci/libtemplate)
199 TITLE:=LuCI IPKG/OPKG call abstraction library
202 define Package/luci-ipkg/install
203 $(call Package/luci/install/template,$(1),libs/ipkg)
207 define Package/luci-json
208 $(call Package/luci/libtemplate)
209 TITLE:=LuCI JSON Library
212 define Package/luci-json/install
213 $(call Package/luci/install/template,$(1),libs/json)
217 define Package/luci-luanet
218 $(call Package/luci/libtemplate)
223 define Package/luci-luanet/install
224 $(call Package/luci/install/template,$(1),libs/luanet)
228 define Package/luci-lucid
229 $(call Package/luci/libtemplate)
230 TITLE:=LuCId Superserver
231 DEPENDS+=+luci-nixio +luci-http +luci-px5g
234 define Package/luci-lucid/install
235 $(call Package/luci/install/template,$(1),libs/lucid)
236 $(call Package/luci/install/template,$(1),libs/lucid-http)
243 define Package/luci-nixio
244 $(call Package/luci/libtemplate)
245 TITLE:=NIXIO Socket Library
249 define Package/luci-nixio/install
250 $(call Package/luci/install/template,$(1),libs/nixio)
253 define Package/luci-nixio/config
255 prompt "TLS Provider"
256 default PACKAGE_luci-nixio_axtls
258 config PACKAGE_luci-nixio_axtls
259 bool "Builtin (axTLS)"
260 select PACKAGE_dropbear
261 select PACKAGE_dropbearconvert
263 config PACKAGE_luci-nixio_cyassl
265 select PACKAGE_libcyassl-luci
267 config PACKAGE_luci-nixio_openssl
269 select PACKAGE_libopenssl
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/libtemplate)
285 TITLE:=PX5G RSA Keymaster
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
299 define Package/luci-sys/install
300 $(call Package/luci/install/template,$(1),libs/sys)
304 define Package/luci-web
305 $(call Package/luci/libtemplate)
306 DEPENDS+=+luci-http +luci-sys +luci-uci +luci-lucid +luci-sgi-cgi
307 TITLE:=MVC Webframework
308 $(call Config,luci.main.lang,string,en,Default Language)
311 define Package/luci-web/conffiles
315 define Package/luci-web/install
316 $(call Package/luci/install/template,$(1),libs/web)
320 define Package/luci-uvl
321 $(call Package/luci/libtemplate)
322 DEPENDS+=+luci-sys +luci-uci +luci-core
323 TITLE:=UVL - UCI Validation Layer
326 define Package/luci-uvl/install
327 $(call Package/luci/install/template,$(1),libs/uvl)
332 ### Community Packages ###
334 define Package/luci-freifunk-community
335 $(call Package/luci/fftemplate)
337 +luci-lucid +luci-sgi-cgi +luci-app-splash \
338 +luci-app-ffwizard-leipzig \
340 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
341 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
342 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
343 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
344 TITLE:=Freifunk Community Meta-Package
347 define Package/luci-freifunk-community/install
348 $(call Package/luci/install/template,$(1),applications/freifunk-community)
353 define Package/luci-admin-core
354 $(call Package/luci/webtemplate)
355 DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
356 TITLE:=Web UI Core Module
359 define Package/luci-admin-core/conffiles
360 /etc/config/luci_hosts
361 /etc/config/luci_ethers
364 define Package/luci-admin-core/install
365 $(call Package/luci/install/template,$(1),modules/admin-core)
366 touch $(1)/etc/init.d/luci_fixtime || true
370 define Package/luci-admin-mini
371 $(call Package/luci/webtemplate)
372 DEPENDS+=+luci-admin-core
373 TITLE:=LuCI Essentials - stripped down and user-friendly
376 define Package/luci-admin-mini/install
377 $(call Package/luci/install/template,$(1),modules/admin-mini)
381 define Package/luci-admin-full
382 $(call Package/luci/webtemplate)
383 DEPENDS+=+luci-admin-core +luci-ipkg
384 TITLE:=LuCI Administration - full-featured for full control
387 define Package/luci-admin-full/install
388 $(call Package/luci/install/template,$(1),modules/admin-full)
392 define Package/luci-admin-rpc
393 $(call Package/luci/webtemplate)
395 TITLE:=LuCI RPC - JSON-RPC API
398 define Package/luci-admin-rpc/install
399 $(call Package/luci/install/template,$(1),modules/rpc)
403 define Package/luci-mod-freifunk
404 $(call Package/luci/fftemplate)
405 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
406 TITLE:=LuCI Freifunk module
409 define Package/luci-mod-freifunk/conffiles
413 define Package/luci-mod-freifunk/install
414 $(call Package/luci/install/template,$(1),modules/freifunk)
421 define Package/luci-app-ffwizard-leipzig
422 $(call Package/luci/fftemplate)
423 TITLE:=Freifunk Leipzig configuration wizard
426 define Package/luci-app-ffwizard-leipzig/install
427 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
431 define Package/luci-app-siitwizard
432 $(call Package/luci/fftemplate)
433 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
434 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
437 define Package/luci-app-siitwizard/install
438 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
442 define Package/luci-app-firewall
443 $(call Package/luci/webtemplate)
444 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
445 TITLE:=Firewall and Portforwarding application
448 define Package/luci-app-firewall/install
449 $(call Package/luci/install/template,$(1),applications/luci-fw)
453 define Package/luci-app-olsr
454 $(call Package/luci/webtemplate)
455 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
456 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
457 TITLE:=OLSR configuration and status module
460 define Package/luci-app-olsr/install
461 $(call Package/luci/install/template,$(1),applications/luci-olsr)
465 define Package/luci-app-qos
466 $(call Package/luci/webtemplate)
467 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
468 TITLE:=Quality of Service configuration module
471 define Package/luci-app-qos/install
472 $(call Package/luci/install/template,$(1),applications/luci-qos)
476 define Package/luci-app-splash
477 $(call Package/luci/fftemplate)
478 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
479 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
480 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
481 +PACKAGE_luci-app-splash:iptables-mod-ipopt
482 TITLE:=Freifunk DHCP-Splash application
485 define Package/luci-app-splash/conffiles
486 /etc/config/luci_splash
489 define Package/luci-app-splash/install
490 $(call Package/luci/install/template,$(1),applications/luci-splash)
494 define Package/luci-app-statistics
495 $(call Package/luci/webtemplate)
496 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
497 +PACKAGE_luci-app-statistics:rrdtool1 \
498 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
499 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
500 +PACKAGE_luci-app-statistics:collectd-mod-interface \
501 +PACKAGE_luci-app-statistics:collectd-mod-load
502 TITLE:=LuCI Statistics Application
505 define Package/luci-app-statistics/conffiles
506 /etc/config/luci_statistics
509 define Package/luci-app-statistics/install
510 $(call Package/luci/install/template,$(1),applications/luci-statistics)
514 define Package/luci-app-upnp
515 $(call Package/luci/webtemplate)
516 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
517 TITLE:=Universal Plug & Play configuration module
520 define Package/luci-app-upnp/install
521 $(call Package/luci/install/template,$(1),applications/luci-upnp)
525 define Package/luci-app-ntpc
526 $(call Package/luci/webtemplate)
527 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
528 TITLE:=NTP time synchronisation client configuration module
531 define Package/luci-app-ntpc/install
532 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
536 define Package/luci-app-ddns
537 $(call Package/luci/webtemplate)
538 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
539 TITLE:=Dynamic DNS configuration module
542 define Package/luci-app-ddns/install
543 $(call Package/luci/install/template,$(1),applications/luci-ddns)
547 define Package/luci-app-samba
548 $(call Package/luci/webtemplate)
549 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
550 TITLE:=Network Shares - Samba SMB/CIFS module
553 define Package/luci-app-samba/install
554 $(call Package/luci/install/template,$(1),applications/luci-samba)
558 define Package/luci-app-uvc_streamer
559 $(call Package/luci/webtemplate)
560 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
561 TITLE:=Webcam Streaming - UVC-Streamer module
564 define Package/luci-app-uvc_streamer/install
565 $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
569 define Package/luci-app-mmc_over_gpio
570 $(call Package/luci/webtemplate)
571 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
575 define Package/luci-app-mmc_over_gpio/install
576 $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
580 define Package/luci-app-p910nd
581 $(call Package/luci/webtemplate)
582 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
583 TITLE:=p910nd - Printer server module
586 define Package/luci-app-p910nd/install
587 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
591 define Package/luci-app-ushare
592 $(call Package/luci/webtemplate)
593 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
594 TITLE:=ushare - UPnP A/V & DLNA Media Server
597 define Package/luci-app-ushare/install
598 $(call Package/luci/install/template,$(1),applications/luci-ushare)
601 define Package/luci-app-hd_idle
602 $(call Package/luci/webtemplate)
603 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
607 define Package/luci-app-hd_idle/install
608 $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
611 define Package/luci-app-tinyproxy
612 $(call Package/luci/webtemplate)
613 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
614 TITLE:=Tinyproxy - HTTP(S)-Proxy
617 define Package/luci-app-tinyproxy/install
618 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
621 define Package/luci-app-initmgr
622 $(call Package/luci/webtemplate)
623 DEPENDS+=+luci-admin-full
624 TITLE:=LuCI Initscript Management
627 define Package/luci-app-initmgr/install
628 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
631 define Package/luci-app-livestats
632 $(call Package/luci/webtemplate)
633 DEPENDS+=+luci-admin-core +luci-admin-rpc
634 TITLE:=LuCI Realtime Statistics
637 define Package/luci-app-livestats/install
638 $(call Package/luci/install/template,$(1),applications/luci-livestats)
641 define Package/luci-app-polipo
642 $(call Package/luci/webtemplate)
643 TITLE:=LuCI Support for the Polipo Proxy
644 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
647 define Package/luci-app-polipo/install
648 $(call Package/luci/install/template,$(1),applications/luci-polipo)
651 define Package/luci-app-openvpn
652 $(call Package/luci/webtemplate)
653 TITLE:=LuCI Support for OpenVPN
654 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
657 define Package/luci-app-openvpn/install
658 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
661 define Package/luci-app-p2pblock
662 $(call Package/luci/webtemplate)
663 TITLE:=LuCI Support for the Freifunk P2P-Block addon
664 DEPENDS+=+luci-admin-core +luci-app-firewall \
665 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
668 define Package/luci-app-p2pblock/install
669 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
673 ### Server Gateway Interfaces ###
675 define Package/luci-sgi-cgi
676 $(call Package/luci/libtemplate)
680 define Package/luci-sgi-cgi/install
681 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
685 define Package/luci-theme-base
686 $(call Package/luci/thtemplate)
688 TITLE:=Common base for all themes
691 define Package/luci-theme-base/install
692 $(call Package/luci/install/template,$(1),themes/base)
695 define Package/luci-theme-fledermaus
696 $(call Package/luci/fftemplate)
698 TITLE:=Fledermaus Theme
701 define Package/luci-theme-fledermaus/install
702 $(call Package/luci/install/template,$(1),themes/fledermaus)
705 define Package/luci-theme-freifunk
706 $(call Package/luci/fftemplate)
708 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
709 TITLE:=alternative Freifunk Theme
712 define Package/luci-theme-freifunk/install
713 $(call Package/luci/install/template,$(1),themes/freifunk)
716 define Package/luci-theme-freifunk-bno
717 $(call Package/luci/fftemplate)
719 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
720 TITLE:=Freifunk Berlin Nordost Theme
723 define Package/luci-theme-freifunk-bno/install
724 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
727 define Package/luci-theme-freifunk-hannover
728 $(call Package/luci/fftemplate)
730 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
731 TITLE:=Freifunk Hannover Theme
734 define Package/luci-theme-freifunk-hannover/install
735 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
738 define Package/luci-theme-openwrt
739 $(call Package/luci/thtemplate)
740 TITLE:=OpenWrt.org (default)
741 DEPENDS:=+luci-theme-base
744 define Package/luci-theme-openwrt/install
745 $(call Package/luci/install/template,$(1),themes/openwrt.org)
748 define Package/luci-theme-openwrtlight
749 $(call Package/luci/thtemplate)
750 TITLE:=OpenWrt.org - light variant without images
751 DEPENDS:=+luci-theme-base
754 define Package/luci-theme-openwrtlight/install
755 $(call Package/luci/install/template,$(1),themes/openwrt-light)
760 define Package/luci-i18n-german
761 $(call Package/luci/i18ntemplate)
765 define Package/luci-i18n-german/install
766 $(call Package/luci/install/template,$(1),i18n/german)
770 define Package/luci-i18n-english
771 $(call Package/luci/i18ntemplate)
775 define Package/luci-i18n-english/install
776 $(call Package/luci/install/template,$(1),i18n/english)
780 define Package/luci-i18n-french
781 $(call Package/luci/i18ntemplate)
782 TITLE:=French (by Florian Fainelli)
785 define Package/luci-i18n-french/install
786 $(call Package/luci/install/template,$(1),i18n/french)
790 define Package/luci-i18n-italian
791 $(call Package/luci/i18ntemplate)
792 TITLE:=Italian (by Matteo Croce)
795 define Package/luci-i18n-italian/install
796 $(call Package/luci/install/template,$(1),i18n/italian)
800 define Package/luci-i18n-russian
801 $(call Package/luci/i18ntemplate)
802 TITLE:=Russian (by Skryabin Dmitry)
805 define Package/luci-i18n-russian/install
806 $(call Package/luci/install/template,$(1),i18n/russian)
810 define Package/luci-i18n-portuguese_brazilian
811 $(call Package/luci/i18ntemplate)
812 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
815 define Package/luci-i18n-portuguese_brazilian/install
816 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
820 define Package/luci-i18n-japanese
821 $(call Package/luci/i18ntemplate)
822 TITLE:=Japanese (by Tsukasa Hamano)
825 define Package/luci-i18n-japanese/install
826 $(call Package/luci/install/template,$(1),i18n/japanese)
830 define Package/luci-i18n-greek
831 $(call Package/luci/i18ntemplate)
832 TITLE:=Greek (by Vasilis Tsiligiannis)
835 define Package/luci-i18n-greek/install
836 $(call Package/luci/install/template,$(1),i18n/greek)
840 define Package/luci-i18n-catalan
841 $(call Package/luci/i18ntemplate)
842 TITLE:=Catalan (by Eduard Duran)
845 define Package/luci-i18n-catalan/install
846 $(call Package/luci/install/template,$(1),i18n/catalan)
850 define Package/luci-i18n-portuguese
851 $(call Package/luci/i18ntemplate)
852 TITLE:=Portuguese (by Jose Monteiro)
855 define Package/luci-i18n-portuguese/install
856 $(call Package/luci/install/template,$(1),i18n/portuguese)
861 ifneq ($(CONFIG_PACKAGE_luci-core),)
862 PKG_SELECTED_MODULES+=libs/core
864 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
865 PKG_SELECTED_MODULES+=libs/cbi
867 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
868 PKG_SELECTED_MODULES+=libs/fastindex
870 ifneq ($(CONFIG_PACKAGE_luci-http),)
871 PKG_SELECTED_MODULES+=libs/http
873 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
874 PKG_SELECTED_MODULES+=libs/httpclient
876 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
877 PKG_SELECTED_MODULES+=libs/ipkg
879 ifneq ($(CONFIG_PACKAGE_luci-json),)
880 PKG_SELECTED_MODULES+=libs/json
882 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
883 PKG_SELECTED_MODULES+=libs/luanet
885 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
886 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
888 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
889 PKG_SELECTED_MODULES+=libs/nixio
891 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
892 PKG_SELECTED_MODULES+=libs/px5g
894 ifneq ($(CONFIG_PACKAGE_luci-uci),)
895 PKG_SELECTED_MODULES+=libs/uci
897 ifneq ($(CONFIG_PACKAGE_luci-sys),)
898 PKG_SELECTED_MODULES+=libs/sys
900 ifneq ($(CONFIG_PACKAGE_luci-web),)
901 PKG_SELECTED_MODULES+=libs/web
903 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
904 PKG_SELECTED_MODULES+=libs/uvl
907 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
908 PKG_SELECTED_MODULES+=modules/admin-core
910 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
911 PKG_SELECTED_MODULES+=modules/admin-mini
913 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
914 PKG_SELECTED_MODULES+=modules/admin-full
916 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
917 PKG_SELECTED_MODULES+=modules/rpc
919 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
920 PKG_SELECTED_MODULES+=modules/freifunk
923 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
924 PKG_SELECTED_MODULES+=applications/freifunk-community
927 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
928 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
930 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
931 PKG_SELECTED_MODULES+=applications/luci-siitwizard
933 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
934 PKG_SELECTED_MODULES+=applications/luci-fw
936 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
937 PKG_SELECTED_MODULES+=applications/luci-olsr
939 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
940 PKG_SELECTED_MODULES+=applications/luci-qos
942 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
943 PKG_SELECTED_MODULES+=applications/luci-splash
945 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
946 PKG_SELECTED_MODULES+=applications/luci-statistics
948 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
949 PKG_SELECTED_MODULES+=applications/luci-upnp
951 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
952 PKG_SELECTED_MODULES+=applications/luci-ntpc
954 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
955 PKG_SELECTED_MODULES+=applications/luci-ddns
957 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
958 PKG_SELECTED_MODULES+=applications/luci-samba
960 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
961 PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
963 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
964 PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
966 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
967 PKG_SELECTED_MODULES+=applications/luci-p910nd
969 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
970 PKG_SELECTED_MODULES+=applications/luci-ushare
972 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
973 PKG_SELECTED_MODULES+=applications/luci-hd_idle
975 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
976 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
978 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
979 PKG_SELECTED_MODULES+=applications/luci-initmgr
981 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
982 PKG_SELECTED_MODULES+=applications/luci-livestats
984 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
985 PKG_SELECTED_MODULES+=applications/luci-polipo
987 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
988 PKG_SELECTED_MODULES+=applications/luci-openvpn
990 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
991 PKG_SELECTED_MODULES+=applications/luci-p2pblock
995 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
996 PKG_SELECTED_MODULES+=libs/sgi-cgi
998 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
999 PKG_SELECTED_MODULES+=libs/sgi-luci
1001 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
1002 PKG_SELECTED_MODULES+=libs/sgi-webuci
1005 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1006 PKG_SELECTED_MODULES+=themes/base
1008 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1009 PKG_SELECTED_MODULES+=themes/fledermaus
1011 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1012 PKG_SELECTED_MODULES+=themes/freifunk-bno
1014 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1015 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1017 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1018 PKG_SELECTED_MODULES+=themes/freifunk
1020 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1021 PKG_SELECTED_MODULES+=themes/openwrt.org
1023 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1024 PKG_SELECTED_MODULES+=themes/openwrt-light
1027 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1028 PKG_SELECTED_MODULES+=i18n/german
1030 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1031 PKG_SELECTED_MODULES+=i18n/english
1033 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1034 PKG_SELECTED_MODULES+=i18n/french
1036 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1037 PKG_SELECTED_MODULES+=i18n/italian
1039 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1040 PKG_SELECTED_MODULES+=i18n/russian
1042 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1043 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1045 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1046 PKG_SELECTED_MODULES+=i18n/japanese
1048 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1049 PKG_SELECTED_MODULES+=i18n/greek
1051 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1052 PKG_SELECTED_MODULES+=i18n/catalan
1054 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1055 PKG_SELECTED_MODULES+=i18n/portuguese
1060 MODULES="$(PKG_SELECTED_MODULES)" \
1061 LUA_TARGET="$(LUA_TARGET)" \
1062 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1063 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1064 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1065 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1068 $(eval $(call BuildPackage,luci-core))
1069 $(eval $(call BuildPackage,luci-cbi))
1070 $(eval $(call BuildPackage,luci-fastindex))
1071 $(eval $(call BuildPackage,luci-http))
1072 $(eval $(call BuildPackage,luci-httpclient))
1073 $(eval $(call BuildPackage,luci-ipkg))
1074 $(eval $(call BuildPackage,luci-json))
1075 $(eval $(call BuildPackage,luci-luanet))
1076 $(eval $(call BuildPackage,luci-lucid))
1077 $(eval $(call BuildPackage,luci-nixio))
1078 $(eval $(call BuildPackage,luci-px5g))
1079 $(eval $(call BuildPackage,luci-uci))
1080 $(eval $(call BuildPackage,luci-sys))
1081 $(eval $(call BuildPackage,luci-web))
1082 $(eval $(call BuildPackage,luci-uvl))
1084 $(eval $(call BuildPackage,luci-admin-core))
1085 $(eval $(call BuildPackage,luci-admin-mini))
1086 $(eval $(call BuildPackage,luci-admin-full))
1087 $(eval $(call BuildPackage,luci-admin-rpc))
1088 $(eval $(call BuildPackage,luci-mod-freifunk))
1090 $(eval $(call BuildPackage,luci-freifunk-community))
1092 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1093 $(eval $(call BuildPackage,luci-app-siitwizard))
1094 $(eval $(call BuildPackage,luci-app-firewall))
1095 $(eval $(call BuildPackage,luci-app-olsr))
1096 $(eval $(call BuildPackage,luci-app-qos))
1097 $(eval $(call BuildPackage,luci-app-splash))
1098 $(eval $(call BuildPackage,luci-app-statistics))
1099 $(eval $(call BuildPackage,luci-app-upnp))
1100 $(eval $(call BuildPackage,luci-app-ntpc))
1101 $(eval $(call BuildPackage,luci-app-ddns))
1102 $(eval $(call BuildPackage,luci-app-samba))
1103 $(eval $(call BuildPackage,luci-app-uvc_streamer))
1104 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1105 $(eval $(call BuildPackage,luci-app-p910nd))
1106 $(eval $(call BuildPackage,luci-app-ushare))
1107 $(eval $(call BuildPackage,luci-app-hd_idle))
1108 $(eval $(call BuildPackage,luci-app-tinyproxy))
1109 $(eval $(call BuildPackage,luci-app-initmgr))
1110 $(eval $(call BuildPackage,luci-app-livestats))
1111 $(eval $(call BuildPackage,luci-app-polipo))
1112 $(eval $(call BuildPackage,luci-app-openvpn))
1113 $(eval $(call BuildPackage,luci-app-p2pblock))
1115 $(eval $(call BuildPackage,luci-sgi-cgi))
1117 $(eval $(call BuildPackage,luci-theme-base))
1118 $(eval $(call BuildPackage,luci-theme-fledermaus))
1119 $(eval $(call BuildPackage,luci-theme-freifunk))
1120 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1121 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1122 $(eval $(call BuildPackage,luci-theme-openwrt))
1123 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1125 $(eval $(call BuildPackage,luci-i18n-german))
1126 $(eval $(call BuildPackage,luci-i18n-english))
1127 $(eval $(call BuildPackage,luci-i18n-french))
1128 $(eval $(call BuildPackage,luci-i18n-italian))
1129 $(eval $(call BuildPackage,luci-i18n-russian))
1130 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1131 $(eval $(call BuildPackage,luci-i18n-japanese))
1132 $(eval $(call BuildPackage,luci-i18n-greek))
1133 $(eval $(call BuildPackage,luci-i18n-catalan))
1134 $(eval $(call BuildPackage,luci-i18n-portuguese))