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

Revision 4833, 30.2 KB (checked in by Cyrus, 4 years ago)

Mark Broadcom 2.4 as crap, to allow conditional CFLAGS

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