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

Revision 4794, 30.0 KB (checked in by jow, 4 years ago)

contrib/package: add package definition for p2pblock

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
29LUA_TARGET:=source
30LUCI_CFLAGS:=
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
234define Package/luci-lucid
235  $(call Package/luci/libtemplate)
236  TITLE:=LuCId Superserver
237  DEPENDS+=+luci-nixio +luci-http +luci-px5g
238endef
239
240define Package/luci-lucid/install
241    $(call Package/luci/install/template,$(1),libs/lucid)
242    $(call Package/luci/install/template,$(1),libs/lucid-http)
243endef
244
245
246
247NIXIO_TLS:=axtls
248
249define Package/luci-nixio
250  $(call Package/luci/libtemplate)
251  TITLE:=NIXIO Socket Library
252  DEPENDS:=
253endef
254
255define Package/luci-nixio/install
256    $(call Package/luci/install/template,$(1),libs/nixio)
257endef
258
259define Package/luci-nixio/config
260    choice
261        prompt "TLS Provider"
262        default PACKAGE_luci-nixio_axtls
263
264        config PACKAGE_luci-nixio_axtls
265            bool "Builtin (axTLS)"
266            select PACKAGE_dropbear
267            select PACKAGE_dropbearconvert
268
269        config PACKAGE_luci-nixio_cyassl
270            bool "CyaSSL"
271            select PACKAGE_libcyassl-luci
272
273        config PACKAGE_luci-nixio_openssl
274            bool "OpenSSL"
275            select PACKAGE_libopenssl
276    endchoice
277endef
278
279ifneq ($(CONFIG_PACKAGE_luci-nixio_openssl),)
280  NIXIO_TLS:=openssl
281endif
282
283ifneq ($(CONFIG_PACKAGE_luci-nixio_cyassl),)
284  NIXIO_TLS:=cyassl
285  LUCI_CFLAGS+=-I$(STAGING_DIR)/usr/include/cyassl
286endif
287
288
289define Package/luci-px5g
290  $(call Package/luci/libtemplate)
291  TITLE:=PX5G RSA Keymaster
292  DEPENDS:=+luci-nixio
293endef
294
295define Package/luci-px5g/install
296    $(call Package/luci/install/template,$(1),libs/px5g)
297endef
298
299
300define Package/luci-sys
301  $(call Package/luci/libtemplate)
302  TITLE:=LuCI Linux/POSIX system library
303endef
304
305define Package/luci-sys/install
306    $(call Package/luci/install/template,$(1),libs/sys)
307endef
308
309
310define Package/luci-web
311  $(call Package/luci/libtemplate)
312  DEPENDS+=+luci-http +luci-sys +luci-uci +luci-lucid +luci-sgi-cgi
313  TITLE:=MVC Webframework
314  $(call Config,luci.main.lang,string,en,Default Language)
315endef
316
317define Package/luci-web/conffiles
318/etc/config/luci
319endef
320
321define Package/luci-web/install
322    $(call Package/luci/install/template,$(1),libs/web)
323endef
324
325
326define Package/luci-uvl
327  $(call Package/luci/libtemplate)
328  DEPENDS+=+luci-sys +luci-uci +luci-core
329  TITLE:=UVL - UCI Validation Layer
330endef
331
332define Package/luci-uvl/install
333    $(call Package/luci/install/template,$(1),libs/uvl)
334endef
335
336
337
338### HTTPD ###
339
340define Package/luci-httpd
341  $(call Package/luci/httpdtemplate)
342  DEPENDS:=+luci-http +libuci
343  TITLE:=Server Core
344endef
345
346define Package/luci-httpd/install
347    $(call Package/luci/install/template,$(1),libs/lucittpd)
348endef
349
350
351
352### Community Packages ###
353
354define Package/luci-freifunk-community
355  $(call Package/luci/fftemplate)
356  DEPENDS+= \
357   +luci-lucid +luci-sgi-cgi +luci-app-splash \
358   +luci-app-ffwizard-leipzig \
359   +luci-i18n-german \
360   +PACKAGE_luci-freifunk-community:olsrd-luci +PACKAGE_luci-freifunk-community:olsrd-luci-mod-dyn-gw-plain \
361   +PACKAGE_luci-freifunk-community:olsrd-luci-mod-txtinfo +PACKAGE_luci-freifunk-community:olsrd-luci-mod-nameservice \
362   +PACKAGE_luci-freifunk-community:olsrd-luci-mod-watchdog +PACKAGE_luci-freifunk-community:kmod-tun \
363   +PACKAGE_luci-freifunk-community:ip +PACKAGE_luci-freifunk-community:freifunk-watchdog +luci-app-olsr
364  TITLE:=Freifunk Community Meta-Package
365endef
366
367define Package/luci-freifunk-community/install
368    $(call Package/luci/install/template,$(1),applications/freifunk-community)
369endef
370
371### Modules ###
372
373define Package/luci-admin-core
374  $(call Package/luci/webtemplate)
375  DEPENDS+=+luci-web +luci-cbi +luci-i18n-english
376  TITLE:=Web UI Core Module
377endef
378
379define Package/luci-admin-core/conffiles
380/etc/config/luci_hosts
381/etc/config/luci_ethers
382endef
383
384define Package/luci-admin-core/install
385    $(call Package/luci/install/template,$(1),modules/admin-core)
386    touch $(1)/etc/init.d/luci_fixtime || true
387endef
388
389
390define Package/luci-admin-mini
391  $(call Package/luci/webtemplate)
392  DEPENDS+=+luci-admin-core
393  TITLE:=LuCI Essentials - stripped down and user-friendly
394endef
395
396define Package/luci-admin-mini/install
397    $(call Package/luci/install/template,$(1),modules/admin-mini)
398endef
399
400
401define Package/luci-admin-full
402  $(call Package/luci/webtemplate)
403  DEPENDS+=+luci-admin-core +luci-ipkg
404  TITLE:=LuCI Administration - full-featured for full control
405endef
406
407define Package/luci-admin-full/install
408    $(call Package/luci/install/template,$(1),modules/admin-full)
409endef
410
411
412define Package/luci-admin-rpc
413  $(call Package/luci/webtemplate)
414  DEPENDS+=+luci-json
415  TITLE:=LuCI RPC - JSON-RPC API
416endef
417
418define Package/luci-admin-rpc/install
419    $(call Package/luci/install/template,$(1),modules/rpc)
420endef
421
422
423define Package/luci-mod-freifunk
424  $(call Package/luci/fftemplate)
425  DEPENDS:=+luci-admin-full +luci-json
426  TITLE:=LuCI Freifunk module
427endef
428
429define Package/luci-mod-freifunk/conffiles
430/etc/config/freifunk
431endef
432
433define Package/luci-mod-freifunk/install
434    $(call Package/luci/install/template,$(1),modules/freifunk)
435endef
436
437
438
439### Applications ###
440
441define Package/luci-app-ffwizard-leipzig
442  $(call Package/luci/fftemplate)
443  TITLE:=Freifunk Leipzig configuration wizard
444endef
445
446define Package/luci-app-ffwizard-leipzig/install
447    $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
448endef
449
450
451define Package/luci-app-siitwizard
452  $(call Package/luci/fftemplate)
453  TITLE:=SIIT IPv4-over-IPv6 configuration wizard
454  DEPENDS:=+luci-admin-core +PACKAGE_luci-app-siitwizard:kmod-siit
455endef
456
457define Package/luci-app-siitwizard/install
458    $(call Package/luci/install/template,$(1),applications/luci-siitwizard)
459endef
460
461
462define Package/luci-app-firewall
463  $(call Package/luci/webtemplate)
464  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-firewall:firewall
465  TITLE:=Firewall and Portforwarding application
466endef
467
468define Package/luci-app-firewall/install
469    $(call Package/luci/install/template,$(1),applications/luci-fw)
470endef
471
472
473define Package/luci-app-olsr
474  $(call Package/luci/webtemplate)
475  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-olsr:olsrd-luci +PACKAGE_luci-app-olsr:olsrd-luci-mod-txtinfo
476  TITLE:=OLSR configuration and status module
477endef
478
479define Package/luci-app-olsr/install
480    $(call Package/luci/install/template,$(1),applications/luci-olsr)
481endef
482
483
484define Package/luci-app-qos
485  $(call Package/luci/webtemplate)
486  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-qos:qos-scripts
487  TITLE:=Quality of Service configuration module
488endef
489
490define Package/luci-app-qos/install
491    $(call Package/luci/install/template,$(1),applications/luci-qos)
492endef
493
494
495define Package/luci-app-splash
496  $(call Package/luci/fftemplate)
497  DEPENDS+=+PACKAGE_luci-app-splash:luci-nixio +PACKAGE_luci-app-splash:iptables-mod-nat-extra
498  TITLE:=Freifunk DHCP-Splash application
499endef
500
501define Package/luci-app-splash/conffiles
502/etc/config/luci_splash
503endef
504
505define Package/luci-app-splash/install
506    $(call Package/luci/install/template,$(1),applications/luci-splash)
507endef
508
509
510define Package/luci-app-statistics
511  $(call Package/luci/webtemplate)
512  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-statistics:collectd \
513   +PACKAGE_luci-app-statistics:rrdtool1 \
514   +PACKAGE_luci-app-statistics:collectd-mod-rrdtool1 \
515   +PACKAGE_luci-app-statistics:collectd-mod-wireless \
516   +PACKAGE_luci-app-statistics:collectd-mod-interface \
517   +PACKAGE_luci-app-statistics:collectd-mod-load
518  TITLE:=LuCI Statistics Application
519endef
520
521define Package/luci-app-statistics/conffiles
522/etc/config/luci_statistics
523endef
524
525define Package/luci-app-statistics/install
526    $(call Package/luci/install/template,$(1),applications/luci-statistics)
527endef
528
529
530define Package/luci-app-upnp
531  $(call Package/luci/webtemplate)
532  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-upnp:miniupnpd
533  TITLE:=Universal Plug & Play configuration module
534endef
535
536define Package/luci-app-upnp/install
537    $(call Package/luci/install/template,$(1),applications/luci-upnp)
538endef
539
540
541define Package/luci-app-ntpc
542  $(call Package/luci/webtemplate)
543  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ntpc:ntpclient
544  TITLE:=NTP time synchronisation client configuration module
545endef
546
547define Package/luci-app-ntpc/install
548    $(call Package/luci/install/template,$(1),applications/luci-ntpc)
549endef
550
551
552define Package/luci-app-ddns
553  $(call Package/luci/webtemplate)
554  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-ddns:ddns-scripts
555  TITLE:=Dynamic DNS configuration module
556endef
557
558define Package/luci-app-ddns/install
559    $(call Package/luci/install/template,$(1),applications/luci-ddns)
560endef
561
562
563define Package/luci-app-samba
564  $(call Package/luci/webtemplate)
565  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-samba:samba3
566  TITLE:=Network Shares - Samba SMB/CIFS module
567endef
568
569define Package/luci-app-samba/install
570    $(call Package/luci/install/template,$(1),applications/luci-samba)
571endef
572
573
574define Package/luci-app-uvc_streamer
575  $(call Package/luci/webtemplate)
576  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-uvc_streamer:uvc-streamer
577  TITLE:=Webcam Streaming - UVC-Streamer module
578endef
579
580define Package/luci-app-uvc_streamer/install
581        $(call Package/luci/install/template,$(1),applications/luci-uvc_streamer)
582endef
583
584
585define Package/luci-app-mmc_over_gpio
586  $(call Package/luci/webtemplate)
587  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-mmc_over_gpio:kmod-mmc-over-gpio
588  TITLE:=mmc_over_gpio
589endef
590
591define Package/luci-app-mmc_over_gpio/install
592        $(call Package/luci/install/template,$(1),applications/luci-mmc_over_gpio)
593endef
594
595
596define Package/luci-app-p910nd
597  $(call Package/luci/webtemplate)
598  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-p910nd:p910nd
599  TITLE:=p910nd - Printer server module
600endef
601
602define Package/luci-app-p910nd/install
603        $(call Package/luci/install/template,$(1),applications/luci-p910nd)
604endef
605
606
607define Package/luci-app-ushare
608  $(call Package/luci/webtemplate)
609  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-ushare:ushare
610  TITLE:=ushare - UPnP A/V & DLNA Media Server
611endef
612
613define Package/luci-app-ushare/install
614        $(call Package/luci/install/template,$(1),applications/luci-ushare)
615endef
616
617define Package/luci-app-hd_idle
618  $(call Package/luci/webtemplate)
619  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-hd_idle:hd-idle
620  TITLE:=hd-idle
621endef
622
623define Package/luci-app-hd_idle/install
624        $(call Package/luci/install/template,$(1),applications/luci-hd_idle)
625endef
626
627define Package/luci-app-tinyproxy
628  $(call Package/luci/webtemplate)
629  DEPENDS+=+luci-admin-full +PACKAGE_luci-app-tinyproxy:tinyproxy
630  TITLE:=Tinyproxy - HTTP(S)-Proxy
631endef
632
633define Package/luci-app-tinyproxy/install
634        $(call Package/luci/install/template,$(1),applications/luci-tinyproxy)
635endef
636
637define Package/luci-app-initmgr
638  $(call Package/luci/webtemplate)
639  DEPENDS+=+luci-admin-full
640  TITLE:=LuCI Initscript Management
641endef
642
643define Package/luci-app-initmgr/install
644        $(call Package/luci/install/template,$(1),applications/luci-initmgr)
645endef
646
647define Package/luci-app-livestats
648  $(call Package/luci/webtemplate)
649  DEPENDS+=+luci-admin-core +luci-admin-rpc
650  TITLE:=LuCI Realtime Statistics
651endef
652
653define Package/luci-app-livestats/install
654        $(call Package/luci/install/template,$(1),applications/luci-livestats)
655endef
656
657define Package/luci-app-asterisk
658  $(call Package/luci/webtemplate)
659  TITLE:=LuCI Support for Asterisk PBX
660  DEPENDS+=@BROKEN +luci-admin-core +PACKAGE_luci-app-asterisk:asterisk14-xip-core
661endef
662
663define Package/luci-app-asterisk/install
664        $(call Package/luci/install/template,$(1),applications/luci-asterisk)
665endef
666
667define Package/luci-app-polipo
668  $(call Package/luci/webtemplate)
669  TITLE:=LuCI Support for the Polipo Proxy
670  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-polipo:polipo
671endef
672
673define Package/luci-app-polipo/install
674        $(call Package/luci/install/template,$(1),applications/luci-polipo)
675endef
676
677define Package/luci-app-openvpn
678  $(call Package/luci/webtemplate)
679  TITLE:=LuCI Support for OpenVPN
680  DEPENDS+=+luci-admin-core +PACKAGE_luci-app-openvpn:openvpn
681endef
682
683define Package/luci-app-openvpn/install
684        $(call Package/luci/install/template,$(1),applications/luci-openvpn)
685endef
686
687define Package/luci-app-p2pblock
688  $(call Package/luci/webtemplate)
689  TITLE:=LuCI Support for the Freifunk P2P-Block addon
690  DEPENDS+=+luci-admin-core +luci-app-firewall +PACKAGE_luci-app-p2pblock:freifunk-p2pblock
691endef
692
693define Package/luci-app-p2pblock/install
694        $(call Package/luci/install/template,$(1),applications/luci-p2pblock)
695endef
696
697
698### Server Gateway Interfaces ###
699
700define Package/luci-sgi-cgi
701  $(call Package/luci/libtemplate)
702  TITLE:=SGI for CGI
703endef
704
705define Package/luci-sgi-cgi/install
706    $(call Package/luci/install/template,$(1),libs/sgi-cgi)
707endef
708
709### Themes ###
710define Package/luci-theme-base
711  $(call Package/luci/thtemplate)
712  DEPENDS:=+luci-web
713  TITLE:=Common base for all themes
714endef
715
716define Package/luci-theme-base/install
717    $(call Package/luci/install/template,$(1),themes/base)
718endef
719
720define Package/luci-theme-fledermaus
721  $(call Package/luci/fftemplate)
722  DEPENDS:=+luci-web
723  TITLE:=Fledermaus Theme
724endef
725
726define Package/luci-theme-fledermaus/install
727    $(call Package/luci/install/template,$(1),themes/fledermaus)
728endef
729
730define Package/luci-theme-freifunk
731  $(call Package/luci/fftemplate)
732  DEPENDS:=+luci-web
733  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
734  TITLE:=alternative Freifunk Theme
735endef
736
737define Package/luci-theme-freifunk/install
738        $(call Package/luci/install/template,$(1),themes/freifunk)
739endef
740
741define Package/luci-theme-freifunk-bno
742  $(call Package/luci/fftemplate)
743  DEPENDS:=+luci-web
744  MAINTAINER:=Stefan Pirwitz <stefan-at-freifunk-bno-dot-de>
745  TITLE:=Freifunk Berlin Nordost Theme
746endef
747
748define Package/luci-theme-freifunk-bno/install
749    $(call Package/luci/install/template,$(1),themes/freifunk-bno)
750endef
751
752define Package/luci-theme-freifunk-hannover
753  $(call Package/luci/fftemplate)
754  DEPENDS:=+luci-web
755  MAINTAINER:=Mikolas Bingemer <mickey-at-freifunk-hannover-dot-de>
756  TITLE:=Freifunk Hannover Theme
757endef
758
759define Package/luci-theme-freifunk-hannover/install
760    $(call Package/luci/install/template,$(1),themes/freifunk-hannover)
761endef
762
763define Package/luci-theme-openwrt
764  $(call Package/luci/thtemplate)
765  TITLE:=OpenWrt.org (default)
766  DEPENDS:=+luci-theme-base
767endef
768
769define Package/luci-theme-openwrt/install
770    $(call Package/luci/install/template,$(1),themes/openwrt.org)
771endef
772
773define Package/luci-theme-openwrtlight
774  $(call Package/luci/thtemplate)
775  TITLE:=OpenWrt.org - light variant without images
776  DEPENDS:=+luci-theme-base
777endef
778
779define Package/luci-theme-openwrtlight/install
780    $(call Package/luci/install/template,$(1),themes/openwrt-light)
781endef
782
783
784### Translations ###
785define Package/luci-i18n-german
786  $(call Package/luci/i18ntemplate)
787  TITLE:=German
788endef
789
790define Package/luci-i18n-german/install
791    $(call Package/luci/install/template,$(1),i18n/german)
792endef
793
794
795define Package/luci-i18n-english
796  $(call Package/luci/i18ntemplate)
797  TITLE:=English
798endef
799
800define Package/luci-i18n-english/install
801    $(call Package/luci/install/template,$(1),i18n/english)
802endef
803
804
805define Package/luci-i18n-french
806  $(call Package/luci/i18ntemplate)
807  TITLE:=French (by Florian Fainelli)
808endef
809
810define Package/luci-i18n-french/install
811    $(call Package/luci/install/template,$(1),i18n/french)
812endef
813
814
815define Package/luci-i18n-italian
816  $(call Package/luci/i18ntemplate)
817  TITLE:=Italian (by Matteo Croce)
818endef
819
820define Package/luci-i18n-italian/install
821    $(call Package/luci/install/template,$(1),i18n/italian)
822endef
823
824
825define Package/luci-i18n-russian
826  $(call Package/luci/i18ntemplate)
827  TITLE:=Russian (by Skryabin Dmitry)
828endef
829
830define Package/luci-i18n-russian/install
831    $(call Package/luci/install/template,$(1),i18n/russian)
832endef
833
834
835define Package/luci-i18n-portuguese_brazilian
836  $(call Package/luci/i18ntemplate)
837  TITLE:=Portuguese (Brazilian) (by Carlos Cesario)
838endef
839
840define Package/luci-i18n-portuguese_brazilian/install
841    $(call Package/luci/install/template,$(1),i18n/portuguese_brazilian)
842endef
843
844
845define Package/luci-i18n-japanese
846  $(call Package/luci/i18ntemplate)
847  TITLE:=Japanese (by Tsukasa Hamano)
848endef
849
850define Package/luci-i18n-japanese/install
851    $(call Package/luci/install/template,$(1),i18n/japanese)
852endef
853
854
855define Package/luci-i18n-greek
856  $(call Package/luci/i18ntemplate)
857  TITLE:=Greek (by Vasilis Tsiligiannis)
858endef
859
860define Package/luci-i18n-greek/install
861    $(call Package/luci/install/template,$(1),i18n/greek)
862endef
863
864
865define Package/luci-i18n-catalan
866  $(call Package/luci/i18ntemplate)
867  TITLE:=Catalan (by Eduard Duran)
868endef
869
870define Package/luci-i18n-catalan/install
871    $(call Package/luci/install/template,$(1),i18n/catalan)
872endef
873
874
875define Package/luci-i18n-portuguese
876  $(call Package/luci/i18ntemplate)
877  TITLE:=Portuguese (by Jose Monteiro)
878endef
879
880define Package/luci-i18n-portuguese/install
881    $(call Package/luci/install/template,$(1),i18n/portuguese)
882endef
883
884
885### Compile ###
886ifneq ($(CONFIG_PACKAGE_luci-core),)
887    PKG_SELECTED_MODULES+=libs/core
888endif
889ifneq ($(CONFIG_PACKAGE_luci-cbi),)
890    PKG_SELECTED_MODULES+=libs/cbi
891endif
892ifneq ($(CONFIG_PACKAGE_luci-fastindex),)
893    PKG_SELECTED_MODULES+=libs/fastindex
894endif
895ifneq ($(CONFIG_PACKAGE_luci-http),)
896    PKG_SELECTED_MODULES+=libs/http
897endif
898ifneq ($(CONFIG_PACKAGE_luci-httpclient),)
899    PKG_SELECTED_MODULES+=libs/httpclient
900endif
901ifneq ($(CONFIG_PACKAGE_luci-ipkg),)
902    PKG_SELECTED_MODULES+=libs/ipkg
903endif
904ifneq ($(CONFIG_PACKAGE_luci-json),)
905    PKG_SELECTED_MODULES+=libs/json
906endif
907ifneq ($(CONFIG_PACKAGE_luci-luanet),)
908    PKG_SELECTED_MODULES+=libs/luanet
909endif
910ifneq ($(CONFIG_PACKAGE_luci-lucid),)
911    PKG_SELECTED_MODULES+=libs/lucid libs/lucid-http
912endif
913ifneq ($(CONFIG_PACKAGE_luci-nixio),)
914    PKG_SELECTED_MODULES+=libs/nixio
915endif
916ifneq ($(CONFIG_PACKAGE_luci-px5g),)
917    PKG_SELECTED_MODULES+=libs/px5g
918endif
919ifneq ($(CONFIG_PACKAGE_luci-uci),)
920    PKG_SELECTED_MODULES+=libs/uci
921endif
922ifneq ($(CONFIG_PACKAGE_luci-sys),)
923    PKG_SELECTED_MODULES+=libs/sys
924endif
925ifneq ($(CONFIG_PACKAGE_luci-web),)
926    PKG_SELECTED_MODULES+=libs/web
927endif
928ifneq ($(CONFIG_PACKAGE_luci-uvl),)
929    PKG_SELECTED_MODULES+=libs/uvl
930endif
931
932ifneq ($(CONFIG_PACKAGE_luci-httpd),)
933    PKG_SELECTED_MODULES+=libs/lucittpd
934endif
935
936ifneq ($(CONFIG_PACKAGE_luci-admin-core),)
937    PKG_SELECTED_MODULES+=modules/admin-core
938endif
939ifneq ($(CONFIG_PACKAGE_luci-admin-mini),)
940    PKG_SELECTED_MODULES+=modules/admin-mini
941endif
942ifneq ($(CONFIG_PACKAGE_luci-admin-full),)
943    PKG_SELECTED_MODULES+=modules/admin-full
944endif
945ifneq ($(CONFIG_PACKAGE_luci-admin-rpc),)
946    PKG_SELECTED_MODULES+=modules/rpc
947endif
948ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk),)
949    PKG_SELECTED_MODULES+=modules/freifunk
950endif
951
952ifneq ($(CONFIG_PACKAGE_luci-freifunk-community),)
953    PKG_SELECTED_MODULES+=applications/freifunk-community
954endif
955
956ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig),)
957    PKG_SELECTED_MODULES+=applications/luci-ffwizard-leipzig
958endif
959ifneq ($(CONFIG_PACKAGE_luci-app-siitwizard),)
960    PKG_SELECTED_MODULES+=applications/luci-siitwizard
961endif
962ifneq ($(CONFIG_PACKAGE_luci-app-firewall),)
963    PKG_SELECTED_MODULES+=applications/luci-fw
964endif
965ifneq ($(CONFIG_PACKAGE_luci-app-olsr),)
966    PKG_SELECTED_MODULES+=applications/luci-olsr
967endif
968ifneq ($(CONFIG_PACKAGE_luci-app-qos),)
969    PKG_SELECTED_MODULES+=applications/luci-qos
970endif
971ifneq ($(CONFIG_PACKAGE_luci-app-splash),)
972    PKG_SELECTED_MODULES+=applications/luci-splash
973endif
974ifneq ($(CONFIG_PACKAGE_luci-app-statistics),)
975    PKG_SELECTED_MODULES+=applications/luci-statistics
976endif
977ifneq ($(CONFIG_PACKAGE_luci-app-upnp),)
978    PKG_SELECTED_MODULES+=applications/luci-upnp
979endif
980ifneq ($(CONFIG_PACKAGE_luci-app-ntpc),)
981    PKG_SELECTED_MODULES+=applications/luci-ntpc
982endif
983ifneq ($(CONFIG_PACKAGE_luci-app-ddns),)
984    PKG_SELECTED_MODULES+=applications/luci-ddns
985endif
986ifneq ($(CONFIG_PACKAGE_luci-app-samba),)
987    PKG_SELECTED_MODULES+=applications/luci-samba
988endif
989ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer),)
990    PKG_SELECTED_MODULES+=applications/luci-uvc_streamer
991endif
992ifneq ($(CONFIG_PACKAGE_luci-app-mmc_over_gpio),)
993        PKG_SELECTED_MODULES+=applications/luci-mmc_over_gpio
994endif
995ifneq ($(CONFIG_PACKAGE_luci-app-p910nd),)
996        PKG_SELECTED_MODULES+=applications/luci-p910nd
997endif
998ifneq ($(CONFIG_PACKAGE_luci-app-ushare),)
999        PKG_SELECTED_MODULES+=applications/luci-ushare
1000endif
1001ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle),)
1002       PKG_SELECTED_MODULES+=applications/luci-hd_idle
1003endif
1004ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy),)
1005       PKG_SELECTED_MODULES+=applications/luci-tinyproxy
1006endif
1007ifneq ($(CONFIG_PACKAGE_luci-app-initmgr),)
1008       PKG_SELECTED_MODULES+=applications/luci-initmgr
1009endif
1010ifneq ($(CONFIG_PACKAGE_luci-app-livestats),)
1011       PKG_SELECTED_MODULES+=applications/luci-livestats
1012endif
1013ifneq ($(CONFIG_PACKAGE_luci-app-asterisk),)
1014       PKG_SELECTED_MODULES+=applications/luci-asterisk
1015endif
1016ifneq ($(CONFIG_PACKAGE_luci-app-polipo),)
1017       PKG_SELECTED_MODULES+=applications/luci-polipo
1018endif
1019ifneq ($(CONFIG_PACKAGE_luci-app-openvpn),)
1020       PKG_SELECTED_MODULES+=applications/luci-openvpn
1021endif
1022ifneq ($(CONFIG_PACKAGE_luci-app-p2pblock),)
1023       PKG_SELECTED_MODULES+=applications/luci-p2pblock
1024endif
1025
1026
1027ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi),)
1028    PKG_SELECTED_MODULES+=libs/sgi-cgi
1029endif
1030ifneq ($(CONFIG_PACKAGE_luci-sgi-luci),)
1031    PKG_SELECTED_MODULES+=libs/sgi-luci
1032endif
1033ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci),)
1034    PKG_SELECTED_MODULES+=libs/sgi-webuci
1035endif
1036
1037ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
1038    PKG_SELECTED_MODULES+=themes/base
1039endif
1040ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus),)
1041    PKG_SELECTED_MODULES+=themes/fledermaus
1042endif
1043ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-bno),)
1044    PKG_SELECTED_MODULES+=themes/freifunk-bno
1045endif
1046ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk-hannover),)
1047    PKG_SELECTED_MODULES+=themes/freifunk-hannover
1048endif
1049ifneq ($(CONFIG_PACKAGE_luci-theme-freifunk),)
1050    PKG_SELECTED_MODULES+=themes/freifunk
1051endif
1052ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt),)
1053    PKG_SELECTED_MODULES+=themes/openwrt.org
1054endif
1055ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight),)
1056    PKG_SELECTED_MODULES+=themes/openwrt-light
1057endif
1058
1059ifneq ($(CONFIG_PACKAGE_luci-i18n-german),)
1060    PKG_SELECTED_MODULES+=i18n/german
1061endif
1062ifneq ($(CONFIG_PACKAGE_luci-i18n-english),)
1063    PKG_SELECTED_MODULES+=i18n/english
1064endif
1065ifneq ($(CONFIG_PACKAGE_luci-i18n-french),)
1066    PKG_SELECTED_MODULES+=i18n/french
1067endif
1068ifneq ($(CONFIG_PACKAGE_luci-i18n-italian),)
1069    PKG_SELECTED_MODULES+=i18n/italian
1070endif
1071ifneq ($(CONFIG_PACKAGE_luci-i18n-russian),)
1072    PKG_SELECTED_MODULES+=i18n/russian
1073endif
1074ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian),)
1075    PKG_SELECTED_MODULES+=i18n/portuguese_brazilian
1076endif
1077ifneq ($(CONFIG_PACKAGE_luci-i18n-japanese),)
1078    PKG_SELECTED_MODULES+=i18n/japanese
1079endif
1080ifneq ($(CONFIG_PACKAGE_luci-i18n-greek),)
1081    PKG_SELECTED_MODULES+=i18n/greek
1082endif
1083ifneq ($(CONFIG_PACKAGE_luci-i18n-catalan),)
1084    PKG_SELECTED_MODULES+=i18n/catalan
1085endif
1086ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese),)
1087    PKG_SELECTED_MODULES+=i18n/portuguese
1088endif
1089
1090
1091MAKE_FLAGS += \
1092    MODULES="$(PKG_SELECTED_MODULES)" \
1093    LUA_TARGET="$(LUA_TARGET)" \
1094    LUA_SHLIBS="-llua -lm -ldl -lcrypt" \
1095    CFLAGS="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
1096    LDFLAGS="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
1097    NIXIO_TLS="$(NIXIO_TLS)" OS="Linux"
1098
1099
1100$(eval $(call BuildPackage,luci-core))
1101$(eval $(call BuildPackage,luci-cbi))
1102$(eval $(call BuildPackage,luci-fastindex))
1103$(eval $(call BuildPackage,luci-http))
1104$(eval $(call BuildPackage,luci-httpclient))
1105$(eval $(call BuildPackage,luci-ipkg))
1106$(eval $(call BuildPackage,luci-json))
1107$(eval $(call BuildPackage,luci-luanet))
1108$(eval $(call BuildPackage,luci-lucid))
1109$(eval $(call BuildPackage,luci-nixio))
1110$(eval $(call BuildPackage,luci-px5g))
1111$(eval $(call BuildPackage,luci-uci))
1112$(eval $(call BuildPackage,luci-sys))
1113$(eval $(call BuildPackage,luci-web))
1114$(eval $(call BuildPackage,luci-uvl))
1115
1116$(eval $(call BuildPackage,luci-httpd))
1117
1118$(eval $(call BuildPackage,luci-admin-core))
1119$(eval $(call BuildPackage,luci-admin-mini))
1120$(eval $(call BuildPackage,luci-admin-full))
1121$(eval $(call BuildPackage,luci-admin-rpc))
1122$(eval $(call BuildPackage,luci-mod-freifunk))
1123
1124$(eval $(call BuildPackage,luci-freifunk-community))
1125
1126$(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
1127$(eval $(call BuildPackage,luci-app-siitwizard))
1128$(eval $(call BuildPackage,luci-app-firewall))
1129$(eval $(call BuildPackage,luci-app-olsr))
1130$(eval $(call BuildPackage,luci-app-qos))
1131$(eval $(call BuildPackage,luci-app-splash))
1132$(eval $(call BuildPackage,luci-app-statistics))
1133$(eval $(call BuildPackage,luci-app-upnp))
1134$(eval $(call BuildPackage,luci-app-ntpc))
1135$(eval $(call BuildPackage,luci-app-ddns))
1136$(eval $(call BuildPackage,luci-app-samba))
1137$(eval $(call BuildPackage,luci-app-uvc_streamer))
1138$(eval $(call BuildPackage,luci-app-mmc_over_gpio))
1139$(eval $(call BuildPackage,luci-app-p910nd))
1140$(eval $(call BuildPackage,luci-app-ushare))
1141$(eval $(call BuildPackage,luci-app-hd_idle))
1142$(eval $(call BuildPackage,luci-app-tinyproxy))
1143$(eval $(call BuildPackage,luci-app-initmgr))
1144$(eval $(call BuildPackage,luci-app-livestats))
1145$(eval $(call BuildPackage,luci-app-asterisk))
1146$(eval $(call BuildPackage,luci-app-polipo))
1147$(eval $(call BuildPackage,luci-app-openvpn))
1148$(eval $(call BuildPackage,luci-app-p2pblock))
1149
1150$(eval $(call BuildPackage,luci-sgi-cgi))
1151
1152$(eval $(call BuildPackage,luci-theme-base))
1153$(eval $(call BuildPackage,luci-theme-fledermaus))
1154$(eval $(call BuildPackage,luci-theme-freifunk))
1155$(eval $(call BuildPackage,luci-theme-freifunk-bno))
1156$(eval $(call BuildPackage,luci-theme-freifunk-hannover))
1157$(eval $(call BuildPackage,luci-theme-openwrt))
1158$(eval $(call BuildPackage,luci-theme-openwrtlight))
1159
1160$(eval $(call BuildPackage,luci-i18n-german))
1161$(eval $(call BuildPackage,luci-i18n-english))
1162$(eval $(call BuildPackage,luci-i18n-french))
1163$(eval $(call BuildPackage,luci-i18n-italian))
1164$(eval $(call BuildPackage,luci-i18n-russian))
1165$(eval $(call BuildPackage,luci-i18n-portuguese_brazilian))
1166$(eval $(call BuildPackage,luci-i18n-japanese))
1167$(eval $(call BuildPackage,luci-i18n-greek))
1168$(eval $(call BuildPackage,luci-i18n-catalan))
1169$(eval $(call BuildPackage,luci-i18n-portuguese))
Note: See TracBrowser for help on using the browser.