Correcting the download URL. Also having it search for 'LibreWRT'
[librewrt/.git] / packages / xwrt / webif-mesh / Makefile
1
2 # Copyright (C) 2006 Michele Favara Pedarsi <mik.fp@commentaria.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=webif-mesh
10 PKG_VERSION:=0.1
11 PKG_RELEASE:=beta
12
13 # PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 # PKG_SOURCE_URL:=http://
15 # PKG_MD5SUM:=90b2b2bef15e307b42a04702385be25d
16 # PKG_CAT:=zcat
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/webif-mesh
23   SECTION:=admin
24   CATEGORY:=Administration
25   SUBMENU:=webif
26   DEPENDS:=+webif
27   TITLE:=XWrt mesh installation page
28 endef
29
30 define Build/Compile
31 endef
32
33
34 define Package/webif-mesh/install
35         $(CP) -a ./files/* $(1)/
36         mkdir -p $(1)/CONTROL
37         $(INSTALL_BIN) ./files/www/cgi-bin/webif/* $(1)/www/cgi-bin/webif/
38         $(INSTALL_BIN) ./files/etc/init.d/mesh $(1)/etc/init.d/mesh
39         $(CP) -a ./ipkg/webif-mesh.postinst $(1)/CONTROL/preinst
40         $(CP) -a ./ipkg/webif-mesh.postrm $(1)/CONTROL/postrm
41 endef
42
43 $(eval $(call BuildPackage,webif-mesh))