1 include $(TOPDIR
)/rules.mk
6 USELOCAL
:=$(shell grep luci ..
/..
/..
/.project
2>/dev
/null
>/dev
/null
&& echo
1)
15 PKG_SOURCE_URL
:=http
://svn.luci.subsignal.org
/luci
/$(PKG_BRANCH
)
20 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
).
tar.gz
23 PKG_SOURCE_VERSION
:=$(PKG_REV
)
26 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
27 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
29 PKG_BUILD_DEPENDS
:=libnotimpl
31 PKG_SELECTED_MODULES
:=
34 include $(INCLUDE_DIR
)/package.mk
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' \
43 tar x
-C
$(PKG_BUILD_DIR
)/
47 define Build
/Configure
52 define Package
/luci
/libtemplate
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
62 define Package
/luci
/i18ntemplate
63 $(call Package
/luci
/libtemplate
)
64 SUBMENU
:=LuCI Translations
68 define Package
/luci
/thtemplate
69 $(call Package
/luci
/libtemplate
)
74 define Package
/luci
/webtemplate
75 $(call Package
/luci
/libtemplate
)
76 SUBMENU
:=LuCI Components
80 define Package
/luci
/install/template
81 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
82 $(CP
) -a
$(PKG_BUILD_DIR
)/$(2)/ipkg
/* $(1)/CONTROL
/ 2>/dev
/null || true
89 define Package
/luci-core
90 $(call Package
/luci
/libtemplate
)
92 TITLE
:=LuCI core libraries
95 define Package
/luci-core
/install
96 $(call Package
/luci
/install/template
,$(1),libs
/core
)
99 define Package
/luci-core
/config
101 prompt
"Build Target"
102 default PACKAGE_luci-core_source
104 config PACKAGE_luci-core_compile
107 config PACKAGE_luci-core_stripped
110 config PACKAGE_luci-core_source
116 ifneq ($(CONFIG_PACKAGE_luci-core_compile
),)
120 ifneq ($(CONFIG_PACKAGE_luci-core_stripped
),)
126 define Package
/luci-cbi
127 $(call Package
/luci
/libtemplate
)
128 DEPENDS
+=+luci-web
+luci-uvl
+luci-uci
129 TITLE
:=Configuration Binding Interface
132 define Package
/luci-cbi
/install
133 $(call Package
/luci
/install/template
,$(1),libs
/cbi
)
137 define Package
/luci-uci
138 $(call Package
/luci
/libtemplate
)
140 TITLE
:=High-Level UCI API
143 define Package
/luci-uci
/install
144 $(call Package
/luci
/install/template
,$(1),libs
/uci
)
148 define Package
/luci-fastindex
149 $(call Package
/luci
/libtemplate
)
150 TITLE
:=Fastindex indexing module
153 define Package
/luci-fastindex
/install
154 $(call Package
/luci
/install/template
,$(1),libs
/fastindex
)
158 define Package
/luci-http
159 $(call Package
/luci
/libtemplate
)
160 TITLE
:=HTTP Protocol implementation
163 define Package
/luci-http
/install
164 $(call Package
/luci
/install/template
,$(1),libs
/http
)
168 define Package
/luci-ipkg
169 $(call Package
/luci
/libtemplate
)
170 TITLE
:=LuCI IPKG
/OPKG call abstraction library
173 define Package
/luci-ipkg
/install
174 $(call Package
/luci
/install/template
,$(1),libs
/ipkg
)
178 define Package
/luci-json
179 $(call Package
/luci
/libtemplate
)
180 TITLE
:=LuCI JSON Library
183 define Package
/luci-json
/install
184 $(call Package
/luci
/install/template
,$(1),libs
/json
)
188 define Package
/luci-sys
189 $(call Package
/luci
/libtemplate
)
190 TITLE
:=LuCI Linux
/POSIX system library
193 define Package
/luci-sys
/install
194 $(call Package
/luci
/install/template
,$(1),libs
/sys
)
198 define Package
/luci-web
199 $(call Package
/luci
/libtemplate
)
200 DEPENDS
+=+luci-http
+luci-sys
+luci-uci
+luci-sgi-cgi
201 TITLE
:=MVC Webframework
204 define Package
/luci-web
/conffiles
208 define Package
/luci-web
/install
209 $(call Package
/luci
/install/template
,$(1),libs
/web
)
213 define Package
/luci-uvl
214 $(call Package
/luci
/libtemplate
)
215 DEPENDS
+=+luci-sys
+luci-uci
+luci-core
216 TITLE
:=UVL
- UCI Validation Layer
219 define Package
/luci-uvl
/install
220 $(call Package
/luci
/install/template
,$(1),libs
/uvl
)
226 define Package
/luci-admin-core
227 $(call Package
/luci
/webtemplate
)
228 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
+luci-i18n-english
229 TITLE
:=Web UI Core Module
232 define Package
/luci-admin-core
/conffiles
233 /etc
/config
/luci_hosts
234 /etc
/config
/luci_ethers
237 define Package
/luci-admin-core
/install
238 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
242 define Package
/luci-admin-mini
243 $(call Package
/luci
/webtemplate
)
244 DEPENDS
+=+luci-admin-core
245 TITLE
:=LuCI Essentials
- stripped down and user-friendly
248 define Package
/luci-admin-mini
/install
249 $(call Package
/luci
/install/template
,$(1),modules
/admin-mini
)
253 define Package
/luci-admin-full
254 $(call Package
/luci
/webtemplate
)
255 DEPENDS
+=+luci-admin-core
+luci-ipkg
256 TITLE
:=LuCI Administration
- full-featured for full control
259 define Package
/luci-admin-full
/install
260 $(call Package
/luci
/install/template
,$(1),modules
/admin-full
)
264 define Package
/luci-admin-rpc
265 $(call Package
/luci
/webtemplate
)
267 TITLE
:=LuCI RPC
- JSON-RPC API
270 define Package
/luci-admin-rpc
/install
271 $(call Package
/luci
/install/template
,$(1),modules
/rpc
)
277 define Package
/luci-app-firewall
278 $(call Package
/luci
/webtemplate
)
279 DEPENDS
+=+luci-admin-core
280 TITLE
:=Firewall and Portforwarding application
283 define Package
/luci-app-firewall
/install
284 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
288 define Package
/luci-app-olsr
289 $(call Package
/luci
/webtemplate
)
290 DEPENDS
+=+luci-admin-full
+olsrd-luci
+olsrd-luci-mod-txtinfo
291 TITLE
:=OLSR configuration and status module
294 define Package
/luci-app-olsr
/install
295 $(call Package
/luci
/install/template
,$(1),applications
/luci-olsr
)
299 define Package
/luci-app-qos
300 $(call Package
/luci
/webtemplate
)
301 DEPENDS
+=+luci-admin-core
+qos-scripts
302 TITLE
:=Quality of Service configuration module
305 define Package
/luci-app-qos
/install
306 $(call Package
/luci
/install/template
,$(1),applications
/luci-qos
)
310 define Package
/luci-app-statistics
311 $(call Package
/luci
/webtemplate
)
312 DEPENDS
+=+luci-admin-full
+collectd
+collectd-mod-rrdtool1
+rrdtool1
313 TITLE
:=LuCI Statistics Application
316 define Package
/luci-app-statistics
/conffiles
317 /etc
/config
/luci_statistics
320 define Package
/luci-app-statistics
/install
321 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
325 define Package
/luci-app-upnp
326 $(call Package
/luci
/webtemplate
)
327 DEPENDS
+=+luci-admin-core
+miniupnpd
328 TITLE
:=Universal Plug
& Play configuration module
331 define Package
/luci-app-upnp
/install
332 $(call Package
/luci
/install/template
,$(1),applications
/luci-upnp
)
336 define Package
/luci-app-ntpc
337 $(call Package
/luci
/webtemplate
)
338 DEPENDS
+=+luci-admin-core
+ntpclient
339 TITLE
:=NTP time synchronisation client configuration module
342 define Package
/luci-app-ntpc
/install
343 $(call Package
/luci
/install/template
,$(1),applications
/luci-ntpc
)
347 define Package
/luci-app-ddns
348 $(call Package
/luci
/webtemplate
)
349 DEPENDS
+=+luci-admin-core
+ddns-scripts
350 TITLE
:=Dynamic DNS configuration module
353 define Package
/luci-app-ddns
/install
354 $(call Package
/luci
/install/template
,$(1),applications
/luci-ddns
)
358 define Package
/luci-app-samba
359 $(call Package
/luci
/webtemplate
)
360 DEPENDS
+=+luci-admin-full
+samba3
361 TITLE
:=Network Shares
- Samba SMB
/CIFS module
364 define Package
/luci-app-samba
/install
365 $(call Package
/luci
/install/template
,$(1),applications
/luci-samba
)
369 define Package
/luci-app-uvc_streamer
370 $(call Package
/luci
/webtemplate
)
371 DEPENDS
+=+luci-admin-full
+uvc-streamer
372 TITLE
:=Webcam Streaming
- UVC-Streamer module
375 define Package
/luci-app-uvc_streamer
/install
376 $(call Package
/luci
/install/template
,$(1),applications
/luci-uvc_streamer
)
380 define Package
/luci-app-p910nd
381 $(call Package
/luci
/webtemplate
)
382 DEPENDS
+=+luci-admin-full
+p910nd
383 TITLE
:=p910nd
- Printer server module
386 define Package
/luci-app-p910nd
/install
387 $(call Package
/luci
/install/template
,$(1),applications
/luci-p910nd
)
391 define Package
/luci-app-ushare
392 $(call Package
/luci
/webtemplate
)
393 DEPENDS
+=+luci-admin-full
+ushare
394 TITLE
:=ushare
- UPnP A
/V
& DLNA Media Server
397 define Package
/luci-app-ushare
/install
398 $(call Package
/luci
/install/template
,$(1),applications
/luci-ushare
)
401 define Package
/luci-app-hd_idle
402 $(call Package
/luci
/webtemplate
)
403 DEPENDS
+=+luci-admin-full
+hd-idle
407 define Package
/luci-app-hd_idle
/install
408 $(call Package
/luci
/install/template
,$(1),applications
/luci-hd_idle
)
411 define Package
/luci-app-tinyproxy
412 $(call Package
/luci
/webtemplate
)
413 DEPENDS
+=+luci-admin-full
+tinyproxy
414 TITLE
:=Tinyproxy
- HTTP
(S
)-Proxy
417 define Package
/luci-app-tinyproxy
/install
418 $(call Package
/luci
/install/template
,$(1),applications
/luci-tinyproxy
)
421 define Package
/luci-app-initmgr
422 $(call Package
/luci
/webtemplate
)
423 DEPENDS
+=+luci-admin-full
424 TITLE
:=LuCI Initscript Management
427 define Package
/luci-app-initmgr
/install
428 $(call Package
/luci
/install/template
,$(1),applications
/luci-initmgr
)
432 ### Server Gateway Interfaces ###
434 define Package
/luci-sgi-cgi
435 $(call Package
/luci
/libtemplate
)
439 define Package
/luci-sgi-cgi
/install
440 $(call Package
/luci
/install/template
,$(1),libs
/sgi-cgi
)
445 #define Package/luci-theme-base
446 # $(call Package/luci/thtemplate)
448 # TITLE:=Common base for all themes
451 #define Package/luci-theme-base/install
452 # $(call Package/luci/install/template,$(1),themes/base)
455 define Package
/luci-theme-openwrt
456 $(call Package
/luci
/thtemplate
)
457 TITLE
:=OpenWrt.org
(default
)
458 # DEPENDS:=+luci-theme-base
461 define Package
/luci-theme-openwrt
/install
462 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
465 define Package
/luci-theme-openwrtlight
466 $(call Package
/luci
/thtemplate
)
467 TITLE
:=OpenWrt.org
- light variant without images
468 # DEPENDS:=+luci-theme-base
471 define Package
/luci-theme-openwrtlight
/install
472 $(call Package
/luci
/install/template
,$(1),themes
/openwrt-light
)
477 define Package
/luci-i18n-german
478 $(call Package
/luci
/i18ntemplate
)
482 define Package
/luci-i18n-german
/install
483 $(call Package
/luci
/install/template
,$(1),i18n
/german
)
487 define Package
/luci-i18n-english
488 $(call Package
/luci
/i18ntemplate
)
492 define Package
/luci-i18n-english
/install
493 $(call Package
/luci
/install/template
,$(1),i18n
/english
)
497 define Package
/luci-i18n-french
498 $(call Package
/luci
/i18ntemplate
)
499 TITLE
:=French
(by Florian Fainelli
)
502 define Package
/luci-i18n-french
/install
503 $(call Package
/luci
/install/template
,$(1),i18n
/french
)
507 define Package
/luci-i18n-russian
508 $(call Package
/luci
/i18ntemplate
)
509 TITLE
:=Russian
(by Skryabin Dmitry
)
512 define Package
/luci-i18n-russian
/install
513 $(call Package
/luci
/install/template
,$(1),i18n
/russian
)
517 define Package
/luci-i18n-portuguese_brazilian
518 $(call Package
/luci
/i18ntemplate
)
519 TITLE
:=Portuguese
(Brazilian
) (by Carlos Cesario
)
522 define Package
/luci-i18n-portuguese_brazilian
/install
523 $(call Package
/luci
/install/template
,$(1),i18n
/portuguese_brazilian
)
529 ifneq ($(CONFIG_PACKAGE_luci-core
),)
530 PKG_SELECTED_MODULES
+=libs
/core
532 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
533 PKG_SELECTED_MODULES
+=libs
/cbi
535 ifneq ($(CONFIG_PACKAGE_luci-fastindex
),)
536 PKG_SELECTED_MODULES
+=libs
/fastindex
538 ifneq ($(CONFIG_PACKAGE_luci-http
),)
539 PKG_SELECTED_MODULES
+=libs
/http
541 ifneq ($(CONFIG_PACKAGE_luci-ipkg
),)
542 PKG_SELECTED_MODULES
+=libs
/ipkg
544 ifneq ($(CONFIG_PACKAGE_luci-json
),)
545 PKG_SELECTED_MODULES
+=libs
/json
547 ifneq ($(CONFIG_PACKAGE_luci-uci
),)
548 PKG_SELECTED_MODULES
+=libs
/uci
550 ifneq ($(CONFIG_PACKAGE_luci-sys
),)
551 PKG_SELECTED_MODULES
+=libs
/sys
553 ifneq ($(CONFIG_PACKAGE_luci-web
),)
554 PKG_SELECTED_MODULES
+=libs
/web
556 ifneq ($(CONFIG_PACKAGE_luci-uvl
),)
557 PKG_SELECTED_MODULES
+=libs
/uvl
560 ifneq ($(CONFIG_PACKAGE_luci-admin-core
),)
561 PKG_SELECTED_MODULES
+=modules
/admin-core
563 ifneq ($(CONFIG_PACKAGE_luci-admin-mini
),)
564 PKG_SELECTED_MODULES
+=modules
/admin-mini
566 ifneq ($(CONFIG_PACKAGE_luci-admin-full
),)
567 PKG_SELECTED_MODULES
+=modules
/admin-full
569 ifneq ($(CONFIG_PACKAGE_luci-admin-rpc
),)
570 PKG_SELECTED_MODULES
+=modules
/rpc
573 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
574 PKG_SELECTED_MODULES
+=applications
/luci-fw
576 ifneq ($(CONFIG_PACKAGE_luci-app-olsr
),)
577 PKG_SELECTED_MODULES
+=applications
/luci-olsr
579 ifneq ($(CONFIG_PACKAGE_luci-app-qos
),)
580 PKG_SELECTED_MODULES
+=applications
/luci-qos
582 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
583 PKG_SELECTED_MODULES
+=applications
/luci-statistics
585 ifneq ($(CONFIG_PACKAGE_luci-app-upnp
),)
586 PKG_SELECTED_MODULES
+=applications
/luci-upnp
588 ifneq ($(CONFIG_PACKAGE_luci-app-ntpc
),)
589 PKG_SELECTED_MODULES
+=applications
/luci-ntpc
591 ifneq ($(CONFIG_PACKAGE_luci-app-ddns
),)
592 PKG_SELECTED_MODULES
+=applications
/luci-ddns
594 ifneq ($(CONFIG_PACKAGE_luci-app-samba
),)
595 PKG_SELECTED_MODULES
+=applications
/luci-samba
597 ifneq ($(CONFIG_PACKAGE_luci-app-uvc_streamer
),)
598 PKG_SELECTED_MODULES
+=applications
/luci-uvc_streamer
600 ifneq ($(CONFIG_PACKAGE_luci-app-p910nd
),)
601 PKG_SELECTED_MODULES
+=applications
/luci-p910nd
603 ifneq ($(CONFIG_PACKAGE_luci-app-ushare
),)
604 PKG_SELECTED_MODULES
+=applications
/luci-ushare
606 ifneq ($(CONFIG_PACKAGE_luci-app-hd_idle
),)
607 PKG_SELECTED_MODULES
+=applications
/luci-hd_idle
609 ifneq ($(CONFIG_PACKAGE_luci-app-tinyproxy
),)
610 PKG_SELECTED_MODULES
+=applications
/luci-tinyproxy
612 ifneq ($(CONFIG_PACKAGE_luci-app-initmgr
),)
613 PKG_SELECTED_MODULES
+=applications
/luci-initmgr
617 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi
),)
618 PKG_SELECTED_MODULES
+=libs
/sgi-cgi
622 #ifneq ($(CONFIG_PACKAGE_luci-theme-base),)
623 # PKG_SELECTED_MODULES+=themes/base
625 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
626 PKG_SELECTED_MODULES
+=themes
/openwrt.org
628 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrtlight
),)
629 PKG_SELECTED_MODULES
+=themes
/openwrt-light
632 ifneq ($(CONFIG_PACKAGE_luci-i18n-german
),)
633 PKG_SELECTED_MODULES
+=i18n
/german
635 ifneq ($(CONFIG_PACKAGE_luci-i18n-english
),)
636 PKG_SELECTED_MODULES
+=i18n
/english
638 ifneq ($(CONFIG_PACKAGE_luci-i18n-french
),)
639 PKG_SELECTED_MODULES
+=i18n
/french
641 ifneq ($(CONFIG_PACKAGE_luci-i18n-russian
),)
642 PKG_SELECTED_MODULES
+=i18n
/russian
644 ifneq ($(CONFIG_PACKAGE_luci-i18n-portuguese_brazilian
),)
645 PKG_SELECTED_MODULES
+=i18n
/portuguese_brazilian
650 MODULES
="$(PKG_SELECTED_MODULES)" \
651 LUA_TARGET
="$(LUA_TARGET)" \
652 LUA_SHLIBS
="-llua -lm" \
653 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
654 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
658 $(eval
$(call BuildPackage
,luci-core
))
659 $(eval
$(call BuildPackage
,luci-cbi
))
660 $(eval
$(call BuildPackage
,luci-fastindex
))
661 $(eval
$(call BuildPackage
,luci-http
))
662 $(eval
$(call BuildPackage
,luci-ipkg
))
663 $(eval
$(call BuildPackage
,luci-json
))
664 $(eval
$(call BuildPackage
,luci-uci
))
665 $(eval
$(call BuildPackage
,luci-sys
))
666 $(eval
$(call BuildPackage
,luci-web
))
667 $(eval
$(call BuildPackage
,luci-uvl
))
669 $(eval
$(call BuildPackage
,luci-admin-core
))
670 $(eval
$(call BuildPackage
,luci-admin-mini
))
671 $(eval
$(call BuildPackage
,luci-admin-full
))
672 $(eval
$(call BuildPackage
,luci-admin-rpc
))
674 $(eval
$(call BuildPackage
,luci-app-firewall
))
675 $(eval
$(call BuildPackage
,luci-app-olsr
))
676 $(eval
$(call BuildPackage
,luci-app-qos
))
677 $(eval
$(call BuildPackage
,luci-app-statistics
))
678 $(eval
$(call BuildPackage
,luci-app-upnp
))
679 $(eval
$(call BuildPackage
,luci-app-ntpc
))
680 $(eval
$(call BuildPackage
,luci-app-ddns
))
681 $(eval
$(call BuildPackage
,luci-app-samba
))
682 $(eval
$(call BuildPackage
,luci-app-uvc_streamer
))
683 $(eval
$(call BuildPackage
,luci-app-p910nd
))
684 $(eval
$(call BuildPackage
,luci-app-ushare
))
685 $(eval
$(call BuildPackage
,luci-app-hd_idle
))
686 $(eval
$(call BuildPackage
,luci-app-tinyproxy
))
687 $(eval
$(call BuildPackage
,luci-app-initmgr
))
689 $(eval
$(call BuildPackage
,luci-sgi-cgi
))
691 #$(eval $(call BuildPackage,luci-theme-base))
692 $(eval
$(call BuildPackage
,luci-theme-openwrt
))
693 $(eval
$(call BuildPackage
,luci-theme-openwrtlight
))
695 $(eval
$(call BuildPackage
,luci-i18n-german
))
696 $(eval
$(call BuildPackage
,luci-i18n-english
))
697 $(eval
$(call BuildPackage
,luci-i18n-french
))
698 $(eval
$(call BuildPackage
,luci-i18n-russian
))
699 $(eval
$(call BuildPackage
,luci-i18n-portuguese_brazilian
))