1 include $(TOPDIR)/rules.mk
6 USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
15 PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
17 PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p')
18 PKG_VERSION:=0.10+svn$(PKG_REV)
20 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21 PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
23 PKG_SOURCE_VERSION:=$(PKG_REV)
26 PKG_BUILD_DEPENDS:=$(if $(STAGING_DIR_ROOT),lua/host)
27 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
28 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
32 PKG_SELECTED_MODULES:=
34 ifeq ($(BOARD),brcm-2.4)
35 MAKE_FLAGS += CRAP="1"
39 include $(INCLUDE_DIR)/package.mk
43 mkdir -p $(PKG_BUILD_DIR)
44 $(TAR) c -C ../../../ . \
45 --exclude=.pc --exclude=.svn --exclude=.git \
46 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
48 tar x -C $(PKG_BUILD_DIR)/
52 define Build/Configure
57 define Package/luci/libtemplate
60 TITLE:=LuCI - Lua Configuration Interface
61 URL:=http://luci.freifunk-halle.net/
62 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
63 SUBMENU:=Internal Libraries
67 define Package/luci/webservertemplate
68 $(call Package/luci/libtemplate)
72 define Package/luci/fftemplate
73 $(call Package/luci/libtemplate)
75 DEPENDS:=+luci-mod-freifunk
78 define Package/luci/i18ntemplate
79 $(call Package/luci/libtemplate)
84 define Package/luci/thtemplate
85 $(call Package/luci/libtemplate)
90 define Package/luci/maintemplate
91 $(call Package/luci/libtemplate)
95 define Package/luci/webtemplate
96 $(call Package/luci/libtemplate)
100 define Package/luci/collectiontemplate
101 $(call Package/luci/libtemplate)
106 define Package/luci/install/template
107 $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
108 $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
115 define Package/luci-core
116 $(call Package/luci/libtemplate)
117 DEPENDS:=+lua +luci-nixio
118 TITLE:=LuCI core libraries
121 define Package/luci-core/install
122 $(call Package/luci/install/template,$(1),libs/core)
123 $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
125 "$(OPENWRTVERSION)" \
130 define Package/luci-core/config
132 prompt "Build Target"
133 default PACKAGE_luci-core_source
135 config PACKAGE_luci-core_compile
138 config PACKAGE_luci-core_stripped
141 config PACKAGE_luci-core_source
147 ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
151 ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
155 ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
161 define Package/luci-uci
162 $(call Package/luci/libtemplate)
164 TITLE:=High-Level UCI API
167 define Package/luci-uci/install
168 $(call Package/luci/install/template,$(1),libs/uci)
172 define Package/luci-fastindex
173 $(call Package/luci/libtemplate)
174 TITLE:=Fastindex indexing module
177 define Package/luci-fastindex/install
178 $(call Package/luci/install/template,$(1),libs/fastindex)
182 define Package/luci-httpclient
183 $(call Package/luci/libtemplate)
184 TITLE:=HTTP(S) client library
185 DEPENDS+=+luci-web +luci-nixio
188 define Package/luci-httpclient/install
189 $(call Package/luci/install/template,$(1),libs/httpclient)
193 define Package/luci-ipkg
194 $(call Package/luci/libtemplate)
195 TITLE:=LuCI IPKG/OPKG call abstraction library
198 define Package/luci-ipkg/install
199 $(call Package/luci/install/template,$(1),libs/ipkg)
203 define Package/luci-json
204 $(call Package/luci/libtemplate)
205 TITLE:=LuCI JSON Library
208 define Package/luci-json/install
209 $(call Package/luci/install/template,$(1),libs/json)
213 define Package/luci-lmo
214 $(call Package/luci/libtemplate)
218 define Package/luci-lmo/install
219 $(call Package/luci/install/template,$(1),libs/lmo)
223 define Package/luci-luanet
224 $(call Package/luci/libtemplate)
229 define Package/luci-luanet/install
230 $(call Package/luci/install/template,$(1),libs/luanet)
234 define Package/luci-lucid
235 $(call Package/luci/webservertemplate)
236 TITLE:=LuCId Full-Stack Webserver
237 DEPENDS+=+luci-nixio +luci-web +luci-px5g
240 define Package/luci-lucid/install
241 $(call Package/luci/install/template,$(1),libs/lucid)
242 $(call Package/luci/install/template,$(1),libs/lucid-http)
249 define Package/luci-nixio
250 $(call Package/luci/libtemplate)
251 TITLE:=NIXIO POSIX Library
252 DEPENDS:=+PACKAGE_luci-nixio_openssl:libopenssl +PACKAGE_luci-nixio_cyassl:libcyassl
255 define Package/luci-nixio/install
256 $(call Package/luci/install/template,$(1),libs/nixio)
259 define Package/luci-nixio/config
261 prompt "TLS Provider"
262 default PACKAGE_luci-nixio_notls
264 config PACKAGE_luci-nixio_notls
267 config PACKAGE_luci-nixio_axtls
268 bool "Builtin (axTLS)"
270 config PACKAGE_luci-nixio_cyassl
272 select PACKAGE_libcyassl
274 config PACKAGE_luci-nixio_openssl
276 select PACKAGE_libopenssl
280 ifneq ($(CONFIG_PACKAGE_luci-nixio_axtls),)
284 ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
288 ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
290 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
294 define Package/luci-px5g
295 $(call Package/luci/webservertemplate)
296 TITLE:=RSA/X.509 Key Generator (required for LuCId SSL support)
300 define Package/luci-px5g/install
301 $(call Package/luci/install/template,$(1),libs/px5g)
305 define Package/luci-sys
306 $(call Package/luci/libtemplate)
307 TITLE:=LuCI Linux/POSIX system library
311 define Package/luci-sys/install
312 $(call Package/luci/install/template,$(1),libs/sys)
316 define Package/luci-web
317 $(call Package/luci/libtemplate)
318 DEPENDS+=+luci-sys +luci-nixio +luci-uci \
319 +luci-sgi-cgi +luci-lmo
320 TITLE:=MVC Webframework
321 $(call Config,luci.main.lang,string,auto,Default Language)
324 define Package/luci-web/conffiles
328 define Package/luci-web/install
329 $(call Package/luci/install/template,$(1),libs/web)
333 define Package/luci-uvl
334 $(call Package/luci/libtemplate)
335 DEPENDS+=+luci-sys +luci-uci +luci-core
336 TITLE:=UVL - UCI Validation Layer
339 define Package/luci-uvl/install
340 $(call Package/luci/install/template,$(1),libs/uvl)
345 ### Community Packages ###
347 define Package/luci-freifunk-community
348 $(call Package/luci/fftemplate)
350 +luci-web +luci-app-splash \
351 +luci-app-ffwizard-leipzig \
353 +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
354 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
355 +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
356 +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
357 TITLE:=Freifunk Community Meta-Package
360 define Package/luci-freifunk-community/install
361 $(call Package/luci/install/template,$(1),applications/freifunk-community)
366 define Package/luci-admin-core
367 $(call Package/luci/webtemplate)
368 DEPENDS+=+luci-web +luci-i18n-english
369 TITLE:=Web UI Core Module
372 define Package/luci-admin-core/install
373 $(call Package/luci/install/template,$(1),modules/admin-core)
374 touch $(1)/etc/init.d/luci_fixtime || true
378 define Package/luci-niu
379 $(call Package/luci/maintemplate)
380 DEPENDS+=+luci-admin-core @BROKEN
381 TITLE:=NIU - Next Generation Interface
384 define Package/luci-niu/install
385 $(call Package/luci/install/template,$(1),modules/niu)
388 define Package/luci-admin-mini
389 $(call Package/luci/webtemplate)
390 DEPENDS+=+luci-admin-core
391 TITLE:=LuCI Essentials - stripped down and user-friendly
394 define Package/luci-admin-mini/install
395 $(call Package/luci/install/template,$(1),modules/admin-mini)
399 define Package/luci-admin-full
400 $(call Package/luci/webtemplate)
401 DEPENDS+=+luci-admin-core +luci-ipkg
402 TITLE:=LuCI Administration - full-featured for full control
405 define Package/luci-admin-full/install
406 $(call Package/luci/install/template,$(1),modules/admin-full)
410 define Package/luci-admin-rpc
411 $(call Package/luci/webtemplate)
413 TITLE:=LuCI RPC - JSON-RPC API
416 define Package/luci-admin-rpc/install
417 $(call Package/luci/install/template,$(1),modules/rpc)
421 define Package/luci-mod-freifunk
422 $(call Package/luci/fftemplate)
423 DEPENDS:=+luci-admin-full +luci-json +PACKAGE_luci-mod-freifunk:freifunk-firewall
424 TITLE:=LuCI Freifunk module
427 define Package/luci-mod-freifunk/conffiles
431 define Package/luci-mod-freifunk/install
432 $(call Package/luci/install/template,$(1),modules/freifunk)
439 define Package/luci-app-ffwizard-leipzig
440 $(call Package/luci/fftemplate)
441 TITLE:=Freifunk Leipzig configuration wizard
444 define Package/luci-app-ffwizard-leipzig/install
445 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
449 define Package/luci-app-siitwizard
450 $(call Package/luci/fftemplate)
451 TITLE:=SIIT IPv4-over-IPv6 configuration wizard
452 DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
455 define Package/luci-app-siitwizard/install
456 $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
460 define Package/luci-app-firewall
461 $(call Package/luci/webtemplate)
462 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
463 TITLE:=Firewall and Portforwarding application
466 define Package/luci-app-firewall/install
467 $(call Package/luci/install/template,$(1),applications/luci-fw)
471 define Package/luci-app-olsr
472 $(call Package/luci/webtemplate)
473 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci \
474 +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
475 TITLE:=OLSR configuration and status module
478 define Package/luci-app-olsr/install
479 $(call Package/luci/install/template,$(1),applications/luci-olsr)
483 define Package/luci-app-qos
484 $(call Package/luci/webtemplate)
485 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
486 TITLE:=Quality of Service configuration module
489 define Package/luci-app-qos/install
490 $(call Package/luci/install/template,$(1),applications/luci-qos)
494 define Package/luci-app-splash
495 $(call Package/luci/fftemplate)
496 DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio \
497 +PACKAGE_luci-app-splash:tc +PACKAGE_luci-app-splash:kmod-sched \
498 +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
499 +PACKAGE_luci-app-splash:iptables-mod-ipopt
500 TITLE:=Freifunk DHCP-Splash application
503 define Package/luci-app-splash/conffiles
504 /etc/config/luci_splash
507 define Package/luci-app-splash/install
508 $(call Package/luci/install/template,$(1),applications/luci-splash)
512 define Package/luci-app-statistics
513 $(call Package/luci/webtemplate)
514 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
515 +PACKAGE_luci-app-statistics:rrdtool1 \
516 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
517 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
518 +PACKAGE_luci-app-statistics:collectd-mod-interface \
519 +PACKAGE_luci-app-statistics:collectd-mod-load
520 TITLE:=LuCI Statistics Application
523 define Package/luci-app-statistics/conffiles
524 /etc/config/luci_statistics
527 define Package/luci-app-statistics/install
528 $(call Package/luci/install/template,$(1),applications/luci-statistics)
531 define Package/luci-app-diag-core
532 $(call Package/luci/webtemplate)
533 DEPENDS+=+luci-admin-core
534 TITLE:=LuCI Diagnostics Tools (Core)
537 define Package/luci-app-diag-devinfo
538 $(call Package/luci/webtemplate)
539 DEPENDS+=+PACKAGE_luci-app-diag-devinfo:luci-app-diag-core \
540 +PACKAGE_luci-app-diag-devinfo:smap \
541 +PACKAGE_luci-app-diag-devinfo:netdiscover \
542 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
543 +PACKAGE_luci-app-diag-devinfo:httping \
544 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
545 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo
546 TITLE:=LuCI Diagnostics Tools (Device Info)
549 define Package/luci-app-voice-core
550 $(call Package/luci/webtemplate)
551 DEPENDS+=+luci-admin-core
552 TITLE:=LuCI Voice Software (Core)
555 define Package/luci-app-voice-diag
556 $(call Package/luci/webtemplate)
557 DEPENDS+=+PACKAGE_luci-app-voice-diag:luci-app-voice-core \
558 +PACKAGE_luci-app-voice-diag:luci-app-diag-devinfo
559 TITLE:=LuCI Voice Software (Diagnostics)
562 define Package/luci-app-diag-devinfo/conffiles
563 /etc/config/luci_devinfo
566 define Package/luci-app-diag-core/install
567 $(call Package/luci/install/template,$(1),applications/luci-diag-core)
570 define Package/luci-app-diag-devinfo/install
571 $(call Package/luci/install/template,$(1),applications/luci-diag-devinfo)
574 define Package/luci-app-voice-core/install
575 $(call Package/luci/install/template,$(1),applications/luci-voice-core)
578 define Package/luci-app-voice-diag/install
579 $(call Package/luci/install/template,$(1),applications/luci-voice-diag)
582 define Package/luci-app-upnp
583 $(call Package/luci/webtemplate)
584 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
585 TITLE:=Universal Plug & Play configuration module
588 define Package/luci-app-upnp/install
589 $(call Package/luci/install/template,$(1),applications/luci-upnp)
593 define Package/luci-app-ntpc
594 $(call Package/luci/webtemplate)
595 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
596 TITLE:=NTP time synchronisation client configuration module
599 define Package/luci-app-ntpc/install
600 $(call Package/luci/install/template,$(1),applications/luci-ntpc)
604 define Package/luci-app-ddns
605 $(call Package/luci/webtemplate)
606 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
607 TITLE:=Dynamic DNS configuration module
610 define Package/luci-app-ddns/install
611 $(call Package/luci/install/template,$(1),applications/luci-ddns)
615 define Package/luci-app-samba
616 $(call Package/luci/webtemplate)
617 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
618 TITLE:=Network Shares - Samba SMB/CIFS module
621 define Package/luci-app-samba/install
622 $(call Package/luci/install/template,$(1),applications/luci-samba)
626 define Package/luci-app-mmc-over-gpio
627 $(call Package/luci/webtemplate)
628 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio
632 define Package/luci-app-mmc-over-gpio/install
633 $(call Package/luci/install/template,$(1),applications/luci-mmc-over-gpio)
637 define Package/luci-app-p910nd
638 $(call Package/luci/webtemplate)
639 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
640 TITLE:=p910nd - Printer server module
643 define Package/luci-app-p910nd/install
644 $(call Package/luci/install/template,$(1),applications/luci-p910nd)
648 define Package/luci-app-ushare
649 $(call Package/luci/webtemplate)
650 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
651 TITLE:=ushare - UPnP A/V & DLNA Media Server
654 define Package/luci-app-ushare/install
655 $(call Package/luci/install/template,$(1),applications/luci-ushare)
658 define Package/luci-app-hd-idle
659 $(call Package/luci/webtemplate)
660 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd-idle:hd-idle
664 define Package/luci-app-hd-idle/install
665 $(call Package/luci/install/template,$(1),applications/luci-hd-idle)
668 define Package/luci-app-tinyproxy
669 $(call Package/luci/webtemplate)
670 DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
671 TITLE:=Tinyproxy - HTTP(S)-Proxy
674 define Package/luci-app-tinyproxy/install
675 $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
678 define Package/luci-app-initmgr
679 $(call Package/luci/webtemplate)
680 DEPENDS+=+luci-admin-full
681 TITLE:=LuCI Initscript Management
684 define Package/luci-app-initmgr/install
685 $(call Package/luci/install/template,$(1),applications/luci-initmgr)
688 define Package/luci-app-livestats
689 $(call Package/luci/webtemplate)
690 DEPENDS+=+luci-admin-core +luci-admin-rpc
691 TITLE:=LuCI Realtime Statistics
694 define Package/luci-app-livestats/install
695 $(call Package/luci/install/template,$(1),applications/luci-livestats)
698 define Package/luci-app-asterisk
699 $(call Package/luci/webtemplate)
700 TITLE:=LuCI Support for Asterisk PBX
701 DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
704 define Package/luci-app-asterisk/install
705 $(call Package/luci/install/template,$(1),applications/luci-asterisk)
708 define Package/luci-app-polipo
709 $(call Package/luci/webtemplate)
710 TITLE:=LuCI Support for the Polipo Proxy
711 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
714 define Package/luci-app-polipo/install
715 $(call Package/luci/install/template,$(1),applications/luci-polipo)
718 define Package/luci-app-openvpn
719 $(call Package/luci/webtemplate)
720 TITLE:=LuCI Support for OpenVPN
721 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
724 define Package/luci-app-openvpn/install
725 $(call Package/luci/install/template,$(1),applications/luci-openvpn)
728 define Package/luci-app-p2pblock
729 $(call Package/luci/webtemplate)
730 TITLE:=LuCI Support for the Freifunk P2P-Block addon
731 DEPENDS+=+luci-admin-core +luci-app-firewall \
732 +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
735 define Package/luci-app-p2pblock/install
736 $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
739 define Package/luci-app-multiwan
740 $(call Package/luci/webtemplate)
741 TITLE:=LuCI Support for the OpenWrt MultiWAN agent
742 DEPENDS+=+luci-admin-core +luci-app-firewall \
743 +PACKAGE_luci-app-multiwan:multiwan
746 define Package/luci-app-multiwan/install
747 $(call Package/luci/install/template,$(1),applications/luci-multiwan)
750 define Package/luci-app-wol
751 $(call Package/luci/webtemplate)
752 TITLE:=LuCI Support for Wake-on-LAN
753 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-wol:etherwake
756 define Package/luci-app-wol/install
757 $(call Package/luci/install/template,$(1),applications/luci-wol)
760 define Package/luci-app-vnstat
761 $(call Package/luci/webtemplate)
762 TITLE:=LuCI Support for VnStat
763 DEPENDS+=+luci-admin-core +PACKAGE_luci-app-vnstat:vnstat \
764 +PACKAGE_luci-app-vnstat:vnstati
767 define Package/luci-app-vnstat/install
768 $(call Package/luci/install/template,$(1),applications/luci-vnstat)
772 ### Server Gateway Interfaces ###
774 define Package/luci-sgi-cgi
775 $(call Package/luci/webservertemplate)
776 TITLE:=CGI Gateway behind existing Webserver
779 define Package/luci-sgi-cgi/install
780 $(call Package/luci/install/template,$(1),libs/sgi-cgi)
783 define Package/luci-sgi-uhttpd
784 $(call Package/luci/libtemplate)
785 TITLE:=Binding for the uHTTPd server
786 DEPENDS+=+uhttpd +uhttpd-mod-lua
789 define Package/luci-sgi-uhttpd/install
790 $(call Package/luci/install/template,$(1),libs/sgi-uhttpd)
795 define Package/luci-theme-base
796 $(call Package/luci/thtemplate)
798 TITLE:=Common base for all themes
801 define Package/luci-theme-base/install
802 $(call Package/luci/install/template,$(1),themes/base)
805 define Package/luci-theme-fledermaus
806 $(call Package/luci/fftemplate)
808 TITLE:=Fledermaus Theme
811 define Package/luci-theme-fledermaus/install
812 $(call Package/luci/install/template,$(1),themes/fledermaus)
815 define Package/luci-theme-freifunk
816 $(call Package/luci/fftemplate)
818 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
819 TITLE:=alternative Freifunk Theme
822 define Package/luci-theme-freifunk/install
823 $(call Package/luci/install/template,$(1),themes/freifunk)
826 define Package/luci-theme-freifunk-bno
827 $(call Package/luci/fftemplate)
829 MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
830 TITLE:=Freifunk Berlin Nordost Theme
833 define Package/luci-theme-freifunk-bno/install
834 $(call Package/luci/install/template,$(1),themes/freifunk-bno)
837 define Package/luci-theme-freifunk-hannover
838 $(call Package/luci/fftemplate)
840 MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
841 TITLE:=Freifunk Hannover Theme
844 define Package/luci-theme-freifunk-hannover/install
845 $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
848 define Package/luci-theme-openwrt
849 $(call Package/luci/thtemplate)
850 TITLE:=OpenWrt.org (default)
851 DEPENDS:=+luci-theme-base luci-core
852 DEFAULT:=y if PACKAGE_luci-core
855 define Package/luci-theme-openwrt/install
856 $(call Package/luci/install/template,$(1),themes/openwrt.org)
859 define Package/luci-theme-openwrtlight
860 $(call Package/luci/thtemplate)
861 TITLE:=OpenWrt.org - light variant without images
862 DEPENDS:=+luci-theme-base
865 define Package/luci-theme-openwrtlight/install
866 $(call Package/luci/install/template,$(1),themes/openwrt-light)
871 define Package/luci-i18n-german
872 $(call Package/luci/i18ntemplate)
876 define Package/luci-i18n-german/install
877 $(call Package/luci/install/template,$(1),i18n/german)
881 define Package/luci-i18n-english
882 $(call Package/luci/i18ntemplate)
886 define Package/luci-i18n-english/install
887 $(call Package/luci/install/template,$(1),i18n/english)
891 define Package/luci-i18n-french
892 $(call Package/luci/i18ntemplate)
893 TITLE:=French (by Florian Fainelli)
896 define Package/luci-i18n-french/install
897 $(call Package/luci/install/template,$(1),i18n/french)
901 define Package/luci-i18n-italian
902 $(call Package/luci/i18ntemplate)
903 TITLE:=Italian (by Matteo Croce)
906 define Package/luci-i18n-italian/install
907 $(call Package/luci/install/template,$(1),i18n/italian)
911 define Package/luci-i18n-russian
912 $(call Package/luci/i18ntemplate)
913 TITLE:=Russian (by Skryabin Dmitry)
916 define Package/luci-i18n-russian/install
917 $(call Package/luci/install/template,$(1),i18n/russian)
921 define Package/luci-i18n-portuguese_brazilian
922 $(call Package/luci/i18ntemplate)
923 TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
926 define Package/luci-i18n-portuguese_brazilian/install
927 $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
931 define Package/luci-i18n-japanese
932 $(call Package/luci/i18ntemplate)
933 TITLE:=Japanese (by Tsukasa Hamano)
936 define Package/luci-i18n-japanese/install
937 $(call Package/luci/install/template,$(1),i18n/japanese)
941 define Package/luci-i18n-greek
942 $(call Package/luci/i18ntemplate)
943 TITLE:=Greek (by Vasilis Tsiligiannis)
946 define Package/luci-i18n-greek/install
947 $(call Package/luci/install/template,$(1),i18n/greek)
951 define Package/luci-i18n-catalan
952 $(call Package/luci/i18ntemplate)
953 TITLE:=Catalan (by Eduard Duran)
956 define Package/luci-i18n-catalan/install
957 $(call Package/luci/install/template,$(1),i18n/catalan)
961 define Package/luci-i18n-portuguese
962 $(call Package/luci/i18ntemplate)
963 TITLE:=Portuguese (by Jose Monteiro)
966 define Package/luci-i18n-portuguese/install
967 $(call Package/luci/install/template,$(1),i18n/portuguese)
971 define Package/luci-i18n-spanish
972 $(call Package/luci/i18ntemplate)
973 TITLE:=Spanish (by Guillermo Javier Nardoni)
976 define Package/luci-i18n-spanish/install
977 $(call Package/luci/install/template,$(1),i18n/spanish)
981 define Package/luci-i18n-vietnamese
982 $(call Package/luci/i18ntemplate)
983 TITLE:=Vietnamese (by Hong Phuc Dang)
986 define Package/luci-i18n-vietnamese/install
987 $(call Package/luci/install/template,$(1),i18n/vietnamese)
990 define Package/luci-i18n-malay
991 $(call Package/luci/i18ntemplate)
992 TITLE:=Malay (by Teow Wai Chet)
995 define Package/luci-i18n-malay/install
996 $(call Package/luci/install/template,$(1),i18n/malay)
1002 $(call Package/luci/collectiontemplate)
1003 TITLE:=Standard OpenWrt set including full and mini admin and the standard theme
1004 DEPENDS:=+uhttpd +luci-admin-full +luci-admin-mini +luci-theme-openwrt \
1005 +luci-app-firewall +luci-app-initmgr
1008 define Package/luci/install
1013 define Package/luci-ssl
1014 $(call Package/luci/collectiontemplate)
1015 TITLE:=Standard OpenWrt set with https support
1016 DEPENDS:=+uhttpd +uhttpd-mod-tls +px5g +luci-admin-full +luci-admin-mini \
1017 +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr
1020 define Package/luci-ssl/install
1025 define Package/luci-medium
1026 $(call Package/luci/collectiontemplate)
1027 TITLE:=Medium package set using only admin full and a theme without graphics
1028 DEPENDS:=+uhttpd +luci-admin-full +luci-theme-openwrtlight
1031 define Package/luci-medium/install
1036 define Package/luci-light
1037 $(call Package/luci/collectiontemplate)
1038 TITLE:=Minimum package set using only admin mini and a theme without graphics
1039 DEPENDS:=+uhttpd +luci-admin-mini +luci-theme-openwrtlight
1042 define Package/luci-light/install
1048 ifneq ($(CONFIG_PACKAGE_luci-core),)
1049 PKG_SELECTED_MODULES+=libs/core
1051 ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
1052 PKG_SELECTED_MODULES+=libs/fastindex
1054 ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
1055 PKG_SELECTED_MODULES+=libs/httpclient
1057 ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
1058 PKG_SELECTED_MODULES+=libs/ipkg
1060 ifneq ($(CONFIG_PACKAGE_luci-json),)
1061 PKG_SELECTED_MODULES+=libs/json
1063 ifneq ($(CONFIG_PACKAGE_luci-lmo),)
1064 PKG_SELECTED_MODULES+=libs/lmo
1066 ifneq ($(CONFIG_PACKAGE_luci-luanet),)
1067 PKG_SELECTED_MODULES+=libs/luanet
1069 ifneq ($(CONFIG_PACKAGE_luci-lucid),)
1070 PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
1072 ifneq ($(CONFIG_PACKAGE_luci-nixio),)
1073 PKG_SELECTED_MODULES+=libs/nixio
1075 ifneq ($(CONFIG_PACKAGE_luci-px5g),)
1076 PKG_SELECTED_MODULES+=libs/px5g
1078 ifneq ($(CONFIG_PACKAGE_luci-uci),)
1079 PKG_SELECTED_MODULES+=libs/uci
1081 ifneq ($(CONFIG_PACKAGE_luci-sys),)
1082 PKG_SELECTED_MODULES+=libs/sys
1084 ifneq ($(CONFIG_PACKAGE_luci-web),)
1085 PKG_SELECTED_MODULES+=libs/web
1087 ifneq ($(CONFIG_PACKAGE_luci-uvl),)
1088 PKG_SELECTED_MODULES+=libs/uvl
1091 ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
1092 PKG_SELECTED_MODULES+=modules/admin-core
1094 ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
1095 PKG_SELECTED_MODULES+=modules/admin-mini
1097 ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
1098 PKG_SELECTED_MODULES+=modules/admin-full
1100 ifneq ($(CONFIG_PACKAGE_luci-niu),)
1101 PKG_SELECTED_MODULES+=modules/niu
1103 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
1104 PKG_SELECTED_MODULES+=modules/rpc
1106 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
1107 PKG_SELECTED_MODULES+=modules/freifunk
1110 ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
1111 PKG_SELECTED_MODULES+=applications/freifunk-community
1114 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
1115 PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
1117 ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
1118 PKG_SELECTED_MODULES+=applications/luci-siitwizard
1120 ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
1121 PKG_SELECTED_MODULES+=applications/luci-fw
1123 ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
1124 PKG_SELECTED_MODULES+=applications/luci-olsr
1126 ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
1127 PKG_SELECTED_MODULES+=applications/luci-qos
1129 ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
1130 PKG_SELECTED_MODULES+=applications/luci-splash
1132 ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
1133 PKG_SELECTED_MODULES+=applications/luci-statistics
1135 ifneq ($(CONFIG_PACKAGE_luci-app-voice-core),)
1136 PKG_SELECTED_MODULES+=applications/luci-voice-core
1138 ifneq ($(CONFIG_PACKAGE_luci-app-voice-diag),)
1139 PKG_SELECTED_MODULES+=applications/luci-voice-diag
1141 ifneq ($(CONFIG_PACKAGE_luci-app-diag-core),)
1142 PKG_SELECTED_MODULES+=applications/luci-diag-core
1144 ifneq ($(CONFIG_PACKAGE_luci-app-diag-devinfo),)
1145 PKG_SELECTED_MODULES+=applications/luci-diag-devinfo
1147 ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
1148 PKG_SELECTED_MODULES+=applications/luci-upnp
1150 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
1151 PKG_SELECTED_MODULES+=applications/luci-ntpc
1153 ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
1154 PKG_SELECTED_MODULES+=applications/luci-ddns
1156 ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
1157 PKG_SELECTED_MODULES+=applications/luci-samba
1159 ifneq ($(CONFIG_PACKAGE_luci-app-mmc-over-gpio),)
1160 PKG_SELECTED_MODULES+=applications/luci-mmc-over-gpio
1162 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
1163 PKG_SELECTED_MODULES+=applications/luci-p910nd
1165 ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
1166 PKG_SELECTED_MODULES+=applications/luci-ushare
1168 ifneq ($(CONFIG_PACKAGE_luci-app-hd-idle),)
1169 PKG_SELECTED_MODULES+=applications/luci-hd-idle
1171 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1172 PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1174 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1175 PKG_SELECTED_MODULES+=applications/luci-initmgr
1177 ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1178 PKG_SELECTED_MODULES+=applications/luci-livestats
1180 ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1181 PKG_SELECTED_MODULES+=applications/luci-asterisk
1183 ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1184 PKG_SELECTED_MODULES+=applications/luci-polipo
1186 ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1187 PKG_SELECTED_MODULES+=applications/luci-openvpn
1189 ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1190 PKG_SELECTED_MODULES+=applications/luci-p2pblock
1192 ifneq ($(CONFIG_PACKAGE_luci-app-multiwan),)
1193 PKG_SELECTED_MODULES+=applications/luci-multiwan
1195 ifneq ($(CONFIG_PACKAGE_luci-app-wol),)
1196 PKG_SELECTED_MODULES+=applications/luci-wol
1198 ifneq ($(CONFIG_PACKAGE_luci-app-vnstat),)
1199 PKG_SELECTED_MODULES+=applications/luci-vnstat
1203 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1204 PKG_SELECTED_MODULES+=libs/sgi-cgi
1206 ifneq ($(CONFIG_PACKAGE_luci-sgi-uhttpd),)
1207 PKG_SELECTED_MODULES+=libs/sgi-uhttpd
1209 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1210 PKG_SELECTED_MODULES+=libs/sgi-luci
1213 ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1214 PKG_SELECTED_MODULES+=themes/base
1216 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1217 PKG_SELECTED_MODULES+=themes/fledermaus
1219 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1220 PKG_SELECTED_MODULES+=themes/freifunk-bno
1222 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1223 PKG_SELECTED_MODULES+=themes/freifunk-hannover
1225 ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1226 PKG_SELECTED_MODULES+=themes/freifunk
1228 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1229 PKG_SELECTED_MODULES+=themes/openwrt.org
1231 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1232 PKG_SELECTED_MODULES+=themes/openwrt-light
1235 ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1236 PKG_SELECTED_MODULES+=i18n/german
1238 ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1239 PKG_SELECTED_MODULES+=i18n/english
1241 ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1242 PKG_SELECTED_MODULES+=i18n/french
1244 ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1245 PKG_SELECTED_MODULES+=i18n/italian
1247 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1248 PKG_SELECTED_MODULES+=i18n/russian
1250 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1251 PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1253 ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1254 PKG_SELECTED_MODULES+=i18n/japanese
1256 ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1257 PKG_SELECTED_MODULES+=i18n/greek
1259 ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1260 PKG_SELECTED_MODULES+=i18n/catalan
1262 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1263 PKG_SELECTED_MODULES+=i18n/portuguese
1265 ifneq ($(CONFIG_PACKAGE_luci-i18n-spanish),)
1266 PKG_SELECTED_MODULES+=i18n/spanish
1268 ifneq ($(CONFIG_PACKAGE_luci-i18n-vietnamese),)
1269 PKG_SELECTED_MODULES+=i18n/vietnamese
1271 ifneq ($(CONFIG_PACKAGE_luci-i18n-malay),)
1272 PKG_SELECTED_MODULES+=i18n/malay
1277 MODULES="$(PKG_SELECTED_MODULES)" \
1278 LUA_TARGET="$(LUA_TARGET)" \
1279 LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1280 CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1281 LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1282 NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1285 $(eval $(call BuildPackage,luci-core))
1286 $(eval $(call BuildPackage,luci-fastindex))
1287 $(eval $(call BuildPackage,luci-httpclient))
1288 $(eval $(call BuildPackage,luci-ipkg))
1289 $(eval $(call BuildPackage,luci-json))
1290 $(eval $(call BuildPackage,luci-lmo))
1291 $(eval $(call BuildPackage,luci-luanet))
1292 $(eval $(call BuildPackage,luci-lucid))
1293 $(eval $(call BuildPackage,luci-nixio))
1294 $(eval $(call BuildPackage,luci-px5g))
1295 $(eval $(call BuildPackage,luci-uci))
1296 $(eval $(call BuildPackage,luci-sys))
1297 $(eval $(call BuildPackage,luci-web))
1298 $(eval $(call BuildPackage,luci-uvl))
1300 $(eval $(call BuildPackage,luci-admin-core))
1301 $(eval $(call BuildPackage,luci-admin-mini))
1302 $(eval $(call BuildPackage,luci-admin-full))
1303 $(eval $(call BuildPackage,luci-niu))
1304 $(eval $(call BuildPackage,luci-admin-rpc))
1305 $(eval $(call BuildPackage,luci-mod-freifunk))
1307 $(eval $(call BuildPackage,luci-freifunk-community))
1309 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1310 $(eval $(call BuildPackage,luci-app-siitwizard))
1311 $(eval $(call BuildPackage,luci-app-firewall))
1312 $(eval $(call BuildPackage,luci-app-olsr))
1313 $(eval $(call BuildPackage,luci-app-qos))
1314 $(eval $(call BuildPackage,luci-app-splash))
1315 $(eval $(call BuildPackage,luci-app-statistics))
1316 $(eval $(call BuildPackage,luci-app-diag-core))
1317 $(eval $(call BuildPackage,luci-app-diag-devinfo))
1318 $(eval $(call BuildPackage,luci-app-voice-core))
1319 $(eval $(call BuildPackage,luci-app-voice-diag))
1320 $(eval $(call BuildPackage,luci-app-upnp))
1321 $(eval $(call BuildPackage,luci-app-ntpc))
1322 $(eval $(call BuildPackage,luci-app-ddns))
1323 $(eval $(call BuildPackage,luci-app-samba))
1324 $(eval $(call BuildPackage,luci-app-mmc-over-gpio))
1325 $(eval $(call BuildPackage,luci-app-p910nd))
1326 $(eval $(call BuildPackage,luci-app-ushare))
1327 $(eval $(call BuildPackage,luci-app-hd-idle))
1328 $(eval $(call BuildPackage,luci-app-tinyproxy))
1329 $(eval $(call BuildPackage,luci-app-initmgr))
1330 $(eval $(call BuildPackage,luci-app-livestats))
1331 $(eval $(call BuildPackage,luci-app-asterisk))
1332 $(eval $(call BuildPackage,luci-app-polipo))
1333 $(eval $(call BuildPackage,luci-app-openvpn))
1334 $(eval $(call BuildPackage,luci-app-p2pblock))
1335 $(eval $(call BuildPackage,luci-app-multiwan))
1336 $(eval $(call BuildPackage,luci-app-wol))
1337 $(eval $(call BuildPackage,luci-app-vnstat))
1339 $(eval $(call BuildPackage,luci-sgi-cgi))
1340 $(eval $(call BuildPackage,luci-sgi-uhttpd))
1342 $(eval $(call BuildPackage,luci-theme-base))
1343 $(eval $(call BuildPackage,luci-theme-fledermaus))
1344 $(eval $(call BuildPackage,luci-theme-freifunk))
1345 $(eval $(call BuildPackage,luci-theme-freifunk-bno))
1346 $(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1347 $(eval $(call BuildPackage,luci-theme-openwrt))
1348 $(eval $(call BuildPackage,luci-theme-openwrtlight))
1350 $(eval $(call BuildPackage,luci-i18n-german))
1351 $(eval $(call BuildPackage,luci-i18n-english))
1352 $(eval $(call BuildPackage,luci-i18n-french))
1353 $(eval $(call BuildPackage,luci-i18n-italian))
1354 $(eval $(call BuildPackage,luci-i18n-russian))
1355 $(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1356 $(eval $(call BuildPackage,luci-i18n-japanese))
1357 $(eval $(call BuildPackage,luci-i18n-greek))
1358 $(eval $(call BuildPackage,luci-i18n-catalan))
1359 $(eval $(call BuildPackage,luci-i18n-portuguese))
1360 $(eval $(call BuildPackage,luci-i18n-spanish))
1361 $(eval $(call BuildPackage,luci-i18n-vietnamese))
1362 $(eval $(call BuildPackage,luci-i18n-malay))
1364 $(eval $(call BuildPackage,luci))
1365 $(eval $(call BuildPackage,luci-ssl))
1366 $(eval $(call BuildPackage,luci-medium))
1367 $(eval $(call BuildPackage,luci-light))