2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
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
)
21 include $(INCLUDE_DIR
)/package.mk
24 define Package
/nodogsplash
25 SUBMENU
:=Captive Portals
28 DEPENDS
:=+libpthread
+iptables-mod-ipopt
29 TITLE
:=Open public network gateway daemon
30 URL
:=https
://github.com
/nodogsplash
/nodogsplash
33 define Package
/nodogsplash
/description
34 Nodogsplash offers a simple way to open a free hotspot providing
35 restricted access to an internet connection.
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
/
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
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
/
54 define Package
/nodogsplash
/conffiles
55 /etc
/nodogsplash
/nodogsplash.conf
58 $(eval
$(call BuildPackage
,nodogsplash
))