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 for i in
$(PKG_SELECTED_MODULES
); do
$(MAKE
) -C
$(PKG_BUILD_DIR
)/$$$$i build LUA_TARGET
=$(LUA_TARGET
); done
35 define Package
/luci
/libtemplate
37 CATEGORY
:=Administration
38 TITLE
:=LuCI
- Lua Configuration Interface
39 URL
:=http
://luci.freifunk-halle.net
/
40 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
41 SUBMENU
:=LuCI
- Libraries
45 define Package
/luci
/fftemplate
46 $(call Package
/luci
/libtemplate
)
47 SUBMENU
:=LuCI
- Freifunk Support
48 DEPENDS
:=+luci-mod-freifunk
51 define Package
/luci
/thtemplate
52 $(call Package
/luci
/libtemplate
)
53 SUBMENU
:=LuCI
- Themes
57 define Package
/luci
/webtemplate
58 $(call Package
/luci
/libtemplate
)
59 SUBMENU
:=LuCI
- Webinterface Components
63 define Package
/luci
/install/template
64 $(CP
) $(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
71 define Package
/luci-core
72 $(call Package
/luci
/libtemplate
)
73 DEPENDS
:=+lua
+luaposix
74 TITLE
:=LuCI core libraries
77 define Package
/luci-core
/install
78 $(call Package
/luci
/install/template
,$(1),libs
/core
)
81 define Package
/luci-core
/config
84 default PACKAGE_luci-core_compile
86 config PACKAGE_luci-core_compile
89 config PACKAGE_luci-core_source
95 ifneq ($(CONFIG_PACKAGE_luci-core_compile
),)
101 define Package
/luci-cbi
102 $(call Package
/luci
/libtemplate
)
104 TITLE
:=Configuration Binding Interface
107 define Package
/luci-cbi
/install
108 $(call Package
/luci
/install/template
,$(1),libs
/cbi
)
112 define Package
/luci-web
113 $(call Package
/luci
/libtemplate
)
114 DEPENDS
+=+luci-addons
115 TITLE
:=MVC Webframework
118 define Package
/luci-web
/conffiles
122 define Package
/luci-web
/install
123 $(call Package
/luci
/install/template
,$(1),libs
/web
)
128 ### Community Packages ###
130 define Package
/luci-ff-halle
131 $(call Package
/luci
/fftemplate
)
133 +luci-sgi-haserl
+luci-app-splash \
134 +luci-app-ffwizard-leipzig \
135 +luci-theme-fledermaus \
136 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
138 TITLE
:=Freifunk Halle Community Meta-Package
141 define Package
/luci-ff-halle
/install
142 $(call Package
/luci
/install/template
,$(1),applications
/community-halle
)
143 $(CP
) -a .
/ipkg
/luci-ff-halle.postinst
$(1)/CONTROL
/postinst
147 define Package
/luci-ff-leipzig
148 $(call Package
/luci
/fftemplate
)
150 +luci-sgi-haserl
+luci-app-splash \
151 +luci-app-ffwizard-leipzig \
152 +luci-theme-fledermaus \
153 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
155 TITLE
:=Freifunk Leipzig Community Meta-Package
158 define Package
/luci-ff-leipzig
/install
159 $(call Package
/luci
/install/template
,$(1),applications
/community-leipzig
)
160 $(CP
) -a .
/ipkg
/luci-ff-leipzig.postinst
$(1)/CONTROL
/postinst
164 define Package
/luci-ff-hannover
165 $(call Package
/luci
/fftemplate
)
167 +luci-sgi-haserl
+luci-app-splash \
168 +luci-theme-fledermaus \
169 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
170 TITLE
:=Freifunk Hannover Community Meta-Package
171 URL
:=http
://www.freifunk-hannover.de
/
172 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
175 define Package
/luci-ff-hannover
/install
176 $(call Package
/luci
/install/template
,$(1),applications
/community-hannover
)
177 $(CP
) -a .
/ipkg
/luci-ff-hannover.postinst
$(1)/CONTROL
/postinst
183 define Package
/luci-mod-admin-core
184 $(call Package
/luci
/webtemplate
)
185 DEPENDS
+=+luci-web
+luci-cbi
+luci-theme-openwrt
186 TITLE
:=Administration module
189 define Package
/luci-mod-admin-core
/install
190 $(call Package
/luci
/install/template
,$(1),modules
/admin-core
)
194 define Package
/luci-mod-freifunk
195 $(call Package
/luci
/fftemplate
)
196 DEPENDS
:=+luci-mod-admin-core
197 TITLE
:=LuCI Freifunk module
200 define Package
/luci-mod-freifunk
/conffiles
204 define Package
/luci-mod-freifunk
/install
205 $(call Package
/luci
/install/template
,$(1),modules
/freifunk
)
212 define Package
/luci-app-ffwizard-leipzig
213 $(call Package
/luci
/fftemplate
)
214 DEPENDS
+=+luci-app-firewall
215 TITLE
:=Freifunk Leipzig configuration wizard
218 define Package
/luci-app-ffwizard-leipzig
/install
219 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
223 define Package
/luci-app-firewall
224 $(call Package
/luci
/webtemplate
)
225 DEPENDS
+=+luci-mod-admin-core
226 TITLE
:=Firewall and Portforwarding application
229 define Package
/luci-app-firewall
/conffiles
233 define Package
/luci-app-firewall
/install
234 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
235 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
239 define Package
/luci-app-splash
240 $(call Package
/luci
/fftemplate
)
241 DEPENDS
+=+luci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
242 TITLE
:=Freifunk DHCP-Splash application
245 define Package
/luci-app-splash
/conffiles
246 /etc
/config
/luci_splash
249 define Package
/luci-app-splash
/install
250 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
251 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
252 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
253 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
254 $(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
255 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
259 define Package
/luci-app-statistics
260 $(call Package
/luci
/webtemplate
)
261 DEPENDS
+=+luci-mod-admin-core
+collectd
+collectd-mod-rrdtool1
+rrdtool1
262 TITLE
:=LuCI Statistics Application
(incomplete
)
265 define Package
/luci-app-statistics
/conffiles
266 /etc
/config
/luci_statistics
269 define Package
/luci-app-statistics
/install
270 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
271 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/usr
/bin
/stat-genconfig
$(1)/usr
/bin
272 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/etc
/init.d
/luci_statistics
$(1)/etc
/init.d
276 ### Server Gateway Interfaces ###
278 define Package
/luci-sgi-haserl
279 $(call Package
/luci
/libtemplate
)
280 DEPENDS
+=+luci-web
+haserl-lua
281 TITLE
:=SGI for Haserl
284 define Package
/luci-sgi-haserl
/install
285 $(call Package
/luci
/install/template
,$(1),libs
/sgi-haserl
)
286 $(CP
) -a .
/ipkg
/luci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
290 define Package
/luci-sgi-webuci
291 $(call Package
/luci
/libtemplate
)
293 TITLE
:=SGI for Webuci
296 define Package
/luci-sgi-webuci
/install
297 $(call Package
/luci
/install/template
,$(1),libs
/sgi-webuci
)
301 define Package
/luci-theme-fledermaus
302 $(call Package
/luci
/fftemplate
)
304 TITLE
:=Fledermaus Theme
307 define Package
/luci-theme-fledermaus
/install
308 $(call Package
/luci
/install/template
,$(1),themes
/fledermaus
)
311 define Package
/luci-theme-openwrt
312 $(call Package
/luci
/thtemplate
)
313 TITLE
:=OpenWRT.org
(default
)
316 define Package
/luci-theme-openwrt
/install
317 $(call Package
/luci
/install/template
,$(1),themes
/openwrt.org
)
322 ifneq ($(CONFIG_PACKAGE_luci-core
),)
323 PKG_SELECTED_MODULES
+=libs
/core
325 ifneq ($(CONFIG_PACKAGE_luci-cbi
),)
326 PKG_SELECTED_MODULES
+=libs
/cbi
328 ifneq ($(CONFIG_PACKAGE_luci-web
),)
329 PKG_SELECTED_MODULES
+=libs
/web
332 ifneq ($(CONFIG_PACKAGE_luci-ff-halle
),)
333 PKG_SELECTED_MODULES
+=applications
/community-halle
335 ifneq ($(CONFIG_PACKAGE_luci-ff-leipzig
),)
336 PKG_SELECTED_MODULES
+=applications
/community-leipzig
338 ifneq ($(CONFIG_PACKAGE_luci-ff-hannover
),)
339 PKG_SELECTED_MODULES
+=applications
/community-hannover
342 ifneq ($(CONFIG_PACKAGE_luci-mod-admin-core
),)
343 PKG_SELECTED_MODULES
+=modules
/admin-core
345 ifneq ($(CONFIG_PACKAGE_luci-mod-freifunk
),)
346 PKG_SELECTED_MODULES
+=modules
/freifunk
349 ifneq ($(CONFIG_PACKAGE_luci-app-ffwizard-leipzig
),)
350 PKG_SELECTED_MODULES
+=applications
/luci-ffwizard-leipzig
352 ifneq ($(CONFIG_PACKAGE_luci-app-firewall
),)
353 PKG_SELECTED_MODULES
+=applications
/luci-fw
355 ifneq ($(CONFIG_PACKAGE_luci-app-splash
),)
356 PKG_SELECTED_MODULES
+=applications
/luci-splash
358 ifneq ($(CONFIG_PACKAGE_luci-app-statistics
),)
359 PKG_SELECTED_MODULES
+=applications
/luci-statistics
362 ifneq ($(CONFIG_PACKAGE_luci-sgi-haserl
),)
363 PKG_SELECTED_MODULES
+=libs
/sgi-haserl
365 ifneq ($(CONFIG_PACKAGE_luci-sgi-webuci
),)
366 PKG_SELECTED_MODULES
+=libs
/sgi-webuci
369 ifneq ($(CONFIG_PACKAGE_luci-theme-fledermaus
),)
370 PKG_SELECTED_MODULES
+=themes
/fledermaus
372 ifneq ($(CONFIG_PACKAGE_luci-theme-openwrt
),)
373 PKG_SELECTED_MODULES
+=themes
/openwrt.org
377 $(eval
$(call BuildPackage
,luci-core
))
378 $(eval
$(call BuildPackage
,luci-cbi
))
379 $(eval
$(call BuildPackage
,luci-web
))
381 $(eval
$(call BuildPackage
,luci-ff-halle
))
382 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
383 $(eval
$(call BuildPackage
,luci-ff-hannover
))
385 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
386 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
388 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
389 $(eval
$(call BuildPackage
,luci-app-firewall
))
390 $(eval
$(call BuildPackage
,luci-app-splash
))
391 $(eval
$(call BuildPackage
,luci-app-statistics
))
393 $(eval
$(call BuildPackage
,luci-sgi-haserl
))
394 $(eval
$(call BuildPackage
,luci-sgi-webuci
))
396 $(eval
$(call BuildPackage
,luci-theme-fledermaus
))
397 $(eval
$(call BuildPackage
,luci-theme-openwrt
))