2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_SOURCE_URL
:=https
://codeload.github.com
/nodogsplash
/nodogsplash
/tar.gz
/v
$(PKG_VERSION
)?
14 PKG_HASH
:=908d3674e93726fdcefb4c3b6705c745753435df9d46425781a57e3f6b417797
16 PKG_MAINTAINER
:=Moritz Warning
<moritzwarning@web.de
>
17 PKG_LICENSE
:=GPL-2.0
-or-later
18 PKG_LICENSE_FILES
:=COPYING
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/nodogsplash
26 SUBMENU
:=Captive Portals
29 DEPENDS
:=+libpthread
+libmicrohttpd-no-ssl
+iptables-nft \
30 +iptables-mod-nat-extra
+iptables-mod-ipopt \
31 +iptables-mod-conntrack-extra
32 TITLE
:=Open public network gateway daemon
33 URL
:=https
://github.com
/nodogsplash
/nodogsplash
36 define Package
/nodogsplash
/description
37 Nodogsplash is a Captive Portal that offers a simple way to
38 provide restricted access to the Internet by showing a splash
39 page to the user before Internet access is granted.
42 define Package
/nodogsplash
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
/nodogsplash
44 $(INSTALL_BIN
) .
/files
/usr
/lib
/nodogsplash
/restart.sh
$(1)/usr
/lib
/nodogsplash
/
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nodogsplash
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ndsctl
$(1)/usr
/bin
/
48 $(INSTALL_DIR
) $(1)/etc
/nodogsplash
/htdocs
/
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/resources
/splash.html
$(1)/etc
/nodogsplash
/htdocs
/
50 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/resources
/splash.css
$(1)/etc
/nodogsplash
/htdocs
/
51 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/resources
/status.html
$(1)/etc
/nodogsplash
/htdocs
/
52 $(INSTALL_DIR
) $(1)/etc
/nodogsplash
/htdocs
/images
53 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/resources
/splash.jpg
$(1)/etc
/nodogsplash
/htdocs
/images
/
54 $(INSTALL_DIR
) $(1)/etc
/config
55 $(INSTALL_CONF
) .
/files
/etc
/config
/nodogsplash
$(1)/etc
/config
/
56 $(INSTALL_DIR
) $(1)/etc
/init.d
57 $(INSTALL_BIN
) .
/files
/etc
/init.d
/nodogsplash
$(1)/etc
/init.d
/
58 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
59 $(INSTALL_BIN
) .
/files
/etc
/uci-defaults
/40_nodogsplash
$(1)/etc
/uci-defaults
/
62 define Package
/nodogsplash
/postrm
64 uci delete firewall.nodogsplash
68 define Package
/nodogsplash
/conffiles
69 /etc
/config
/nodogsplash
72 $(eval
$(call BuildPackage
,nodogsplash
))