2 # Copyright (C) 2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
12 PKG_VERSION
:=0.9_beta9.9
.8
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
.8
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
25 define Package
/nodogsplash
26 SUBMENU
:=Captive Portals
29 DEPENDS
:=+libpthread
+iptables-mod-ipopt
30 TITLE
:=Open public network gateway daemon
31 URL
:=https
://github.com
/nodogsplash
/nodogsplash
34 define Package
/nodogsplash
/description
35 Nodogsplash offers a simple way to open a free hotspot providing
36 restricted access to an internet connection.
39 define Package
/nodogsplash
/install
40 $(INSTALL_DIR
) $(1)/usr
/bin
41 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nodogsplash
$(1)/usr
/bin
/
42 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ndsctl
$(1)/usr
/bin
/
44 $(INSTALL_DIR
) $(1)/etc
/init.d
45 $(INSTALL_BIN
) files
/nodogsplash.init
$(1)/etc
/init.d
/$(PKG_NAME
)
47 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)/htdocs
/images
48 $(CP
) $(PKG_BUILD_DIR
)/resources
/nodogsplash.conf
$(1)/etc
/$(PKG_NAME
)/
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
/
55 $(eval
$(call BuildPackage
,nodogsplash
))