contrib/package: revert r6919
[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_srcdiet
107 bool "Compressed Source"
108
109 config PACKAGE_luci-lib-core_source
110 bool "Full Source"
111
112 endchoice
113 endef
114
115 ifneq ($(CONFIG_PACKAGE_luci-lib-core_compile),)
116 LUA_TARGET:=compile
117 endif
118
119 ifneq ($(CONFIG_PACKAGE_luci-lib-core_stripped),)
120 LUA_TARGET:=strip
121 endif
122
123 ifneq ($(CONFIG_PACKAGE_luci-lib-core_srcdiet),)
124 LUA_TARGET:=diet
125 endif
126
127 ifneq ($(CONFIG_PACKAGE_luci-lib-core),)
128 LUCI_SELECTED_MODULES+=libs/core
129 endif
130
131 LUCI_BUILD_PACKAGES += luci-lib-core
132
133
134 ### Libraries ###
135 define library
136 define Package/luci-lib-$(1)
137 SECTION:=luci
138 CATEGORY:=LuCI
139 TITLE:=LuCI - Lua Configuration Interface
140 URL:=http://luci.subsignal.org/
141 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
142 SUBMENU:=Libraries
143 TITLE:=$(if $(2),$(2),LuCI $(1) library)
144 $(if $(3),DEPENDS:=+luci-lib-core $(3))
145 endef
146
147 define Package/luci-lib-$(1)/install
148 $(call Package/luci/install/template,$$(1),libs/$(1))
149 $(call Package/luci-lib-$(1)/extra-install)
150 endef
151
152 ifneq ($(CONFIG_PACKAGE_luci-lib-$(1)),)
153 LUCI_SELECTED_MODULES+=libs/$(1)
154 endif
155
156 LUCI_BUILD_PACKAGES += luci-lib-$(1)
157 endef
158
159 define Package/luci-lib-web/conffiles
160 /etc/config/luci
161 endef
162
163 define Package/luci-lib-nixio/config
164 choice
165 prompt "TLS Provider"
166 default PACKAGE_luci-lib-nixio_notls
167
168 config PACKAGE_luci-lib-nixio_notls
169 bool "Disabled"
170
171 config PACKAGE_luci-lib-nixio_axtls
172 bool "Builtin (axTLS)"
173
174 config PACKAGE_luci-lib-nixio_cyassl
175 bool "CyaSSL"
176 select PACKAGE_libcyassl
177
178 config PACKAGE_luci-lib-nixio_openssl
179 bool "OpenSSL"
180 select PACKAGE_libopenssl
181 endchoice
182 endef
183
184
185 NIXIO_TLS:=
186
187 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls),)
188 NIXIO_TLS:=axtls
189 endif
190
191 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl),)
192 NIXIO_TLS:=openssl
193 endif
194
195 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl),)
196 NIXIO_TLS:=cyassl
197 LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
198 endif
199
200
201 $(eval $(call library,fastindex,Fastindex indexing module))
202 $(eval $(call library,httpclient,HTTP(S) client library,+luci-lib-web +luci-lib-nixio))
203 $(eval $(call library,ipkg,LuCI IPKG/OPKG call abstraction library))
204 $(eval $(call library,json,LuCI JSON library))
205 $(eval $(call library,lmo,LuCI LMO I18N library))
206 $(eval $(call library,lucid,LuCId Full-Stack Webserver,+luci-lib-nixio +luci-lib-web +luci-lib-px5g))
207 $(eval $(call library,lucid-http,LuCId HTTP Backend,+luci-lib-lucid))
208 $(eval $(call library,lucid-rpc,LuCId RPC Backend,+luci-lib-lucid))
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))
212 $(eval $(call library,web,MVC Webframework,+luci-lib-sys +luci-lib-nixio +luci-lib-core +luci-sgi-cgi +luci-lib-lmo))
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 \
227 +luci-i18n-german \
228 +PACKAGE_luci-mod-freifunk-community:olsrd +PACKAGE_luci-mod-freifunk-community:olsrd-mod-dyn-gw-plain \
229 +PACKAGE_luci-mod-freifunk-community:olsrd-mod-txtinfo +PACKAGE_luci-mod-freifunk-community:olsrd-mod-nameservice \
230 +PACKAGE_luci-mod-freifunk-community:olsrd-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 +luci-app-olsr-services
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 @BROKEN))
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 /usr/lib/luci-splash/splashtext.html
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,Freifunk configuration wizard,\
326 +luci-mod-freifunk))
327
328 $(eval $(call application,siitwizard,SIIT IPv4-over-IPv6 configuration wizard,\
329 +PACKAGE_luci-app-siitwizard:kmod-siit))
330
331 $(eval $(call application,firewall,Firmware and Portforwarding application,\
332 +PACKAGE_luci-app-firewall:firewall))
333
334 $(eval $(call application,olsr,OLSR configuration and status module,\
335 +luci-mod-admin-full +PACKAGE_luci-app-olsr:olsrd +PACKAGE_luci-app-olsr:olsrd-mod-txtinfo))
336
337 $(eval $(call application,olsr-viz,OLSR Visualisation,\
338 +PACKAGE_luci-app-olsr-viz:luci-app-olsr +PACKAGE_luci-app-olsr-viz:olsrd-mod-txtinfo))
339
340 $(eval $(call application,olsr-services,Show services announced with the nameservice plugin,\
341 +PACKAGE_luci-app-olsr-services:olsrd-mod-nameservice +luci-mod-freifunk +PACKAGE_luci-app-olsr-services:luci-app-olsr))
342
343 $(eval $(call application,qos,Quality of Service configuration module,\
344 +PACKAGE_luci-app-qos:qos-scripts))
345
346 $(eval $(call application,splash,Freifunk DHCP-Splash application,\
347 +luci-lib-nixio +PACKAGE_luci-app-splash:tc \
348 +PACKAGE_luci-app-splash:kmod-sched +PACKAGE_luci-app-splash:iptables-mod-nat-extra \
349 +PACKAGE_luci-app-splash:iptables-mod-ipopt))
350
351 $(eval $(call application,statistics,LuCI Statistics Application,\
352 +luci-mod-admin-full +PACKAGE_luci-app-statistics:collectd \
353 +PACKAGE_luci-app-statistics:rrdtool1 \
354 +PACKAGE_luci-app-statistics:collectd-mod-rrdtool \
355 +PACKAGE_luci-app-statistics:collectd-mod-wireless \
356 +PACKAGE_luci-app-statistics:collectd-mod-interface \
357 +PACKAGE_luci-app-statistics:collectd-mod-load))
358
359
360 $(eval $(call application,diag-core,LuCI Diagnostics Tools (Core)))
361
362 $(eval $(call application,diag-devinfo,LuCI Diagnostics Tools (Device Info),\
363 +luci-app-diag-core \
364 +PACKAGE_luci-app-diag-devinfo:smap \
365 +PACKAGE_luci-app-diag-devinfo:netdiscover \
366 +PACKAGE_luci-app-diag-devinfo:mac-to-devinfo \
367 +PACKAGE_luci-app-diag-devinfo:httping \
368 +PACKAGE_luci-app-diag-devinfo:smap-to-devinfo \
369 +PACKAGE_luci-app-diag-devinfo:netdiscover-to-devinfo))
370
371 $(eval $(call application,voice-core,LuCI Voice Software (Core)))
372
373 $(eval $(call application,voice-diag,LuCI Voice Software (Diagnostics),\
374 +luci-app-voice-core +luci-app-diag-devinfo))
375
376 $(eval $(call application,upnp,Universal Plug & Play configuration module,\
377 +PACKAGE_luci-app-upnp:miniupnpd))
378
379 $(eval $(call application,ntpc,NTP time synchronisation configuration module,\
380 +PACKAGE_luci-app-ntpc:ntpclient))
381
382 $(eval $(call application,ddns,Dynamic DNS configuration module,\
383 +PACKAGE_luci-app-ddns:ddns-scripts))
384
385 $(eval $(call application,samba,Network Shares - Samba SMB/CIFS module,\
386 +luci-mod-admin-full +PACKAGE_luci-app-samba:samba3))
387
388 $(eval $(call application,mmc-over-gpio,MMC-over-GPIO configuration module,\
389 +luci-mod-admin-full +PACKAGE_luci-app-mmc-over-gpio:kmod-mmc-over-gpio))
390
391 $(eval $(call application,p910nd,p910nd - Printer server module,\
392 +luci-mod-admin-full +PACKAGE_luci-app-p910nd:p910nd))
393
394 $(eval $(call application,ushare,uShare - UPnP A/V & DLNA Media Server,\
395 +luci-mod-admin-full +PACKAGE_luci-app-ushare:ushare))
396
397 $(eval $(call application,hd-idle,Hard Disk Idle Spin-Down module,\
398 +luci-mod-admin-full +PACKAGE_luci-app-hd-idle:hd-idle))
399
400 $(eval $(call application,tinyproxy,Tinyproxy - HTTP(S)-Proxy configuration,\
401 +luci-mod-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy))
402
403 $(eval $(call application,initmgr,LuCI Initscript Management,\
404 +luci-mod-admin-full))
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,radvd,LuCI Support for Radvd,\
426 +luci-mod-admin-full +PACKAGE_luci-app-radvd:radvd))
427
428 $(eval $(call application,lqtapifoss,Lantiq voip))
429
430 ### Server Gateway Interfaces ###
431 define sgi
432 define Package/luci-sgi-$(1)
433 SECTION:=luci
434 CATEGORY:=LuCI
435 TITLE:=LuCI - Lua Configuration Interface
436 URL:=http://luci.subsignal.org/
437 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
438 SUBMENU:=Server Interfaces
439 TITLE:=$(if $(2),$(2),LuCI $(1) server gateway interface)
440 $(if $(3),DEPENDS:=$(3))
441 endef
442
443 define Package/luci-sgi-$(1)/install
444 $(call Package/luci/install/template,$$(1),libs/sgi-$(1))
445 endef
446
447 ifneq ($(CONFIG_PACKAGE_luci-sgi-$(1)),)
448 LUCI_SELECTED_MODULES+=libs/sgi-$(1)
449 endif
450
451 LUCI_BUILD_PACKAGES += luci-sgi-$(1)
452 endef
453
454 $(eval $(call sgi,cgi,CGI Gateway behind existing Webserver))
455 $(eval $(call sgi,uhttpd,Binding for the uHTTPd server,+uhttpd +uhttpd-mod-lua))
456
457
458 ### Themes ###
459 define theme
460 define Package/luci-theme-$(1)
461 SECTION:=luci
462 CATEGORY:=LuCI
463 TITLE:=LuCI - Lua Configuration Interface
464 URL:=http://luci.subsignal.org/
465 SUBMENU:=Themes
466 TITLE:=$(if $(2),$(2),LuCI $(1) theme)
467 MAINTAINER:=$(if $(3),$(3),LuCI Development Team <luci@lists.subsignal.org>)
468 DEPENDS:=$(if $(filter-out base,$(1)),+luci-theme-base) $(4)
469 $(if $(5),DEFAULT:=PACKAGE_luci-lib-core)
470 endef
471
472 define Package/luci-theme-$(1)/install
473 $(call Package/luci/install/template,$$(1),themes/$(1))
474 endef
475
476 ifneq ($(CONFIG_PACKAGE_luci-theme-$(1)),)
477 LUCI_SELECTED_MODULES+=themes/$(1)
478 endif
479
480 LUCI_BUILD_PACKAGES += luci-theme-$(1)
481 endef
482
483 $(eval $(call theme,base,Common base for all themes,,+luci-lib-web))
484 $(eval $(call theme,openwrt,OpenWrt.org (default),,,1))
485 $(eval $(call theme,fledermaus,Fledermaus Theme))
486
487 $(eval $(call theme,freifunk,alternative Freifunk Theme,\
488 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
489
490 $(eval $(call theme,freifunk-bno,Freifunk Berlin Nordost Theme,\
491 Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>))
492
493 $(eval $(call theme,freifunk-hannover,Freifunk Hannover Theme,\
494 Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>))
495
496 $(eval $(call theme,freifunk-generic,Freifunk Generic Theme,\
497 Manuel Munz <freifunk-at-somakoma-dot-de>))
498
499 ### Translations ###
500 define translation
501 define Package/luci-i18n-$(1)
502 SECTION:=luci
503 CATEGORY:=LuCI
504 TITLE:=LuCI - Lua Configuration Interface
505 URL:=http://luci.subsignal.org/
506 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
507 SUBMENU:=Translations
508 TITLE:=$(if $(2),$(2),$(1))
509 endef
510
511 define Package/luci-i18n-$(1)/install
512 $(call Package/luci/install/template,$$(1),i18n/$(1))
513 endef
514
515 ifneq ($(CONFIG_PACKAGE_luci-i18n-$(1)),)
516 LUCI_SELECTED_MODULES+=i18n/$(1)
517 endif
518
519 LUCI_BUILD_PACKAGES += luci-i18n-$(1)
520 endef
521
522 $(eval $(call translation,german,German))
523 $(eval $(call translation,english,English))
524 $(eval $(call translation,french,French (by Florian Fainelli)))
525 $(eval $(call translation,italian,Italian (by Matteo Croce)))
526 $(eval $(call translation,russian,Russian (by Skryabin Dmitry)))
527 $(eval $(call translation,portuguese_brazilian,Portuguese (Brazilian) (by Carlos Cesario)))
528 $(eval $(call translation,japanese,Japanese (by Tsukasa Hamano)))
529 $(eval $(call translation,greek,Greek (by Vasilis Tsiligiannis)))
530 $(eval $(call translation,catalan,Catalan (by Eduard Duran)))
531 $(eval $(call translation,portuguese,Portuguese (by Jose Monteiro)))
532 $(eval $(call translation,spanish,Spanish (by Guillermo Javier Nardoni)))
533 $(eval $(call translation,vietnamese,Vietnamese (by Hong Phuc Dang)))
534 $(eval $(call translation,malay,Malay (by Teow Wai Chet)))
535 $(eval $(call translation,norwegian,Norwegian (by Lars Hardy)))
536
537
538 ### Collections ###
539 define collection
540 define Package/luci$(if $(1),-$(1))
541 SECTION:=luci
542 CATEGORY:=LuCI
543 TITLE:=LuCI - Lua Configuration Interface
544 URL:=http://luci.subsignal.org/
545 MAINTAINER:=LuCI Development Team <luci@lists.subsignal.org>
546 SUBMENU:=Collections
547 TITLE:=$(if $(2),$(2),LuCI $(if $(1),$(1),general) collection)
548 $(if $(3),DEPENDS:=$(3))
549 endef
550
551 define Package/luci$(if $(1),-$(1))/install
552 true
553 endef
554
555 LUCI_BUILD_PACKAGES += luci$(if $(1),-$(1))
556 endef
557
558 $(eval $(call collection,,\
559 Standard OpenWrt set including full and mini admin and the standard theme,\
560 +uhttpd +luci-mod-admin-full +luci-theme-openwrt +luci-app-firewall \
561 +luci-app-initmgr +libiwinfo))
562
563 $(eval $(call collection,ssl,\
564 Standard OpenWrt set with HTTPS support,\
565 +uhttpd +uhttpd-mod-tls +px5g +luci-mod-admin-full +luci-theme-openwrt \
566 +luci-app-firewall +luci-app-initmgr +libiwinfo))
567
568 $(eval $(call collection,light,\
569 Minimum package set using only admin mini and the standard theme,\
570 +uhttpd +luci-mod-admin-mini +luci-theme-openwrt @BROKEN))
571
572
573 ### Compile ###
574 PKG_CONFIG_DEPENDS=$(patsubst %,CONFIG_PACKAGE_%,$(LUCI_BUILD_PACKAGES))
575 $(foreach b,$(LUCI_BUILD_PACKAGES),$(eval $(call BuildPackage,$(b))))