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
:=4af1ffed2c39267f8516f14bdd93d618fee7741dabbda1293c6390b0e648bd1c
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/openNDS-
$(PKG_VERSION
)
18 PKG_MAINTAINER
:=Rob White
<rob@blue-wave.net
>
22 include $(INCLUDE_DIR
)/package.mk
25 define Package
/opennds
26 SUBMENU
:=Captive Portals
29 DEPENDS
:=+libpthread
+iptables-mod-ipopt
+libmicrohttpd-no-ssl
30 TITLE
:=Open public network gateway daemon
31 URL
:=https
://github.com
/opennds
/opennds
32 CONFLICTS
:=nodogsplash2
, nodogsplash
35 define Package
/opennds
/description
36 openNDS is a Captive Portal that offers a simple way to
37 provide restricted access to the Internet by showing a splash
38 page to the user before Internet access is granted.
39 It also incorporates an API that allows the creation of
40 sophisticated authentication applications.
43 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
/
49 $(INSTALL_DIR
) $(1)/etc
/opennds
/htdocs
/images
50 $(INSTALL_DIR
) $(1)/etc
/config
51 $(INSTALL_DIR
) $(1)/etc
/init.d
52 $(INSTALL_DIR
) $(1)/etc
/uci-defaults
53 $(INSTALL_DIR
) $(1)/usr
/lib
/opennds
54 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.html
$(1)/etc
/opennds
/htdocs
/
55 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.css
$(1)/etc
/opennds
/htdocs
/
56 $(CP
) $(PKG_BUILD_DIR
)/resources
/status.html
$(1)/etc
/opennds
/htdocs
/
57 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.jpg
$(1)/etc
/opennds
/htdocs
/images
/
58 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/opennds
/files
/etc
/config
/opennds
$(1)/etc
/config
/
59 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/opennds
/files
/etc
/init.d
/opennds
$(1)/etc
/init.d
/
60 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/opennds
/files
/etc
/uci-defaults
/40_opennds
$(1)/etc
/uci-defaults
/
61 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/opennds
/files
/usr
/lib
/opennds
/restart.sh
$(1)/usr
/lib
/opennds
/
62 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/PreAuth
/demo-preauth.sh
$(1)/usr
/lib
/opennds
/login.sh
63 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/get_client_interface.sh
$(1)/usr
/lib
/opennds
/
64 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/get_client_token.sh
$(1)/usr
/lib
/opennds
/
65 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/unescape.sh
$(1)/usr
/lib
/opennds
/
66 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/authmon.sh
$(1)/usr
/lib
/opennds
/
67 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/libs
/post-request.php
$(1)/usr
/lib
/opennds
/
68 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes.php
$(1)/etc
/opennds
/
69 $(CP
) $(PKG_BUILD_DIR
)/forward_authentication_service
/fas-aes
/fas-aes-https.php
$(1)/etc
/opennds
/
72 define Package
/opennds
/postrm
74 uci delete firewall.opennds
78 define Package
/opennds
/conffiles
82 $(eval
$(call BuildPackage
,opennds
))