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
/opennds
/opennds
/tar.gz
/v
$(PKG_VERSION
)?
14 PKG_HASH
:=818c24a8704e584665b493857086bccc3c55629977841ddffc185f7d082ef279
15 PKG_BUILD_DIR
:=$(BUILD_DIR
)/openNDS-
$(PKG_VERSION
)
17 PKG_MAINTAINER
:=Rob White
<rob@blue-wave.net
>
18 PKG_LICENSE
:=GPL-2.0
-or-later
19 PKG_LICENSE_FILES
:=COPYING
24 include $(INCLUDE_DIR
)/package.mk
26 define Package
/opennds
27 SUBMENU
:=Captive Portals
30 DEPENDS
:=+libmicrohttpd-no-ssl
31 TITLE
:=open Network Demarcation Service
32 URL
:=https
://github.com
/opennds
/opennds
35 define Package
/opennds
/description
36 openNDS
(open Network Demarcation Service
) is a high performance
, small footprint
, Captive Portal.
37 It provides a border control gateway between a public local area network and the Internet.
38 It supports
all scenarios ranging from small stand alone venues through to large mesh networks with multiple portal entry points.
39 Both the client driven Captive Portal Detection method
(CPD
) and gateway driven Captive Portal Identification method
(CPI
- RFC
8910 and RFC
8908) are supported.
40 This version uses nftables.
43 define Package
/opennds
/install
44 $(INSTALL_DIR
) $(1)/usr
/bin
45 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/opennds
$(1)/usr
/bin
/
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ndsctl
$(1)/usr
/bin
/
47 $(INSTALL_DIR
) $(1)/etc
/opennds
/htdocs
/images
48 $(INSTALL_DIR
) $(1)/etc
/config
49 $(INSTALL_DIR
) $(1)/etc
/init.d
50 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
51 $(INSTALL_DIR
) $(1)/usr
/lib
/opennds
52 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.css
$(1)/etc
/opennds
/htdocs
/
53 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.jpg
$(1)/etc
/opennds
/htdocs
/images
/
54 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/config
/opennds
$(1)/etc
/config
/
55 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/config
/opennds
$(1)/etc
/opennds
/config.uci
56 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/init.d
/opennds
$(1)/etc
/init.d
/
57 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/uci-defaults
/40_opennds
$(1)/etc
/uci-defaults
/
58 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/usr
/lib
/opennds
/restart.sh
$(1)/usr
/lib
/opennds
/
59 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/binauth
/binauth_log.sh
$(1)/usr
/lib
/opennds
/
60 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/binauth
/custombinauth.sh
$(1)/usr
/lib
/opennds
/
61 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/libopennds.sh
$(1)/usr
/lib
/opennds
/
62 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/PreAuth
/theme_click-to-continue-basic.sh
$(1)/usr
/lib
/opennds
/
63 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/PreAuth
/theme_click-to-continue-custom-placeholders.sh
$(1)/usr
/lib
/opennds
/
64 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/PreAuth
/theme_user-email-login-basic.sh
$(1)/usr
/lib
/opennds
/
65 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/PreAuth
/theme_user-email-login-custom-placeholders.sh
$(1)/usr
/lib
/opennds
/
66 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/get_client_interface.sh
$(1)/usr
/lib
/opennds
/
67 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/client_params.sh
$(1)/usr
/lib
/opennds
/
68 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/authmon.sh
$(1)/usr
/lib
/opennds
/
69 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/dnsconfig.sh
$(1)/usr
/lib
/opennds
/
70 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/download_resources.sh
$(1)/usr
/lib
/opennds
/
71 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/post-request.php
$(1)/usr
/lib
/opennds
/
72 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes.php
$(1)/etc
/opennds
/
73 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-hid
/fas-hid.php
$(1)/etc
/opennds
/
74 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes-https.php
$(1)/etc
/opennds
/
77 define Package
/opennds
/postrm
79 uci delete firewall.opennds
83 define Package
/opennds
/conffiles
87 $(eval
$(call BuildPackage
,opennds
))