* Reworked Luci-Splash
[project/luci.git] / contrib / package / luci-splash / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=luci-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
10 include $(INCLUDE_DIR)/package.mk
11
12 define Package/luci-splash
13 SECTION:=admin
14 CATEGORY:=Administration
15 SUBMENU:=FFLuCI
16 DEPENDS:=+ffluci +iptables-mod-nat
17 TITLE:=FFLuCI DHCP-Splash
18 endef
19
20 define Build/Compile
21 endef
22
23 define Package/luci-splash/install
24 $(INSTALL_DIR) $(1)/usr/lib/luci-splash/htdocs
25 $(INSTALL_DIR) $(1)/etc/config
26 $(INSTALL_DIR) $(1)/etc/crontabs
27 $(INSTALL_DIR) $(1)/etc/init.d
28
29 $(CP) -a ./src/luci-splash/* $(1)/usr/lib/luci-splash/ -R
30 $(INSTALL_BIN) ./src/luci-splash/sync.lua $(1)/usr/lib/luci-splash
31 $(INSTALL_BIN) ./src/luci-splash/htdocs/cgi-bin/index.cgi $(1)/usr/lib/luci-splash/htdocs/cgi-bin
32 $(INSTALL_BIN) ./src/luci_splash.init $(1)/etc/init.d/luci_splash
33
34 $(CP) -a ./src/luci_splash.cron $(1)/etc/crontabs/luci_splash
35 $(CP) -a ./src/luci_splash.uci $(1)/etc/config/luci_splash
36 $(CP) -a ./src/luci_splash_httpd.conf $(1)/etc/
37
38 $(CP) -a ./ipkg/conffiles $(1)/CONTROL/conffiles
39 endef
40
41 $(eval $(call BuildPackage,luci-splash))