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

Revision 4282, 26.1 KB (checked in by Cyrus, 4 years ago)

Add Makefile definitions for http-client

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 ${PKG_SOURCE_URL} | sed -ne's/^Last Changed Rev: //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       endchoice
131endef
132
133ifneq ($(CONFIG_PACKAGE_luci-core_compile),)
134  LUA_TARGET:=compile
135endif
136
137ifneq ($(CONFIG_PACKAGE_luci-core_stripped),)
138  LUA_TARGET:=strip
139endif
140
141
142### Libraries ###
143define Package/luci-cbi
144  $(call Package/luci/libtemplate)
145  DEPENDS+=+luci-web +luci-uvl +luci-uci
146  TITLE:=Configuration Binding Interface
147endef
148
149define Package/luci-cbi/install
150    $(call Package/luci/install/template,$(1),libs/cbi)
151endef
152
153
154define Package/luci-uci
155  $(call Package/luci/libtemplate)
156  DEPENDS+=+libuci-lua
157  TITLE:=High-Level UCI API
158endef
159
160define Package/luci-uci/install
161    $(call Package/luci/install/template,$(1),libs/uci)
162endef
163
164
165define Package/luci-fastindex
166  $(call Package/luci/libtemplate)
167  TITLE:=Fastindex indexing module
168endef
169
170define Package/luci-fastindex/install
171    $(call Package/luci/install/template,$(1),libs/fastindex)
172endef
173
174
175define Package/luci-http
176  $(call Package/luci/libtemplate)
177  TITLE:=HTTP Protocol implementation
178endef
179
180define Package/luci-http/install
181    $(call Package/luci/install/template,$(1),libs/http)
182endef
183
184
185define Package/luci-httpclient
186  $(call Package/luci/libtemplate)
187  TITLE:=HTTP(S) client library
188  DEPENDS+=+luci-http +luci-nixio
189endef
190
191define Package/luci-httpclient/install
192    $(call Package/luci/install/template,$(1),libs/httpclient)
193endef
194
195
196define Package/luci-ipkg
197  $(call Package/luci/libtemplate)
198  TITLE:=LuCI IPKG/OPKG call abstraction library
199endef
200
201define Package/luci-ipkg/install
202    $(call Package/luci/install/template,$(1),libs/ipkg)
203endef
204
205
206define Package/luci-json
207  $(call Package/luci/libtemplate)
208  TITLE:=LuCI JSON Library
209endef
210
211define Package/luci-json/install
212    $(call Package/luci/install/template,$(1),libs/json)
213endef
214
215
216define Package/luci-nixio
217  $(call Package/luci/libtemplate)
218  TITLE:=NIXIO Socket Library
219endef
220
221define Package/luci-nixio/install
222    $(call Package/luci/install/template,$(1),libs/nixio)
223endef
224
225
226define Package/luci-sys
227  $(call Package/luci/libtemplate)
228  TITLE:=LuCI Linux/POSIX system library
229endef
230
231define Package/luci-sys/install
232    $(call Package/luci/install/template,$(1),libs/sys)
233endef
234
235
236define Package/luci-web
237  $(call Package/luci/libtemplate)
238  DEPENDS+=+luci-http +luci-sys +luci-uci +luci-sgi-cgi
239  TITLE:=MVC Webframework
240  $(call Config,luci.main.lang,string,en,Default Language)
241endef
242
243define Package/luci-web/conffiles
244/etc/config/luci
245endef
246
247define Package/luci-web/install
248    $(call Package/luci/install/template,$(1),libs/web)
249endef
250
251
252define Package/luci-uvl
253  $(call Package/luci/libtemplate)
254  DEPENDS+=+luci-sys +luci-uci +luci-core
255  TITLE:=UVL - UCI Validation Layer
256endef
257
258define Package/luci-uvl/install
259    $(call Package/luci/install/template,$(1),libs/uvl)
260endef
261
262
263
264### HTTPD ###
265
266define Package/luci-httpd
267  $(call Package/luci/httpdtemplate)
268  DEPENDS:=+luci-http +libuci
269  TITLE:=Server Core
270endef
271
272define Package/luci-httpd/install
273    $(call Package/luci/install/template,$(1),libs/lucittpd)
274endef
275
276
277
278### Community Packages ###
279
280define Package/luci-freifunk-community
281  $(call Package/luci/fftemplate)
282  DEPENDS+= \
283   +luci-sgi-cgi +luci-app-splash \
284   +luci-app-ffwizard-leipzig \
285   +luci-i18n-german \
286   +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
287   +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
288   +PACKAGE_luci-freifunk-community:kmod-tun +PACKAGE_luci-freifunk-community:ip \
289   +luci-app-olsr
290  TITLE:=Freifunk Community Meta-Package
291endef
292
293define Package/luci-freifunk-community/install
294    $(call Package/luci/install/template,$(1),applications/freifunk-community)
295endef
296
297### Modules ###
298
299define Package/luci-admin-core
300  $(call Package/luci/webtemplate)
301  DEPENDS+=+luci-web +luci-cbi +luci-theme-openwrt +luci-i18n-english
302  TITLE:=Web UI Core Module
303endef
304
305define Package/luci-admin-core/conffiles
306/etc/config/luci_hosts
307/etc/config/luci_ethers
308endef
309
310define Package/luci-admin-core/install
311    $(call Package/luci/install/template,$(1),modules/admin-core)
312    touch $(1)/etc/init.d/luci_fixtime || true
313endef
314
315
316define Package/luci-admin-mini
317  $(call Package/luci/webtemplate)
318  DEPENDS+=+luci-admin-core
319  TITLE:=LuCI Essentials - stripped down and user-friendly
320endef
321
322define Package/luci-admin-mini/install
323    $(call Package/luci/install/template,$(1),modules/admin-mini)
324endef
325
326
327define Package/luci-admin-full
328  $(call Package/luci/webtemplate)
329  DEPENDS+=+luci-admin-core +luci-ipkg
330  TITLE:=LuCI Administration - full-featured for full control
331endef
332
333define Package/luci-admin-full/install
334    $(call Package/luci/install/template,$(1),modules/admin-full)
335endef
336
337
338define Package/luci-admin-rpc
339  $(call Package/luci/webtemplate)
340  DEPENDS+=+luci-json
341  TITLE:=LuCI RPC - JSON-RPC API
342endef
343
344define Package/luci-admin-rpc/install
345    $(call Package/luci/install/template,$(1),modules/rpc)
346endef
347
348
349define Package/luci-mod-freifunk
350  $(call Package/luci/fftemplate)
351  DEPENDS:=+luci-admin-full +luci-json
352  TITLE:=LuCI Freifunk module
353endef
354
355define Package/luci-mod-freifunk/conffiles
356/etc/config/freifunk
357endef
358
359define Package/luci-mod-freifunk/install
360    $(call Package/luci/install/template,$(1),modules/freifunk)
361endef
362
363
364
365### Applications ###
366
367define Package/luci-app-ffwizard-leipzig
368  $(call Package/luci/fftemplate)
369  TITLE:=Freifunk Leipzig configuration wizard
370endef
371
372define Package/luci-app-ffwizard-leipzig/install
373    $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
374endef
375
376
377define Package/luci-app-siitwizard
378  $(call Package/luci/fftemplate)
379  TITLE:=SIIT IPv4-over-IPv6 configuration wizard
380  DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
381endef
382
383define Package/luci-app-siitwizard/install
384    $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
385endef
386
387
388define Package/luci-app-firewall
389  $(call Package/luci/webtemplate)
390  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
391  TITLE:=Firewall and Portforwarding application
392endef
393
394define Package/luci-app-firewall/install
395    $(call Package/luci/install/template,$(1),applications/luci-fw)
396endef
397
398
399define Package/luci-app-olsr
400  $(call Package/luci/webtemplate)
401  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
402  TITLE:=OLSR configuration and status module
403endef
404
405define Package/luci-app-olsr/install
406    $(call Package/luci/install/template,$(1),applications/luci-olsr)
407endef
408
409
410define Package/luci-app-qos
411  $(call Package/luci/webtemplate)
412  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
413  TITLE:=Quality of Service configuration module
414endef
415
416define Package/luci-app-qos/install
417    $(call Package/luci/install/template,$(1),applications/luci-qos)
418endef
419
420
421define Package/luci-app-splash
422  $(call Package/luci/fftemplate)
423  DEPENDS+=+PACKAGE_luci-app-splash:luasocket
424  TITLE:=Freifunk DHCP-Splash application
425endef
426
427define Package/luci-app-splash/conffiles
428/etc/config/luci_splash
429endef
430
431define Package/luci-app-splash/install
432    $(call Package/luci/install/template,$(1),applications/luci-splash)
433endef
434
435
436define Package/luci-app-statistics
437  $(call Package/luci/webtemplate)
438  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
439   +PACKAGE_luci-app-statistics:rrdtool1 \
440   +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
441   +PACKAGE_luci-app-statistics:collectd-mod-wireless \
442   +PACKAGE_luci-app-statistics:collectd-mod-interfaces \
443   +PACKAGE_luci-app-statistics:collectd-mod-load
444  TITLE:=LuCI Statistics Application
445endef
446
447define Package/luci-app-statistics/conffiles
448/etc/config/luci_statistics
449endef
450
451define Package/luci-app-statistics/install
452    $(call Package/luci/install/template,$(1),applications/luci-statistics)
453endef
454
455
456define Package/luci-app-upnp
457  $(call Package/luci/webtemplate)
458  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
459  TITLE:=Universal Plug & Play configuration module
460endef
461
462define Package/luci-app-upnp/install
463    $(call Package/luci/install/template,$(1),applications/luci-upnp)
464endef
465
466
467define Package/luci-app-ntpc
468  $(call Package/luci/webtemplate)
469  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
470  TITLE:=NTP time synchronisation client configuration module
471endef
472
473define Package/luci-app-ntpc/install
474    $(call Package/luci/install/template,$(1),applications/luci-ntpc)
475endef
476
477
478define Package/luci-app-ddns
479  $(call Package/luci/webtemplate)
480  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
481  TITLE:=Dynamic DNS configuration module
482endef
483
484define Package/luci-app-ddns/install
485    $(call Package/luci/install/template,$(1),applications/luci-ddns)
486endef
487
488
489define Package/luci-app-samba
490  $(call Package/luci/webtemplate)
491  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
492  TITLE:=Network Shares - Samba SMB/CIFS module
493endef
494
495define Package/luci-app-samba/install
496    $(call Package/luci/install/template,$(1),applications/luci-samba)
497endef
498
499
500define Package/luci-app-uvc_streamer
501  $(call Package/luci/webtemplate)
502  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
503  TITLE:=Webcam Streaming - UVC-Streamer module
504endef
505
506define Package/luci-app-uvc_streamer/install
507        $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
508endef
509
510
511define Package/luci-app-mmc_over_gpio
512  $(call Package/luci/webtemplate)
513  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
514  TITLE:=mmc_over_gpio
515endef
516
517define Package/luci-app-mmc_over_gpio/install
518        $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
519endef
520
521
522define Package/luci-app-p910nd
523  $(call Package/luci/webtemplate)
524  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
525  TITLE:=p910nd - Printer server module
526endef
527
528define Package/luci-app-p910nd/install
529        $(call Package/luci/install/template,$(1),applications/luci-p910nd)
530endef
531
532
533define Package/luci-app-ushare
534  $(call Package/luci/webtemplate)
535  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
536  TITLE:=ushare - UPnP A/V & DLNA Media Server
537endef
538
539define Package/luci-app-ushare/install
540        $(call Package/luci/install/template,$(1),applications/luci-ushare)
541endef
542
543define Package/luci-app-hd_idle
544  $(call Package/luci/webtemplate)
545  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
546  TITLE:=hd-idle
547endef
548
549define Package/luci-app-hd_idle/install
550        $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
551endef
552
553define Package/luci-app-tinyproxy
554  $(call Package/luci/webtemplate)
555  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
556  TITLE:=Tinyproxy - HTTP(S)-Proxy
557endef
558
559define Package/luci-app-tinyproxy/install
560        $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
561endef
562
563define Package/luci-app-initmgr
564  $(call Package/luci/webtemplate)
565  DEPENDS+=+luci-admin-full
566  TITLE:=LuCI Initscript Management
567endef
568
569define Package/luci-app-initmgr/install
570        $(call Package/luci/install/template,$(1),applications/luci-initmgr)
571endef
572
573define Package/luci-app-livestats
574  $(call Package/luci/webtemplate)
575  DEPENDS+=+luci-admin-core +luci-admin-rpc
576  TITLE:=LuCI Realtime Statistics
577endef
578
579define Package/luci-app-livestats/install
580        $(call Package/luci/install/template,$(1),applications/luci-livestats)
581endef
582
583define Package/luci-app-asterisk
584  $(call Package/luci/webtemplate)
585  TITLE:=LuCI Support for Asterisk PBX
586  DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
587endef
588
589define Package/luci-app-asterisk/install
590        $(call Package/luci/install/template,$(1),applications/luci-asterisk)
591endef
592
593define Package/luci-app-polipo
594  $(call Package/luci/webtemplate)
595  TITLE:=LuCI Support for the Polipo Proxy
596  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
597endef
598
599define Package/luci-app-polipo/install
600        $(call Package/luci/install/template,$(1),applications/luci-polipo)
601endef
602
603define Package/luci-app-openvpn
604  $(call Package/luci/webtemplate)
605  TITLE:=LuCI Support for OpenVPN
606  DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
607endef
608
609define Package/luci-app-openvpn/install
610        $(call Package/luci/install/template,$(1),applications/luci-openvpn)
611endef
612
613
614### Server Gateway Interfaces ###
615
616define Package/luci-sgi-cgi
617  $(call Package/luci/libtemplate)
618  TITLE:=SGI for CGI
619endef
620
621define Package/luci-sgi-cgi/install
622    $(call Package/luci/install/template,$(1),libs/sgi-cgi)
623endef
624
625define Package/luci-sgi-luci
626  $(call Package/luci/libtemplate)
627  DEPENDS+=+luci-httpd
628  TITLE:=SGI for LuCIttpd
629endef
630
631define Package/luci-sgi-luci/install
632    $(call Package/luci/install/template,$(1),libs/sgi-luci)
633endef
634
635define Package/luci-sgi-webuci
636  $(call Package/luci/libtemplate)
637  TITLE:=SGI for Webuci
638endef
639
640define Package/luci-sgi-webuci/install
641    $(call Package/luci/install/template,$(1),libs/sgi-webuci)
642endef
643
644### Themes ###
645define Package/luci-theme-base
646  $(call Package/luci/thtemplate)
647  DEPENDS:=+luci-web
648  TITLE:=Common base for all themes
649endef
650
651define Package/luci-theme-base/install
652    $(call Package/luci/install/template,$(1),themes/base)
653endef
654
655define Package/luci-theme-fledermaus
656  $(call Package/luci/fftemplate)
657  DEPENDS:=+luci-web
658  TITLE:=Fledermaus Theme
659endef
660
661define Package/luci-theme-fledermaus/install
662    $(call Package/luci/install/template,$(1),themes/fledermaus)
663endef
664
665define Package/luci-theme-freifunk
666  $(call Package/luci/fftemplate)
667  DEPENDS:=+luci-web
668  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
669  TITLE:=alternative Freifunk Theme
670endef
671
672define Package/luci-theme-freifunk/install
673        $(call Package/luci/install/template,$(1),themes/freifunk)
674endef
675
676define Package/luci-theme-freifunk-bno
677  $(call Package/luci/fftemplate)
678  DEPENDS:=+luci-web
679  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
680  TITLE:=Freifunk Berlin Nordost Theme
681endef
682
683define Package/luci-theme-freifunk-bno/install
684    $(call Package/luci/install/template,$(1),themes/freifunk-bno)
685endef
686
687define Package/luci-theme-openwrt
688  $(call Package/luci/thtemplate)
689  TITLE:=OpenWrt.org (default)
690  DEPENDS:=+luci-theme-base
691endef
692
693define Package/luci-theme-openwrt/install
694    $(call Package/luci/install/template,$(1),themes/openwrt.org)
695endef
696
697define Package/luci-theme-openwrtlight
698  $(call Package/luci/thtemplate)
699  TITLE:=OpenWrt.org - light variant without images
700  DEPENDS:=+luci-theme-base
701endef
702
703define Package/luci-theme-openwrtlight/install
704    $(call Package/luci/install/template,$(1),themes/openwrt-light)
705endef
706
707
708### Translations ###
709define Package/luci-i18n-german
710  $(call Package/luci/i18ntemplate)
711  TITLE:=German
712endef
713
714define Package/luci-i18n-german/install
715    $(call Package/luci/install/template,$(1),i18n/german)
716endef
717
718
719define Package/luci-i18n-english
720  $(call Package/luci/i18ntemplate)
721  TITLE:=English
722endef
723
724define Package/luci-i18n-english/install
725    $(call Package/luci/install/template,$(1),i18n/english)
726endef
727
728
729define Package/luci-i18n-french
730  $(call Package/luci/i18ntemplate)
731  TITLE:=French (by Florian Fainelli)
732endef
733
734define Package/luci-i18n-french/install
735    $(call Package/luci/install/template,$(1),i18n/french)
736endef
737
738
739define Package/luci-i18n-italian
740  $(call Package/luci/i18ntemplate)
741  TITLE:=Italian (by Matteo Croce)
742endef
743
744define Package/luci-i18n-italian/install
745    $(call Package/luci/install/template,$(1),i18n/italian)
746endef
747
748
749define Package/luci-i18n-russian
750  $(call Package/luci/i18ntemplate)
751  TITLE:=Russian (by Skryabin Dmitry)
752endef
753
754define Package/luci-i18n-russian/install
755    $(call Package/luci/install/template,$(1),i18n/russian)
756endef
757
758
759define Package/luci-i18n-portuguese_brazilian
760  $(call Package/luci/i18ntemplate)
761  TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
762endef
763
764define Package/luci-i18n-portuguese_brazilian/install
765    $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
766endef
767
768
769### Compile ###
770ifneq ($(CONFIG_PACKAGE_luci-core),)
771    PKG_SELECTED_MODULES+=libs/core
772endif
773ifneq ($(CONFIG_PACKAGE_luci-cbi),)
774    PKG_SELECTED_MODULES+=libs/cbi
775endif
776ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
777    PKG_SELECTED_MODULES+=libs/fastindex
778endif
779ifneq ($(CONFIG_PACKAGE_luci-http),)
780    PKG_SELECTED_MODULES+=libs/http
781endif
782ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
783    PKG_SELECTED_MODULES+=libs/httpclient
784endif
785ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
786    PKG_SELECTED_MODULES+=libs/ipkg
787endif
788ifneq ($(CONFIG_PACKAGE_luci-json),)
789    PKG_SELECTED_MODULES+=libs/json
790endif
791ifneq ($(CONFIG_PACKAGE_luci-nixio),)
792    PKG_SELECTED_MODULES+=libs/nixio
793endif
794ifneq ($(CONFIG_PACKAGE_luci-uci),)
795    PKG_SELECTED_MODULES+=libs/uci
796endif
797ifneq ($(CONFIG_PACKAGE_luci-sys),)
798    PKG_SELECTED_MODULES+=libs/sys
799endif
800ifneq ($(CONFIG_PACKAGE_luci-web),)
801    PKG_SELECTED_MODULES+=libs/web
802endif
803ifneq ($(CONFIG_PACKAGE_luci-uvl),)
804    PKG_SELECTED_MODULES+=libs/uvl
805endif
806
807ifneq ($(CONFIG_PACKAGE_luci-httpd),)
808    PKG_SELECTED_MODULES+=libs/lucittpd
809endif
810
811ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
812    PKG_SELECTED_MODULES+=modules/admin-core
813endif
814ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
815    PKG_SELECTED_MODULES+=modules/admin-mini
816endif
817ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
818    PKG_SELECTED_MODULES+=modules/admin-full
819endif
820ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
821    PKG_SELECTED_MODULES+=modules/rpc
822endif
823ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
824    PKG_SELECTED_MODULES+=modules/freifunk
825endif
826
827ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
828    PKG_SELECTED_MODULES+=applications/freifunk-community
829endif
830
831ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
832    PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
833endif
834ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
835    PKG_SELECTED_MODULES+=applications/luci-siitwizard
836endif
837ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
838    PKG_SELECTED_MODULES+=applications/luci-fw
839endif
840ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
841    PKG_SELECTED_MODULES+=applications/luci-olsr
842endif
843ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
844    PKG_SELECTED_MODULES+=applications/luci-qos
845endif
846ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
847    PKG_SELECTED_MODULES+=applications/luci-splash
848endif
849ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
850    PKG_SELECTED_MODULES+=applications/luci-statistics
851endif
852ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
853    PKG_SELECTED_MODULES+=applications/luci-upnp
854endif
855ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
856    PKG_SELECTED_MODULES+=applications/luci-ntpc
857endif
858ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
859    PKG_SELECTED_MODULES+=applications/luci-ddns
860endif
861ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
862    PKG_SELECTED_MODULES+=applications/luci-samba
863endif
864ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
865    PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
866endif
867ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
868        PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
869endif
870ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
871        PKG_SELECTED_MODULES+=applications/luci-p910nd
872endif
873ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
874        PKG_SELECTED_MODULES+=applications/luci-ushare
875endif
876ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
877       PKG_SELECTED_MODULES+=applications/luci-hd_idle
878endif
879ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
880       PKG_SELECTED_MODULES+=applications/luci-tinyproxy
881endif
882ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
883       PKG_SELECTED_MODULES+=applications/luci-initmgr
884endif
885ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
886       PKG_SELECTED_MODULES+=applications/luci-livestats
887endif
888ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
889       PKG_SELECTED_MODULES+=applications/luci-asterisk
890endif
891ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
892       PKG_SELECTED_MODULES+=applications/luci-polipo
893endif
894ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
895       PKG_SELECTED_MODULES+=applications/luci-openvpn
896endif
897
898
899ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
900    PKG_SELECTED_MODULES+=libs/sgi-cgi
901endif
902ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
903    PKG_SELECTED_MODULES+=libs/sgi-luci
904endif
905ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
906    PKG_SELECTED_MODULES+=libs/sgi-webuci
907endif
908
909ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
910    PKG_SELECTED_MODULES+=themes/base
911endif
912ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
913    PKG_SELECTED_MODULES+=themes/fledermaus
914endif
915ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
916    PKG_SELECTED_MODULES+=themes/freifunk-bno
917endif
918ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
919    PKG_SELECTED_MODULES+=themes/freifunk
920endif
921ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
922    PKG_SELECTED_MODULES+=themes/openwrt.org
923endif
924ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
925    PKG_SELECTED_MODULES+=themes/openwrt-light
926endif
927
928ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
929    PKG_SELECTED_MODULES+=i18n/german
930endif
931ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
932    PKG_SELECTED_MODULES+=i18n/english
933endif
934ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
935    PKG_SELECTED_MODULES+=i18n/french
936endif
937ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
938    PKG_SELECTED_MODULES+=i18n/italian
939endif
940ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
941    PKG_SELECTED_MODULES+=i18n/russian
942endif
943ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
944    PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
945endif
946
947
948MAKE_FLAGS += \
949    MODULES="$(PKG_SELECTED_MODULES)" \
950    LUA_TARGET="$(LUA_TARGET)" \
951    LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
952    CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
953    LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
954    OS="Linux"
955
956
957$(eval $(call BuildPackage,luci-core))
958$(eval $(call BuildPackage,luci-cbi))
959$(eval $(call BuildPackage,luci-fastindex))
960$(eval $(call BuildPackage,luci-http))
961$(eval $(call BuildPackage,luci-httpclient))
962$(eval $(call BuildPackage,luci-ipkg))
963$(eval $(call BuildPackage,luci-json))
964$(eval $(call BuildPackage,luci-nixio))
965$(eval $(call BuildPackage,luci-uci))
966$(eval $(call BuildPackage,luci-sys))
967$(eval $(call BuildPackage,luci-web))
968$(eval $(call BuildPackage,luci-uvl))
969
970$(eval $(call BuildPackage,luci-httpd))
971
972$(eval $(call BuildPackage,luci-admin-core))
973$(eval $(call BuildPackage,luci-admin-mini))
974$(eval $(call BuildPackage,luci-admin-full))
975$(eval $(call BuildPackage,luci-admin-rpc))
976$(eval $(call BuildPackage,luci-mod-freifunk))
977
978$(eval $(call BuildPackage,luci-freifunk-community))
979
980$(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
981$(eval $(call BuildPackage,luci-app-siitwizard))
982$(eval $(call BuildPackage,luci-app-firewall))
983$(eval $(call BuildPackage,luci-app-olsr))
984$(eval $(call BuildPackage,luci-app-qos))
985$(eval $(call BuildPackage,luci-app-splash))
986$(eval $(call BuildPackage,luci-app-statistics))
987$(eval $(call BuildPackage,luci-app-upnp))
988$(eval $(call BuildPackage,luci-app-ntpc))
989$(eval $(call BuildPackage,luci-app-ddns))
990$(eval $(call BuildPackage,luci-app-samba))
991$(eval $(call BuildPackage,luci-app-uvc_streamer))
992$(eval $(call BuildPackage,luci-app-mmc_over_gpio))
993$(eval $(call BuildPackage,luci-app-p910nd))
994$(eval $(call BuildPackage,luci-app-ushare))
995$(eval $(call BuildPackage,luci-app-hd_idle))
996$(eval $(call BuildPackage,luci-app-tinyproxy))
997$(eval $(call BuildPackage,luci-app-initmgr))
998$(eval $(call BuildPackage,luci-app-livestats))
999$(eval $(call BuildPackage,luci-app-asterisk))
1000$(eval $(call BuildPackage,luci-app-polipo))
1001$(eval $(call BuildPackage,luci-app-openvpn))
1002
1003$(eval $(call BuildPackage,luci-sgi-cgi))
1004$(eval $(call BuildPackage,luci-sgi-luci))
1005$(eval $(call BuildPackage,luci-sgi-webuci))
1006
1007$(eval $(call BuildPackage,luci-theme-base))
1008$(eval $(call BuildPackage,luci-theme-fledermaus))
1009$(eval $(call BuildPackage,luci-theme-freifunk))
1010$(eval $(call BuildPackage,luci-theme-freifunk-bno))
1011$(eval $(call BuildPackage,luci-theme-openwrt))
1012$(eval $(call BuildPackage,luci-theme-openwrtlight))
1013
1014$(eval $(call BuildPackage,luci-i18n-german))
1015$(eval $(call BuildPackage,luci-i18n-english))
1016$(eval $(call BuildPackage,luci-i18n-french))
1017$(eval $(call BuildPackage,luci-i18n-italian))
1018$(eval $(call BuildPackage,luci-i18n-russian))
1019$(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
Note: See TracBrowser for help on using the browser.