mirror of
https://git.openwrt.org/feed/routing.git
synced 2024-06-14 11:13:54 +02:00
7fb22c4ad2
Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, gl-inet b1300, gl-inet mt300n-v2, Snapshot, 21.02.0, 19.07.8 Description: This version adds new functionality, and fixes some issues * Add - Error message in fas-aes-https if shared key is mismatched [bluewave.net] * Fix - and refactor error 511 page generation[bluewave.net] * Fix - and refactor dnsmasq configuration [bluewave.net] * Fix - Typographic error preventing RFC8910 disable [bluewave.net] * Add - gateway address and gatewayfqdn to ndsctl json output [bluewave.net] * Add - RFC8910 housekeeping on startup and shutdown [bluewave.net] * Add - correctly apply dhcp option 114 for generic Linux [bluewave.net] * Add - reading of configured ndsctlsocket in ndsctl utility[bluewave.net] * Add - use send_error 200 for MHD watchdog [bluewave.net] * Add - generation of page_511 html by library script [bluewave.net] * Add - extend debuglevel support to library scripts [bluewave.net] * Refactor - fas-aes-https to simplify and make customisation of http easier [bluewave.net] * Add - library script for error 511 page, allowing customisation [bluewave.net] * Add - make authmon report connection error details [bluewave.net] * Fix- remove unwanted debug message in ndsctl [bluewave.net] * Add - RFC8910 support by default [bluewave.net] * Add - display status page when accessing /login when authenticated [bluewave.net] * Add - MHD response to RFC8910 requests [bluewave.net] * Add - Dnsmasq RFC8910 configuration [bluewave.net] * Add - send error 511 in response to unsupported http method [bluewave.net] * Add - Check for ca-bundle on OpenWrt, if not installed, add syslog messages and terminate [bluewave.net] * Add - Make ndsctl use the configured value for socket path if set and deprecate -s option [bluewave.net] * Add - Warning message when Walled Garden port 80 is allowed [bluewave.net] * Fix - remove un-needed pthread_kill in termination_handler() [bluewave.net] [T-X] * Fix - debug messages from authmon.sh [bluewave.net] * Fix - Allow disabling gateway fqdn, facilitating access to router port 80 [bluewave.net] * Fix - Segfault in ndsctl when -s option is used incorrectly [bluewave.net] [T-X] * Fix - Typo making calculation of ul/dl rates incorrect [bluewave.net] * Fix - Allow port 80 to be configured in the Walled Garden [bluewave.net] Signed-off-by: Rob White <rob@blue-wave.net>
89 lines
4.4 KiB
Makefile
89 lines
4.4 KiB
Makefile
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=opennds
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_VERSION:=9.4.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/opennds/opennds/tar.gz/v$(PKG_VERSION)?
|
|
PKG_SOURCE:=opennds-$(PKG_VERSION).tar.gz
|
|
PKG_HASH:=fc2fa2e810ade5b281885f6ca3c2bb7ceb8d87176f2072e8ef9d75aa816e21e9
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/openNDS-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Rob White <rob@blue-wave.net>
|
|
PKG_BUILD_PARALLEL:=1
|
|
PKG_LICENSE:=GPL-2.0+
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/opennds
|
|
SUBMENU:=Captive Portals
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+libpthread +iptables-mod-ipopt +libmicrohttpd-no-ssl
|
|
TITLE:=Open public network gateway daemon
|
|
URL:=https://github.com/opennds/opennds
|
|
CONFLICTS:=nodogsplash nodogsplash2
|
|
endef
|
|
|
|
define Package/opennds/description
|
|
openNDS is a Captive Portal solution that offers an instant way to provide restricted access to the Internet.
|
|
With little or no configuration, a dynamically generated and adaptive splash page sequence is automatically served.
|
|
Both client driven Captive Portal Detection (CPD) and gateway driven Captive Portal Identification (CPI) are supported.
|
|
Internet access is granted by either a click to continue button, or after credential verification as a result of filling in a login form.
|
|
The package incorporates the FAS API allowing many flexible customisation options.
|
|
The creation of sophisticated third party authentication applications is fully supported.
|
|
Internet hosted https portals can be utilised to inspire maximum user confidence.
|
|
endef
|
|
|
|
define Package/opennds/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/opennds $(1)/usr/bin/
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
|
|
$(INSTALL_DIR) $(1)/etc/opennds/htdocs/images
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
$(INSTALL_DIR) $(1)/etc/uci-defaults
|
|
$(INSTALL_DIR) $(1)/usr/lib/opennds
|
|
$(CP) $(PKG_BUILD_DIR)/resources/splash.css $(1)/etc/opennds/htdocs/
|
|
$(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/opennds/htdocs/images/
|
|
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/config/opennds $(1)/etc/config/
|
|
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/config/opennds $(1)/etc/opennds/config.uci
|
|
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/init.d/opennds $(1)/etc/init.d/
|
|
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/uci-defaults/40_opennds $(1)/etc/uci-defaults/
|
|
$(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/usr/lib/opennds/restart.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/binauth/binauth_log.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/libopennds.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_click-to-continue-basic.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_click-to-continue-custom-placeholders.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_user-email-login-basic.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/theme_user-email-login-custom-placeholders.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/get_client_interface.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/get_client_token.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/client_params.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/unescape.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/authmon.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/dnsconfig.sh $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/post-request.php $(1)/usr/lib/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-aes/fas-aes.php $(1)/etc/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-hid/fas-hid.php $(1)/etc/opennds/
|
|
$(CP) $(PKG_BUILD_DIR)/forward_authentication_service/fas-aes/fas-aes-https.php $(1)/etc/opennds/
|
|
endef
|
|
|
|
define Package/opennds/postrm
|
|
#!/bin/sh
|
|
uci delete firewall.opennds
|
|
uci commit firewall
|
|
endef
|
|
|
|
define Package/opennds/conffiles
|
|
/etc/config/opennds
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,opennds))
|