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-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-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
+ffluci-app-firewall
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
)
126 define Package
/ffluci-app-firewall
127 $(call Package
/ffluci
/template
)
128 DEPENDS
:=ffluci
+ffluci-mod-admin-core
129 TITLE
:=Firewall and Portforwarding application
132 define Package
/ffluci-app-firewall
/conffiles
136 define Package
/ffluci-app-firewall
/install
137 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-fw
)
138 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
142 define Package
/ffluci-app-splash
143 $(call Package
/ffluci
/template
)
144 DEPENDS
:=ffluci
+ffluci-mod-freifunk
+ffluci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
145 TITLE
:=Freifunk DHCP-Splash application
148 define Package
/ffluci-app-splash
/conffiles
149 /etc
/config
/luci_splash
152 define Package
/ffluci-app-splash
/install
153 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-splash
)
154 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
155 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
156 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
157 $(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
158 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
163 ### Server Gateway Interfaces ###
165 define Package
/ffluci-sgi-haserl
166 $(call Package
/ffluci
/template
)
167 DEPENDS
:=ffluci
+haserl-lua
168 TITLE
:=SGI for Haserl
171 define Package
/ffluci-sgi-haserl
/install
172 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-haserl
)
173 $(CP
) -a .
/ipkg
/ffluci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
177 define Package
/ffluci-sgi-webuci
178 $(call Package
/ffluci
/template
)
180 TITLE
:=SGI for Webuci
183 define Package
/ffluci-sgi-webuci
/install
184 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-webuci
)
190 $(eval
$(call BuildPackage
,ffluci
))
192 $(eval
$(call BuildPackage
,ffluci-ff-halle
))
193 $(eval
$(call BuildPackage
,ffluci-ff-leipzig
))
195 $(eval
$(call BuildPackage
,ffluci-mod-admin-core
))
196 $(eval
$(call BuildPackage
,ffluci-mod-freifunk
))
198 $(eval
$(call BuildPackage
,ffluci-app-firewall
))
199 $(eval
$(call BuildPackage
,ffluci-app-splash
))
201 $(eval
$(call BuildPackage
,ffluci-sgi-haserl
))
202 $(eval
$(call BuildPackage
,ffluci-sgi-webuci
))