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

Revision 5246, 32.4 KB (checked in by jow, 4 years ago)

contrib: add iwinfo to the package feed

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