2007-06-02 12:54:52 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=nodogsplash
|
2013-05-10 23:34:35 +02:00
|
|
|
PKG_FIXUP:=autoreconf
|
2018-09-02 23:30:22 +02:00
|
|
|
PKG_VERSION:=3.2.0
|
2018-09-13 16:05:26 +02:00
|
|
|
PKG_RELEASE:=1
|
2018-08-16 15:03:12 +02:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/nodogsplash/nodogsplash/tar.gz/v$(PKG_VERSION)?
|
|
|
|
PKG_SOURCE:=nodogsplash-$(PKG_VERSION).tar.gz
|
2018-09-02 23:30:22 +02:00
|
|
|
PKG_HASH:=c9712c21c2cc88724a8104fa63edd4f69d31af24db0fad84db6105fae2d65809
|
2018-08-16 15:03:12 +02:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/nodogsplash-$(PKG_VERSION)
|
|
|
|
|
|
|
|
PKG_MAINTAINER:=Moritz Warning <moritzwarning@web.de>
|
2013-05-10 23:34:35 +02:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
2014-11-03 13:16:46 +01:00
|
|
|
PKG_LICENSE:=GPL-2.0+
|
2013-05-10 23:34:35 +02:00
|
|
|
|
2007-06-02 12:54:52 +02:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2013-05-11 00:37:02 +02:00
|
|
|
|
2007-06-02 12:54:52 +02:00
|
|
|
define Package/nodogsplash
|
2013-05-11 00:37:02 +02:00
|
|
|
SUBMENU:=Captive Portals
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2018-08-16 15:03:12 +02:00
|
|
|
DEPENDS:=+libpthread +iptables-mod-ipopt +libmicrohttpd-no-ssl
|
2013-05-11 00:37:02 +02:00
|
|
|
TITLE:=Open public network gateway daemon
|
2013-05-20 18:42:53 +02:00
|
|
|
URL:=https://github.com/nodogsplash/nodogsplash
|
2018-08-17 11:38:57 +02:00
|
|
|
CONFLICTS:=nodogsplash2
|
2007-06-02 12:54:52 +02:00
|
|
|
endef
|
|
|
|
|
2007-10-14 06:32:56 +02:00
|
|
|
define Package/nodogsplash/description
|
2018-09-02 23:30:22 +02:00
|
|
|
Nodogsplash is a Captive Portal that offers a simple way to
|
|
|
|
provide restricted access to the Internet by showing a splash
|
|
|
|
page to the user before Internet access is granted.
|
|
|
|
It also incorporates an API that allows the creation of
|
|
|
|
sophisticated authentication applications.
|
2007-10-14 06:32:56 +02:00
|
|
|
endef
|
|
|
|
|
2009-09-20 14:52:15 +02:00
|
|
|
define Package/nodogsplash/install
|
2018-08-16 15:03:12 +02:00
|
|
|
$(CP) ./files/* $(1)/
|
|
|
|
|
2007-06-02 12:54:52 +02:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2013-05-11 00:37:02 +02:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nodogsplash $(1)/usr/bin/
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
|
|
|
|
|
2018-08-16 15:03:12 +02:00
|
|
|
$(INSTALL_DIR) $(1)/etc/nodogsplash/htdocs/images
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/nodogsplash/htdocs/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/resources/status.html $(1)/etc/nodogsplash/htdocs/
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/
|
|
|
|
endef
|
2014-12-09 11:10:51 +01:00
|
|
|
|
2018-08-16 15:03:12 +02:00
|
|
|
define Package/nodogsplash/postrm
|
|
|
|
#!/bin/sh
|
|
|
|
uci delete firewall.nodogsplash
|
|
|
|
uci commit firewall
|
2011-11-16 21:02:41 +01:00
|
|
|
endef
|
|
|
|
|
2014-11-29 08:11:36 +01:00
|
|
|
define Package/nodogsplash/conffiles
|
2018-08-16 15:03:12 +02:00
|
|
|
/etc/config/nodogsplash
|
2014-11-29 08:11:36 +01:00
|
|
|
endef
|
2013-05-11 00:37:02 +02:00
|
|
|
|
2007-06-02 12:54:52 +02:00
|
|
|
$(eval $(call BuildPackage,nodogsplash))
|