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.4+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_DEPENDS
:=lua-luci
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
21 # LUA_TARGET:=compile LUAC=$(BUILD_DIR_HOST)/lua-luci/luac
25 include $(INCLUDE_DIR
)/package.mk
27 define Build
/Configure
31 $(MAKE
) -C
$(PKG_BUILD_DIR
) build LUA_TARGET
=$(LUA_TARGET
)
35 define Package
/ffluci
/template
37 CATEGORY
:=Administration
38 TITLE
:=FFLuCI
- Freifunk Lua Configuration Interface
39 URL
:=http
://luci.freifunk-halle.net
/
40 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
43 define Package
/ffluci
/install/template
44 $(CP
) $(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
49 $(call Package
/ffluci
/template
)
51 DEPENDS
:=+lua-luci
+luaposix
+luci-addons
54 define Package
/ffluci
/conffiles
58 define Package
/ffluci
/install
59 $(call Package
/ffluci
/install/template
,$(1),core
)
60 $(call Package
/ffluci
/install/template
,$(1),themes
/fledermaus
)
64 ### Community Packages ###
66 define Package
/ffluci-ff-halle
67 $(call Package
/ffluci
/template
)
69 +ffluci-sgi-haserl
+ffluci-mod-freifunk
+ffluci-app-firewall
+ffluci-app-splash \
70 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
72 TITLE
:=Freifunk Halle Community Meta-Package
75 define Package
/ffluci-ff-halle
/install
79 define Package
/ffluci-ff-leipzig
80 $(call Package
/ffluci
/template
)
82 +ffluci-sgi-haserl
+ffluci-mod-freifunk
+ffluci-app-firewall
+ffluci-app-splash \
83 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
85 TITLE
:=Freifunk Leipzig Community Meta-Package
88 define Package
/ffluci-ff-leipzig
/install
89 $(call Package
/ffluci
/install/template
,$(1),applications
/community-leipzig
)
90 $(CP
) -a .
/ipkg
/ffluci-ff-leipzig.postinst
$(1)/CONTROL
/postinst
97 define Package
/ffluci-mod-admin-core
98 $(call Package
/ffluci
/template
)
100 TITLE
:=Core administrative pages
103 define Package
/ffluci-mod-admin-core
/install
104 $(call Package
/ffluci
/install/template
,$(1),modules
/admin-core
)
108 define Package
/ffluci-mod-freifunk
109 $(call Package
/ffluci
/template
)
110 DEPENDS
:=ffluci
+ffluci-mod-admin-core
111 TITLE
:=Freifunk public and administrative pages
114 define Package
/ffluci-mod-freifunk
/conffiles
118 define Package
/ffluci-mod-freifunk
/install
119 $(call Package
/ffluci
/install/template
,$(1),modules
/freifunk
)
120 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/modules
/freifunk
/dist/etc
/init.d
/luci_freifunk
$(1)/etc
/init.d
127 define Package
/ffluci-app-firewall
128 $(call Package
/ffluci
/template
)
129 DEPENDS
:=ffluci
+ffluci-mod-admin-core
130 TITLE
:=Firewall and Portforwarding application
133 define Package
/ffluci-app-firewall
/conffiles
137 define Package
/ffluci-app-firewall
/install
138 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-fw
)
139 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
143 define Package
/ffluci-app-splash
144 $(call Package
/ffluci
/template
)
145 DEPENDS
:=ffluci
+ffluci-mod-freifunk
+ffluci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
146 TITLE
:=Freifunk DHCP-Splash application
149 define Package
/ffluci-app-splash
/conffiles
150 /etc
/config
/luci_splash
153 define Package
/ffluci-app-splash
/install
154 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-splash
)
155 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
156 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
157 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
158 $(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
159 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
164 ### Server Gateway Interfaces ###
166 define Package
/ffluci-sgi-haserl
167 $(call Package
/ffluci
/template
)
168 DEPENDS
:=ffluci
+haserl-lua
169 TITLE
:=SGI for Haserl
172 define Package
/ffluci-sgi-haserl
/install
173 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-haserl
)
174 $(CP
) -a .
/ipkg
/ffluci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
178 define Package
/ffluci-sgi-webuci
179 $(call Package
/ffluci
/template
)
181 TITLE
:=SGI for Webuci
184 define Package
/ffluci-sgi-webuci
/install
185 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-webuci
)
191 $(eval
$(call BuildPackage
,ffluci
))
193 $(eval
$(call BuildPackage
,ffluci-ff-halle
))
194 $(eval
$(call BuildPackage
,ffluci-ff-leipzig
))
196 $(eval
$(call BuildPackage
,ffluci-mod-admin-core
))
197 $(eval
$(call BuildPackage
,ffluci-mod-freifunk
))
199 $(eval
$(call BuildPackage
,ffluci-app-firewall
))
200 $(eval
$(call BuildPackage
,ffluci-app-splash
))
202 $(eval
$(call BuildPackage
,ffluci-sgi-haserl
))
203 $(eval
$(call BuildPackage
,ffluci-sgi-webuci
))