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

Revision 4008, 25.1 KB (checked in by Cyrus, 4 years ago)

Added computer-readable Freifunk status page

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