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