2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
6 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE_URL
:=https
://codeload.github.com
/opennds
/opennds
/tar.gz
/v
$(PKG_VERSION
)?
14 PKG_SOURCE
:=opennds-
$(PKG_VERSION
).
tar.gz
15 PKG_HASH
:=fc2fa2e810ade5b281885f6ca3c2bb7ceb8d87176f2072e8ef9d75aa816e21e9
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/openNDS-
$(PKG_VERSION
)
18 PKG_MAINTAINER
:=Rob White
<rob@blue-wave.net
>
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/opennds
25 SUBMENU
:=Captive Portals
28 DEPENDS
:=+libpthread
+iptables-mod-ipopt
+libmicrohttpd-no-ssl
29 TITLE
:=Open public network gateway daemon
30 URL
:=https
://github.com
/opennds
/opennds
31 CONFLICTS
:=nodogsplash nodogsplash2
34 define Package
/opennds
/description
35 openNDS is a Captive Portal solution that offers an instant way to provide restricted access to the Internet.
36 With little or no configuration
, a dynamically generated and adaptive splash page sequence is automatically served.
37 Both client driven Captive Portal Detection
(CPD
) and gateway driven Captive Portal Identification
(CPI
) are supported.
38 Internet access is granted by either a click to continue button
, or after credential verification
as a result of filling in a login form.
39 The package incorporates the FAS API allowing many flexible customisation options.
40 The creation of sophisticated third party authentication applications is fully supported.
41 Internet hosted https portals can be utilised to inspire maximum user confidence.
44 define Package
/opennds
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/opennds
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ndsctl
$(1)/usr
/bin
/
48 $(INSTALL_DIR
) $(1)/etc
/opennds
/htdocs
/images
49 $(INSTALL_DIR
) $(1)/etc
/config
50 $(INSTALL_DIR
) $(1)/etc
/init.d
51 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
52 $(INSTALL_DIR
) $(1)/usr
/lib
/opennds
53 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.css
$(1)/etc
/opennds
/htdocs
/
54 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.jpg
$(1)/etc
/opennds
/htdocs
/images
/
55 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/config
/opennds
$(1)/etc
/config
/
56 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/config
/opennds
$(1)/etc
/opennds
/config.uci
57 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/init.d
/opennds
$(1)/etc
/init.d
/
58 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/etc
/uci-defaults
/40_opennds
$(1)/etc
/uci-defaults
/
59 $(CP
) $(PKG_BUILD_DIR
)/linux_openwrt
/opennds
/files
/usr
/lib
/opennds
/restart.sh
$(1)/usr
/lib
/opennds
/
60 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/binauth
/binauth_log.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
/get_client_token.sh
$(1)/usr
/lib
/opennds
/
68 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/client_params.sh
$(1)/usr
/lib
/opennds
/
69 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/unescape.sh
$(1)/usr
/lib
/opennds
/
70 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/authmon.sh
$(1)/usr
/lib
/opennds
/
71 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/dnsconfig.sh
$(1)/usr
/lib
/opennds
/
72 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/post-request.php
$(1)/usr
/lib
/opennds
/
73 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes.php
$(1)/etc
/opennds
/
74 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-hid
/fas-hid.php
$(1)/etc
/opennds
/
75 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes-https.php
$(1)/etc
/opennds
/
78 define Package
/opennds
/postrm
80 uci delete firewall.opennds
84 define Package
/opennds
/conffiles
88 $(eval
$(call BuildPackage
,opennds
))