1 include $(TOPDIR
)/rules.mk
4 PKG_SOURCE_URL
:=https
://dev.leipzig.freifunk.net
/svn
/ff-luci
/$(PKG_BRANCH
)
5 PKG_REV
:=$(shell LC_ALL
=C svn
info ${PKG_SOURCE_URL} | sed
-ne
's/^Last Changed Rev: //p')
8 PKG_VERSION
:=0.5+svn
$(PKG_REV
)
11 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE
:=$(PKG_SOURCE_SUBDIR
).
tar.gz
14 PKG_SOURCE_VERSION
:=$(PKG_REV
)
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 PKG_SELECTED_MODULES
:=
23 include $(INCLUDE_DIR
)/package.mk
25 define Build
/Configure
30 define Package
/luci
/libtemplate
32 CATEGORY
:=Administration
33 TITLE
:=LuCI
- Lua Configuration Interface
34 URL
:=http
://luci.freifunk-halle.net
/
35 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
36 SUBMENU
:=LuCI
- Libraries
40 define Package
/luci
/fftemplate
41 $(call Package
/luci
/libtemplate
)
42 SUBMENU
:=LuCI
- Freifunk Support
43 DEPENDS
:=+luci-mod-freifunk
46 define Package
/luci
/i18ntemplate
47 $(call Package
/luci
/libtemplate
)
48 SUBMENU
:=LuCI
- Translations
52 define Package
/luci
/thtemplate
53 $(call Package
/luci
/libtemplate
)
54 SUBMENU
:=LuCI
- Themes
58 define Package
/luci
/webtemplate
59 $(call Package
/luci
/libtemplate
)
60 SUBMENU
:=LuCI
- Webinterface Components
64 define Package
/luci
/install/template
65 $(CP
) $(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
72 define Package
/luci-core
73 $(call Package
/luci
/libtemplate
)
74 DEPENDS
:=+lua
+luaposix
75 TITLE
:=LuCI core libraries
78 define Package
/luci-core
/install
79 $(call Package
/luci
/install/template
,$(1),libs
/core
)
82 define Package
/luci-core
/config
85 default PACKAGE_luci-core_compile
87 config PACKAGE_luci-core_compile
90 config PACKAGE_luci-core_source
96 ifneq ($(CONFIG_PACKAGE_luci-core_compile
),)
102 define Package
/luci-cbi
103 $(call Package
/luci
/libtemplate
)
105 TITLE
:=Configuration Binding Interface
108 define Package
/luci-cbi
/install
109 $(call Package
/luci
/install/template
,$(1),libs
/cbi
)
113 define Package
/luci-uci
114 $(call Package
/luci
/libtemplate
)
116 TITLE
:=High-Level UCI API
119 define Package
/luci-uci
/install
120 $(call Package
/luci
/install/template
,$(1),libs
/uci
)
124 define Package
/luci-fastindex
125 $(call Package
/luci
/libtemplate
)
126 TITLE
:=Fastindex indexing module
129 define Package
/luci-fastindex
/install
130 $(call Package
/luci
/install/template
,$(1),libs
/fastindex
)
134 define Package
/luci-web
135 $(call Package
/luci
/libtemplate
)
136 DEPENDS
+=+luci-addons
+luci-uci
137 TITLE
:=MVC Webframework
140 define Package
/luci-web
/conffiles
144 define Package
/luci-web
/install
145 $(call Package
/luci
/install/template
,$(1),libs
/web
)
150 ### Community Packages ###
152 define Package
/luci-ff-halle
153 $(call Package
/luci
/fftemplate
)
155 +luci-sgi-haserl
+luci-app-splash
+luci-app-olsr \
156 +luci-app-ffwizard-leipzig \
157 +luci-theme-fledermaus \
159 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
161 TITLE
:=Freifunk Halle Community Meta-Package
164 define Package
/luci-ff-halle
/install
165 $(call Package
/luci
/install/template
,$(1),applications
/community-halle
)
166 $(CP
) -a .
/ipkg
/luci-ff-halle.postinst
$(1)/CONTROL
/postinst
170 define Package
/luci-ff-leipzig
171 $(call Package
/luci
/fftemplate
)
173 +luci-sgi-haserl
+luci-app-splash
+luci-app-olsr \
174 +luci-app-ffwizard-leipzig \
175 +luci-theme-fledermaus \
177 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
179 TITLE
:=Freifunk Leipzig Community Meta-Package
182 define Package
/luci-ff-leipzig
/install
183 $(call Package
/luci
/install/template
,$(1),applications
/community-leipzig
)
184 $(CP
) -a .
/ipkg
/luci-ff-leipzig.postinst
$(1)/CONTROL
/postinst
188 define Package
/luci-ff-hannover
189 $(call Package
/luci
/fftemplate
)
191 +luci-sgi-haserl
+luci-app-splash
+luci-app-olsr \
192 +luci-theme-fledermaus \
194 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
195 TITLE
:=Freifunk Hannover Community Meta-Package
196 URL
:=http
://www.freifunk-hannover.de
/
197 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
200 define Package
/luci-ff-hannover
/install
201 $(call Package
/luci
/install/template
,$(1),applications
/community-hannover
)
202 $(CP
) -a .
/ipkg
/luci-ff-hannover.postinst
$(1)/CONTROL
/postinst
208 define Package
/luci-mod-admin-core
209 $(call Package
/luci
/webtemplate
)
210 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
+luci-i18n-english
211 TITLE
:=Administration module
214 define Package
/luci-mod-admin-core
/install
215 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
219 define Package
/luci-mod-freifunk
220 $(call Package
/luci
/fftemplate
)
221 DEPENDS
:=+luci-mod-admin-core
222 TITLE
:=LuCI Freifunk module
225 define Package
/luci-mod-freifunk
/conffiles
229 define Package
/luci-mod-freifunk
/install
230 $(call Package
/luci
/install/template
,$(1),modules
/freifunk
)
237 define Package
/luci-app-ffwizard-leipzig
238 $(call Package
/luci
/fftemplate
)
239 DEPENDS
+=+luci-app-firewall
240 TITLE
:=Freifunk Leipzig configuration wizard
243 define Package
/luci-app-ffwizard-leipzig
/install
244 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
248 define Package
/luci-app-firewall
249 $(call Package
/luci
/webtemplate
)
250 DEPENDS
+=+luci-mod-admin-core
251 TITLE
:=Firewall and Portforwarding application
254 define Package
/luci-app-firewall
/conffiles
258 define Package
/luci-app-firewall
/install
259 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
260 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
264 define Package
/luci-app-olsr
265 $(call Package
/luci
/webtemplate
)
266 DEPENDS
+=+luci-mod-admin-core
+olsrd-mod-txtinfo
267 TITLE
:=OLSR configuration and status module
270 define Package
/luci-app-olsr
/install
271 $(call Package
/luci
/install/template
,$(1),applications
/luci-olsr
)
275 define Package
/luci-app-splash
276 $(call Package
/luci
/fftemplate
)
277 DEPENDS
+=+luci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
278 TITLE
:=Freifunk DHCP-Splash application
281 define Package
/luci-app-splash
/conffiles
282 /etc
/config
/luci_splash
285 define Package
/luci-app-splash
/install
286 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
287 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
288 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
289 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
290 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/lib
/luci-splash
/htdocs
/cgi-bin
/index.cgi
$(1)/usr
/lib
/luci-splash
/htdocs
/cgi-bin
291 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
295 define Package
/luci-app-statistics
296 $(call Package
/luci
/webtemplate
)
297 DEPENDS
+=+luci-mod-admin-core
+collectd
+collectd-mod-rrdtool1
+rrdtool1
298 TITLE
:=LuCI Statistics Application
301 define Package
/luci-app-statistics
/conffiles
302 /etc
/config
/luci_statistics
305 define Package
/luci-app-statistics
/install
306 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
307 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/usr
/bin
/stat-genconfig
$(1)/usr
/bin
308 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/etc
/init.d
/luci_statistics
$(1)/etc
/init.d
312 ### Server Gateway Interfaces ###
314 define Package
/luci-sgi-haserl
315 $(call Package
/luci
/libtemplate
)
316 DEPENDS
+=+luci-web
+haserl-lua
317 TITLE
:=SGI for Haserl
320 define Package
/luci-sgi-haserl
/install
321 $(call Package
/luci
/install/template
,$(1),libs
/sgi-haserl
)
322 $(CP
) -a .
/ipkg
/luci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
326 define Package
/luci-sgi-webuci
327 $(call Package
/luci
/libtemplate
)
329 TITLE
:=SGI for Webuci
332 define Package
/luci-sgi-webuci
/install
333 $(call Package
/luci
/install/template
,$(1),libs
/sgi-webuci
)
337 define Package
/luci-theme-fledermaus
338 $(call Package
/luci
/fftemplate
)
340 TITLE
:=Fledermaus Theme
343 define Package
/luci-theme-fledermaus
/install
344 $(call Package
/luci
/install/template
,$(1),themes
/fledermaus
)
347 define Package
/luci-theme-openwrt
348 $(call Package
/luci
/thtemplate
)
349 TITLE
:=OpenWRT.org
(default
)
352 define Package
/luci-theme-openwrt
/install
353 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
357 define Package
/luci-i18n-german
358 $(call Package
/luci
/i18ntemplate
)
362 define Package
/luci-i18n-german
/install
363 $(call Package
/luci
/install/template
,$(1),i18n
/german
)
367 define Package
/luci-i18n-english
368 $(call Package
/luci
/i18ntemplate
)
369 TITLE
:=English
(incomplete
)
372 define Package
/luci-i18n-english
/install
373 $(call Package
/luci
/install/template
,$(1),i18n
/english
)
379 ifneq ($(CONFIG_PACKAGE_luci-core
),)
380 PKG_SELECTED_MODULES
+=libs
/core
382 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
383 PKG_SELECTED_MODULES
+=libs
/cbi
385 ifneq ($(CONFIG_PACKAGE_luci-fastindex
),)
386 PKG_SELECTED_MODULES
+=libs
/fastindex
388 ifneq ($(CONFIG_PACKAGE_luci-uci
),)
389 PKG_SELECTED_MODULES
+=libs
/uci
391 ifneq ($(CONFIG_PACKAGE_luci-web
),)
392 PKG_SELECTED_MODULES
+=libs
/web
395 ifneq ($(CONFIG_PACKAGE_luci-ff-halle
),)
396 PKG_SELECTED_MODULES
+=applications
/community-halle
398 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig
),)
399 PKG_SELECTED_MODULES
+=applications
/community-leipzig
401 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover
),)
402 PKG_SELECTED_MODULES
+=applications
/community-hannover
405 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core
),)
406 PKG_SELECTED_MODULES
+=modules
/admin-core
408 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk
),)
409 PKG_SELECTED_MODULES
+=modules
/freifunk
412 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig
),)
413 PKG_SELECTED_MODULES
+=applications
/luci-ffwizard-leipzig
415 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
416 PKG_SELECTED_MODULES
+=applications
/luci-fw
418 ifneq ($(CONFIG_PACKAGE_luci-app-olsr
),)
419 PKG_SELECTED_MODULES
+=applications
/luci-olsr
421 ifneq ($(CONFIG_PACKAGE_luci-app-splash
),)
422 PKG_SELECTED_MODULES
+=applications
/luci-splash
424 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
425 PKG_SELECTED_MODULES
+=applications
/luci-statistics
428 ifneq ($(CONFIG_PACKAGE_luci-sgi-haserl
),)
429 PKG_SELECTED_MODULES
+=libs
/sgi-haserl
431 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci
),)
432 PKG_SELECTED_MODULES
+=libs
/sgi-webuci
435 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus
),)
436 PKG_SELECTED_MODULES
+=themes
/fledermaus
438 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
439 PKG_SELECTED_MODULES
+=themes
/openwrt.org
442 ifneq ($(CONFIG_PACKAGE_luci-i18n-german
),)
443 PKG_SELECTED_MODULES
+=i18n
/german
445 ifneq ($(CONFIG_PACKAGE_luci-i18n-english
),)
446 PKG_SELECTED_MODULES
+=i18n
/english
450 MAKE_FLAGS
+= MODULES
="$(PKG_SELECTED_MODULES)" LUA_TARGET
="$(LUA_TARGET)" CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" LDFLAGS
="$(TARGET_LDFLAGS)"
453 $(eval
$(call BuildPackage
,luci-core
))
454 $(eval
$(call BuildPackage
,luci-cbi
))
455 $(eval
$(call BuildPackage
,luci-fastindex
))
456 $(eval
$(call BuildPackage
,luci-uci
))
457 $(eval
$(call BuildPackage
,luci-web
))
459 $(eval
$(call BuildPackage
,luci-ff-halle
))
460 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
461 $(eval
$(call BuildPackage
,luci-ff-hannover
))
463 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
464 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
466 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
467 $(eval
$(call BuildPackage
,luci-app-firewall
))
468 $(eval
$(call BuildPackage
,luci-app-olsr
))
469 $(eval
$(call BuildPackage
,luci-app-splash
))
470 $(eval
$(call BuildPackage
,luci-app-statistics
))
472 $(eval
$(call BuildPackage
,luci-sgi-haserl
))
473 $(eval
$(call BuildPackage
,luci-sgi-webuci
))
475 $(eval
$(call BuildPackage
,luci-theme-fledermaus
))
476 $(eval
$(call BuildPackage
,luci-theme-openwrt
))
478 $(eval
$(call BuildPackage
,luci-i18n-german
))
479 $(eval
$(call BuildPackage
,luci-i18n-english
))