1 include $(TOPDIR
)/rules.mk
6 USELOCAL
:=$(shell grep luci ..
/..
/..
/.project
2>/dev
/null
>/dev
/null
&& echo
1)
15 PKG_SOURCE_URL
:=https
://dev.leipzig.freifunk.net
/svn
/ff-luci
/$(PKG_BRANCH
)
17 PKG_REV
:=$(shell LC_ALL
=C svn
info ${PKG_SOURCE_URL} | sed
-ne
's/^Last Changed Rev: //p')
18 PKG_VERSION
:=0.7+svn
$(PKG_REV
)
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
/fftemplate
63 $(call Package
/luci
/libtemplate
)
64 SUBMENU
:=LuCI
- Freifunk Support
65 DEPENDS
:=+luci-mod-freifunk
68 define Package
/luci
/httpdtemplate
69 $(call Package
/luci
/libtemplate
)
70 SUBMENU
:=LuCI
- Non-Forking HTTP-Daemon
(EXPERIMENTAL
)
74 define Package
/luci
/i18ntemplate
75 $(call Package
/luci
/libtemplate
)
76 SUBMENU
:=LuCI
- Translations
80 define Package
/luci
/thtemplate
81 $(call Package
/luci
/libtemplate
)
82 SUBMENU
:=LuCI
- Themes
86 define Package
/luci
/webtemplate
87 $(call Package
/luci
/libtemplate
)
88 SUBMENU
:=LuCI
- Webinterface Components
92 define 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
101 define Package
/luci-core
102 $(call Package
/luci
/libtemplate
)
103 DEPENDS
:=+lua
+luaposix
104 TITLE
:=LuCI core libraries
107 define Package
/luci-core
/install
108 $(call Package
/luci
/install/template
,$(1),libs
/core
)
111 define Package
/luci-core
/config
113 prompt
"Build Target"
114 default PACKAGE_luci-core_compile
116 config PACKAGE_luci-core_compile
119 config PACKAGE_luci-core_source
125 ifneq ($(CONFIG_PACKAGE_luci-core_compile
),)
131 define Package
/luci-cbi
132 $(call Package
/luci
/libtemplate
)
134 TITLE
:=Configuration Binding Interface
137 define Package
/luci-cbi
/install
138 $(call Package
/luci
/install/template
,$(1),libs
/cbi
)
142 define Package
/luci-uci
143 $(call Package
/luci
/libtemplate
)
145 TITLE
:=High-Level UCI API
148 define Package
/luci-uci
/install
149 $(call Package
/luci
/install/template
,$(1),libs
/uci
)
153 define Package
/luci-fastindex
154 $(call Package
/luci
/libtemplate
)
155 TITLE
:=Fastindex indexing module
158 define Package
/luci-fastindex
/install
159 $(call Package
/luci
/install/template
,$(1),libs
/fastindex
)
163 define Package
/luci-http
164 $(call Package
/luci
/libtemplate
)
165 TITLE
:=HTTP Protocol implementation
168 define Package
/luci-http
/install
169 $(call Package
/luci
/install/template
,$(1),libs
/http
)
173 define Package
/luci-web
174 $(call Package
/luci
/libtemplate
)
175 DEPENDS
+=+luci-http
+luci-addons
+luci-uci
+luci-sgi-cgi
176 TITLE
:=MVC Webframework
179 define Package
/luci-web
/conffiles
183 define Package
/luci-web
/install
184 $(call Package
/luci
/install/template
,$(1),libs
/web
)
191 define Package
/luci-httpd
192 $(call Package
/luci
/httpdtemplate
)
193 DEPENDS
:=+luci-http
+luasocket
197 define Package
/luci-httpd
/install
198 $(call Package
/luci
/install/template
,$(1),libs
/httpd
)
203 ### Community Packages ###
205 define Package
/luci-ff-halle
206 $(call Package
/luci
/fftemplate
)
208 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
209 +luci-app-ffwizard-leipzig \
210 +luci-theme-fledermaus \
212 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
214 TITLE
:=Freifunk Halle Community Meta-Package
217 define Package
/luci-ff-halle
/install
218 $(call Package
/luci
/install/template
,$(1),applications
/community-halle
)
222 define Package
/luci-ff-leipzig
223 $(call Package
/luci
/fftemplate
)
225 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
226 +luci-app-ffwizard-leipzig \
227 +luci-theme-fledermaus \
229 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
231 TITLE
:=Freifunk Leipzig Community Meta-Package
234 define Package
/luci-ff-leipzig
/install
235 $(call Package
/luci
/install/template
,$(1),applications
/community-leipzig
)
239 define Package
/luci-ff-hannover
240 $(call Package
/luci
/fftemplate
)
242 +luci-sgi-cgi
+luci-app-splash
+luci-app-olsr \
243 +luci-theme-fledermaus \
245 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
246 TITLE
:=Freifunk Hannover Community Meta-Package
247 URL
:=http
://www.freifunk-hannover.de
/
248 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
251 define Package
/luci-ff-hannover
/install
252 $(call Package
/luci
/install/template
,$(1),applications
/community-hannover
)
258 define Package
/luci-mod-admin-core
259 $(call Package
/luci
/webtemplate
)
260 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
+luci-i18n-english
261 TITLE
:=Administration module
264 define Package
/luci-mod-admin-core
/install
265 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
269 define Package
/luci-mod-freifunk
270 $(call Package
/luci
/fftemplate
)
271 DEPENDS
:=+luci-mod-admin-core
272 TITLE
:=LuCI Freifunk module
275 define Package
/luci-mod-freifunk
/conffiles
279 define Package
/luci-mod-freifunk
/install
280 $(call Package
/luci
/install/template
,$(1),modules
/freifunk
)
287 define Package
/luci-app-ffwizard-leipzig
288 $(call Package
/luci
/fftemplate
)
289 DEPENDS
+=+luci-app-firewall
290 TITLE
:=Freifunk Leipzig configuration wizard
293 define Package
/luci-app-ffwizard-leipzig
/install
294 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
298 define Package
/luci-app-firewall
299 $(call Package
/luci
/webtemplate
)
300 DEPENDS
+=+luci-mod-admin-core
301 TITLE
:=Firewall and Portforwarding application
304 define Package
/luci-app-firewall
/conffiles
308 define Package
/luci-app-firewall
/install
309 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
313 define Package
/luci-app-olsr
314 $(call Package
/luci
/webtemplate
)
315 DEPENDS
+=+luci-mod-admin-core
+olsrd-mod-txtinfo
316 TITLE
:=OLSR configuration and status module
319 define Package
/luci-app-olsr
/install
320 $(call Package
/luci
/install/template
,$(1),applications
/luci-olsr
)
324 define Package
/luci-app-qos
325 $(call Package
/luci
/webtemplate
)
326 DEPENDS
+=+luci-mod-admin-core
+qos-scripts
327 TITLE
:=Quality of Service configuration module
330 define Package
/luci-app-qos
/install
331 $(call Package
/luci
/install/template
,$(1),applications
/luci-qos
)
335 define Package
/luci-app-splash
336 $(call Package
/luci
/fftemplate
)
337 DEPENDS
+=+luasocket
+iptables-mod-nat
+iptables-mod-ipopt
338 TITLE
:=Freifunk DHCP-Splash application
341 define Package
/luci-app-splash
/conffiles
342 /etc
/config
/luci_splash
345 define Package
/luci-app-splash
/install
346 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
350 define Package
/luci-app-statistics
351 $(call Package
/luci
/webtemplate
)
352 DEPENDS
+=+luci-mod-admin-core
+collectd
+collectd-mod-rrdtool1
+rrdtool1
353 TITLE
:=LuCI Statistics Application
356 define Package
/luci-app-statistics
/conffiles
357 /etc
/config
/luci_statistics
360 define Package
/luci-app-statistics
/install
361 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
365 ### Server Gateway Interfaces ###
367 define Package
/luci-sgi-cgi
368 $(call Package
/luci
/libtemplate
)
372 define Package
/luci-sgi-cgi
/install
373 $(call Package
/luci
/install/template
,$(1),libs
/sgi-cgi
)
376 define Package
/luci-sgi-luci
377 $(call Package
/luci
/libtemplate
)
379 TITLE
:=SGI for LuCI HTTPD
382 define Package
/luci-sgi-luci
/install
383 $(call Package
/luci
/install/template
,$(1),libs
/sgi-luci
)
386 define Package
/luci-sgi-webuci
387 $(call Package
/luci
/libtemplate
)
388 TITLE
:=SGI for Webuci
391 define Package
/luci-sgi-webuci
/install
392 $(call Package
/luci
/install/template
,$(1),libs
/sgi-webuci
)
396 define Package
/luci-theme-fledermaus
397 $(call Package
/luci
/fftemplate
)
399 TITLE
:=Fledermaus Theme
402 define Package
/luci-theme-fledermaus
/install
403 $(call Package
/luci
/install/template
,$(1),themes
/fledermaus
)
406 define Package
/luci-theme-openwrt
407 $(call Package
/luci
/thtemplate
)
408 TITLE
:=OpenWRT.org
(default
)
411 define Package
/luci-theme-openwrt
/install
412 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
416 define Package
/luci-i18n-german
417 $(call Package
/luci
/i18ntemplate
)
421 define Package
/luci-i18n-german
/install
422 $(call Package
/luci
/install/template
,$(1),i18n
/german
)
426 define Package
/luci-i18n-english
427 $(call Package
/luci
/i18ntemplate
)
431 define Package
/luci-i18n-english
/install
432 $(call Package
/luci
/install/template
,$(1),i18n
/english
)
436 define Package
/luci-i18n-french
437 $(call Package
/luci
/i18ntemplate
)
441 define Package
/luci-i18n-french
/install
442 $(call Package
/luci
/install/template
,$(1),i18n
/french
)
449 ifneq ($(CONFIG_PACKAGE_luci-core
),)
450 PKG_SELECTED_MODULES
+=libs
/core
452 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
453 PKG_SELECTED_MODULES
+=libs
/cbi
455 ifneq ($(CONFIG_PACKAGE_luci-fastindex
),)
456 PKG_SELECTED_MODULES
+=libs
/fastindex
458 ifneq ($(CONFIG_PACKAGE_luci-http
),)
459 PKG_SELECTED_MODULES
+=libs
/http
461 ifneq ($(CONFIG_PACKAGE_luci-uci
),)
462 PKG_SELECTED_MODULES
+=libs
/uci
464 ifneq ($(CONFIG_PACKAGE_luci-web
),)
465 PKG_SELECTED_MODULES
+=libs
/web
468 ifneq ($(CONFIG_PACKAGE_luci-httpd
),)
469 PKG_SELECTED_MODULES
+=libs
/httpd
472 ifneq ($(CONFIG_PACKAGE_luci-ff-halle
),)
473 PKG_SELECTED_MODULES
+=applications
/community-halle
475 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig
),)
476 PKG_SELECTED_MODULES
+=applications
/community-leipzig
478 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover
),)
479 PKG_SELECTED_MODULES
+=applications
/community-hannover
482 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core
),)
483 PKG_SELECTED_MODULES
+=modules
/admin-core
485 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk
),)
486 PKG_SELECTED_MODULES
+=modules
/freifunk
489 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig
),)
490 PKG_SELECTED_MODULES
+=applications
/luci-ffwizard-leipzig
492 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
493 PKG_SELECTED_MODULES
+=applications
/luci-fw
495 ifneq ($(CONFIG_PACKAGE_luci-app-olsr
),)
496 PKG_SELECTED_MODULES
+=applications
/luci-olsr
498 ifneq ($(CONFIG_PACKAGE_luci-app-qos
),)
499 PKG_SELECTED_MODULES
+=applications
/luci-qos
501 ifneq ($(CONFIG_PACKAGE_luci-app-splash
),)
502 PKG_SELECTED_MODULES
+=applications
/luci-splash
504 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
505 PKG_SELECTED_MODULES
+=applications
/luci-statistics
508 ifneq ($(CONFIG_PACKAGE_luci-sgi-cgi
),)
509 PKG_SELECTED_MODULES
+=libs
/sgi-cgi
511 ifneq ($(CONFIG_PACKAGE_luci-sgi-luci
),)
512 PKG_SELECTED_MODULES
+=libs
/sgi-luci
514 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci
),)
515 PKG_SELECTED_MODULES
+=libs
/sgi-webuci
518 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus
),)
519 PKG_SELECTED_MODULES
+=themes
/fledermaus
521 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
522 PKG_SELECTED_MODULES
+=themes
/openwrt.org
525 ifneq ($(CONFIG_PACKAGE_luci-i18n-german
),)
526 PKG_SELECTED_MODULES
+=i18n
/german
528 ifneq ($(CONFIG_PACKAGE_luci-i18n-english
),)
529 PKG_SELECTED_MODULES
+=i18n
/english
531 ifneq ($(CONFIG_PACKAGE_luci-i18n-french
),)
532 PKG_SELECTED_MODULES
+=i18n
/french
537 MODULES
="$(PKG_SELECTED_MODULES)" \
538 LUA_TARGET
="$(LUA_TARGET)" \
539 LUA_SHLIBS
="-llua -lm" \
540 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" \
541 LDFLAGS
="$(TARGET_LDFLAGS) -L$(STAGING_DIR)/usr/lib" \
545 $(eval
$(call BuildPackage
,luci-core
))
546 $(eval
$(call BuildPackage
,luci-cbi
))
547 $(eval
$(call BuildPackage
,luci-fastindex
))
548 $(eval
$(call BuildPackage
,luci-http
))
549 $(eval
$(call BuildPackage
,luci-uci
))
550 $(eval
$(call BuildPackage
,luci-web
))
552 $(eval
$(call BuildPackage
,luci-httpd
))
554 $(eval
$(call BuildPackage
,luci-ff-halle
))
555 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
556 $(eval
$(call BuildPackage
,luci-ff-hannover
))
558 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
559 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
561 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
562 $(eval
$(call BuildPackage
,luci-app-firewall
))
563 $(eval
$(call BuildPackage
,luci-app-olsr
))
564 $(eval
$(call BuildPackage
,luci-app-qos
))
565 $(eval
$(call BuildPackage
,luci-app-splash
))
566 $(eval
$(call BuildPackage
,luci-app-statistics
))
568 $(eval
$(call BuildPackage
,luci-sgi-cgi
))
569 $(eval
$(call BuildPackage
,luci-sgi-luci
))
570 $(eval
$(call BuildPackage
,luci-sgi-webuci
))
572 $(eval
$(call BuildPackage
,luci-theme-fledermaus
))
573 $(eval
$(call BuildPackage
,luci-theme-openwrt
))
575 $(eval
$(call BuildPackage
,luci-i18n-german
))
576 $(eval
$(call BuildPackage
,luci-i18n-english
))
577 $(eval
$(call BuildPackage
,luci-i18n-french
))