1 include $(TOPDIR
)/rules.mk
10 PKG_VERSION
:=$(shell $(LUCI_TOPDIR
)/build
/mkrevision.sh
2>/dev
/null || echo unknown
)
12 PKG_BUILD_DEPENDS
:=$(if
$(STAGING_DIR_ROOT
),lua
/host
)
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
14 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
19 LUCI_SELECTED_MODULES
:=
21 ifeq ($(BOARD
),brcm-2.4
)
22 MAKE_FLAGS
+= CRAP
="1"
27 define Package
/luci
/install/template
28 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
29 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/ipkg
/* $(1)/CONTROL
/ 2>/dev
/null || true
34 define Package
/luci-lib-core
37 TITLE
:=LuCI
- Lua Configuration Interface
38 URL
:=http
://luci.subsignal.org
/
39 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
41 DEPENDS
:=+lua
+libuci-lua
+libubus-lua
42 TITLE
:=LuCI core libraries
45 define Package
/luci-lib-core
/install
46 $(call Package
/luci
/install/template
,$(1),libs
/core
)
47 $(PKG_BUILD_DIR
)/build
/mkversion.sh
$(1)/usr
/lib
/lua
/luci
/version.lua \
54 define Package
/luci-lib-core
/config
57 default PACKAGE_luci-lib-core_source
59 config PACKAGE_luci-lib-core_compile
62 config PACKAGE_luci-lib-core_stripped
65 config PACKAGE_luci-lib-core_srcdiet
66 bool
"Compressed Source"
68 config PACKAGE_luci-lib-core_source
74 ifneq ($(CONFIG_PACKAGE_luci-lib-core_compile
),)
78 ifneq ($(CONFIG_PACKAGE_luci-lib-core_stripped
),)
82 ifneq ($(CONFIG_PACKAGE_luci-lib-core_srcdiet
),)
86 ifneq ($(CONFIG_PACKAGE_luci-lib-core
),)
87 LUCI_SELECTED_MODULES
+=libs
/core
90 LUCI_BUILD_PACKAGES
+= luci-lib-core
95 define Package
/luci-lib-
$(1)
98 TITLE
:=LuCI
- Lua Configuration Interface
99 URL
:=http
://luci.subsignal.org
/
100 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
101 SUBMENU
:=8. Libraries
102 TITLE
:=$(if
$(2),$(2),LuCI
$(1) library
)
103 $(if
$(3),DEPENDS
:=+luci-lib-core
$(3))
106 define Package
/luci-lib-
$(1)/install
107 $(call Package
/luci
/install/template
,$$(1),libs
/$(1))
108 $(call Package
/luci-lib-
$(1)/extra-install
)
111 ifneq ($(CONFIG_PACKAGE_luci-lib-
$(1)),)
112 LUCI_SELECTED_MODULES
+=libs
/$(1)
115 LUCI_BUILD_PACKAGES
+= luci-lib-
$(1)
118 define Package
/luci-lib-web
/conffiles
122 define Package
/luci-lib-nixio
/config
124 prompt
"TLS Provider"
125 default PACKAGE_luci-lib-nixio_notls
127 config PACKAGE_luci-lib-nixio_notls
130 config PACKAGE_luci-lib-nixio_axtls
131 bool
"Builtin (axTLS)"
133 config PACKAGE_luci-lib-nixio_cyassl
135 select PACKAGE_libcyassl
137 config PACKAGE_luci-lib-nixio_openssl
139 select PACKAGE_libopenssl
146 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_axtls
),)
150 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_openssl
),)
154 ifneq ($(CONFIG_PACKAGE_luci-lib-nixio_cyassl
),)
156 LUCI_CFLAGS
+=-I
$(STAGING_DIR
)/usr
/include/cyassl
160 $(eval
$(call library
,fastindex
,Fastindex indexing module
,+PACKAGE_luci-lib-fastindex
:liblua
))
161 $(eval
$(call library
,httpclient
,HTTP
(S
) client library
,+luci-lib-web
+luci-lib-nixio
))
162 $(eval
$(call library
,ipkg
,LuCI IPKG
/OPKG call abstraction library
))
163 $(eval
$(call library
,json
,LuCI JSON library
))
164 $(eval
$(call library
,lucid
,LuCId Full-Stack Webserver
,+luci-lib-nixio
+luci-lib-web
+luci-lib-px5g
))
165 $(eval
$(call library
,lucid-http
,LuCId HTTP Backend
,+luci-lib-lucid
))
166 $(eval
$(call library
,lucid-rpc
,LuCId RPC Backend
,+luci-lib-lucid
))
167 $(eval
$(call library
,nixio
,NIXIO POSIX library
,+PACKAGE_luci-lib-nixio_openssl
:libopenssl
+PACKAGE_luci-lib-nixio_cyassl
:libcyassl
))
168 $(eval
$(call library
,px5g
,RSA
/X
.509 Key Generator
(required for LuCId SSL support
),+luci-lib-nixio
))
169 $(eval
$(call library
,sys
,LuCI Linux
/POSIX system library
))
170 $(eval
$(call library
,web
,MVC Webframework
,+luci-lib-sys
+luci-lib-nixio
+luci-lib-core
+luci-sgi-cgi
))
171 $(eval
$(call library
,luaneightbl
,neightbl
- Lua lib for IPv6 neighbors
,+luci-lib-core
))
176 define Package
/luci-proto-
$(1)
179 TITLE
:=LuCI
- Lua Configuration Interface
180 URL
:=http
://luci.subsignal.org
/
181 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
182 SUBMENU
:=6. Protocols
183 TITLE
:=$(if
$(2),$(2),LuCI
$(1) protocol support
)
187 define Package
/luci-proto-
$(1)/install
188 $(call Package
/luci
/install/template
,$$(1),protocols
/$(1))
191 ifneq ($(CONFIG_PACKAGE_luci-proto-
$(1)),)
192 LUCI_SELECTED_MODULES
+=protocols
/$(1)
195 LUCI_BUILD_PACKAGES
+= luci-proto-
$(1)
198 $(eval
$(call protocol
,core
,Support for static
/dhcp
/none
))
199 $(eval
$(call protocol
,ppp
,Support for PPP
/PPPoE
/PPPoA
/PPtP
))
200 $(eval
$(call protocol
,ipv6
,Support for DHCPv6
/6in4
/6to4
/6rd
/DS-Lite
))
201 $(eval
$(call protocol
,3g
,Support for
3G
,+PACKAGE_luci-proto-3g
:comgt
))
202 $(eval
$(call protocol
,relay
,Support for relayd pseudo bridges
,+PACKAGE_luci-proto-relay
:relayd
))
205 ### Community Packages ###
206 define Package
/luci-mod-freifunk-community
209 TITLE
:=LuCI
- Lua Configuration Interface
210 URL
:=http
://luci.subsignal.org
/
211 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
213 TITLE
:=Freifunk Community Meta-Package
215 +luci-lib-web
+luci-app-splash
+luci-i18n-german \
216 +PACKAGE_luci-mod-freifunk-community
:olsrd
+PACKAGE_luci-mod-freifunk-community
:olsrd-mod-dyn-gw-plain \
217 +PACKAGE_luci-mod-freifunk-community
:olsrd-mod-txtinfo
+PACKAGE_luci-mod-freifunk-community
:olsrd-mod-nameservice \
218 +PACKAGE_luci-mod-freifunk-community
:olsrd-mod-watchdog
+PACKAGE_luci-mod-freifunk-community
:kmod-tun \
219 +PACKAGE_luci-mod-freifunk-community
:ip
+PACKAGE_luci-mod-freifunk-community
:freifunk-watchdog
+luci-app-olsr \
220 +luci-app-olsr-services
+freifunk-gwcheck
+freifunk-mapupdate
223 define Package
/luci-mod-freifunk-community
/install
224 $(call Package
/luci
/install/template
,$(1),applications
/freifunk-community
)
227 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk-community
),)
228 LUCI_SELECTED_MODULES
+=applications
/freifunk-community
231 LUCI_BUILD_PACKAGES
+= luci-mod-freifunk-community
236 define Package
/luci-mod-
$(1)
239 TITLE
:=LuCI
- Lua Configuration Interface
240 URL
:=http
://luci.subsignal.org
/
241 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
243 TITLE
:=$(if
$(2),$(2),LuCI
$(1) module
)
244 $(if
$(3),DEPENDS
+=$(3))
247 define Package
/luci-mod-
$(1)/install
248 $(call Package
/luci
/install/template
,$$(1),modules
/$(1))
249 $(call Package
/luci-mod-
$(1)/extra-install
)
252 ifneq ($(CONFIG_PACKAGE_luci-mod-
$(1)),)
253 LUCI_SELECTED_MODULES
+=modules
/$(1)
256 LUCI_BUILD_PACKAGES
+= luci-mod-
$(1)
260 define Package
/luci-mod-admin-core
/extra-install
261 touch
$(1)/etc
/init.d
/luci_fixtime || true
264 $(eval
$(call module
,admin-core
,Web UI Core module
,+luci-lib-web
+luci-proto-core
+luci-i18n-english
))
265 $(eval
$(call module
,admin-mini
,LuCI Essentials
- stripped down and user-friendly
,+luci-mod-admin-core @BROKEN
))
266 $(eval
$(call module
,admin-full
,LuCI Administration
- full-featured for full control
,+luci-mod-admin-core
+luci-lib-ipkg
))
267 $(eval
$(call module
,failsafe
,LuCI Fail-Safe
- Fail-Safe sysupgrade module
,+luci-mod-admin-core
))
268 $(eval
$(call module
,rpc
,LuCI RPC
- JSON-RPC API
,+luci-lib-json
))
269 $(eval
$(call module
,freifunk
,LuCI Freifunk module
,+luci-mod-admin-full
+luci-lib-json
+PACKAGE_luci-mod-freifunk
:freifunk-firewall
+freifunk-common
))
270 $(eval
$(call module
,niu
,NIU
- Next Generation Interface
,+luci-mod-admin-core @BROKEN
))
275 define Package
/luci-app-
$(1)
278 TITLE
:=LuCI
- Lua Configuration Interface
279 URL
:=http
://luci.subsignal.org
/
280 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
281 SUBMENU
:=3. Applications
282 TITLE
:=$(if
$(2),$(2),LuCI
$(1) application
)
286 define Package
/luci-app-
$(1)/install
287 $(call Package
/luci
/install/template
,$$(1),applications
/luci-
$(1))
290 ifneq ($(CONFIG_PACKAGE_luci-app-
$(1)),)
291 LUCI_SELECTED_MODULES
+=applications
/luci-
$(1)
294 LUCI_BUILD_PACKAGES
+= luci-app-
$(1)
297 define Package
/luci-app-splash
/conffiles
298 /etc
/config
/luci_splash
299 /usr
/lib
/luci-splash
/splashtext.html
302 define Package
/luci-app-statistics
/conffiles
303 /etc
/config
/luci_statistics
306 define Package
/luci-app-diag-devinfo
/conffiles
307 /etc
/config
/luci_devinfo
311 $(eval
$(call application
,siitwizard
,SIIT IPv4-over-IPv6 configuration wizard
,\
312 +PACKAGE_luci-app-siitwizard
:kmod-siit
))
314 $(eval
$(call application
,firewall
,Firewall and Portforwarding application
,\
315 +PACKAGE_luci-app-firewall
:firewall
))
317 $(eval
$(call application
,freifunk-policyrouting
,Policy routing for mesh traffic
,\
318 +PACKAGE_luci-app-freifunk-policyrouting
:freifunk-policyrouting
))
320 $(eval
$(call application
,freifunk-widgets
,Widgets for the Freifunk index page
,\
321 +PACKAGE_luci-app-freifunk-widgets
:luci-mod-freifunk
))
323 $(eval
$(call application
,meshwizard
, Shellscript based wizard to setup mesh networks
,\
324 +PACKAGE_luci-app-freifunk-meshwizard
:meshwizard
))
326 $(eval
$(call application
,olsr
,OLSR configuration and status module
,\
327 +olsrd
+olsrd-mod-jsoninfo
))
329 $(eval
$(call application
,olsr-viz
,OLSR Visualisation
,\
330 luci-app-olsr
+olsrd-mod-txtinfo
))
332 $(eval
$(call application
,freifunk-diagnostics
,Tools for network diagnosis like traceroute and ping
))
334 $(eval
$(call application
,olsr-services
,Show services announced with the nameservice plugin
,\
335 luci-app-olsr
+olsrd-mod-nameservice
))
337 $(eval
$(call application
,qos
,Quality of Service configuration module
,\
338 +PACKAGE_luci-app-qos
:qos-scripts
))
340 $(eval
$(call application
,splash
,Freifunk DHCP-Splash application
,\
341 +luci-lib-nixio
+tc
+kmod-sched
+iptables-mod-nat-extra
+iptables-mod-ipopt
))
343 $(eval
$(call application
,statistics
,LuCI Statistics Application
,\
344 +PACKAGE_luci-app-statistics
:collectd \
345 +PACKAGE_luci-app-statistics
:rrdtool1 \
346 +PACKAGE_luci-app-statistics
:collectd-mod-rrdtool \
347 +PACKAGE_luci-app-statistics
:collectd-mod-iwinfo \
348 +PACKAGE_luci-app-statistics
:collectd-mod-interface \
349 +PACKAGE_luci-app-statistics
:collectd-mod-load
)) \
350 +PACKAGE_luci-app-statistics
:collectd-mod-network
))
353 $(eval
$(call application
,diag-core
,LuCI Diagnostics Tools
(Core
)))
355 $(eval
$(call application
,diag-devinfo
,LuCI Diagnostics Tools
(Device Info
),\
356 +luci-app-diag-core \
357 +PACKAGE_luci-app-diag-devinfo
:smap \
358 +PACKAGE_luci-app-diag-devinfo
:netdiscover \
359 +PACKAGE_luci-app-diag-devinfo
:mac-to-devinfo \
360 +PACKAGE_luci-app-diag-devinfo
:httping \
361 +PACKAGE_luci-app-diag-devinfo
:smap-to-devinfo \
362 +PACKAGE_luci-app-diag-devinfo
:netdiscover-to-devinfo
))
364 $(eval
$(call application
,voice-core
,LuCI Voice Software
(Core
)))
366 $(eval
$(call application
,voice-diag
,LuCI Voice Software
(Diagnostics
),\
367 luci-app-diag-devinfo
))
369 $(eval
$(call application
,commands
,LuCI Shell Command Module
))
371 $(eval
$(call application
,upnp
,Universal Plug
& Play configuration module
,\
372 +PACKAGE_luci-app-upnp
:miniupnpd
))
374 $(eval
$(call application
,ntpc
,NTP time synchronisation configuration module
,\
375 +PACKAGE_luci-app-ntpc
:ntpclient
))
377 $(eval
$(call application
,ddns
,Dynamic DNS configuration module
,\
378 +PACKAGE_luci-app-ddns
:ddns-scripts
))
380 $(eval
$(call application
,samba
,Network Shares
- Samba SMB
/CIFS module
,\
381 +PACKAGE_luci-app-samba
:samba36-server
))
383 $(eval
$(call application
,mmc-over-gpio
,MMC-over-GPIO configuration module
,\
384 +PACKAGE_luci-app-mmc-over-gpio
:kmod-mmc-over-gpio
))
386 $(eval
$(call application
,p910nd
,p910nd
- Printer server module
,\
387 +PACKAGE_luci-app-p910nd
:p910nd
))
389 $(eval
$(call application
,ushare
,uShare
- UPnP A
/V
& DLNA Media Server
,\
390 +PACKAGE_luci-app-ushare
:ushare
))
392 $(eval
$(call application
,hd-idle
,Hard Disk Idle Spin-Down module
,\
393 +PACKAGE_luci-app-hd-idle
:hd-idle
))
395 $(eval
$(call application
,tinyproxy
,Tinyproxy
- HTTP
(S
)-Proxy configuration
,\
396 +PACKAGE_luci-app-tinyproxy
:tinyproxy
))
398 $(eval
$(call application
,polipo
,LuCI Support for the Polipo Proxy
,\
399 +PACKAGE_luci-app-polipo
:polipo
))
401 $(eval
$(call application
,openvpn
,LuCI Support for OpenVPN
,\
402 +PACKAGE_luci-app-openvpn
:openvpn @BROKEN
))
404 $(eval
$(call application
,p2pblock
,LuCI Support for the Freifunk P2P-Block addon
,\
405 luci-app-firewall
+PACKAGE_luci-app-p2pblock
:freifunk-p2pblock
))
407 $(eval
$(call application
,multiwan
,LuCI Support for the OpenWrt MultiWAN agent
,\
408 luci-app-firewall
+PACKAGE_luci-app-multiwan
:multiwan
))
410 $(eval
$(call application
,wol
,LuCI Support for Wake-on-LAN
,\
411 +PACKAGE_luci-app-wol
:etherwake
))
413 $(eval
$(call application
,vnstat
,LuCI Support for VnStat
,\
414 +PACKAGE_luci-app-vnstat
:vnstat \
415 +PACKAGE_luci-app-vnstat
:vnstati
))
417 $(eval
$(call application
,radvd
,LuCI Support for Radvd
,\
418 +PACKAGE_luci-app-radvd
:radvd
))
420 $(eval
$(call application
,ahcp
,LuCI Support for AHCPd
,\
421 +PACKAGE_luci-app-ahcp
:ahcpd
))
423 $(eval
$(call application
,wshaper
,LuCI Support for wshaper
,\
424 +PACKAGE_luci-app-wshaper
:wshaper
))
426 $(eval
$(call application
,pbx
,LuCI PBX Administration
,\
427 +PACKAGE_luci-app-pbx
:asterisk18 \
428 +PACKAGE_luci-app-pbx
:asterisk18-app-authenticate \
429 +PACKAGE_luci-app-pbx
:asterisk18-app-disa \
430 +PACKAGE_luci-app-pbx
:asterisk18-app-setcallerid \
431 +PACKAGE_luci-app-pbx
:asterisk18-app-system \
432 +PACKAGE_luci-app-pbx
:asterisk18-chan-gtalk \
433 +PACKAGE_luci-app-pbx
:asterisk18-codec-a-mu \
434 +PACKAGE_luci-app-pbx
:asterisk18-codec-alaw \
435 +PACKAGE_luci-app-pbx
:asterisk18-func-cut \
436 +PACKAGE_luci-app-pbx
:asterisk18-res-clioriginate \
437 +PACKAGE_luci-app-pbx
:asterisk18-func-channel \
438 +PACKAGE_luci-app-pbx
:asterisk18-chan-local \
439 +PACKAGE_luci-app-pbx
:asterisk18-app-record \
440 +PACKAGE_luci-app-pbx
:asterisk18-app-senddtmf \
441 +PACKAGE_luci-app-pbx
:asterisk18-res-crypto
))
443 $(eval
$(call application
,pbx-voicemail
,LuCI PBX Administration Voicemail Support
,\
444 luci-app-pbx
+PACKAGE_luci-app-pbx-voicemail
:msmtp \
445 +PACKAGE_luci-app-pbx-voicemail
:coreutils-base64
))
447 $(eval
$(call application
,ltqtapi
,Lantiq voip
))
449 $(eval
$(call application
,minidlna
,LuCI Support for miniDLNA
,\
450 +PACKAGE_luci-app-minidlna
:minidlna
))
452 $(eval
$(call application
,transmission
,LuCI Support for Transmission
,\
453 +PACKAGE_luci-app-transmission
:transmission-daemon
))
455 $(eval
$(call application
,watchcat
,LuCI Support for Watchcat
,\
456 +PACKAGE_luci-app-watchcat
:watchcat
))
458 ### Server Gateway Interfaces ###
460 define Package
/luci-sgi-
$(1)
463 TITLE
:=LuCI
- Lua Configuration Interface
464 URL
:=http
://luci.subsignal.org
/
465 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
466 SUBMENU
:=7. Server Interfaces
467 TITLE
:=$(if
$(2),$(2),LuCI
$(1) server gateway interface
)
471 define Package
/luci-sgi-
$(1)/install
472 $(call Package
/luci
/install/template
,$$(1),libs
/sgi-
$(1))
475 ifneq ($(CONFIG_PACKAGE_luci-sgi-
$(1)),)
476 LUCI_SELECTED_MODULES
+=libs
/sgi-
$(1)
479 LUCI_BUILD_PACKAGES
+= luci-sgi-
$(1)
482 $(eval
$(call sgi
,cgi
,CGI Gateway behind existing Webserver
))
483 $(eval
$(call sgi
,uhttpd
,Binding for the uHTTPd server
,+uhttpd
+uhttpd-mod-lua
))
488 define Package
/luci-theme-
$(1)
491 TITLE
:=LuCI
- Lua Configuration Interface
492 URL
:=http
://luci.subsignal.org
/
494 TITLE
:=$(if
$(2),$(2),LuCI
$(1) theme
)
495 MAINTAINER
:=$(if
$(3),$(3),LuCI Development Team
<luci@lists.subsignal.org
>)
496 DEPENDS
:=$(if
$(filter-out base
,$(1)),+luci-theme-base
) $(4)
497 $(if
$(5),DEFAULT
:=PACKAGE_luci-lib-core
)
500 define Package
/luci-theme-
$(1)/install
501 $(call Package
/luci
/install/template
,$$(1),themes
/$(1))
504 ifneq ($(CONFIG_PACKAGE_luci-theme-
$(1)),)
505 LUCI_SELECTED_MODULES
+=themes
/$(1)
508 LUCI_BUILD_PACKAGES
+= luci-theme-
$(1)
511 $(eval
$(call theme
,base
,Common base for
all themes
))
512 $(eval
$(call theme
,openwrt
,OpenWrt.org
))
513 $(eval
$(call theme
,bootstrap
,Bootstrap Theme
(default
),,,1))
515 $(eval
$(call theme
,freifunk-bno
,Freifunk Berlin Nordost Theme
,\
516 Stefan Pirwitz
<stefan-at-freifunk-bno-dot-de
>))
518 $(eval
$(call theme
,freifunk-generic
,Freifunk Generic Theme
,\
519 Manuel Munz
<freifunk-at-somakoma-dot-de
>))
523 define Package
/luci-i18n-
$(1)
526 TITLE
:=LuCI
- Lua Configuration Interface
527 URL
:=http
://luci.subsignal.org
/
528 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
529 SUBMENU
:=5. Translations
530 TITLE
:=$(if
$(2),$(2),$(1))
533 define Package
/luci-i18n-
$(1)/install
534 $(call Package
/luci
/install/template
,$$(1),i18n
/$(1))
537 ifneq ($(CONFIG_PACKAGE_luci-i18n-
$(1)),)
538 LUCI_SELECTED_MODULES
+=i18n
/$(1)
541 LUCI_BUILD_PACKAGES
+= luci-i18n-
$(1)
544 $(eval
$(call translation
,german
,German
))
545 $(eval
$(call translation
,english
,English
))
546 $(eval
$(call translation
,french
,French
(by Florian Fainelli
)))
547 $(eval
$(call translation
,italian
,Italian
(by Matteo Croce
)))
548 $(eval
$(call translation
,russian
,Russian
(by Skryabin Dmitry
)))
549 $(eval
$(call translation
,portuguese-brazilian
,Portuguese
(Brazilian
) (by Carlos Cesario
)))
550 $(eval
$(call translation
,chinese
,Chinese
(by Chinese Translators
)))
551 $(eval
$(call translation
,japanese
,Japanese
(by Tsukasa Hamano
)))
552 $(eval
$(call translation
,greek
,Greek
(by Vasilis Tsiligiannis
)))
553 $(eval
$(call translation
,catalan
,Catalan
(by Eduard Duran
)))
554 $(eval
$(call translation
,portuguese
,Portuguese
(by Jose Monteiro
)))
555 $(eval
$(call translation
,spanish
,Spanish
(by Guillermo Javier Nardoni
)))
556 $(eval
$(call translation
,vietnamese
,Vietnamese
(by Hong Phuc Dang
)))
557 $(eval
$(call translation
,malay
,Malay
(by Teow Wai Chet
)))
558 $(eval
$(call translation
,norwegian
,Norwegian
(by Lars Hardy
)))
559 $(eval
$(call translation
,hebrew
,Hebrew
))
560 $(eval
$(call translation
,romanian
,Romanian
))
561 $(eval
$(call translation
,ukrainian
,Ukrainian
))
562 $(eval
$(call translation
,hungarian
,Hungarian
))
563 $(eval
$(call translation
,polish
,Polish
))
568 define Package
/luci
$(if
$(1),-$(1))
571 TITLE
:=LuCI
- Lua Configuration Interface
572 URL
:=http
://luci.subsignal.org
/
573 MAINTAINER
:=LuCI Development Team
<luci@lists.subsignal.org
>
574 SUBMENU
:=1. Collections
575 TITLE
:=$(if
$(2),$(2),LuCI
$(if
$(1),$(1),general
) collection
)
576 $(if
$(3),DEPENDS
:=$(3))
579 define Package
/luci
$(if
$(1),-$(1))/install
583 LUCI_BUILD_PACKAGES
+= luci
$(if
$(1),-$(1))
586 $(eval
$(call collection
,,\
587 Standard OpenWrt set including full admin with ppp support and the \
588 default OpenWrt theme
,\
589 +uhttpd
+uhttpd-mod-ubus
+luci-mod-admin-full
+luci-theme-bootstrap \
590 +luci-app-firewall
+luci-proto-core
+luci-proto-ppp
+libiwinfo-lua
))
592 $(eval
$(call collection
,ssl
,\
593 Standard OpenWrt set with HTTPS support
,\
594 +luci
+libustream-cyassl
+px5g
))
596 $(eval
$(call collection
,light
,\
597 Minimum package set using only admin mini and the standard theme
,\
598 +uhttpd
+luci-mod-admin-mini
+luci-theme-openwrt @BROKEN
))
602 PKG_CONFIG_DEPENDS
=$(patsubst %,CONFIG_PACKAGE_
%,$(LUCI_BUILD_PACKAGES
))
604 include $(INCLUDE_DIR
)/package.mk
607 @if
[ ! -x
$(LUCI_TOPDIR
)/build
/mkrevision.sh
]; then \
608 echo
"*** Repository layout changed!" >&2; \
609 echo
"*** Please change the LuCI url in feeds.conf to http://svn.luci.subsignal.org/luci/trunk and reinstall the feed with" >&2; \
610 echo
"*** ./scripts/feeds update luci; ./scripts/feeds install -a -p luci" >&2; \
613 mkdir
-p
$(PKG_BUILD_DIR
)
614 $(TAR
) c
-C
$(LUCI_TOPDIR
) . \
615 --exclude
=.
pc --exclude
=.svn
--exclude
=.git \
616 --exclude
='boa-0*' --exclude
='*.o' --exclude
='*.so' \
618 tar x
-C
$(PKG_BUILD_DIR
)/
621 define Build
/Configure
625 MODULES
="$(LUCI_SELECTED_MODULES)" \
626 LUA_TARGET
="$(LUA_TARGET)" \
627 LUA_SHLIBS
="-llua -lm -ldl -lcrypt" \
628 CFLAGS
="$(TARGET_CFLAGS) $(LUCI_CFLAGS) -I$(STAGING_DIR)/usr/include" \
629 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
630 NIXIO_TLS
="$(NIXIO_TLS)" OS
="Linux"
633 $(foreach b
,$(LUCI_BUILD_PACKAGES
),$(eval
$(call BuildPackage
,$(b
))))