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 +luci-addons
52 define Package/luci/conffiles
56 define Package/luci/install
57 $(call Package/luci/install/template,$(1),core)
58 $(call Package/luci/install/template,$(1),themes/fledermaus)
62 ### Community Packages ###
64 define Package/luci-ff-halle
65 $(call Package/luci/template)
67 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
68 +luci-app-ffwizard-leipzig \
69 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
71 TITLE:=Freifunk Halle Community Meta-Package
74 define Package/luci-ff-halle/install
78 define Package/luci-ff-leipzig
79 $(call Package/luci/template)
81 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
82 +luci-app-ffwizard-leipzig \
83 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice \
85 TITLE:=Freifunk Leipzig Community Meta-Package
88 define Package/luci-ff-leipzig/install
89 $(call Package/luci/install/template,$(1),applications/community-leipzig)
90 $(CP) -a ./ipkg/luci-ff-leipzig.postinst $(1)/CONTROL/postinst
94 define Package/luci-ff-hannover
95 $(call Package/luci/template)
97 +luci-sgi-haserl +luci-mod-freifunk +luci-app-splash \
98 +olsrd +olsrd-mod-dyn-gw +olsrd-mod-txtinfo +olsrd-mod-nameservice
99 TITLE:=Freifunk Hannover Community Meta-Package
100 URL:=http://www.freifunk-hannover.de/
101 MAINTAINER:=Mickey Knox <mickey-at-netfreaks-dot-org>
104 define Package/luci-ff-hannover/install
105 $(call Package/luci/install/template,$(1),applications/community-hannover)
106 $(CP) -a ./ipkg/luci-ff-hannover.postinst $(1)/CONTROL/postinst
112 define Package/luci-mod-admin-core
113 $(call Package/luci/template)
115 TITLE:=Core administrative pages
118 define Package/luci-mod-admin-core/install
119 $(call Package/luci/install/template,$(1),modules/admin-core)
123 define Package/luci-mod-freifunk
124 $(call Package/luci/template)
125 DEPENDS:=luci +luci-mod-admin-core +luci-app-firewall
126 TITLE:=Freifunk public and administrative pages
129 define Package/luci-mod-freifunk/conffiles
133 define Package/luci-mod-freifunk/install
134 $(call Package/luci/install/template,$(1),modules/freifunk)
141 define Package/luci-app-ffwizard-leipzig
142 $(call Package/luci/template)
143 DEPENDS:=luci +luci-mod-freifunk
144 TITLE:=Freifunk Leipzig configuration wizard
147 define Package/luci-app-ffwizard-leipzig/install
148 $(call Package/luci/install/template,$(1),applications/luci-ffwizard-leipzig)
152 define Package/luci-app-firewall
153 $(call Package/luci/template)
154 DEPENDS:=luci +luci-mod-admin-core
155 TITLE:=Firewall and Portforwarding application
158 define Package/luci-app-firewall/conffiles
162 define Package/luci-app-firewall/install
163 $(call Package/luci/install/template,$(1),applications/luci-fw)
164 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-fw/dist/etc/init.d/luci_fw $(1)/etc/init.d
168 define Package/luci-app-splash
169 $(call Package/luci/template)
170 DEPENDS:=luci +luci-mod-freifunk +luci-sgi-haserl +iptables-mod-nat +iptables-mod-ipopt
171 TITLE:=Freifunk DHCP-Splash application
174 define Package/luci-app-splash/conffiles
175 /etc/config/luci_splash
178 define Package/luci-app-splash/install
179 $(call Package/luci/install/template,$(1),applications/luci-splash)
180 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/usr/sbin/luci-splash $(1)/usr/sbin
181 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/init.d/luci_splash $(1)/etc/init.d
182 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/etc/cron.minutely/luci_splash $(1)/etc/cron.minutely
183 $(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
184 $(INSTALL_BIN) $(PKG_BUILD_DIR)/applications/luci-splash/dist/www/cgi-bin/luci-splash $(1)/www/cgi-bin/luci-splash
189 ### Server Gateway Interfaces ###
191 define Package/luci-sgi-haserl
192 $(call Package/luci/template)
193 DEPENDS:=luci +haserl-lua
194 TITLE:=SGI for Haserl
197 define Package/luci-sgi-haserl/install
198 $(call Package/luci/install/template,$(1),applications/sgi-haserl)
199 $(CP) -a ./ipkg/luci-sgi-haserl.postinst $(1)/CONTROL/postinst
203 define Package/luci-sgi-webuci
204 $(call Package/luci/template)
206 TITLE:=SGI for Webuci
209 define Package/luci-sgi-webuci/install
210 $(call Package/luci/install/template,$(1),applications/sgi-webuci)
216 $(eval $(call BuildPackage,luci))
218 $(eval $(call BuildPackage,luci-ff-halle))
219 $(eval $(call BuildPackage,luci-ff-leipzig))
220 $(eval $(call BuildPackage,luci-ff-hannover))
222 $(eval $(call BuildPackage,luci-mod-admin-core))
223 $(eval $(call BuildPackage,luci-mod-freifunk))
225 $(eval $(call BuildPackage,luci-app-ffwizard-leipzig))
226 $(eval $(call BuildPackage,luci-app-firewall))
227 $(eval $(call BuildPackage,luci-app-splash))
229 $(eval $(call BuildPackage,luci-sgi-haserl))
230 $(eval $(call BuildPackage,luci-sgi-webuci))