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
19 # LUA_TARGET:=compile LUAC=$(BUILD_DIR_HOST)/lua/luac
23 include $(INCLUDE_DIR)/package.mk
25 define Build/Configure
29 $(MAKE) -C$(PKG_BUILD_DIR) build LUA_TARGET=$(LUA_TARGET)
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/webtemplate
52 $(call Package/luci/libtemplate)
53 SUBMENU:=LuCI - Webinterface Components
57 define Package/luci/install/template
58 $(CP) $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
65 define Package/luci-core
66 $(call Package/luci/libtemplate)
67 DEPENDS:=+lua +luaposix
68 TITLE:=LuCI core libraries
71 define Package/luci-core/install
72 $(call Package/luci/install/template,$(1),libs/core)
77 define Package/luci-cbi
78 $(call Package/luci/libtemplate)
80 TITLE:=Configuration Binding Interface
83 define Package/luci-cbi/install
84 $(call Package/luci/install/template,$(1),libs/cbi)
88 define Package/luci-web
89 $(call Package/luci/libtemplate)
91 TITLE:=MVC Webframework
94 define Package/luci-web/conffiles
98 define Package/luci-web/install
99 $(call Package/luci/install/template,$(1),libs/web)
100 $(call Package/luci/install/template,$(1),themes/fledermaus)
105 ### Community Packages ###
107 define Package/luci-ff-halle
108 $(call Package/luci/fftemplate)
110 +luci-sgi-haserl +luci-app-splash \
111 +luci-app-ffwizard-leipzig \
112 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
114 TITLE:=Freifunk Halle Community Meta-Package
117 define Package/luci-ff-halle/install
121 define Package/luci-ff-leipzig
122 $(call Package/luci/fftemplate)
124 +luci-sgi-haserl +luci-app-splash \
125 +luci-app-ffwizard-leipzig \
126 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
128 TITLE:=Freifunk Leipzig Community Meta-Package
131 define Package/luci-ff-leipzig/install
132 $(call Package/luci/install/template,$(1),applications/community-leipzig)
133 $(CP) -a ./ipkg/luci-ff-leipzig.postinst $(1)/CONTROL/postinst
137 define Package/luci-ff-hannover
138 $(call Package/luci/fftemplate)
140 +luci-sgi-haserl +luci-app-splash \
141 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
142 TITLE:=Freifunk Hannover Community Meta-Package
143 URL:=http://www.freifunk-hannover.de/
144 MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
147 define Package/luci-ff-hannover/install
148 $(call Package/luci/install/template,$(1),applications/community-hannover)
149 $(CP) -a ./ipkg/luci-ff-hannover.postinst $(1)/CONTROL/postinst
155 define Package/luci-mod-admin-core
156 $(call Package/luci/webtemplate)
157 DEPENDS+=+luci-web +luci-cbi
158 TITLE:=Administration module
161 define Package/luci-mod-admin-core/install
162 $(call Package/luci/install/template,$(1),modules/admin-core)
166 define Package/luci-mod-freifunk
167 $(call Package/luci/fftemplate)
168 DEPENDS:=+luci-mod-admin-core
169 TITLE:=LuCI Freifunk module
172 define Package/luci-mod-freifunk/conffiles
176 define Package/luci-mod-freifunk/install
177 $(call Package/luci/install/template,$(1),modules/freifunk)
184 define Package/luci-app-ffwizard-leipzig
185 $(call Package/luci/fftemplate)
186 DEPENDS+=+luci-app-firewall
187 TITLE:=Freifunk Leipzig configuration wizard
190 define Package/luci-app-ffwizard-leipzig/install
191 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
195 define Package/luci-app-firewall
196 $(call Package/luci/webtemplate)
197 DEPENDS+=+luci-mod-admin-core
198 TITLE:=Firewall and Portforwarding application
201 define Package/luci-app-firewall/conffiles
205 define Package/luci-app-firewall/install
206 $(call Package/luci/install/template,$(1),applications/luci-fw)
207 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-fw/dist/etc/init.d/luci_fw $(1)/etc/init.d
211 define Package/luci-app-splash
212 $(call Package/luci/fftemplate)
213 DEPENDS+=+luci-sgi-haserl +iptables-mod-nat +iptables-mod-ipopt
214 TITLE:=Freifunk DHCP-Splash application
217 define Package/luci-app-splash/conffiles
218 /etc/config/luci_splash
221 define Package/luci-app-splash/install
222 $(call Package/luci/install/template,$(1),applications/luci-splash)
223 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/usr/sbin/luci-splash $(1)/usr/sbin
224 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/init.d/luci_splash $(1)/etc/init.d
225 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/cron.minutely/luci_splash $(1)/etc/cron.minutely
226 $(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
227 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/www/cgi-bin/luci-splash $(1)/www/cgi-bin/luci-splash
231 define Package/luci-app-statistics
232 $(call Package/luci/webtemplate)
233 DEPENDS+=+luci-mod-admin-core +collectd +collectd-mod-rrdtool1 +rrdtool1
234 TITLE:=LuCI Statistics Application (incomplete)
237 define Package/luci-app-statistics/conffiles
238 /etc/config/luci_statistics
241 define Package/luci-app-statistics/install
242 $(call Package/luci/install/template,$(1),applications/luci-statistics)
243 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/usr/bin/stat-genconfig $(1)/usr/bin
244 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/etc/init.d/luci_statistics $(1)/etc/init.d
248 ### Server Gateway Interfaces ###
250 define Package/luci-sgi-haserl
251 $(call Package/luci/libtemplate)
252 DEPENDS+=+luci-web +haserl-lua
253 TITLE:=SGI for Haserl
256 define Package/luci-sgi-haserl/install
257 $(call Package/luci/install/template,$(1),libs/sgi-haserl)
258 $(CP) -a ./ipkg/luci-sgi-haserl.postinst $(1)/CONTROL/postinst
262 define Package/luci-sgi-webuci
263 $(call Package/luci/libtemplate)
265 TITLE:=SGI for Webuci
268 define Package/luci-sgi-webuci/install
269 $(call Package/luci/install/template,$(1),libs/sgi-webuci)
275 $(eval $(call BuildPackage,luci-core))
276 $(eval $(call BuildPackage,luci-cbi))
277 $(eval $(call BuildPackage,luci-web))
279 $(eval $(call BuildPackage,luci-ff-halle))
280 $(eval $(call BuildPackage,luci-ff-leipzig))
281 $(eval $(call BuildPackage,luci-ff-hannover))
283 $(eval $(call BuildPackage,luci-mod-admin-core))
284 $(eval $(call BuildPackage,luci-mod-freifunk))
286 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
287 $(eval $(call BuildPackage,luci-app-firewall))
288 $(eval $(call BuildPackage,luci-app-splash))
289 $(eval $(call BuildPackage,luci-app-statistics))
291 $(eval $(call BuildPackage,luci-sgi-haserl))
292 $(eval $(call BuildPackage,luci-sgi-webuci))