d4fee2c25a9a5d1487180b3772e40f94bd1623fd
[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,luanet,LuCI luanet library,+libiw))
208 $(eval $(call library,lucid,LuCId Full-Stack Webserver,+luci-lib-nixio +luci-lib-web +luci-lib-px5g))
209 $(eval $(call library,nixio,NIXIO POSIX library,+PACKAGE_luci-lib-nixio_openssl:libopenssl +PACKAGE_luci-lib-nixio_cyassl:libcyassl))
210 $(eval $(call library,px5g,RSA/X.509 Key Generator (required for LuCId SSL support),+luci-lib-nixio))
211 $(eval $(call library,sys,LuCI Linux/POSIX system library,+libiwinfo))
212 $(eval $(call library,web,MVC Webframework,+luci-lib-sys +luci-lib-nixio +luci-lib-core +luci-sgi-cgi +luci-lib-lmo))
213 $(eval $(call library,uvl,UVL - UCI Validation Layer,+luci-lib-sys +luci-lib-core))
214
215
216 ### Community Packages ###
217 define Package/luci-mod-freifunk-community
218 SECTION:=luci
219 CATEGORY:=LuCI
220 TITLE:=LuCI - Lua Configuration Interface
221 URL:=http://luci.subsignal.org/
222 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
223 SUBMENU:=Freifunk
224 TITLE:=Freifunk Community Meta-Package
225 DEPENDS+= \
226 +luci-lib-web +luci-app-splash \
227 +luci-app-ffwizard-leipzig \
228 +luci-i18n-german \
229 +PACKAGE_luci-mod-freifunk-community:olsrd-luci +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
230 +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-nameservice \
231 +PACKAGE_luci-mod-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-mod-freifunk-community:kmod-tun \
232 +PACKAGE_luci-mod-freifunk-community:ip +PACKAGE_luci-mod-freifunk-community:freifunk-watchdog +luci-app-olsr
233 endef
234
235 define Package/luci-mod-freifunk-community/install
236 $(call Package/luci/install/template,$(1),applications/freifunk-community)
237 endef
238
239 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk-community),)
240 LUCI_SELECTED_MODULES+=applications/freifunk-community
241 endif
242
243 LUCI_BUILD_PACKAGES += luci-mod-freifunk-community
244
245
246 ### Modules ###
247 define module
248 define Package/luci-mod-$(1)
249 SECTION:=luci
250 CATEGORY:=LuCI
251 TITLE:=LuCI - Lua Configuration Interface
252 URL:=http://luci.subsignal.org/
253 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
254 SUBMENU:=Modules
255 TITLE:=$(if $(2),$(2),LuCI $(1) module)
256 $(if $(3),DEPENDS+=$(3))
257 endef
258
259 define Package/luci-mod-$(1)/install
260 $(call Package/luci/install/template,$$(1),modules/$(1))
261 $(call Package/luci-mod-$(1)/extra-install)
262 endef
263
264 ifneq ($(CONFIG_PACKAGE_luci-mod-$(1)),)
265 LUCI_SELECTED_MODULES+=modules/$(1)
266 endif
267
268 LUCI_BUILD_PACKAGES += luci-mod-$(1)
269 endef
270
271
272 define Package/luci-mod-admin-core/extra-install
273 touch $(1)/etc/init.d/luci_fixtime || true
274 endef
275
276 define Package/luci-mod-freifunk/conffiles
277 /etc/config/freifunk
278 endef
279
280 $(eval $(call module,admin-core,Web UI Core module,+luci-lib-web +luci-i18n-english))
281 $(eval $(call module,admin-mini,LuCI Essentials - stripped down and user-friendly,+luci-mod-admin-core))
282 $(eval $(call module,admin-full,LuCI Administration - full-featured for full control,+luci-mod-admin-core +luci-lib-ipkg))
283 $(eval $(call module,rpc,LuCI RPC - JSON-RPC API,+luci-lib-json))
284 $(eval $(call module,freifunk,LuCI Freifunk module,+luci-mod-admin-full +luci-lib-json +PACKAGE_luci-mod-freifunk:freifunk-firewall))
285 $(eval $(call module,niu,NIU - Next Generation Interface,+luci-mod-admin-core @BROKEN))
286
287
288 ### Applications ###
289 define application
290 define Package/luci-app-$(1)
291 SECTION:=luci
292 CATEGORY:=LuCI
293 TITLE:=LuCI - Lua Configuration Interface
294 URL:=http://luci.subsignal.org/
295 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
296 SUBMENU:=Applications
297 TITLE:=$(if $(2),$(2),LuCI $(1) application)
298 DEPENDS:=+luci-mod-admin-core $(3)
299 endef
300
301 define Package/luci-app-$(1)/install
302 $(call Package/luci/install/template,$$(1),applications/luci-$(1))
303 endef
304
305 ifneq ($(CONFIG_PACKAGE_luci-app-$(1)),)
306 LUCI_SELECTED_MODULES+=applications/luci-$(1)
307 endif
308
309 LUCI_BUILD_PACKAGES += luci-app-$(1)
310 endef
311
312 define Package/luci-app-splash/conffiles
313 /etc/config/luci_splash
314 endef
315
316 define Package/luci-app-statistics/conffiles
317 /etc/config/luci_statistics
318 endef
319
320 define Package/luci-app-diag-devinfo/conffiles
321 /etc/config/luci_devinfo
322 endef
323
324
325 $(eval $(call application,ffwizard-leipzig,Freifunk Leipzig configuration wizard))
326
327 $(eval $(call application,siitwizard,SIIT IPv4-over-IPv6 configuration wizard,\
328 +PACKAGE_luci-app-siitwizard:kmod-siit))
329
330 $(eval $(call application,firewall,Firmware and Portforwarding application,\
331 +PACKAGE_luci-app-firewall:firewall))
332
333 $(eval $(call application,olsr,OLSR configuration and status module,\
334 +luci-mod-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo))
335
336 $(eval $(call application,qos,Quality of Service configuration module,\
337 +PACKAGE_luci-app-qos:qos-scripts))
338
339 $(eval $(call application,splash,Freifunk DHCP-Splash application,\
340 +luci-lib-nixio +PACKAGE_luci-app-splash:tc \
341 +PACKAGE_luci-app-splash:kmod-sched +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
342 +PACKAGE_luci-app-splash:iptables-mod-ipopt))
343
344 $(eval $(call application,statistics,LuCI Statistics Application,\
345 +luci-mod-admin-full +PACKAGE_luci-app-statistics:collectd \
346 +PACKAGE_luci-app-statistics:rrdtool1 \
347 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
348 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
349 +PACKAGE_luci-app-statistics:collectd-mod-interface \
350 +PACKAGE_luci-app-statistics:collectd-mod-load))
351
352
353 $(eval $(call application,diag-core,LuCI Diagnostics Tools (Core)))
354
355 $(eval $(call application,diag-devinfo,LuCI Diagnostics Tools (Device Info),\
356 +luci-app-diag-core \
357 +PACKAGE_luci-app-diag-devinfo:smap \
358 +PACKAGE_luci-app-diag-devinfo:netdiscover \
359 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
360 +PACKAGE_luci-app-diag-devinfo:httping \
361 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
362 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo))
363
364 $(eval $(call application,voice-core,LuCI Voice Software (Core)))
365
366 $(eval $(call application,voide-diag,LuCI Voice Software (Diagnostics),\
367 +luci-app-voice-core +luci-app-diag-devinfo))
368
369
370 $(eval $(call application,upnp,Universal Plug & Play configuration module,\
371 +PACKAGE_luci-app-upnp:miniupnpd))
372
373 $(eval $(call application,ntpc,NTP time synchronisation configuration module,\
374 +PACKAGE_luci-app-ntpc:ntpclient))
375
376 $(eval $(call application,ddns,Dynamic DNS configuration module,\
377 +PACKAGE_luci-app-ddns:ddns-scripts))
378
379 $(eval $(call application,samba,Network Shares - Samba SMB/CIFS module,\
380 +luci-mod-admin-full +PACKAGE_luci-app-samba:samba3))
381
382 $(eval $(call application,mmc-over-gpio,MMC-over-GPIO configuration module,\
383 +luci-mod-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio))
384
385 $(eval $(call application,p910nd,p910nd - Printer server module,\
386 +luci-mod-admin-full +PACKAGE_luci-app-p910nd:p910nd))
387
388 $(eval $(call application,ushare,uShare - UPnP A/V & DLNA Media Server,\
389 +luci-mod-admin-full +PACKAGE_luci-app-ushare:ushare))
390
391 $(eval $(call application,hd-idle,Hard Disk Idle Spin-Down module,\
392 +luci-mod-admin-full +PACKAGE_luci-app-hd-idle:hd-idle))
393
394 $(eval $(call application,tinyproxy,Tinyproxy - HTTP(S)-Proxy configuration,\
395 +luci-mod-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy))
396
397 $(eval $(call application,initmgr,LuCI Initscript Management,\
398 +luci-mod-admin-full))
399
400 $(eval $(call application,livestats,LuCI Realtime Statistics,\
401 +luci-mod-rpc))
402
403 $(eval $(call application,asterisk,LuCI Support for Asterisk PBX,\
404 @BROKEN +PACKAGE_luci-app-asterisk:asterisk14-xip-core))
405
406 $(eval $(call application,polipo,LuCI Support for the Polipo Proxy,\
407 +PACKAGE_luci-app-polipo:polipo))
408
409 $(eval $(call application,openvpn,LuCI Support for OpenVPN,\
410 +PACKAGE_luci-app-openvpn:openvpn))
411
412 $(eval $(call application,p2pblock,LuCI Support for the Freifunk P2P-Block addon,\
413 +luci-app-firewall +PACKAGE_luci-app-p2pblock:freifunk-p2pblock))
414
415 $(eval $(call application,multiwan,LuCI Support for the OpenWrt MultiWAN agent,\
416 +luci-app-firewall +PACKAGE_luci-app-multiwan:multiwan))
417
418 $(eval $(call application,wol,LuCI Support for Wake-on-LAN,\
419 +PACKAGE_luci-app-wol:etherwake))
420
421 $(eval $(call application,vnstat,LuCI Support for VnStat,\
422 +PACKAGE_luci-app-vnstat:vnstat \
423 +PACKAGE_luci-app-vnstat:vnstati))
424
425 $(eval $(call application,lqtapifoss,Lantiq voip))
426
427 ### Server Gateway Interfaces ###
428 define sgi
429 define Package/luci-sgi-$(1)
430 SECTION:=luci
431 CATEGORY:=LuCI
432 TITLE:=LuCI - Lua Configuration Interface
433 URL:=http://luci.subsignal.org/
434 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
435 SUBMENU:=Server Interfaces
436 TITLE:=$(if $(2),$(2),LuCI $(1) server gateway interface)
437 $(if $(3),DEPENDS:=$(3))
438 endef
439
440 define Package/luci-sgi-$(1)/install
441 $(call Package/luci/install/template,$$(1),libs/sgi-$(1))
442 endef
443
444 ifneq ($(CONFIG_PACKAGE_luci-sgi-$(1)),)
445 LUCI_SELECTED_MODULES+=libs/sgi-$(1)
446 endif
447
448 LUCI_BUILD_PACKAGES += luci-sgi-$(1)
449 endef
450
451 $(eval $(call sgi,cgi,CGI Gateway behind existing Webserver))
452 $(eval $(call sgi,uhttpd,Binding for the uHTTPd server,+uhttpd +uhttpd-mod-lua))
453
454
455 ### Themes ###
456 define theme
457 define Package/luci-theme-$(1)
458 SECTION:=luci
459 CATEGORY:=LuCI
460 TITLE:=LuCI - Lua Configuration Interface
461 URL:=http://luci.subsignal.org/
462 SUBMENU:=Themes
463 TITLE:=$(if $(2),$(2),LuCI $(1) theme)
464 MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
465 DEPENDS:=$(ifneq $(1),base,+luci-theme-base) $(4)
466 $(if $(5),DEFAULT:=y if PACKAGE_luci-lib-core)
467 endef
468
469 define Package/luci-theme-$(1)/install
470 $(call Package/luci/install/template,$$(1),themes/$(1))
471 endef
472
473 ifneq ($(CONFIG_PACKAGE_luci-theme-$(1)),)
474 LUCI_SELECTED_MODULES+=themes/$(1)
475 endif
476
477 LUCI_BUILD_PACKAGES += luci-theme-$(1)
478 endef
479
480 $(eval $(call theme,base,Common base for all themes,,+luci-lib-web))
481 $(eval $(call theme,openwrt,OpenWrt.org (default),,,1))
482 $(eval $(call theme,openwrt-light,OpenWrt.org - light variant without images))
483 $(eval $(call theme,fledermaus,Fledermaus Theme))
484
485 $(eval $(call theme,freifunk,alternative Freifunk Theme,\
486 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
487
488 $(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\
489 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
490
491 $(eval $(call theme,freifunk-hannover,Freifunk Hannover Theme,\
492 Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>))
493
494
495 ### Translations ###
496 define translation
497 define Package/luci-i18n-$(1)
498 SECTION:=luci
499 CATEGORY:=LuCI
500 TITLE:=LuCI - Lua Configuration Interface
501 URL:=http://luci.subsignal.org/
502 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
503 SUBMENU:=Translations
504 TITLE:=$(if $(2),$(2),$(1))
505 endef
506
507 define Package/luci-i18n-$(1)/install
508 $(call Package/luci/install/template,$$(1),i18n/$(1))
509 endef
510
511 ifneq ($(CONFIG_PACKAGE_luci-i18n-$(1)),)
512 LUCI_SELECTED_MODULES+=i18n/$(1)
513 endif
514
515 LUCI_BUILD_PACKAGES += luci-i18n-$(1)
516 endef
517
518 $(eval $(call translation,german,German))
519 $(eval $(call translation,english,English))
520 $(eval $(call translation,french,French (by Florian Fainelli)))
521 $(eval $(call translation,italian,Italian (by Matteo Croce)))
522 $(eval $(call translation,russian,Russian (by Skryabin Dmitry)))
523 $(eval $(call translation,portuguese_brazilian,Portuguese (Brazilian) (by Carlos Cesario)))
524 $(eval $(call translation,japanese,Japanese (by Tsukasa Hamano)))
525 $(eval $(call translation,greek,Greek (by Vasilis Tsiligiannis)))
526 $(eval $(call translation,catalan,Catalan (by Eduard Duran)))
527 $(eval $(call translation,portuguese,Portuguese (by Jose Monteiro)))
528 $(eval $(call translation,spanish,Spanish (by Guillermo Javier Nardoni)))
529 $(eval $(call translation,vietnamese,Vietnamese (by Hong Phuc Dang)))
530 $(eval $(call translation,malay,Malay (by Teow Wai Chet)))
531 $(eval $(call translation,norwegian,Norwegian (by Lars Hardy)))
532
533
534 ### Collections ###
535 define collection
536 define Package/luci$(if $(1),-$(1))
537 SECTION:=luci
538 CATEGORY:=LuCI
539 TITLE:=LuCI - Lua Configuration Interface
540 URL:=http://luci.subsignal.org/
541 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
542 SUBMENU:=Collections
543 TITLE:=$(if $(2),$(2),LuCI $(if $(1),$(1),general) collection)
544 $(if $(3),DEPENDS:=$(3))
545 endef
546
547 define Package/luci$(if $(1),-$(1))/install
548 true
549 endef
550
551 LUCI_BUILD_PACKAGES += luci$(if $(1),-$(1))
552 endef
553
554 $(eval $(call collection,,\
555 Standard OpenWrt set including full and mini admin and the standard theme,\
556 +uhttpd +luci-mod-admin-full +luci-mod-admin-mini +luci-theme-openwrt \
557 +luci-app-firewall +luci-app-initmgr))
558
559 $(eval $(call collection,ssl,\
560 Standard OpenWrt set with HTTPS support,\
561 +uhttpd +uhttpd-mod-tls +px5g +luci-mod-admin-full +luci-mod-admin-mini \
562 +luci-theme-openwrt +luci-app-firewall +luci-app-initmgr))
563
564 $(eval $(call collection,medium,\
565 Medium package set using only admin full and a theme without graphics,\
566 +uhttpd +luci-mod-admin-full +luci-theme-openwrt-light))
567
568 $(eval $(call collection,light,\
569 Minimum package set using only admin mini and a theme without graphics,\
570 +uhttpd +luci-mod-admin-mini +luci-theme-openwrt-light))
571
572
573 ### Compile ###
574 PKG_CONFIG_DEPENDS := $(patsubst %,CONFIG_PACKAGE_%,$(LUCI_BUILD_PACKAGES))
575 $(foreach b,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))