1 include $(TOPDIR)/rules.mk
6 USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
15 PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
17 PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p')
18 PKG_VERSION:=0.9+svn$(PKG_REV)
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
23 PKG_SOURCE_VERSION:=$(PKG_REV)
26 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
31 PKG_SELECTED_MODULES:=
33 ifeq ($(BOARD),brcm-2.4)
34 MAKE_FLAGS += CRAP="1"
38 include $(INCLUDE_DIR)/package.mk
42 mkdir -p $(PKG_BUILD_DIR)
43 $(TAR) c -C ../../../ . \
44 --exclude=.pc --exclude=.svn --exclude=.git \
45 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
47 tar x -C $(PKG_BUILD_DIR)/
51 define Build/Configure
56 define Package/luci/libtemplate
59 TITLE:=LuCI - Lua Configuration Interface
60 URL:=http://luci.freifunk-halle.net/
61 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
66 define Package/luci/fftemplate
67 $(call Package/luci/libtemplate)
69 DEPENDS:=+luci-mod-freifunk
72 define Package/luci/i18ntemplate
73 $(call Package/luci/libtemplate)
78 define Package/luci/thtemplate
79 $(call Package/luci/libtemplate)
84 define Package/luci/webtemplate
85 $(call Package/luci/libtemplate)
90 define Package/luci/install/template
91 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
92 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
99 define Package/luci-core
100 $(call Package/luci/libtemplate)
101 DEPENDS:=+lua +luci-nixio
102 TITLE:=LuCI core libraries
105 define Package/luci-core/install
106 $(call Package/luci/install/template,$(1),libs/core)
107 $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
109 "$(OPENWRTVERSION)" \
114 define Package/luci-core/config
116 prompt "Build Target"
117 default PACKAGE_luci-core_source
119 config PACKAGE_luci-core_compile
122 config PACKAGE_luci-core_stripped
125 config PACKAGE_luci-core_source
131 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
135 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
139 ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
145 define Package/luci-cbi
146 $(call Package/luci/libtemplate)
147 DEPENDS+=+luci-web +luci-uvl +luci-uci
148 TITLE:=Configuration Binding Interface
151 define Package/luci-cbi/install
152 $(call Package/luci/install/template,$(1),libs/cbi)
156 define Package/luci-uci
157 $(call Package/luci/libtemplate)
159 TITLE:=High-Level UCI API
162 define Package/luci-uci/install
163 $(call Package/luci/install/template,$(1),libs/uci)
167 define Package/luci-fastindex
168 $(call Package/luci/libtemplate)
169 TITLE:=Fastindex indexing module
172 define Package/luci-fastindex/install
173 $(call Package/luci/install/template,$(1),libs/fastindex)
177 define Package/luci-http
178 $(call Package/luci/libtemplate)
179 TITLE:=HTTP Protocol implementation
182 define Package/luci-http/install
183 $(call Package/luci/install/template,$(1),libs/http)
187 define Package/luci-httpclient
188 $(call Package/luci/libtemplate)
189 TITLE:=HTTP(S) client library
190 DEPENDS+=+luci-http +luci-nixio
193 define Package/luci-httpclient/install
194 $(call Package/luci/install/template,$(1),libs/httpclient)
198 define Package/luci-ipkg
199 $(call Package/luci/libtemplate)
200 TITLE:=LuCI IPKG/OPKG call abstraction library
203 define Package/luci-ipkg/install
204 $(call Package/luci/install/template,$(1),libs/ipkg)
208 define Package/luci-json
209 $(call Package/luci/libtemplate)
210 TITLE:=LuCI JSON Library
213 define Package/luci-json/install
214 $(call Package/luci/install/template,$(1),libs/json)
218 define Package/luci-luanet
219 $(call Package/luci/libtemplate)
224 define Package/luci-luanet/install
225 $(call Package/luci/install/template,$(1),libs/luanet)
229 define Package/luci-lucid
230 $(call Package/luci/libtemplate)
231 TITLE:=LuCId Superserver
232 DEPENDS+=+luci-nixio +luci-http +luci-px5g
235 define Package/luci-lucid/install
236 $(call Package/luci/install/template,$(1),libs/lucid)
237 $(call Package/luci/install/template,$(1),libs/lucid-http)
244 define Package/luci-nixio
245 $(call Package/luci/libtemplate)
246 TITLE:=NIXIO POSIX Library
247 DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl-luci
250 define Package/luci-nixio/install
251 $(call Package/luci/install/template,$(1),libs/nixio)
254 define Package/luci-nixio/config
256 prompt "TLS Provider"
257 default PACKAGE_luci-nixio_axtls
259 config PACKAGE_luci-nixio_axtls
260 bool "Builtin (axTLS)"
262 config PACKAGE_luci-nixio_cyassl
264 select PACKAGE_libcyassl-luci
266 config PACKAGE_luci-nixio_openssl
268 select PACKAGE_libopenssl
272 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
276 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
278 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
282 define Package/luci-px5g
283 $(call Package/luci/libtemplate)
284 TITLE:=PX5G RSA Keymaster
288 define Package/luci-px5g/install
289 $(call Package/luci/install/template,$(1),libs/px5g)
293 define Package/luci-sys
294 $(call Package/luci/libtemplate)
295 TITLE:=LuCI Linux/POSIX system library
298 define Package/luci-sys/install
299 $(call Package/luci/install/template,$(1),libs/sys)
303 define Package/luci-web
304 $(call Package/luci/libtemplate)
305 DEPENDS+=+luci-http +luci-sys +luci-uci +luci-lucid +luci-sgi-cgi
306 TITLE:=MVC Webframework
307 $(call Config,luci.main.lang,string,en,Default Language)
310 define Package/luci-web/conffiles
314 define Package/luci-web/install
315 $(call Package/luci/install/template,$(1),libs/web)
319 define Package/luci-uvl
320 $(call Package/luci/libtemplate)
321 DEPENDS+=+luci-sys +luci-uci +luci-core
322 TITLE:=UVL - UCI Validation Layer
325 define Package/luci-uvl/install
326 $(call Package/luci/install/template,$(1),libs/uvl)
331 ### Community Packages ###
333 define Package/luci-freifunk-community
334 $(call Package/luci/fftemplate)
336 +luci-lucid +luci-sgi-cgi +luci-app-splash \
337 +luci-app-ffwizard-leipzig \
339 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
340 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
341 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
342 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
343 TITLE:=Freifunk Community Meta-Package
346 define Package/luci-freifunk-community/install
347 $(call Package/luci/install/template,$(1),applications/freifunk-community)
352 define Package/luci-admin-core
353 $(call Package/luci/webtemplate)
354 DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
355 TITLE:=Web UI Core Module
358 define Package/luci-admin-core/conffiles
359 /etc/config/luci_hosts
360 /etc/config/luci_ethers
363 define Package/luci-admin-core/install
364 $(call Package/luci/install/template,$(1),modules/admin-core)
365 touch $(1)/etc/init.d/luci_fixtime || true
369 define Package/luci-admin-mini
370 $(call Package/luci/webtemplate)
371 DEPENDS+=+luci-admin-core
372 TITLE:=LuCI Essentials - stripped down and user-friendly
375 define Package/luci-admin-mini/install
376 $(call Package/luci/install/template,$(1),modules/admin-mini)
380 define Package/luci-admin-full
381 $(call Package/luci/webtemplate)
382 DEPENDS+=+luci-admin-core +luci-ipkg
383 TITLE:=LuCI Administration - full-featured for full control
386 define Package/luci-admin-full/install
387 $(call Package/luci/install/template,$(1),modules/admin-full)
391 define Package/luci-admin-rpc
392 $(call Package/luci/webtemplate)
394 TITLE:=LuCI RPC - JSON-RPC API
397 define Package/luci-admin-rpc/install
398 $(call Package/luci/install/template,$(1),modules/rpc)
402 define Package/luci-mod-freifunk
403 $(call Package/luci/fftemplate)
404 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
405 TITLE:=LuCI Freifunk module
408 define Package/luci-mod-freifunk/conffiles
412 define Package/luci-mod-freifunk/install
413 $(call Package/luci/install/template,$(1),modules/freifunk)
420 define Package/luci-app-ffwizard-leipzig
421 $(call Package/luci/fftemplate)
422 TITLE:=Freifunk Leipzig configuration wizard
425 define Package/luci-app-ffwizard-leipzig/install
426 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
430 define Package/luci-app-siitwizard
431 $(call Package/luci/fftemplate)
432 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
433 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
436 define Package/luci-app-siitwizard/install
437 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
441 define Package/luci-app-firewall
442 $(call Package/luci/webtemplate)
443 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
444 TITLE:=Firewall and Portforwarding application
447 define Package/luci-app-firewall/install
448 $(call Package/luci/install/template,$(1),applications/luci-fw)
452 define Package/luci-app-olsr
453 $(call Package/luci/webtemplate)
454 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
455 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
456 TITLE:=OLSR configuration and status module
459 define Package/luci-app-olsr/install
460 $(call Package/luci/install/template,$(1),applications/luci-olsr)
464 define Package/luci-app-qos
465 $(call Package/luci/webtemplate)
466 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
467 TITLE:=Quality of Service configuration module
470 define Package/luci-app-qos/install
471 $(call Package/luci/install/template,$(1),applications/luci-qos)
475 define Package/luci-app-splash
476 $(call Package/luci/fftemplate)
477 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
478 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
479 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
480 +PACKAGE_luci-app-splash:iptables-mod-ipopt
481 TITLE:=Freifunk DHCP-Splash application
484 define Package/luci-app-splash/conffiles
485 /etc/config/luci_splash
488 define Package/luci-app-splash/install
489 $(call Package/luci/install/template,$(1),applications/luci-splash)
493 define Package/luci-app-statistics
494 $(call Package/luci/webtemplate)
495 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
496 +PACKAGE_luci-app-statistics:rrdtool1 \
497 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
498 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
499 +PACKAGE_luci-app-statistics:collectd-mod-interface \
500 +PACKAGE_luci-app-statistics:collectd-mod-load
501 TITLE:=LuCI Statistics Application
504 define Package/luci-app-statistics/conffiles
505 /etc/config/luci_statistics
508 define Package/luci-app-statistics/install
509 $(call Package/luci/install/template,$(1),applications/luci-statistics)
513 define Package/luci-app-upnp
514 $(call Package/luci/webtemplate)
515 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
516 TITLE:=Universal Plug & Play configuration module
519 define Package/luci-app-upnp/install
520 $(call Package/luci/install/template,$(1),applications/luci-upnp)
524 define Package/luci-app-ntpc
525 $(call Package/luci/webtemplate)
526 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
527 TITLE:=NTP time synchronisation client configuration module
530 define Package/luci-app-ntpc/install
531 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
535 define Package/luci-app-ddns
536 $(call Package/luci/webtemplate)
537 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
538 TITLE:=Dynamic DNS configuration module
541 define Package/luci-app-ddns/install
542 $(call Package/luci/install/template,$(1),applications/luci-ddns)
546 define Package/luci-app-samba
547 $(call Package/luci/webtemplate)
548 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
549 TITLE:=Network Shares - Samba SMB/CIFS module
552 define Package/luci-app-samba/install
553 $(call Package/luci/install/template,$(1),applications/luci-samba)
557 define Package/luci-app-uvc_streamer
558 $(call Package/luci/webtemplate)
559 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
560 TITLE:=Webcam Streaming - UVC-Streamer module
563 define Package/luci-app-uvc_streamer/install
564 $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
568 define Package/luci-app-mmc_over_gpio
569 $(call Package/luci/webtemplate)
570 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
574 define Package/luci-app-mmc_over_gpio/install
575 $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
579 define Package/luci-app-p910nd
580 $(call Package/luci/webtemplate)
581 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
582 TITLE:=p910nd - Printer server module
585 define Package/luci-app-p910nd/install
586 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
590 define Package/luci-app-ushare
591 $(call Package/luci/webtemplate)
592 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
593 TITLE:=ushare - UPnP A/V & DLNA Media Server
596 define Package/luci-app-ushare/install
597 $(call Package/luci/install/template,$(1),applications/luci-ushare)
600 define Package/luci-app-hd_idle
601 $(call Package/luci/webtemplate)
602 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
606 define Package/luci-app-hd_idle/install
607 $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
610 define Package/luci-app-tinyproxy
611 $(call Package/luci/webtemplate)
612 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
613 TITLE:=Tinyproxy - HTTP(S)-Proxy
616 define Package/luci-app-tinyproxy/install
617 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
620 define Package/luci-app-initmgr
621 $(call Package/luci/webtemplate)
622 DEPENDS+=+luci-admin-full
623 TITLE:=LuCI Initscript Management
626 define Package/luci-app-initmgr/install
627 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
630 define Package/luci-app-livestats
631 $(call Package/luci/webtemplate)
632 DEPENDS+=+luci-admin-core +luci-admin-rpc
633 TITLE:=LuCI Realtime Statistics
636 define Package/luci-app-livestats/install
637 $(call Package/luci/install/template,$(1),applications/luci-livestats)
640 define Package/luci-app-asterisk
641 $(call Package/luci/webtemplate)
642 TITLE:=LuCI Support for Asterisk PBX
643 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
646 define Package/luci-app-asterisk/install
647 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
650 define Package/luci-app-polipo
651 $(call Package/luci/webtemplate)
652 TITLE:=LuCI Support for the Polipo Proxy
653 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
656 define Package/luci-app-polipo/install
657 $(call Package/luci/install/template,$(1),applications/luci-polipo)
660 define Package/luci-app-openvpn
661 $(call Package/luci/webtemplate)
662 TITLE:=LuCI Support for OpenVPN
663 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
666 define Package/luci-app-openvpn/install
667 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
670 define Package/luci-app-p2pblock
671 $(call Package/luci/webtemplate)
672 TITLE:=LuCI Support for the Freifunk P2P-Block addon
673 DEPENDS+=+luci-admin-core +luci-app-firewall \
674 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
677 define Package/luci-app-p2pblock/install
678 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
682 ### Server Gateway Interfaces ###
684 define Package/luci-sgi-cgi
685 $(call Package/luci/libtemplate)
689 define Package/luci-sgi-cgi/install
690 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
694 define Package/luci-theme-base
695 $(call Package/luci/thtemplate)
697 TITLE:=Common base for all themes
700 define Package/luci-theme-base/install
701 $(call Package/luci/install/template,$(1),themes/base)
704 define Package/luci-theme-fledermaus
705 $(call Package/luci/fftemplate)
707 TITLE:=Fledermaus Theme
710 define Package/luci-theme-fledermaus/install
711 $(call Package/luci/install/template,$(1),themes/fledermaus)
714 define Package/luci-theme-freifunk
715 $(call Package/luci/fftemplate)
717 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
718 TITLE:=alternative Freifunk Theme
721 define Package/luci-theme-freifunk/install
722 $(call Package/luci/install/template,$(1),themes/freifunk)
725 define Package/luci-theme-freifunk-bno
726 $(call Package/luci/fftemplate)
728 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
729 TITLE:=Freifunk Berlin Nordost Theme
732 define Package/luci-theme-freifunk-bno/install
733 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
736 define Package/luci-theme-freifunk-hannover
737 $(call Package/luci/fftemplate)
739 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
740 TITLE:=Freifunk Hannover Theme
743 define Package/luci-theme-freifunk-hannover/install
744 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
747 define Package/luci-theme-openwrt
748 $(call Package/luci/thtemplate)
749 TITLE:=OpenWrt.org (default)
750 DEPENDS:=+luci-theme-base
753 define Package/luci-theme-openwrt/install
754 $(call Package/luci/install/template,$(1),themes/openwrt.org)
757 define Package/luci-theme-openwrtlight
758 $(call Package/luci/thtemplate)
759 TITLE:=OpenWrt.org - light variant without images
760 DEPENDS:=+luci-theme-base
763 define Package/luci-theme-openwrtlight/install
764 $(call Package/luci/install/template,$(1),themes/openwrt-light)
769 define Package/luci-i18n-german
770 $(call Package/luci/i18ntemplate)
774 define Package/luci-i18n-german/install
775 $(call Package/luci/install/template,$(1),i18n/german)
779 define Package/luci-i18n-english
780 $(call Package/luci/i18ntemplate)
784 define Package/luci-i18n-english/install
785 $(call Package/luci/install/template,$(1),i18n/english)
789 define Package/luci-i18n-french
790 $(call Package/luci/i18ntemplate)
791 TITLE:=French (by Florian Fainelli)
794 define Package/luci-i18n-french/install
795 $(call Package/luci/install/template,$(1),i18n/french)
799 define Package/luci-i18n-italian
800 $(call Package/luci/i18ntemplate)
801 TITLE:=Italian (by Matteo Croce)
804 define Package/luci-i18n-italian/install
805 $(call Package/luci/install/template,$(1),i18n/italian)
809 define Package/luci-i18n-russian
810 $(call Package/luci/i18ntemplate)
811 TITLE:=Russian (by Skryabin Dmitry)
814 define Package/luci-i18n-russian/install
815 $(call Package/luci/install/template,$(1),i18n/russian)
819 define Package/luci-i18n-portuguese_brazilian
820 $(call Package/luci/i18ntemplate)
821 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
824 define Package/luci-i18n-portuguese_brazilian/install
825 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
829 define Package/luci-i18n-japanese
830 $(call Package/luci/i18ntemplate)
831 TITLE:=Japanese (by Tsukasa Hamano)
834 define Package/luci-i18n-japanese/install
835 $(call Package/luci/install/template,$(1),i18n/japanese)
839 define Package/luci-i18n-greek
840 $(call Package/luci/i18ntemplate)
841 TITLE:=Greek (by Vasilis Tsiligiannis)
844 define Package/luci-i18n-greek/install
845 $(call Package/luci/install/template,$(1),i18n/greek)
849 define Package/luci-i18n-catalan
850 $(call Package/luci/i18ntemplate)
851 TITLE:=Catalan (by Eduard Duran)
854 define Package/luci-i18n-catalan/install
855 $(call Package/luci/install/template,$(1),i18n/catalan)
859 define Package/luci-i18n-portuguese
860 $(call Package/luci/i18ntemplate)
861 TITLE:=Portuguese (by Jose Monteiro)
864 define Package/luci-i18n-portuguese/install
865 $(call Package/luci/install/template,$(1),i18n/portuguese)
870 ifneq ($(CONFIG_PACKAGE_luci-core),)
871 PKG_SELECTED_MODULES+=libs/core
873 ifneq ($(CONFIG_PACKAGE_luci-cbi),)
874 PKG_SELECTED_MODULES+=libs/cbi
876 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
877 PKG_SELECTED_MODULES+=libs/fastindex
879 ifneq ($(CONFIG_PACKAGE_luci-http),)
880 PKG_SELECTED_MODULES+=libs/http
882 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
883 PKG_SELECTED_MODULES+=libs/httpclient
885 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
886 PKG_SELECTED_MODULES+=libs/ipkg
888 ifneq ($(CONFIG_PACKAGE_luci-json),)
889 PKG_SELECTED_MODULES+=libs/json
891 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
892 PKG_SELECTED_MODULES+=libs/luanet
894 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
895 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
897 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
898 PKG_SELECTED_MODULES+=libs/nixio
900 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
901 PKG_SELECTED_MODULES+=libs/px5g
903 ifneq ($(CONFIG_PACKAGE_luci-uci),)
904 PKG_SELECTED_MODULES+=libs/uci
906 ifneq ($(CONFIG_PACKAGE_luci-sys),)
907 PKG_SELECTED_MODULES+=libs/sys
909 ifneq ($(CONFIG_PACKAGE_luci-web),)
910 PKG_SELECTED_MODULES+=libs/web
912 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
913 PKG_SELECTED_MODULES+=libs/uvl
916 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
917 PKG_SELECTED_MODULES+=modules/admin-core
919 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
920 PKG_SELECTED_MODULES+=modules/admin-mini
922 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
923 PKG_SELECTED_MODULES+=modules/admin-full
925 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
926 PKG_SELECTED_MODULES+=modules/rpc
928 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
929 PKG_SELECTED_MODULES+=modules/freifunk
932 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
933 PKG_SELECTED_MODULES+=applications/freifunk-community
936 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
937 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
939 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
940 PKG_SELECTED_MODULES+=applications/luci-siitwizard
942 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
943 PKG_SELECTED_MODULES+=applications/luci-fw
945 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
946 PKG_SELECTED_MODULES+=applications/luci-olsr
948 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
949 PKG_SELECTED_MODULES+=applications/luci-qos
951 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
952 PKG_SELECTED_MODULES+=applications/luci-splash
954 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
955 PKG_SELECTED_MODULES+=applications/luci-statistics
957 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
958 PKG_SELECTED_MODULES+=applications/luci-upnp
960 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
961 PKG_SELECTED_MODULES+=applications/luci-ntpc
963 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
964 PKG_SELECTED_MODULES+=applications/luci-ddns
966 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
967 PKG_SELECTED_MODULES+=applications/luci-samba
969 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
970 PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
972 ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
973 PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
975 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
976 PKG_SELECTED_MODULES+=applications/luci-p910nd
978 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
979 PKG_SELECTED_MODULES+=applications/luci-ushare
981 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
982 PKG_SELECTED_MODULES+=applications/luci-hd_idle
984 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
985 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
987 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
988 PKG_SELECTED_MODULES+=applications/luci-initmgr
990 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
991 PKG_SELECTED_MODULES+=applications/luci-livestats
993 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
994 PKG_SELECTED_MODULES+=applications/luci-asterisk
996 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
997 PKG_SELECTED_MODULES+=applications/luci-polipo
999 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1000 PKG_SELECTED_MODULES+=applications/luci-openvpn
1002 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1003 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1007 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1008 PKG_SELECTED_MODULES+=libs/sgi-cgi
1010 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1011 PKG_SELECTED_MODULES+=libs/sgi-luci
1014 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1015 PKG_SELECTED_MODULES+=themes/base
1017 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1018 PKG_SELECTED_MODULES+=themes/fledermaus
1020 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1021 PKG_SELECTED_MODULES+=themes/freifunk-bno
1023 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1024 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1026 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1027 PKG_SELECTED_MODULES+=themes/freifunk
1029 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1030 PKG_SELECTED_MODULES+=themes/openwrt.org
1032 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1033 PKG_SELECTED_MODULES+=themes/openwrt-light
1036 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1037 PKG_SELECTED_MODULES+=i18n/german
1039 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1040 PKG_SELECTED_MODULES+=i18n/english
1042 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1043 PKG_SELECTED_MODULES+=i18n/french
1045 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1046 PKG_SELECTED_MODULES+=i18n/italian
1048 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1049 PKG_SELECTED_MODULES+=i18n/russian
1051 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1052 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1054 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1055 PKG_SELECTED_MODULES+=i18n/japanese
1057 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1058 PKG_SELECTED_MODULES+=i18n/greek
1060 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1061 PKG_SELECTED_MODULES+=i18n/catalan
1063 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1064 PKG_SELECTED_MODULES+=i18n/portuguese
1069 MODULES="$(PKG_SELECTED_MODULES)" \
1070 LUA_TARGET="$(LUA_TARGET)" \
1071 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1072 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1073 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1074 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1077 $(eval $(call BuildPackage,luci-core))
1078 $(eval $(call BuildPackage,luci-cbi))
1079 $(eval $(call BuildPackage,luci-fastindex))
1080 $(eval $(call BuildPackage,luci-http))
1081 $(eval $(call BuildPackage,luci-httpclient))
1082 $(eval $(call BuildPackage,luci-ipkg))
1083 $(eval $(call BuildPackage,luci-json))
1084 $(eval $(call BuildPackage,luci-luanet))
1085 $(eval $(call BuildPackage,luci-lucid))
1086 $(eval $(call BuildPackage,luci-nixio))
1087 $(eval $(call BuildPackage,luci-px5g))
1088 $(eval $(call BuildPackage,luci-uci))
1089 $(eval $(call BuildPackage,luci-sys))
1090 $(eval $(call BuildPackage,luci-web))
1091 $(eval $(call BuildPackage,luci-uvl))
1093 $(eval $(call BuildPackage,luci-admin-core))
1094 $(eval $(call BuildPackage,luci-admin-mini))
1095 $(eval $(call BuildPackage,luci-admin-full))
1096 $(eval $(call BuildPackage,luci-admin-rpc))
1097 $(eval $(call BuildPackage,luci-mod-freifunk))
1099 $(eval $(call BuildPackage,luci-freifunk-community))
1101 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1102 $(eval $(call BuildPackage,luci-app-siitwizard))
1103 $(eval $(call BuildPackage,luci-app-firewall))
1104 $(eval $(call BuildPackage,luci-app-olsr))
1105 $(eval $(call BuildPackage,luci-app-qos))
1106 $(eval $(call BuildPackage,luci-app-splash))
1107 $(eval $(call BuildPackage,luci-app-statistics))
1108 $(eval $(call BuildPackage,luci-app-upnp))
1109 $(eval $(call BuildPackage,luci-app-ntpc))
1110 $(eval $(call BuildPackage,luci-app-ddns))
1111 $(eval $(call BuildPackage,luci-app-samba))
1112 $(eval $(call BuildPackage,luci-app-uvc_streamer))
1113 $(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1114 $(eval $(call BuildPackage,luci-app-p910nd))
1115 $(eval $(call BuildPackage,luci-app-ushare))
1116 $(eval $(call BuildPackage,luci-app-hd_idle))
1117 $(eval $(call BuildPackage,luci-app-tinyproxy))
1118 $(eval $(call BuildPackage,luci-app-initmgr))
1119 $(eval $(call BuildPackage,luci-app-livestats))
1120 $(eval $(call BuildPackage,luci-app-asterisk))
1121 $(eval $(call BuildPackage,luci-app-polipo))
1122 $(eval $(call BuildPackage,luci-app-openvpn))
1123 $(eval $(call BuildPackage,luci-app-p2pblock))
1125 $(eval $(call BuildPackage,luci-sgi-cgi))
1127 $(eval $(call BuildPackage,luci-theme-base))
1128 $(eval $(call BuildPackage,luci-theme-fledermaus))
1129 $(eval $(call BuildPackage,luci-theme-freifunk))
1130 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1131 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1132 $(eval $(call BuildPackage,luci-theme-openwrt))
1133 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1135 $(eval $(call BuildPackage,luci-i18n-german))
1136 $(eval $(call BuildPackage,luci-i18n-english))
1137 $(eval $(call BuildPackage,luci-i18n-french))
1138 $(eval $(call BuildPackage,luci-i18n-italian))
1139 $(eval $(call BuildPackage,luci-i18n-russian))
1140 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1141 $(eval $(call BuildPackage,luci-i18n-japanese))
1142 $(eval $(call BuildPackage,luci-i18n-greek))
1143 $(eval $(call BuildPackage,luci-i18n-catalan))
1144 $(eval $(call BuildPackage,luci-i18n-portuguese))