nodogsplash: update to version 1.0.2
[feed/routing.git] / nodogsplash / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=nodogsplash
9 PKG_FIXUP:=autoreconf
10 PKG_VERSION:=1.0.2
11 PKG_RELEASE:=1
12
13 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)/
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=git://github.com/nodogsplash/nodogsplash.git
16 PKG_SOURCE_VERSION:=9ef7d5fc16351585baf65877776d19cf85bf3031
17 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
18 PKG_BUILD_PARALLEL:=1
19 PKG_LICENSE:=GPL-2.0+
20
21 include $(INCLUDE_DIR)/package.mk
22
23
24 define Package/nodogsplash
25 SUBMENU:=Captive Portals
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread +iptables-mod-ipopt
29 TITLE:=Open public network gateway daemon
30 URL:=https://github.com/nodogsplash/nodogsplash
31 endef
32
33 define Package/nodogsplash/description
34 Nodogsplash offers a simple way to open a free hotspot providing
35 restricted access to an internet connection.
36 endef
37
38 define Package/nodogsplash/install
39 $(INSTALL_DIR) $(1)/usr/bin
40 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nodogsplash $(1)/usr/bin/
41 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
42
43 $(INSTALL_DIR) $(1)/etc/init.d
44 $(INSTALL_BIN) files/nodogsplash.init $(1)/etc/init.d/nodogsplash
45 $(INSTALL_DIR) $(1)/etc/config
46 $(INSTALL_CONF) files/nodogsplash.config $(1)/etc/config/nodogsplash
47
48 $(INSTALL_DIR) $(1)/etc/$(PKG_NAME)/htdocs/images
49 $(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/$(PKG_NAME)/htdocs/
50 $(CP) $(PKG_BUILD_DIR)/resources/infoskel.html $(1)/etc/$(PKG_NAME)/htdocs/
51 $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/$(PKG_NAME)/htdocs/images/
52 endef
53
54 define Package/nodogsplash/conffiles
55 /etc/nodogsplash/nodogsplash.conf
56 endef
57
58 $(eval $(call BuildPackage,nodogsplash))