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)
33 define Package/luci/template
35 CATEGORY:=Administration
36 TITLE:=LuCI - Lua Configuration Interface
37 URL:=http://luci.freifunk-halle.net/
38 MAINTAINER:=Steven Barth <steven-at-midlink-dot-org>
41 define Package/luci/install/template
42 $(CP) $(PKG_BUILD_DIR)/$(2)/dist/* $(1)/ -R
47 $(call Package/luci/template)
49 DEPENDS:=+lua +luaposix
52 define Package/luci/install
53 $(call Package/luci/install/template,$(1),core)
58 define Package/luci-web
59 $(call Package/luci/template)
60 DEPENDS:=luci +luci-addons
61 TITLE:=LuCI - Webframework
64 define Package/luci-web/conffiles
68 define Package/luci-web/install
69 $(call Package/luci/install/template,$(1),web)
70 $(call Package/luci/install/template,$(1),themes/fledermaus)
75 ### Community Packages ###
77 define Package/luci-ff-halle
78 $(call Package/luci/template)
80 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
81 +luci-app-ffwizard-leipzig \
82 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
84 TITLE:=Freifunk Halle Community Meta-Package
87 define Package/luci-ff-halle/install
91 define Package/luci-ff-leipzig
92 $(call Package/luci/template)
94 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
95 +luci-app-ffwizard-leipzig \
96 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
98 TITLE:=Freifunk Leipzig Community Meta-Package
101 define Package/luci-ff-leipzig/install
102 $(call Package/luci/install/template,$(1),applications/community-leipzig)
103 $(CP) -a ./ipkg/luci-ff-leipzig.postinst $(1)/CONTROL/postinst
107 define Package/luci-ff-hannover
108 $(call Package/luci/template)
110 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
111 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
112 TITLE:=Freifunk Hannover Community Meta-Package
113 URL:=http://www.freifunk-hannover.de/
114 MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
117 define Package/luci-ff-hannover/install
118 $(call Package/luci/install/template,$(1),applications/community-hannover)
119 $(CP) -a ./ipkg/luci-ff-hannover.postinst $(1)/CONTROL/postinst
125 define Package/luci-mod-admin-core
126 $(call Package/luci/template)
127 DEPENDS:=luci +luci-web +luci-app-cbi
128 TITLE:=Core administrative pages
131 define Package/luci-mod-admin-core/install
132 $(call Package/luci/install/template,$(1),modules/admin-core)
136 define Package/luci-mod-freifunk
137 $(call Package/luci/template)
138 DEPENDS:=luci +luci-mod-admin-core +luci-app-firewall
139 TITLE:=Freifunk public and administrative pages
142 define Package/luci-mod-freifunk/conffiles
146 define Package/luci-mod-freifunk/install
147 $(call Package/luci/install/template,$(1),modules/freifunk)
154 define Package/luci-app-cbi
155 $(call Package/luci/template)
156 DEPENDS:=luci +luci-web
157 TITLE:=Configuration Binding Interface
160 define Package/luci-app-cbi/install
161 $(call Package/luci/install/template,$(1),applications/cbi)
165 define Package/luci-app-ffwizard-leipzig
166 $(call Package/luci/template)
167 DEPENDS:=luci +luci-mod-freifunk
168 TITLE:=Freifunk Leipzig configuration wizard
171 define Package/luci-app-ffwizard-leipzig/install
172 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
176 define Package/luci-app-firewall
177 $(call Package/luci/template)
178 DEPENDS:=luci +luci-mod-admin-core
179 TITLE:=Firewall and Portforwarding application
182 define Package/luci-app-firewall/conffiles
186 define Package/luci-app-firewall/install
187 $(call Package/luci/install/template,$(1),applications/luci-fw)
188 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-fw/dist/etc/init.d/luci_fw $(1)/etc/init.d
192 define Package/luci-app-splash
193 $(call Package/luci/template)
194 DEPENDS:=luci +luci-mod-freifunk +luci-sgi-haserl +iptables-mod-nat +iptables-mod-ipopt
195 TITLE:=Freifunk DHCP-Splash application
198 define Package/luci-app-splash/conffiles
199 /etc/config/luci_splash
202 define Package/luci-app-splash/install
203 $(call Package/luci/install/template,$(1),applications/luci-splash)
204 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/usr/sbin/luci-splash $(1)/usr/sbin
205 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/init.d/luci_splash $(1)/etc/init.d
206 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/cron.minutely/luci_splash $(1)/etc/cron.minutely
207 $(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
208 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/www/cgi-bin/luci-splash $(1)/www/cgi-bin/luci-splash
212 define Package/luci-app-statistics
213 $(call Package/luci/template)
214 DEPENDS:=luci +luci-mod-admin-core +collectd +collectd-mod-rrdtool1 +rrdtool1
215 TITLE:=LuCI Statistics Application (incomplete)
218 define Package/luci-app-statistics/conffiles
219 /etc/config/luci_statistics
222 define Package/luci-app-statistics/install
223 $(call Package/luci/install/template,$(1),applications/luci-statistics)
224 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/usr/bin/stat-genconfig $(1)/usr/bin
225 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-statistics/dist/etc/init.d/luci_statistics $(1)/etc/init.d
229 ### Server Gateway Interfaces ###
231 define Package/luci-sgi-haserl
232 $(call Package/luci/template)
233 DEPENDS:=luci +luci-web +haserl-lua
234 TITLE:=SGI for Haserl
237 define Package/luci-sgi-haserl/install
238 $(call Package/luci/install/template,$(1),applications/sgi-haserl)
239 $(CP) -a ./ipkg/luci-sgi-haserl.postinst $(1)/CONTROL/postinst
243 define Package/luci-sgi-webuci
244 $(call Package/luci/template)
245 DEPENDS:=luci +luci-web
246 TITLE:=SGI for Webuci
249 define Package/luci-sgi-webuci/install
250 $(call Package/luci/install/template,$(1),applications/sgi-webuci)
256 $(eval $(call BuildPackage,luci))
257 $(eval $(call BuildPackage,luci-web))
259 $(eval $(call BuildPackage,luci-ff-halle))
260 $(eval $(call BuildPackage,luci-ff-leipzig))
261 $(eval $(call BuildPackage,luci-ff-hannover))
263 $(eval $(call BuildPackage,luci-mod-admin-core))
264 $(eval $(call BuildPackage,luci-mod-freifunk))
266 $(eval $(call BuildPackage,luci-app-cbi))
267 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
268 $(eval $(call BuildPackage,luci-app-firewall))
269 $(eval $(call BuildPackage,luci-app-splash))
270 $(eval $(call BuildPackage,luci-app-statistics))
272 $(eval $(call BuildPackage,luci-sgi-haserl))
273 $(eval $(call BuildPackage,luci-sgi-webuci))