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