root/luci/trunk/contrib/package/luci/Makefile @ 4457

Revision 4457, 27.8 KB (checked in by Cyrus, 4 years ago)

Remove Luasocket - obsoleted by nixio
Remove old luasocket based LuCI Httpd - obsoleted by lucittpd
Remove lpeg - not in use
Rewrite luci-splashd using nixio

Line 
1include $(TOPDIR)/rules.mk
2
3PKG_BRANCH:=trunk
4
5ifeq ($(DUMP),)
6  USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null && echo 1)
7endif
8
9PKG_NAME:=luci
10PKG_RELEASE:=1
11
12ifeq ($(USELOCAL),1)
13  PKG_VERSION:=0.9+svn
14else
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.9+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)
24endif
25
26PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
27PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
28
29PKG_BUILD_DEPENDS:=libnotimpl
30LUA_TARGET:=source
31PKG_SELECTED_MODULES:=
32
33
34include $(INCLUDE_DIR)/package.mk
35
36ifeq ($(USELOCAL),1)
37  define Build/Prepare
38    mkdir -p $(PKG_BUILD_DIR)
39    $(TAR) c -C ../../../ . \
40        --exclude=.pc --exclude=.svn --exclude=.git \
41        --exclude='boa-0*' --exclude='*.o' --exclude='*.so' \
42        --exclude=dist | \
43            tar x -C $(PKG_BUILD_DIR)/
44  endef
45endif
46
47define Build/Configure
48endef
49
50### Templates ###
51
52define Package/luci/libtemplate
53  SECTION:=admin
54  CATEGORY:=Administration
55  TITLE:=LuCI - Lua Configuration Interface
56  URL:=http://luci.freifunk-halle.net/
57  MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
58  SUBMENU:=LuCI Libraries
59  DEPENDS:=+luci-core
60endef
61
62define Package/luci/fftemplate
63  $(call Package/luci/libtemplate)
64  SUBMENU:=LuCI Freifunk Support
65  DEPENDS:=+luci-mod-freifunk
66endef
67
68define Package/luci/httpdtemplate
69  $(call Package/luci/libtemplate)
70  SUBMENU:=LuCIttpd
71  DEPENDS:=+luci-httpd
72endef
73
74define Package/luci/i18ntemplate
75  $(call Package/luci/libtemplate)
76  SUBMENU:=LuCI Translations
77  DEPENDS:=+luci-web
78endef
79
80define Package/luci/thtemplate
81  $(call Package/luci/libtemplate)
82  SUBMENU:=LuCI Themes
83  DEPENDS:=+luci-web
84endef
85
86define Package/luci/webtemplate
87  $(call Package/luci/libtemplate)
88  SUBMENU:=LuCI Components
89endef
90
91
92define Package/luci/install/template
93    $(CP) -a $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
94    $(CP) -a $(PKG_BUILD_DIR)/$(2)/ipkg/* $(1)/CONTROL/ 2>/dev/null || true
95endef
96
97
98
99### Core package ###
100
101define Package/luci-core
102  $(call Package/luci/libtemplate)
103  DEPENDS:=+lua
104  TITLE:=LuCI core libraries
105endef
106
107define Package/luci-core/install
108    $(call Package/luci/install/template,$(1),libs/core)
109    $(PKG_BUILD_DIR)/build/mkversion.sh $(1)/usr/lib/lua/luci/version.lua \
110        "OpenWrt Firmware" \
111        "$(OPENWRTVERSION)" \
112        "$(PKG_BRANCH)" \
113        "$(PKG_VERSION)"
114endef
115
116define Package/luci-core/config
117       choice
118               prompt "Build Target"
119               default PACKAGE_luci-core_source
120
121       config PACKAGE_luci-core_compile
122               bool "Precompiled"
123
124       config PACKAGE_luci-core_stripped
125               bool "Stripped"
126
127       config PACKAGE_luci-core_source
128               bool "Full Source"
129
130       config PACKAGE_luci-core_zipped
131               bool "Precompiled and compressed"
132
133       endchoice
134endef
135
136ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
137  LUA_TARGET:=compile
138endif
139
140ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
141  LUA_TARGET:=strip
142endif
143
144ifneq ($(CONFIG_PACKAGE_luci-core_zipped),)
145  LUA_TARGET:=gzip
146endif
147
148
149### Libraries ###
150define Package/luci-cbi
151  $(call Package/luci/libtemplate)
152  DEPENDS+=+luci-web +luci-uvl +luci-uci
153  TITLE:=Configuration Binding Interface
154endef
155
156define Package/luci-cbi/install
157    $(call Package/luci/install/template,$(1),libs/cbi)
158endef
159
160
161define Package/luci-uci
162  $(call Package/luci/libtemplate)
163  DEPENDS+=+libuci-lua
164  TITLE:=High-Level UCI API
165endef
166
167define Package/luci-uci/install
168    $(call Package/luci/install/template,$(1),libs/uci)
169endef
170
171
172define Package/luci-fastindex
173  $(call Package/luci/libtemplate)
174  TITLE:=Fastindex indexing module
175endef
176
177define Package/luci-fastindex/install
178    $(call Package/luci/install/template,$(1),libs/fastindex)
179endef
180
181
182define Package/luci-http
183  $(call Package/luci/libtemplate)
184  TITLE:=HTTP Protocol implementation
185endef
186
187define Package/luci-http/install
188    $(call Package/luci/install/template,$(1),libs/http)
189endef
190
191
192define Package/luci-httpclient
193  $(call Package/luci/libtemplate)
194  TITLE:=HTTP(S) client library
195  DEPENDS+=+luci-http +luci-nixio
196endef
197
198define Package/luci-httpclient/install
199    $(call Package/luci/install/template,$(1),libs/httpclient)
200endef
201
202
203define Package/luci-ipkg
204  $(call Package/luci/libtemplate)
205  TITLE:=LuCI IPKG/OPKG call abstraction library
206endef
207
208define Package/luci-ipkg/install
209    $(call Package/luci/install/template,$(1),libs/ipkg)
210endef
211
212
213define Package/luci-json
214  $(call Package/luci/libtemplate)
215  TITLE:=LuCI JSON Library
216endef
217
218define Package/luci-json/install
219    $(call Package/luci/install/template,$(1),libs/json)
220endef
221
222
223define Package/luci-luanet
224  $(call Package/luci/libtemplate)
225  TITLE:=luanet
226  DEPENDS+=+libiw
227endef
228
229define Package/luci-luanet/install
230        $(call Package/luci/install/template,$(1),libs/luanet)
231endef
232
233
234
235NIXIO_TLS:=axtls
236
237define Package/luci-nixio
238  $(call Package/luci/libtemplate)
239  TITLE:=NIXIO Socket Library
240  DEPENDS:=
241endef
242
243define Package/luci-nixio/install
244    $(call Package/luci/install/template,$(1),libs/nixio)
245endef
246
247define Package/luci-nixio/config
248    choice
249        prompt "TLS Provider"
250        default PACKAGE_luci-nixio_axtls
251
252        config PACKAGE_luci-nixio_axtls
253            bool "Builtin (axTLS)"
254            select PACKAGE_dropbear
255            select PACKAGE_dropbearconvert
256
257        config PACKAGE_luci-nixio_openssl
258            bool "OpenSSL"
259            select PACKAGE_libopenssl
260    endchoice
261endef
262
263ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
264  NIXIO_TLS:=openssl
265endif
266
267
268define Package/luci-sys
269  $(call Package/luci/libtemplate)
270  TITLE:=LuCI Linux/POSIX system library
271endef
272
273define Package/luci-sys/install
274    $(call Package/luci/install/template,$(1),libs/sys)
275endef
276
277
278define Package/luci-web
279  $(call Package/luci/libtemplate)
280  DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
281  TITLE:=MVC Webframework
282  $(call Config,luci.main.lang,string,en,Default Language)
283endef
284
285define Package/luci-web/conffiles
286/etc/config/luci
287endef
288
289define Package/luci-web/install
290    $(call Package/luci/install/template,$(1),libs/web)
291endef
292
293
294define Package/luci-uvl
295  $(call Package/luci/libtemplate)
296  DEPENDS+=+luci-sys +luci-uci +luci-core
297  TITLE:=UVL - UCI Validation Layer
298endef
299
300define Package/luci-uvl/install
301    $(call Package/luci/install/template,$(1),libs/uvl)
302endef
303
304
305
306### HTTPD ###
307
308define Package/luci-httpd
309  $(call Package/luci/httpdtemplate)
310  DEPENDS:=+luci-http +libuci
311  TITLE:=Server Core
312endef
313
314define Package/luci-httpd/install
315    $(call Package/luci/install/template,$(1),libs/lucittpd)
316endef
317
318
319
320### Community Packages ###
321
322define Package/luci-freifunk-community
323  $(call Package/luci/fftemplate)
324  DEPENDS+= \
325   +luci-sgi-cgi +luci-app-splash \
326   +luci-app-ffwizard-leipzig \
327   +luci-i18n-german \
328   +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
329   +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
330   +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
331   +PACKAGE_luci-freifunk-community:ip +luci-app-olsr
332  TITLE:=Freifunk Community Meta-Package
333endef
334
335define Package/luci-freifunk-community/install
336    $(call Package/luci/install/template,$(1),applications/freifunk-community)
337endef
338
339### Modules ###
340
341define Package/luci-admin-core
342  $(call Package/luci/webtemplate)
343  DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
344  TITLE:=Web UI Core Module
345endef
346
347define Package/luci-admin-core/conffiles
348/etc/config/luci_hosts
349/etc/config/luci_ethers
350endef
351
352define Package/luci-admin-core/install
353    $(call Package/luci/install/template,$(1),modules/admin-core)
354    touch $(1)/etc/init.d/luci_fixtime || true
355endef
356
357
358define Package/luci-admin-mini
359  $(call Package/luci/webtemplate)
360  DEPENDS+=+luci-admin-core
361  TITLE:=LuCI Essentials - stripped down and user-friendly
362endef
363
364define Package/luci-admin-mini/install
365    $(call Package/luci/install/template,$(1),modules/admin-mini)
366endef
367
368
369define Package/luci-admin-full
370  $(call Package/luci/webtemplate)
371  DEPENDS+=+luci-admin-core +luci-ipkg
372  TITLE:=LuCI Administration - full-featured for full control
373endef
374
375define Package/luci-admin-full/install
376    $(call Package/luci/install/template,$(1),modules/admin-full)
377endef
378
379
380define Package/luci-admin-rpc
381  $(call Package/luci/webtemplate)
382  DEPENDS+=+luci-json
383  TITLE:=LuCI RPC - JSON-RPC API
384endef
385
386define Package/luci-admin-rpc/install
387    $(call Package/luci/install/template,$(1),modules/rpc)
388endef
389
390
391define Package/luci-mod-freifunk
392  $(call Package/luci/fftemplate)
393  DEPENDS:=+luci-admin-full +luci-json
394  TITLE:=LuCI Freifunk module
395endef
396
397define Package/luci-mod-freifunk/conffiles
398/etc/config/freifunk
399endef
400
401define Package/luci-mod-freifunk/install
402    $(call Package/luci/install/template,$(1),modules/freifunk)
403endef
404
405
406
407### Applications ###
408
409define Package/luci-app-ffwizard-leipzig
410  $(call Package/luci/fftemplate)
411  TITLE:=Freifunk Leipzig configuration wizard
412endef
413
414define Package/luci-app-ffwizard-leipzig/install
415    $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
416endef
417
418
419define Package/luci-app-siitwizard
420  $(call Package/luci/fftemplate)
421  TITLE:=SIIT IPv4-over-IPv6 configuration wizard
422  DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
423endef
424
425define Package/luci-app-siitwizard/install
426    $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
427endef
428
429
430define Package/luci-app-firewall
431  $(call Package/luci/webtemplate)
432  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
433  TITLE:=Firewall and Portforwarding application
434endef
435
436define Package/luci-app-firewall/install
437    $(call Package/luci/install/template,$(1),applications/luci-fw)
438endef
439
440
441define Package/luci-app-olsr
442  $(call Package/luci/webtemplate)
443  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
444  TITLE:=OLSR configuration and status module
445endef
446
447define Package/luci-app-olsr/install
448    $(call Package/luci/install/template,$(1),applications/luci-olsr)
449endef
450
451
452define Package/luci-app-qos
453  $(call Package/luci/webtemplate)
454  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
455  TITLE:=Quality of Service configuration module
456endef
457
458define Package/luci-app-qos/install
459    $(call Package/luci/install/template,$(1),applications/luci-qos)
460endef
461
462
463define Package/luci-app-splash
464  $(call Package/luci/fftemplate)
465  DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio
466  TITLE:=Freifunk DHCP-Splash application
467endef
468
469define Package/luci-app-splash/conffiles
470/etc/config/luci_splash
471endef
472
473define Package/luci-app-splash/install
474    $(call Package/luci/install/template,$(1),applications/luci-splash)
475endef
476
477
478define Package/luci-app-statistics
479  $(call Package/luci/webtemplate)
480  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
481   +PACKAGE_luci-app-statistics:rrdtool1 \
482   +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
483   +PACKAGE_luci-app-statistics:collectd-mod-wireless \
484   +PACKAGE_luci-app-statistics:collectd-mod-interface \
485   +PACKAGE_luci-app-statistics:collectd-mod-load
486  TITLE:=LuCI Statistics Application
487endef
488
489define Package/luci-app-statistics/conffiles
490/etc/config/luci_statistics
491endef
492
493define Package/luci-app-statistics/install
494    $(call Package/luci/install/template,$(1),applications/luci-statistics)
495endef
496
497
498define Package/luci-app-upnp
499  $(call Package/luci/webtemplate)
500  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
501  TITLE:=Universal Plug & Play configuration module
502endef
503
504define Package/luci-app-upnp/install
505    $(call Package/luci/install/template,$(1),applications/luci-upnp)
506endef
507
508
509define Package/luci-app-ntpc
510  $(call Package/luci/webtemplate)
511  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
512  TITLE:=NTP time synchronisation client configuration module
513endef
514
515define Package/luci-app-ntpc/install
516    $(call Package/luci/install/template,$(1),applications/luci-ntpc)
517endef
518
519
520define Package/luci-app-ddns
521  $(call Package/luci/webtemplate)
522  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
523  TITLE:=Dynamic DNS configuration module
524endef
525
526define Package/luci-app-ddns/install
527    $(call Package/luci/install/template,$(1),applications/luci-ddns)
528endef
529
530
531define Package/luci-app-samba
532  $(call Package/luci/webtemplate)
533  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
534  TITLE:=Network Shares - Samba SMB/CIFS module
535endef
536
537define Package/luci-app-samba/install
538    $(call Package/luci/install/template,$(1),applications/luci-samba)
539endef
540
541
542define Package/luci-app-uvc_streamer
543  $(call Package/luci/webtemplate)
544  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
545  TITLE:=Webcam Streaming - UVC-Streamer module
546endef
547
548define Package/luci-app-uvc_streamer/install
549        $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
550endef
551
552
553define Package/luci-app-mmc_over_gpio
554  $(call Package/luci/webtemplate)
555  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
556  TITLE:=mmc_over_gpio
557endef
558
559define Package/luci-app-mmc_over_gpio/install
560        $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
561endef
562
563
564define Package/luci-app-p910nd
565  $(call Package/luci/webtemplate)
566  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
567  TITLE:=p910nd - Printer server module
568endef
569
570define Package/luci-app-p910nd/install
571        $(call Package/luci/install/template,$(1),applications/luci-p910nd)
572endef
573
574
575define Package/luci-app-ushare
576  $(call Package/luci/webtemplate)
577  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
578  TITLE:=ushare - UPnP A/V & DLNA Media Server
579endef
580
581define Package/luci-app-ushare/install
582        $(call Package/luci/install/template,$(1),applications/luci-ushare)
583endef
584
585define Package/luci-app-hd_idle
586  $(call Package/luci/webtemplate)
587  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
588  TITLE:=hd-idle
589endef
590
591define Package/luci-app-hd_idle/install
592        $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
593endef
594
595define Package/luci-app-tinyproxy
596  $(call Package/luci/webtemplate)
597  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
598  TITLE:=Tinyproxy - HTTP(S)-Proxy
599endef
600
601define Package/luci-app-tinyproxy/install
602        $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
603endef
604
605define Package/luci-app-initmgr
606  $(call Package/luci/webtemplate)
607  DEPENDS+=+luci-admin-full
608  TITLE:=LuCI Initscript Management
609endef
610
611define Package/luci-app-initmgr/install
612        $(call Package/luci/install/template,$(1),applications/luci-initmgr)
613endef
614
615define Package/luci-app-livestats
616  $(call Package/luci/webtemplate)
617  DEPENDS+=+luci-admin-core +luci-admin-rpc
618  TITLE:=LuCI Realtime Statistics
619endef
620
621define Package/luci-app-livestats/install
622        $(call Package/luci/install/template,$(1),applications/luci-livestats)
623endef
624
625define Package/luci-app-asterisk
626  $(call Package/luci/webtemplate)
627  TITLE:=LuCI Support for Asterisk PBX
628  DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
629endef
630
631define Package/luci-app-asterisk/install
632        $(call Package/luci/install/template,$(1),applications/luci-asterisk)
633endef
634
635define Package/luci-app-polipo
636  $(call Package/luci/webtemplate)
637  TITLE:=LuCI Support for the Polipo Proxy
638  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
639endef
640
641define Package/luci-app-polipo/install
642        $(call Package/luci/install/template,$(1),applications/luci-polipo)
643endef
644
645define Package/luci-app-openvpn
646  $(call Package/luci/webtemplate)
647  TITLE:=LuCI Support for OpenVPN
648  DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
649endef
650
651define Package/luci-app-openvpn/install
652        $(call Package/luci/install/template,$(1),applications/luci-openvpn)
653endef
654
655
656### Server Gateway Interfaces ###
657
658define Package/luci-sgi-cgi
659  $(call Package/luci/libtemplate)
660  TITLE:=SGI for CGI
661endef
662
663define Package/luci-sgi-cgi/install
664    $(call Package/luci/install/template,$(1),libs/sgi-cgi)
665endef
666
667define Package/luci-sgi-luci
668  $(call Package/luci/libtemplate)
669  DEPENDS+=+luci-httpd
670  TITLE:=SGI for LuCIttpd
671endef
672
673define Package/luci-sgi-luci/install
674    $(call Package/luci/install/template,$(1),libs/sgi-luci)
675endef
676
677define Package/luci-sgi-webuci
678  $(call Package/luci/libtemplate)
679  TITLE:=SGI for Webuci
680endef
681
682define Package/luci-sgi-webuci/install
683    $(call Package/luci/install/template,$(1),libs/sgi-webuci)
684endef
685
686### Themes ###
687define Package/luci-theme-base
688  $(call Package/luci/thtemplate)
689  DEPENDS:=+luci-web
690  TITLE:=Common base for all themes
691endef
692
693define Package/luci-theme-base/install
694    $(call Package/luci/install/template,$(1),themes/base)
695endef
696
697define Package/luci-theme-fledermaus
698  $(call Package/luci/fftemplate)
699  DEPENDS:=+luci-web
700  TITLE:=Fledermaus Theme
701endef
702
703define Package/luci-theme-fledermaus/install
704    $(call Package/luci/install/template,$(1),themes/fledermaus)
705endef
706
707define Package/luci-theme-freifunk
708  $(call Package/luci/fftemplate)
709  DEPENDS:=+luci-web
710  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
711  TITLE:=alternative Freifunk Theme
712endef
713
714define Package/luci-theme-freifunk/install
715        $(call Package/luci/install/template,$(1),themes/freifunk)
716endef
717
718define Package/luci-theme-freifunk-bno
719  $(call Package/luci/fftemplate)
720  DEPENDS:=+luci-web
721  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
722  TITLE:=Freifunk Berlin Nordost Theme
723endef
724
725define Package/luci-theme-freifunk-bno/install
726    $(call Package/luci/install/template,$(1),themes/freifunk-bno)
727endef
728
729define Package/luci-theme-openwrt
730  $(call Package/luci/thtemplate)
731  TITLE:=OpenWrt.org (default)
732  DEPENDS:=+luci-theme-base
733endef
734
735define Package/luci-theme-openwrt/install
736    $(call Package/luci/install/template,$(1),themes/openwrt.org)
737endef
738
739define Package/luci-theme-openwrtlight
740  $(call Package/luci/thtemplate)
741  TITLE:=OpenWrt.org - light variant without images
742  DEPENDS:=+luci-theme-base
743endef
744
745define Package/luci-theme-openwrtlight/install
746    $(call Package/luci/install/template,$(1),themes/openwrt-light)
747endef
748
749
750### Translations ###
751define Package/luci-i18n-german
752  $(call Package/luci/i18ntemplate)
753  TITLE:=German
754endef
755
756define Package/luci-i18n-german/install
757    $(call Package/luci/install/template,$(1),i18n/german)
758endef
759
760
761define Package/luci-i18n-english
762  $(call Package/luci/i18ntemplate)
763  TITLE:=English
764endef
765
766define Package/luci-i18n-english/install
767    $(call Package/luci/install/template,$(1),i18n/english)
768endef
769
770
771define Package/luci-i18n-french
772  $(call Package/luci/i18ntemplate)
773  TITLE:=French (by Florian Fainelli)
774endef
775
776define Package/luci-i18n-french/install
777    $(call Package/luci/install/template,$(1),i18n/french)
778endef
779
780
781define Package/luci-i18n-italian
782  $(call Package/luci/i18ntemplate)
783  TITLE:=Italian (by Matteo Croce)
784endef
785
786define Package/luci-i18n-italian/install
787    $(call Package/luci/install/template,$(1),i18n/italian)
788endef
789
790
791define Package/luci-i18n-russian
792  $(call Package/luci/i18ntemplate)
793  TITLE:=Russian (by Skryabin Dmitry)
794endef
795
796define Package/luci-i18n-russian/install
797    $(call Package/luci/install/template,$(1),i18n/russian)
798endef
799
800
801define Package/luci-i18n-portuguese_brazilian
802  $(call Package/luci/i18ntemplate)
803  TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
804endef
805
806define Package/luci-i18n-portuguese_brazilian/install
807    $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
808endef
809
810
811define Package/luci-i18n-japanese
812  $(call Package/luci/i18ntemplate)
813  TITLE:=Japanese (by Tsukasa Hamano)
814endef
815
816define Package/luci-i18n-japanese/install
817    $(call Package/luci/install/template,$(1),i18n/japanese)
818endef
819
820
821define Package/luci-i18n-greek
822  $(call Package/luci/i18ntemplate)
823  TITLE:=Greek (by Vasilis Tsiligiannis)
824endef
825
826define Package/luci-i18n-greek/install
827    $(call Package/luci/install/template,$(1),i18n/greek)
828endef
829
830### Compile ###
831ifneq ($(CONFIG_PACKAGE_luci-core),)
832    PKG_SELECTED_MODULES+=libs/core
833endif
834ifneq ($(CONFIG_PACKAGE_luci-cbi),)
835    PKG_SELECTED_MODULES+=libs/cbi
836endif
837ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
838    PKG_SELECTED_MODULES+=libs/fastindex
839endif
840ifneq ($(CONFIG_PACKAGE_luci-http),)
841    PKG_SELECTED_MODULES+=libs/http
842endif
843ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
844    PKG_SELECTED_MODULES+=libs/httpclient
845endif
846ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
847    PKG_SELECTED_MODULES+=libs/ipkg
848endif
849ifneq ($(CONFIG_PACKAGE_luci-json),)
850    PKG_SELECTED_MODULES+=libs/json
851endif
852ifneq ($(CONFIG_PACKAGE_luci-luanet),)
853    PKG_SELECTED_MODULES+=libs/luanet
854endif
855ifneq ($(CONFIG_PACKAGE_luci-nixio),)
856    PKG_SELECTED_MODULES+=libs/nixio
857endif
858ifneq ($(CONFIG_PACKAGE_luci-uci),)
859    PKG_SELECTED_MODULES+=libs/uci
860endif
861ifneq ($(CONFIG_PACKAGE_luci-sys),)
862    PKG_SELECTED_MODULES+=libs/sys
863endif
864ifneq ($(CONFIG_PACKAGE_luci-web),)
865    PKG_SELECTED_MODULES+=libs/web
866endif
867ifneq ($(CONFIG_PACKAGE_luci-uvl),)
868    PKG_SELECTED_MODULES+=libs/uvl
869endif
870
871ifneq ($(CONFIG_PACKAGE_luci-httpd),)
872    PKG_SELECTED_MODULES+=libs/lucittpd
873endif
874
875ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
876    PKG_SELECTED_MODULES+=modules/admin-core
877endif
878ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
879    PKG_SELECTED_MODULES+=modules/admin-mini
880endif
881ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
882    PKG_SELECTED_MODULES+=modules/admin-full
883endif
884ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
885    PKG_SELECTED_MODULES+=modules/rpc
886endif
887ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
888    PKG_SELECTED_MODULES+=modules/freifunk
889endif
890
891ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
892    PKG_SELECTED_MODULES+=applications/freifunk-community
893endif
894
895ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
896    PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
897endif
898ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
899    PKG_SELECTED_MODULES+=applications/luci-siitwizard
900endif
901ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
902    PKG_SELECTED_MODULES+=applications/luci-fw
903endif
904ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
905    PKG_SELECTED_MODULES+=applications/luci-olsr
906endif
907ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
908    PKG_SELECTED_MODULES+=applications/luci-qos
909endif
910ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
911    PKG_SELECTED_MODULES+=applications/luci-splash
912endif
913ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
914    PKG_SELECTED_MODULES+=applications/luci-statistics
915endif
916ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
917    PKG_SELECTED_MODULES+=applications/luci-upnp
918endif
919ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
920    PKG_SELECTED_MODULES+=applications/luci-ntpc
921endif
922ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
923    PKG_SELECTED_MODULES+=applications/luci-ddns
924endif
925ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
926    PKG_SELECTED_MODULES+=applications/luci-samba
927endif
928ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
929    PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
930endif
931ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
932        PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
933endif
934ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
935        PKG_SELECTED_MODULES+=applications/luci-p910nd
936endif
937ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
938        PKG_SELECTED_MODULES+=applications/luci-ushare
939endif
940ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
941       PKG_SELECTED_MODULES+=applications/luci-hd_idle
942endif
943ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
944       PKG_SELECTED_MODULES+=applications/luci-tinyproxy
945endif
946ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
947       PKG_SELECTED_MODULES+=applications/luci-initmgr
948endif
949ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
950       PKG_SELECTED_MODULES+=applications/luci-livestats
951endif
952ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
953       PKG_SELECTED_MODULES+=applications/luci-asterisk
954endif
955ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
956       PKG_SELECTED_MODULES+=applications/luci-polipo
957endif
958ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
959       PKG_SELECTED_MODULES+=applications/luci-openvpn
960endif
961
962
963ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
964    PKG_SELECTED_MODULES+=libs/sgi-cgi
965endif
966ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
967    PKG_SELECTED_MODULES+=libs/sgi-luci
968endif
969ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
970    PKG_SELECTED_MODULES+=libs/sgi-webuci
971endif
972
973ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
974    PKG_SELECTED_MODULES+=themes/base
975endif
976ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
977    PKG_SELECTED_MODULES+=themes/fledermaus
978endif
979ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
980    PKG_SELECTED_MODULES+=themes/freifunk-bno
981endif
982ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
983    PKG_SELECTED_MODULES+=themes/freifunk
984endif
985ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
986    PKG_SELECTED_MODULES+=themes/openwrt.org
987endif
988ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
989    PKG_SELECTED_MODULES+=themes/openwrt-light
990endif
991
992ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
993    PKG_SELECTED_MODULES+=i18n/german
994endif
995ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
996    PKG_SELECTED_MODULES+=i18n/english
997endif
998ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
999    PKG_SELECTED_MODULES+=i18n/french
1000endif
1001ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1002    PKG_SELECTED_MODULES+=i18n/italian
1003endif
1004ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1005    PKG_SELECTED_MODULES+=i18n/russian
1006endif
1007ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1008    PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1009endif
1010ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1011    PKG_SELECTED_MODULES+=i18n/japanese
1012endif
1013ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1014    PKG_SELECTED_MODULES+=i18n/greek
1015endif
1016
1017
1018MAKE_FLAGS += \
1019    MODULES="$(PKG_SELECTED_MODULES)" \
1020    LUA_TARGET="$(LUA_TARGET)" \
1021    LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1022    CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1023    LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1024    NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1025
1026
1027$(eval $(call BuildPackage,luci-core))
1028$(eval $(call BuildPackage,luci-cbi))
1029$(eval $(call BuildPackage,luci-fastindex))
1030$(eval $(call BuildPackage,luci-http))
1031$(eval $(call BuildPackage,luci-httpclient))
1032$(eval $(call BuildPackage,luci-ipkg))
1033$(eval $(call BuildPackage,luci-json))
1034$(eval $(call BuildPackage,luci-luanet))
1035$(eval $(call BuildPackage,luci-nixio))
1036$(eval $(call BuildPackage,luci-uci))
1037$(eval $(call BuildPackage,luci-sys))
1038$(eval $(call BuildPackage,luci-web))
1039$(eval $(call BuildPackage,luci-uvl))
1040
1041$(eval $(call BuildPackage,luci-httpd))
1042
1043$(eval $(call BuildPackage,luci-admin-core))
1044$(eval $(call BuildPackage,luci-admin-mini))
1045$(eval $(call BuildPackage,luci-admin-full))
1046$(eval $(call BuildPackage,luci-admin-rpc))
1047$(eval $(call BuildPackage,luci-mod-freifunk))
1048
1049$(eval $(call BuildPackage,luci-freifunk-community))
1050
1051$(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1052$(eval $(call BuildPackage,luci-app-siitwizard))
1053$(eval $(call BuildPackage,luci-app-firewall))
1054$(eval $(call BuildPackage,luci-app-olsr))
1055$(eval $(call BuildPackage,luci-app-qos))
1056$(eval $(call BuildPackage,luci-app-splash))
1057$(eval $(call BuildPackage,luci-app-statistics))
1058$(eval $(call BuildPackage,luci-app-upnp))
1059$(eval $(call BuildPackage,luci-app-ntpc))
1060$(eval $(call BuildPackage,luci-app-ddns))
1061$(eval $(call BuildPackage,luci-app-samba))
1062$(eval $(call BuildPackage,luci-app-uvc_streamer))
1063$(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1064$(eval $(call BuildPackage,luci-app-p910nd))
1065$(eval $(call BuildPackage,luci-app-ushare))
1066$(eval $(call BuildPackage,luci-app-hd_idle))
1067$(eval $(call BuildPackage,luci-app-tinyproxy))
1068$(eval $(call BuildPackage,luci-app-initmgr))
1069$(eval $(call BuildPackage,luci-app-livestats))
1070$(eval $(call BuildPackage,luci-app-asterisk))
1071$(eval $(call BuildPackage,luci-app-polipo))
1072$(eval $(call BuildPackage,luci-app-openvpn))
1073
1074$(eval $(call BuildPackage,luci-sgi-cgi))
1075$(eval $(call BuildPackage,luci-sgi-luci))
1076$(eval $(call BuildPackage,luci-sgi-webuci))
1077
1078$(eval $(call BuildPackage,luci-theme-base))
1079$(eval $(call BuildPackage,luci-theme-fledermaus))
1080$(eval $(call BuildPackage,luci-theme-freifunk))
1081$(eval $(call BuildPackage,luci-theme-freifunk-bno))
1082$(eval $(call BuildPackage,luci-theme-openwrt))
1083$(eval $(call BuildPackage,luci-theme-openwrtlight))
1084
1085$(eval $(call BuildPackage,luci-i18n-german))
1086$(eval $(call BuildPackage,luci-i18n-english))
1087$(eval $(call BuildPackage,luci-i18n-french))
1088$(eval $(call BuildPackage,luci-i18n-italian))
1089$(eval $(call BuildPackage,luci-i18n-russian))
1090$(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1091$(eval $(call BuildPackage,luci-i18n-japanese))
1092$(eval $(call BuildPackage,luci-i18n-greek))
Note: See TracBrowser for help on using the browser.