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
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-ffwizard-leipzig
155 $(call Package
/luci
/template
)
156 DEPENDS
:=luci
+luci-mod-freifunk
157 TITLE
:=Freifunk Leipzig configuration wizard
160 define Package
/luci-app-ffwizard-leipzig
/install
161 $(call Package
/luci
/install/template
,$(1),applications
/luci-ffwizard-leipzig
)
165 define Package
/luci-app-firewall
166 $(call Package
/luci
/template
)
167 DEPENDS
:=luci
+luci-mod-admin-core
168 TITLE
:=Firewall and Portforwarding application
171 define Package
/luci-app-firewall
/conffiles
175 define Package
/luci-app-firewall
/install
176 $(call Package
/luci
/install/template
,$(1),applications
/luci-fw
)
177 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
181 define Package
/luci-app-splash
182 $(call Package
/luci
/template
)
183 DEPENDS
:=luci
+luci-mod-freifunk
+luci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
184 TITLE
:=Freifunk DHCP-Splash application
187 define Package
/luci-app-splash
/conffiles
188 /etc
/config
/luci_splash
191 define Package
/luci-app-splash
/install
192 $(call Package
/luci
/install/template
,$(1),applications
/luci-splash
)
193 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
194 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
195 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
196 $(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
197 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
201 define Package
/luci-app-statistics
202 $(call Package
/luci
/template
)
203 DEPENDS
:=luci
+collectd
+collectd-mod-rrdtool1
+rrdtool1
204 TITLE
:=LuCI Statistics Application
(incomplete
)
207 define Package
/luci-app-statistics
/conffiles
208 /etc
/config
/luci_statistics
211 define Package
/luci-app-statistics
/install
212 $(call Package
/luci
/install/template
,$(1),applications
/luci-statistics
)
213 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/usr
/bin
/stat-genconfig
$(1)/usr
/bin
214 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-statistics
/dist/etc
/init.d
/luci_statistics
$(1)/etc
/init.d
218 ### Server Gateway Interfaces ###
220 define Package
/luci-sgi-haserl
221 $(call Package
/luci
/template
)
222 DEPENDS
:=luci
+haserl-lua
223 TITLE
:=SGI for Haserl
226 define Package
/luci-sgi-haserl
/install
227 $(call Package
/luci
/install/template
,$(1),applications
/sgi-haserl
)
228 $(CP
) -a .
/ipkg
/luci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
232 define Package
/luci-sgi-webuci
233 $(call Package
/luci
/template
)
235 TITLE
:=SGI for Webuci
238 define Package
/luci-sgi-webuci
/install
239 $(call Package
/luci
/install/template
,$(1),applications
/sgi-webuci
)
245 $(eval
$(call BuildPackage
,luci
))
247 $(eval
$(call BuildPackage
,luci-ff-halle
))
248 $(eval
$(call BuildPackage
,luci-ff-leipzig
))
249 $(eval
$(call BuildPackage
,luci-ff-hannover
))
251 $(eval
$(call BuildPackage
,luci-mod-admin-core
))
252 $(eval
$(call BuildPackage
,luci-mod-freifunk
))
254 $(eval
$(call BuildPackage
,luci-app-ffwizard-leipzig
))
255 $(eval
$(call BuildPackage
,luci-app-firewall
))
256 $(eval
$(call BuildPackage
,luci-app-splash
))
257 $(eval
$(call BuildPackage
,luci-app-statistics
))
259 $(eval
$(call BuildPackage
,luci-sgi-haserl
))
260 $(eval
$(call BuildPackage
,luci-sgi-webuci
))