mirror of
https://github.com/openwrt/routing.git
synced 2025-02-23 11:36:14 +00:00
Maintainer: Rob White rob@blue-wave.net Compile tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64 Run tested: arm_cortex-a7_neon-vfpv4, mipsel_24kc, x86-64; on 21.02 * This version adds new functionality, and fixes some issues * Fix - suppress stderr in client_params in generic linux [bluewavenet] * Fix - client_params on generic linux, remote logo not supported yet [bluewavenet] * Fix - compiler warning [bluewavenet] * Fix - set voucher script as executable [bluewavenet] * Update OpenWrt Makefile [bluewavenet] * Add - format footer in Themespec scripts [bluewavenet] * Update footer on all scripts [bluewavenet] * Update - Community Voucher Themespec [bluewavenet] * Add - Check on startup for Y2.038K bug (32 bit time) [bluewavenet] * Fix - Remove deprecated Debian specific files [bluewavenet] * Add - More css updates [bluewavenet] * Add - user friendly RFC8910 page511 text and remove refresh button [bluewavenet] * Fix - MHD becomes unresponsive serving page 511 for rfc8910 clients [bluewavenet] * Add - extra startup settings - ignore_sigpipe and write nds info [bluewavenet] * Add - set MHD connection limit to 100, set MHD listen backlog size to 128, set MHD_HTTP_HEADER_CONNECTION "close" [bluewavenet] * Fix - Add missing LOG_CRIT in debug [bluewavenet] * Add - some useful diagnostic output in authmon [bluewavenet] * Fix - Move testing to community [bluewavenet] * Fix - Community - Use tmpfs by default for vouchers.txt file [bluewavenet] * Add - README with use instructions and notice about flash wearout [fservida] * Fix - Refactor folder structure for community themespec [fservida] * Add - Create vouchers.txt [fservida] * Add - Create theme_voucher.sh [fservida] * Update - README.md [bluewavenet] * Add - image download info message [bluewavenet] * Add - css updates [dianariyanto] * Add - allow downloaded remotes refresh for all modes [bluewavenet] * Add - download_resources.sh to installed files [bluewavenet] * Add - support for download of custom images and files in the status.client page [bluewavenet] * Remove - Debian man page support [bluewavenet] * Fix - Add missing mkdir command in Makefile [dzatoah] * Fix - typos in src/{conf, main}.c [dzatoah] Signed-off-by: Rob White <rob@blue-wave.net>
92 lines
4.5 KiB
Makefile
92 lines
4.5 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_VERSION:=9.8.0
|
|
PKG_RELEASE:=2
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=https://codeload.github.com/opennds/opennds/tar.gz/v$(PKG_VERSION)?
|
|
PKG_HASH:=11f4a48ef62007f56376c32a028f19183452c62eee6fddcb11aafe822e5ff1b4
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/openNDS-$(PKG_VERSION)
|
|
|
|
PKG_MAINTAINER:=Rob White <rob@blue-wave.net>
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
PKG_LICENSE_FILES:=COPYING
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/opennds
|
|
SUBMENU:=Captive Portals
|
|
SECTION:=net
|
|
CATEGORY:=Network
|
|
DEPENDS:=+kmod-ipt-conntrack +kmod-ipt-nat +libmicrohttpd-no-ssl
|
|
TITLE:=Open public network gateway daemon
|
|
URL:=https://github.com/opennds/opennds
|
|
CONFLICTS:=nodogsplash
|
|
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 - RFC 8910 and RFC 8908) 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 implemented with no security errors, to inspire maximum user confidence.
|
|
This version requires iptables-legacy.
|
|
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/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/download_resources.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))
|