nodogsplash2: update to version 2.0.1 (#344)
[feed/routing.git] / nodogsplash2 / 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:=nodogsplash2
9 PKG_FIXUP:=autoreconf
10 PKG_VERSION:=2.0.1
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:=907f4e8c5a53868947ca547b0ebff5ae36fce7a8
17 PKG_MIRROR_HASH:=c54fccd5649b5c33873e14e8fa766c5ba24dd06fb1a2ed0bdceb1d86bd83295e
18 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19 PKG_MAINTAINER:=Moritz Warning <moritzwarning@web.de>
20 PKG_BUILD_PARALLEL:=1
21 PKG_LICENSE:=GPL-2.0+
22
23 include $(INCLUDE_DIR)/package.mk
24
25
26 define Package/nodogsplash2
27 SUBMENU:=Captive Portals
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+libpthread +iptables-mod-ipopt +libmicrohttpd-no-ssl
31 TITLE:=Open public network gateway daemon
32 URL:=https://github.com/nodogsplash/nodogsplash
33 CONFLICTS:=nodogsplash
34 endef
35
36 define Package/nodogsplash2/description
37 Nodogsplash offers a simple way to open a free hotspot providing
38 restricted access to an internet connection.
39 endef
40
41 define Package/nodogsplash2/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nodogsplash $(1)/usr/bin/
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
45
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) files/nodogsplash.init $(1)/etc/init.d/nodogsplash
48 $(INSTALL_DIR) $(1)/etc/config
49 $(INSTALL_CONF) files/nodogsplash.config $(1)/etc/config/nodogsplash
50
51 $(INSTALL_DIR) $(1)/etc/nodogsplash/htdocs/images
52 $(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/nodogsplash/htdocs/
53 $(CP) $(PKG_BUILD_DIR)/resources/infoskel.html $(1)/etc/nodogsplash/htdocs/
54 $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/
55 endef
56
57 define Package/nodogsplash2/conffiles
58 /etc/nodogsplash/nodogsplash.conf
59 endef
60
61 $(eval $(call BuildPackage,nodogsplash2))