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
)
115 TITLE
:=High-Level UCI API
118 define Package
/luci-uci
/install
119 $(call Package
/luci
/install/template
,$(1),libs
/uci
)
123 define Package
/luci-fastindex
124 $(call Package
/luci
/libtemplate
)
125 TITLE
:=Fastindex indexing module
128 define Package
/luci-fastindex
/install
129 $(call Package
/luci
/install/template
,$(1),libs
/fastindex
)
133 define Package
/luci-web
134 $(call Package
/luci
/libtemplate
)
135 DEPENDS
+=+luci-addons
+luci-uci
136 TITLE
:=MVC Webframework
139 define Package
/luci-web
/conffiles
143 define Package
/luci-web
/install
144 $(call Package
/luci
/install/template
,$(1),libs
/web
)
149 ### Community Packages ###
151 define Package
/luci-ff-halle
152 $(call Package
/luci
/fftemplate
)
154 +luci-sgi-haserl
+luci-app-splash \
155 +luci-app-ffwizard-leipzig \
156 +luci-theme-fledermaus \
158 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
160 TITLE
:=Freifunk Halle Community Meta-Package
163 define Package
/luci-ff-halle
/install
164 $(call Package
/luci
/install/template
,$(1),applications
/community-halle
)
165 $(CP
) -a .
/ipkg
/luci-ff-halle.postinst
$(1)/CONTROL
/postinst
169 define Package
/luci-ff-leipzig
170 $(call Package
/luci
/fftemplate
)
172 +luci-sgi-haserl
+luci-app-splash \
173 +luci-app-ffwizard-leipzig \
174 +luci-theme-fledermaus \
176 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
178 TITLE
:=Freifunk Leipzig Community Meta-Package
181 define Package
/luci-ff-leipzig
/install
182 $(call Package
/luci
/install/template
,$(1),applications
/community-leipzig
)
183 $(CP
) -a .
/ipkg
/luci-ff-leipzig.postinst
$(1)/CONTROL
/postinst
187 define Package
/luci-ff-hannover
188 $(call Package
/luci
/fftemplate
)
190 +luci-sgi-haserl
+luci-app-splash \
191 +luci-theme-fledermaus \
193 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
194 TITLE
:=Freifunk Hannover Community Meta-Package
195 URL
:=http
://www.freifunk-hannover.de
/
196 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
199 define Package
/luci-ff-hannover
/install
200 $(call Package
/luci
/install/template
,$(1),applications
/community-hannover
)
201 $(CP
) -a .
/ipkg
/luci-ff-hannover.postinst
$(1)/CONTROL
/postinst
207 define Package
/luci-mod-admin-core
208 $(call Package
/luci
/webtemplate
)
209 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
+luci-i18n-english
210 TITLE
:=Administration module
213 define Package
/luci-mod-admin-core
/install
214 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
218 define Package
/luci-mod-freifunk
219 $(call Package
/luci
/fftemplate
)
220 DEPENDS
:=+luci-mod-admin-core
221 TITLE
:=LuCI Freifunk module
224 define Package
/luci-mod-freifunk
/conffiles
228 define Package
/luci-mod-freifunk
/install
229 $(call Package
/luci
/install/template
,$(1),modules
/freifunk
)
236 define Package
/luci-app-ffwizard-leipzig
237 $(call Package
/luci
/fftemplate
)
238 DEPENDS
+=+luci-app-firewall
239 TITLE
:=Freifunk Leipzig configuration wizard
242 define Package
/luci-app-ffwizard-leipzig
/install
243 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
247 define Package
/luci-app-firewall
248 $(call Package
/luci
/webtemplate
)
249 DEPENDS
+=+luci-mod-admin-core
250 TITLE
:=Firewall and Portforwarding application
253 define Package
/luci-app-firewall
/conffiles
257 define Package
/luci-app-firewall
/install
258 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
259 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
263 define Package
/luci-app-splash
264 $(call Package
/luci
/fftemplate
)
265 DEPENDS
+=+luci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
266 TITLE
:=Freifunk DHCP-Splash application
269 define Package
/luci-app-splash
/conffiles
270 /etc
/config
/luci_splash
273 define Package
/luci-app-splash
/install
274 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
275 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
276 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
277 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
278 $(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
279 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
283 define Package
/luci-app-statistics
284 $(call Package
/luci
/webtemplate
)
285 DEPENDS
+=+luci-mod-admin-core
+collectd
+collectd-mod-rrdtool1
+rrdtool1
286 TITLE
:=LuCI Statistics Application
289 define Package
/luci-app-statistics
/conffiles
290 /etc
/config
/luci_statistics
293 define Package
/luci-app-statistics
/install
294 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
295 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/usr
/bin
/stat-genconfig
$(1)/usr
/bin
296 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/etc
/init.d
/luci_statistics
$(1)/etc
/init.d
300 ### Server Gateway Interfaces ###
302 define Package
/luci-sgi-haserl
303 $(call Package
/luci
/libtemplate
)
304 DEPENDS
+=+luci-web
+haserl-lua
305 TITLE
:=SGI for Haserl
308 define Package
/luci-sgi-haserl
/install
309 $(call Package
/luci
/install/template
,$(1),libs
/sgi-haserl
)
310 $(CP
) -a .
/ipkg
/luci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
314 define Package
/luci-sgi-webuci
315 $(call Package
/luci
/libtemplate
)
317 TITLE
:=SGI for Webuci
320 define Package
/luci-sgi-webuci
/install
321 $(call Package
/luci
/install/template
,$(1),libs
/sgi-webuci
)
325 define Package
/luci-theme-fledermaus
326 $(call Package
/luci
/fftemplate
)
328 TITLE
:=Fledermaus Theme
331 define Package
/luci-theme-fledermaus
/install
332 $(call Package
/luci
/install/template
,$(1),themes
/fledermaus
)
335 define Package
/luci-theme-openwrt
336 $(call Package
/luci
/thtemplate
)
337 TITLE
:=OpenWRT.org
(default
)
340 define Package
/luci-theme-openwrt
/install
341 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
345 define Package
/luci-i18n-german
346 $(call Package
/luci
/i18ntemplate
)
350 define Package
/luci-i18n-german
/install
351 $(call Package
/luci
/install/template
,$(1),i18n
/german
)
355 define Package
/luci-i18n-english
356 $(call Package
/luci
/i18ntemplate
)
357 TITLE
:=English
(incomplete
)
360 define Package
/luci-i18n-english
/install
361 $(call Package
/luci
/install/template
,$(1),i18n
/english
)
367 ifneq ($(CONFIG_PACKAGE_luci-core
),)
368 PKG_SELECTED_MODULES
+=libs
/core
370 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
371 PKG_SELECTED_MODULES
+=libs
/cbi
373 ifneq ($(CONFIG_PACKAGE_luci-fastindex
),)
374 PKG_SELECTED_MODULES
+=libs
/fastindex
376 ifneq ($(CONFIG_PACKAGE_luci-uci
),)
377 PKG_SELECTED_MODULES
+=libs
/uci
379 ifneq ($(CONFIG_PACKAGE_luci-web
),)
380 PKG_SELECTED_MODULES
+=libs
/web
383 ifneq ($(CONFIG_PACKAGE_luci-ff-halle
),)
384 PKG_SELECTED_MODULES
+=applications
/community-halle
386 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig
),)
387 PKG_SELECTED_MODULES
+=applications
/community-leipzig
389 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover
),)
390 PKG_SELECTED_MODULES
+=applications
/community-hannover
393 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core
),)
394 PKG_SELECTED_MODULES
+=modules
/admin-core
396 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk
),)
397 PKG_SELECTED_MODULES
+=modules
/freifunk
400 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig
),)
401 PKG_SELECTED_MODULES
+=applications
/luci-ffwizard-leipzig
403 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
404 PKG_SELECTED_MODULES
+=applications
/luci-fw
406 ifneq ($(CONFIG_PACKAGE_luci-app-splash
),)
407 PKG_SELECTED_MODULES
+=applications
/luci-splash
409 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
410 PKG_SELECTED_MODULES
+=applications
/luci-statistics
413 ifneq ($(CONFIG_PACKAGE_luci-sgi-haserl
),)
414 PKG_SELECTED_MODULES
+=libs
/sgi-haserl
416 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci
),)
417 PKG_SELECTED_MODULES
+=libs
/sgi-webuci
420 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus
),)
421 PKG_SELECTED_MODULES
+=themes
/fledermaus
423 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
424 PKG_SELECTED_MODULES
+=themes
/openwrt.org
427 ifneq ($(CONFIG_PACKAGE_luci-i18n-german
),)
428 PKG_SELECTED_MODULES
+=i18n
/german
430 ifneq ($(CONFIG_PACKAGE_luci-i18n-english
),)
431 PKG_SELECTED_MODULES
+=i18n
/english
435 MAKE_FLAGS
+= MODULES
="$(PKG_SELECTED_MODULES)" LUA_TARGET
="$(LUA_TARGET)" CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include" LDFLAGS
="$(TARGET_LDFLAGS)"
438 $(eval
$(call BuildPackage
,luci-core
))
439 $(eval
$(call BuildPackage
,luci-cbi
))
440 $(eval
$(call BuildPackage
,luci-fastindex
))
441 $(eval
$(call BuildPackage
,luci-uci
))
442 $(eval
$(call BuildPackage
,luci-web
))
444 $(eval
$(call BuildPackage
,luci-ff-halle
))
445 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
446 $(eval
$(call BuildPackage
,luci-ff-hannover
))
448 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
449 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
451 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
452 $(eval
$(call BuildPackage
,luci-app-firewall
))
453 $(eval
$(call BuildPackage
,luci-app-splash
))
454 $(eval
$(call BuildPackage
,luci-app-statistics
))
456 $(eval
$(call BuildPackage
,luci-sgi-haserl
))
457 $(eval
$(call BuildPackage
,luci-sgi-webuci
))
459 $(eval
$(call BuildPackage
,luci-theme-fledermaus
))
460 $(eval
$(call BuildPackage
,luci-theme-openwrt
))
462 $(eval
$(call BuildPackage
,luci-i18n-german
))
463 $(eval
$(call BuildPackage
,luci-i18n-english
))