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

Revision 5198, 32.1 KB (checked in by jow, 4 years ago)

contrib/package: remove dependency on remote-update in community package, this prevented building on x86 and others

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