(no commit message)
[project/luci.git] / contrib / package / ffluci-splash / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=ffluci-splash
4 PKG_VERSION:=0.1
5 PKG_RELEASE:=1
6
7 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
8 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
9 PKG_BUILD_DEPENDS:=lua-luci
10
11 include $(INCLUDE_DIR)/package.mk
12
13 define Package/ffluci-splash
14   SECTION:=admin
15   CATEGORY:=Administration
16   SUBMENU:=FFLuCI
17   DEPENDS:=+ffluci +iptables-mod-nat +lua-luci
18   TITLE:=FFLuCI DHCP-Splash
19 endef
20
21 define Build/Compile
22 endef
23
24 define Package/ffluci-splash/install
25         $(INSTALL_DIR) $(1)/usr/lib/luci-splash/htdocs/cgi-bin
26         $(INSTALL_DIR) $(1)/etc/config
27         $(INSTALL_DIR) $(1)/etc/cron.minutely
28         $(INSTALL_DIR) $(1)/etc/init.d
29         $(INSTALL_DIR) $(1)/usr/sbin
30         
31         $(CP) -a ./src/luci-splash/* $(1)/usr/lib/luci-splash/ -R
32         $(INSTALL_BIN) ./src/luci-splash/htdocs/cgi-bin/index.cgi $(1)/usr/lib/luci-splash/htdocs/cgi-bin
33         $(INSTALL_BIN) ./src/luci_splash.init $(1)/etc/init.d/luci_splash
34         $(INSTALL_BIN) ./src/luci-splash.lua $(1)/usr/sbin/luci-splash
35         
36         $(INSTALL_BIN) ./src/luci_splash.cron $(1)/etc/cron.minutely/luci-splash
37         $(CP) -a ./src/luci_splash.uci $(1)/etc/config/luci_splash
38         $(CP) -a ./src/luci_splash_httpd.conf $(1)/etc/
39         
40         $(CP) -a ./ipkg/conffiles $(1)/CONTROL/conffiles
41 endef
42
43 $(eval $(call BuildPackage,ffluci-splash))