contrib: fix package definition of luci-theme-openwrt-light (#146)
[project/luci.git] / contrib / package / luci / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_BRANCH:=trunk
4
5 ifeq ($(DUMP),)
6   USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
7 endif
8
9 PKG_NAME:=luci
10 PKG_RELEASE:=1
11
12 ifeq ($(USELOCAL),1)
13   PKG_VERSION:=0.10+svn
14 else
15   PKG_SOURCE_URL:=http://svn.luci.subsignal.org/luci/$(PKG_BRANCH)
16   ifeq ($(DUMP),)
17     PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne's/^Revision: //p')
18     PKG_VERSION:=0.10+svn$(PKG_REV)
19   endif
20   PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
21   PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz
22   PKG_SOURCE_PROTO:=svn
23   PKG_SOURCE_VERSION:=$(PKG_REV)
24 endif
25
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
29
30 LUA_TARGET:=source
31 LUCI_CFLAGS:=
32 LUCI_BUILD_PACKAGES:=
33 LUCI_SELECTED_MODULES:=
34
35 ifeq ($(BOARD),brcm-2.4)
36   MAKE_FLAGS += CRAP="1"
37 endif
38
39
40 include $(INCLUDE_DIR)/package.mk
41
42 ifeq ($(USELOCAL),1)
43   define Build/Prepare
44         mkdir -p $(PKG_BUILD_DIR)
45         $(TAR) c -C ../../../ . \
46                 --exclude=.pc --exclude=.svn --exclude=.git \
47                 --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
48                 --exclude=dist | \
49                         tar x -C $(PKG_BUILD_DIR)/
50   endef
51 endif
52
53 define Build/Configure
54 endef
55
56 MAKE_FLAGS += \
57         MODULES="$(LUCI_SELECTED_MODULES)" \
58         LUA_TARGET="$(LUA_TARGET)" \
59         LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
60         CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
61         LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
62         NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
63
64
65 ### Templates ###
66 define Package/luci/install/template
67         $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
68         $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
69 endef
70
71
72 ### Core package ###
73 define Package/luci-lib-core
74   SECTION:=luci
75   CATEGORY:=LuCI
76   TITLE:=LuCI - Lua Configuration Interface
77   URL:=http://luci.subsignal.org/
78   MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
79   SUBMENU:=Libraries
80   DEPENDS:=+lua
81   TITLE:=LuCI core libraries
82 endef
83
84 define Package/luci-lib-core/install
85         $(call Package/luci/install/template,$(1),libs/core)
86         $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
87                 "OpenWrt Firmware" \
88                 "$(OPENWRTVERSION)" \
89                 "$(PKG_BRANCH)" \
90                 "$(PKG_VERSION)"
91 endef
92
93 define Package/luci-lib-core/config
94        choice
95                prompt "Build Target"
96                default PACKAGE_luci-lib-core_source
97
98        config PACKAGE_luci-lib-core_compile
99                bool "Precompiled"
100
101        config PACKAGE_luci-lib-core_stripped
102                bool "Stripped"
103
104        config PACKAGE_luci-lib-core_source
105                bool "Full Source"
106
107        endchoice
108 endef
109
110 ifneq ($(CONFIG_PACKAGE_luci-lib-core_compile),)
111   LUA_TARGET:=compile
112 endif
113
114 ifneq ($(CONFIG_PACKAGE_luci-lib-core_stripped),)
115   LUA_TARGET:=strip
116 endif
117
118 ifneq ($(CONFIG_PACKAGE_luci-lib-core_zipped),)
119   LUA_TARGET:=gzip
120 endif
121
122 ifneq ($(CONFIG_PACKAGE_luci-lib-core),)
123   LUCI_SELECTED_MODULES+=libs/core
124 endif
125
126 LUCI_BUILD_PACKAGES += luci-lib-core
127
128
129 ### Libraries ###
130 define library
131   define Package/luci-lib-$(1)
132     SECTION:=luci
133     CATEGORY:=LuCI
134     TITLE:=LuCI - Lua Configuration Interface
135     URL:=http://luci.subsignal.org/
136     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
137     SUBMENU:=Libraries
138     TITLE:=$(if $(2),$(2),LuCI $(1) library)
139     $(if $(3),DEPENDS:=+luci-lib-core $(3))
140   endef
141
142   define Package/luci-lib-$(1)/install
143         $(call Package/luci/install/template,$$(1),libs/$(1))
144         $(call Package/luci-lib-$(1)/extra-install)
145   endef
146
147   ifneq ($(CONFIG_PACKAGE_luci-lib-$(1)),)
148     LUCI_SELECTED_MODULES+=libs/$(1)
149   endif
150
151   LUCI_BUILD_PACKAGES += luci-lib-$(1)
152 endef
153
154 define Package/luci-lib-lucid/extra-install
155         $(call Package/luci/install/template,$(1),libs/lucid-http)
156 endef
157
158 define Package/luci-lib-web/conffiles
159 /etc/config/luci
160 endef
161
162 define Package/luci-lib-nixio/config
163         choice
164                 prompt "TLS Provider"
165                 default PACKAGE_luci-lib-nixio_notls
166
167                 config PACKAGE_luci-lib-nixio_notls
168                         bool "Disabled"
169
170                 config PACKAGE_luci-lib-nixio_axtls
171                         bool "Builtin (axTLS)"
172
173                 config PACKAGE_luci-lib-nixio_cyassl
174                         bool "CyaSSL"
175                         select PACKAGE_libcyassl
176
177                 config PACKAGE_luci-lib-nixio_openssl
178                         bool "OpenSSL"
179                         select PACKAGE_libopenssl
180         endchoice
181 endef
182
183
184 NIXIO_TLS:=
185
186 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
187   NIXIO_TLS:=axtls
188 endif
189
190 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
191   NIXIO_TLS:=openssl
192 endif
193
194 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
195   NIXIO_TLS:=cyassl
196   LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
197 endif
198
199
200 $(eval $(call library,fastindex,Fastindex indexing module))
201 $(eval $(call library,httpclient,HTTP(S) client library,+luci-lib-web +luci-lib-nixio))
202 $(eval $(call library,ipkg,LuCI IPKG/OPKG call abstraction library))
203 $(eval $(call library,json,LuCI JSON library))
204 $(eval $(call library,lmo,LuCI LMO I18N library))
205 $(eval $(call library,luanet,LuCI luanet library,+libiw))
206 $(eval $(call library,lucid,LuCId Full-Stack Webserver,+luci-lib-nixio +luci-lib-web +luci-lib-px5g))
207 $(eval $(call library,nixio,NIXIO POSIX library,+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl))
208 $(eval $(call library,px5g,RSA/X.509 Key Generator (required for LuCId SSL support),+luci-lib-nixio))
209 $(eval $(call library,sys,LuCI Linux/POSIX system library,+libiwinfo))
210 $(eval $(call library,web,MVC Webframework,+luci-lib-sys +luci-lib-nixio +luci-lib-core +luci-sgi-cgi +luci-lib-lmo))
211 $(eval $(call library,uvl,UVL - UCI Validation Layer,+luci-lib-sys +luci-lib-core))
212
213
214 ### Community Packages ###
215 define Package/luci-mod-freifunk-community
216   SECTION:=luci
217   CATEGORY:=LuCI
218   TITLE:=LuCI - Lua Configuration Interface
219   URL:=http://luci.subsignal.org/
220   MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
221   SUBMENU:=Freifunk
222   TITLE:=Freifunk Community Meta-Package
223   DEPENDS+= \
224    +luci-lib-web +luci-app-splash \
225    +luci-app-ffwizard-leipzig \
226    +luci-i18n-german \
227    +PACKAGE_luci-mod-freifunk-community:olsrd-luci +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
228    +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-nameservice \
229    +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-mod-freifunk-community:kmod-tun \
230    +PACKAGE_luci-mod-freifunk-community:ip +PACKAGE_luci-mod-freifunk-community:freifunk-watchdog +luci-app-olsr
231 endef
232
233 define Package/luci-mod-freifunk-community/install
234         $(call Package/luci/install/template,$(1),applications/freifunk-community)
235 endef
236
237 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk-community),)
238         LUCI_SELECTED_MODULES+=applications/freifunk-community
239 endif
240
241 LUCI_BUILD_PACKAGES += luci-mod-freifunk-community
242
243
244 ### Modules ###
245 define module
246   define Package/luci-mod-$(1)
247     SECTION:=luci
248     CATEGORY:=LuCI
249     TITLE:=LuCI - Lua Configuration Interface
250     URL:=http://luci.subsignal.org/
251     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
252     SUBMENU:=Modules
253     TITLE:=$(if $(2),$(2),LuCI $(1) module)
254     $(if $(3),DEPENDS+=$(3))
255   endef
256
257   define Package/luci-mod-$(1)/install
258         $(call Package/luci/install/template,$$(1),modules/$(1))
259         $(call Package/luci-mod-$(1)/extra-install)
260   endef
261
262   ifneq ($(CONFIG_PACKAGE_luci-mod-$(1)),)
263     LUCI_SELECTED_MODULES+=modules/$(1)
264   endif
265
266   LUCI_BUILD_PACKAGES += luci-mod-$(1)
267 endef
268
269
270 define Package/luci-mod-admin-core/extra-install
271         touch $(1)/etc/init.d/luci_fixtime || true
272 endef
273
274 define Package/luci-mod-freifunk/conffiles
275 /etc/config/freifunk
276 endef
277
278 $(eval $(call module,admin-core,Web UI Core module,+luci-lib-web +luci-i18n-english))
279 $(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-mod-admin-core))
280 $(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-mod-admin-core +luci-lib-ipkg))
281 $(eval $(call module,rpc,LuCI RPC - JSON-RPC API,+luci-lib-json))
282 $(eval $(call module,freifunk,LuCI Freifunk module,+luci-mod-admin-full +luci-lib-json +PACKAGE_luci-mod-freifunk:freifunk-firewall))
283 $(eval $(call module,niu,NIU - Next Generation Interface,+luci-mod-admin-core @BROKEN))
284
285
286 ### Applications ###
287 define application
288   define Package/luci-app-$(1)
289     SECTION:=luci
290     CATEGORY:=LuCI
291     TITLE:=LuCI - Lua Configuration Interface
292     URL:=http://luci.subsignal.org/
293     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
294     SUBMENU:=Applications
295     TITLE:=$(if $(2),$(2),LuCI $(1) application)
296         DEPENDS:=+luci-mod-admin-core $(3)
297   endef
298
299   define Package/luci-app-$(1)/install
300         $(call Package/luci/install/template,$$(1),applications/luci-$(1))
301   endef
302
303   ifneq ($(CONFIG_PACKAGE_luci-app-$(1)),)
304     LUCI_SELECTED_MODULES+=applications/luci-$(1)
305   endif
306
307   LUCI_BUILD_PACKAGES += luci-app-$(1)
308 endef
309
310 define Package/luci-app-splash/conffiles
311 /etc/config/luci_splash
312 endef
313
314 define Package/luci-app-statistics/conffiles
315 /etc/config/luci_statistics
316 endef
317
318 define Package/luci-app-diag-devinfo/conffiles
319 /etc/config/luci_devinfo
320 endef
321
322
323 $(eval $(call application,ffwizard-leipzig,Freifunk Leipzig configuration wizard))
324
325 $(eval $(call application,siitwizard,SIIT IPv4-over-IPv6 configuration wizard,\
326         +PACKAGE_luci-app-siitwizard:kmod-siit))
327
328 $(eval $(call application,firewall,Firmware and Portforwarding application,\
329         +PACKAGE_luci-app-firewall:firewall))
330
331 $(eval $(call application,olsr,OLSR configuration and status module,\
332         +luci-mod-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo))
333
334 $(eval $(call application,qos,Quality of Service configuration module,\
335         +PACKAGE_luci-app-qos:qos-scripts))
336
337 $(eval $(call application,splash,Freifunk DHCP-Splash application,\
338         +luci-lib-nixio +PACKAGE_luci-app-splash:tc \
339         +PACKAGE_luci-app-splash:kmod-sched +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
340         +PACKAGE_luci-app-splash:iptables-mod-ipopt))
341
342 $(eval $(call application,statistics,LuCI Statistics Application,\
343         +luci-mod-admin-full +PACKAGE_luci-app-statistics:collectd \
344         +PACKAGE_luci-app-statistics:rrdtool1 \
345         +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
346         +PACKAGE_luci-app-statistics:collectd-mod-wireless \
347         +PACKAGE_luci-app-statistics:collectd-mod-interface \
348         +PACKAGE_luci-app-statistics:collectd-mod-load))
349
350
351 $(eval $(call application,diag-core,LuCI Diagnostics Tools (Core)))
352
353 $(eval $(call application,diag-devinfo,LuCI Diagnostics Tools (Device Info),\
354         +luci-app-diag-core \
355         +PACKAGE_luci-app-diag-devinfo:smap \
356         +PACKAGE_luci-app-diag-devinfo:netdiscover \
357         +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
358         +PACKAGE_luci-app-diag-devinfo:httping \
359         +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
360         +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo))
361
362 $(eval $(call application,voice-core,LuCI Voice Software (Core)))
363
364 $(eval $(call application,voide-diag,LuCI Voice Software (Diagnostics),\
365         +luci-app-voice-core +luci-app-diag-devinfo))
366
367
368 $(eval $(call application,upnp,Universal Plug & Play configuration module,\
369         +PACKAGE_luci-app-upnp:miniupnpd))
370
371 $(eval $(call application,ntpc,NTP time synchronisation configuration module,\
372         +PACKAGE_luci-app-ntpc:ntpclient))
373
374 $(eval $(call application,ddns,Dynamic DNS configuration module,\
375         +PACKAGE_luci-app-ddns:ddns-scripts))
376
377 $(eval $(call application,samba,Network Shares - Samba SMB/CIFS module,\
378         +luci-mod-admin-full +PACKAGE_luci-app-samba:samba3))
379
380 $(eval $(call application,mmc-over-gpio,MMC-over-GPIO configuration module,\
381         +luci-mod-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio))
382
383 $(eval $(call application,p910nd,p910nd - Printer server module,\
384         +luci-mod-admin-full +PACKAGE_luci-app-p910nd:p910nd))
385
386 $(eval $(call application,ushare,uShare - UPnP A/V & DLNA Media Server,\
387         +luci-mod-admin-full +PACKAGE_luci-app-ushare:ushare))
388
389 $(eval $(call application,hd-idle,Hard Disk Idle Spin-Down module,\
390         +luci-mod-admin-full +PACKAGE_luci-app-hd-idle:hd-idle))
391
392 $(eval $(call application,tinyproxy,Tinyproxy - HTTP(S)-Proxy configuration,\
393         +luci-mod-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy))
394
395 $(eval $(call application,initmgr,LuCI Initscript Management,\
396         +luci-mod-admin-full))
397
398 $(eval $(call application,livestats,LuCI Realtime Statistics,\
399         +luci-mod-rpc))
400
401 $(eval $(call application,asterisk,LuCI Support for Asterisk PBX,\
402         @BROKEN +PACKAGE_luci-app-asterisk:asterisk14-xip-core))
403
404 $(eval $(call application,polipo,LuCI Support for the Polipo Proxy,\
405         +PACKAGE_luci-app-polipo:polipo))
406
407 $(eval $(call application,openvpn,LuCI Support for OpenVPN,\
408         +PACKAGE_luci-app-openvpn:openvpn))
409
410 $(eval $(call application,p2pblock,LuCI Support for the Freifunk P2P-Block addon,\
411         +luci-app-firewall +PACKAGE_luci-app-p2pblock:freifunk-p2pblock))
412
413 $(eval $(call application,multiwan,LuCI Support for the OpenWrt MultiWAN agent,\
414         +luci-app-firewall +PACKAGE_luci-app-multiwan:multiwan))
415
416 $(eval $(call application,wol,LuCI Support for Wake-on-LAN,\
417         +PACKAGE_luci-app-wol:etherwake))
418
419 $(eval $(call application,vnstat,LuCI Support for VnStat,\
420         +PACKAGE_luci-app-vnstat:vnstat \
421     +PACKAGE_luci-app-vnstat:vnstati))
422
423
424 ### Server Gateway Interfaces ###
425 define sgi
426   define Package/luci-sgi-$(1)
427     SECTION:=luci
428     CATEGORY:=LuCI
429     TITLE:=LuCI - Lua Configuration Interface
430     URL:=http://luci.subsignal.org/
431     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
432     SUBMENU:=Server Interfaces
433     TITLE:=$(if $(2),$(2),LuCI $(1) server gateway interface)
434         $(if $(3),DEPENDS:=$(3))
435   endef
436
437   define Package/luci-sgi-$(1)/install
438         $(call Package/luci/install/template,$$(1),libs/sgi-$(1))
439   endef
440
441   ifneq ($(CONFIG_PACKAGE_luci-sgi-$(1)),)
442     LUCI_SELECTED_MODULES+=libs/sgi-$(1)
443   endif
444
445   LUCI_BUILD_PACKAGES += luci-sgi-$(1)
446 endef
447
448 $(eval $(call sgi,cgi,CGI Gateway behind existing Webserver))
449 $(eval $(call sgi,uhttpd,Binding for the uHTTPd server,+uhttpd +uhttpd-mod-lua))
450
451
452 ### Themes ###
453 define theme
454   define Package/luci-theme-$(1)
455     SECTION:=luci
456     CATEGORY:=LuCI
457     TITLE:=LuCI - Lua Configuration Interface
458     URL:=http://luci.subsignal.org/
459     SUBMENU:=Themes
460     TITLE:=$(if $(2),$(2),LuCI $(1) theme)
461         MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
462         DEPENDS:=$(ifneq $(1),base,+luci-theme-base) $(4)
463         $(if $(5),DEFAULT:=y if PACKAGE_luci-lib-core)
464   endef
465
466   define Package/luci-theme-$(1)/install
467         $(call Package/luci/install/template,$$(1),themes/$(1))
468   endef
469
470   ifneq ($(CONFIG_PACKAGE_luci-theme-$(1)),)
471     LUCI_SELECTED_MODULES+=themes/$(1)
472   endif
473
474   LUCI_BUILD_PACKAGES += luci-theme-$(1)
475 endef
476
477 $(eval $(call theme,base,Common base for all themes,,+luci-lib-web))
478 $(eval $(call theme,openwrt,OpenWrt.org (default),,,1))
479 $(eval $(call theme,openwrt-light,OpenWrt.org - light variant without images))
480 $(eval $(call theme,fledermaus,Fledermaus Theme))
481
482 $(eval $(call theme,freifunk,alternative Freifunk Theme,\
483         Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
484
485 $(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\
486         Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
487
488 $(eval $(call theme,freifunk-hannover,Freifunk Hannover Theme,\
489         Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>))
490
491
492 ### Translations ###
493 define translation
494   define Package/luci-i18n-$(1)
495     SECTION:=luci
496     CATEGORY:=LuCI
497     TITLE:=LuCI - Lua Configuration Interface
498     URL:=http://luci.subsignal.org/
499     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
500     SUBMENU:=Translations
501     TITLE:=$(if $(2),$(2),$(1))
502   endef
503
504   define Package/luci-i18n-$(1)/install
505         $(call Package/luci/install/template,$$(1),i18n/$(1))
506   endef
507
508   ifneq ($(CONFIG_PACKAGE_luci-i18n-$(1)),)
509     LUCI_SELECTED_MODULES+=i18n/$(1)
510   endif
511
512   LUCI_BUILD_PACKAGES += luci-i18n-$(1)
513 endef
514
515 $(eval $(call translation,german,German))
516 $(eval $(call translation,english,English))
517 $(eval $(call translation,french,French (by Florian Fainelli)))
518 $(eval $(call translation,italian,Italian (by Matteo Croce)))
519 $(eval $(call translation,russian,Russian (by Skryabin Dmitry)))
520 $(eval $(call translation,portuguese_brazilian,Portuguese (Brazilian) (by Carlos Cesario)))
521 $(eval $(call translation,japanese,Japanese (by Tsukasa Hamano)))
522 $(eval $(call translation,greek,Greek (by Vasilis Tsiligiannis)))
523 $(eval $(call translation,catalan,Catalan (by Eduard Duran)))
524 $(eval $(call translation,portuguese,Portuguese (by Jose Monteiro)))
525 $(eval $(call translation,spanish,Spanish (by Guillermo Javier Nardoni)))
526 $(eval $(call translation,vietnamese,Vietnamese (by Hong Phuc Dang)))
527 $(eval $(call translation,malay,Malay (by Teow Wai Chet)))
528 $(eval $(call translation,norwegian,Norwegian (by Lars Hardy)))
529
530
531 ### Collections ###
532 define collection
533   define Package/luci$(if $(1),-$(1))
534     SECTION:=luci
535     CATEGORY:=LuCI
536     TITLE:=LuCI - Lua Configuration Interface
537     URL:=http://luci.subsignal.org/
538     MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
539     SUBMENU:=Collections
540     TITLE:=$(if $(2),$(2),LuCI $(if $(1),$(1),general) collection)
541     $(if $(3),DEPENDS:=$(3))
542   endef
543
544   define Package/luci$(if $(1),-$(1))/install
545         true
546   endef
547
548   LUCI_BUILD_PACKAGES += luci$(if $(1),-$(1))
549 endef
550
551 $(eval $(call collection,,\
552         Standard OpenWrt set including full and mini admin and the standard theme,\
553         +uhttpd +luci-mod-admin-full +luci-mod-admin-mini +luci-theme-openwrt \
554     +luci-app-firewall +luci-app-initmgr))
555
556 $(eval $(call collection,ssl,\
557         Standard OpenWrt set with HTTPS support,\
558         +uhttpd +uhttpd-mod-tls +px5g +luci-mod-admin-full +luci-mod-admin-mini \
559     +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr))
560
561 $(eval $(call collection,medium,\
562         Medium package set using only admin full and a theme without graphics,\
563         +uhttpd +luci-mod-admin-full +luci-theme-openwrt-light))
564
565 $(eval $(call collection,light,\
566         Minimum package set using only admin mini and a theme without graphics,\
567         +uhttpd +luci-mod-admin-mini +luci-theme-openwrt-light))
568
569
570 ### Compile ###
571 PKG_CONFIG_DEPENDS := $(patsubst %,CONFIG_PACKAGE_%,$(LUCI_BUILD_PACKAGES))
572 $(foreach b,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))