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
/ffluci
/template
35 CATEGORY
:=Administration
36 TITLE
:=FFLuCI
- Freifunk Lua Configuration Interface
37 URL
:=http
://luci.freifunk-halle.net
/
38 MAINTAINER
:=Steven Barth
<steven-at-midlink-dot-org
>
41 define Package
/ffluci
/install/template
42 $(CP
) $(PKG_BUILD_DIR
)/$(2)/dist/* $(1)/ -R
47 $(call Package
/ffluci
/template
)
49 DEPENDS
:=+lua
+luaposix
+luci-addons
52 define Package
/ffluci
/conffiles
56 define Package
/ffluci
/install
57 $(call Package
/ffluci
/install/template
,$(1),core
)
58 $(call Package
/ffluci
/install/template
,$(1),themes
/fledermaus
)
62 ### Community Packages ###
64 define Package
/ffluci-ff-halle
65 $(call Package
/ffluci
/template
)
67 +ffluci-sgi-haserl
+ffluci-mod-freifunk
+ffluci-app-splash \
68 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
70 TITLE
:=Freifunk Halle Community Meta-Package
73 define Package
/ffluci-ff-halle
/install
77 define Package
/ffluci-ff-leipzig
78 $(call Package
/ffluci
/template
)
80 +ffluci-sgi-haserl
+ffluci-mod-freifunk
+ffluci-app-splash \
81 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice \
83 TITLE
:=Freifunk Leipzig Community Meta-Package
86 define Package
/ffluci-ff-leipzig
/install
87 $(call Package
/ffluci
/install/template
,$(1),applications
/community-leipzig
)
88 $(CP
) -a .
/ipkg
/ffluci-ff-leipzig.postinst
$(1)/CONTROL
/postinst
92 define Package
/ffluci-ff-hannover
93 $(call Package
/ffluci
/template
)
95 +ffluci-sgi-haserl
+ffluci-mod-freifunk
+ffluci-app-splash \
96 +olsrd
+olsrd-mod-dyn-gw
+olsrd-mod-txtinfo
+olsrd-mod-nameservice
97 TITLE
:=Freifunk Hannover Community Meta-Package
98 URL
:=http
://www.freifunk-hannover.de
/
99 MAINTAINER
:=Mickey Knox
<mickey-at-netfreaks-dot-org
>
102 define Package
/ffluci-ff-hannover
/install
103 $(call Package
/ffluci
/install/template
,$(1),applications
/community-hannover
)
104 $(CP
) -a .
/ipkg
/ffluci-ff-hannover.postinst
$(1)/CONTROL
/postinst
110 define Package
/ffluci-mod-admin-core
111 $(call Package
/ffluci
/template
)
113 TITLE
:=Core administrative pages
116 define Package
/ffluci-mod-admin-core
/install
117 $(call Package
/ffluci
/install/template
,$(1),modules
/admin-core
)
121 define Package
/ffluci-mod-freifunk
122 $(call Package
/ffluci
/template
)
123 DEPENDS
:=ffluci
+ffluci-mod-admin-core
+ffluci-app-firewall
124 TITLE
:=Freifunk public and administrative pages
127 define Package
/ffluci-mod-freifunk
/conffiles
131 define Package
/ffluci-mod-freifunk
/install
132 $(call Package
/ffluci
/install/template
,$(1),modules
/freifunk
)
139 define Package
/ffluci-app-firewall
140 $(call Package
/ffluci
/template
)
141 DEPENDS
:=ffluci
+ffluci-mod-admin-core
142 TITLE
:=Firewall and Portforwarding application
145 define Package
/ffluci-app-firewall
/conffiles
149 define Package
/ffluci-app-firewall
/install
150 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-fw
)
151 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-fw
/dist/etc
/init.d
/luci_fw
$(1)/etc
/init.d
155 define Package
/ffluci-app-splash
156 $(call Package
/ffluci
/template
)
157 DEPENDS
:=ffluci
+ffluci-mod-freifunk
+ffluci-sgi-haserl
+iptables-mod-nat
+iptables-mod-ipopt
158 TITLE
:=Freifunk DHCP-Splash application
161 define Package
/ffluci-app-splash
/conffiles
162 /etc
/config
/luci_splash
165 define Package
/ffluci-app-splash
/install
166 $(call Package
/ffluci
/install/template
,$(1),applications
/luci-splash
)
167 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/usr
/sbin
/luci-splash
$(1)/usr
/sbin
168 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/init.d
/luci_splash
$(1)/etc
/init.d
169 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/etc
/cron.minutely
/luci_splash
$(1)/etc
/cron.minutely
170 $(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
171 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/applications
/luci-splash
/dist/www
/cgi-bin
/luci-splash
$(1)/www
/cgi-bin
/luci-splash
176 ### Server Gateway Interfaces ###
178 define Package
/ffluci-sgi-haserl
179 $(call Package
/ffluci
/template
)
180 DEPENDS
:=ffluci
+haserl-lua
181 TITLE
:=SGI for Haserl
184 define Package
/ffluci-sgi-haserl
/install
185 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-haserl
)
186 $(CP
) -a .
/ipkg
/ffluci-sgi-haserl.postinst
$(1)/CONTROL
/postinst
190 define Package
/ffluci-sgi-webuci
191 $(call Package
/ffluci
/template
)
193 TITLE
:=SGI for Webuci
196 define Package
/ffluci-sgi-webuci
/install
197 $(call Package
/ffluci
/install/template
,$(1),applications
/sgi-webuci
)
203 $(eval
$(call BuildPackage
,ffluci
))
205 $(eval
$(call BuildPackage
,ffluci-ff-halle
))
206 $(eval
$(call BuildPackage
,ffluci-ff-leipzig
))
207 $(eval
$(call BuildPackage
,ffluci-ff-hannover
))
209 $(eval
$(call BuildPackage
,ffluci-mod-admin-core
))
210 $(eval
$(call BuildPackage
,ffluci-mod-freifunk
))
212 $(eval
$(call BuildPackage
,ffluci-app-firewall
))
213 $(eval
$(call BuildPackage
,ffluci-app-splash
))
215 $(eval
$(call BuildPackage
,ffluci-sgi-haserl
))
216 $(eval
$(call BuildPackage
,ffluci-sgi-webuci
))