opennds: Release 8.1.1
[feed/routing.git] / opennds / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=opennds
9 PKG_FIXUP:=autoreconf
10 PKG_VERSION:=8.1.1
11 PKG_RELEASE:=1
12
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:=9e0ede334755dc95a4133a94304f4294b956d4849c48c5521f12b4ed295e356f
16 PKG_BUILD_DIR:=$(BUILD_DIR)/openNDS-$(PKG_VERSION)
17
18 PKG_MAINTAINER:=Rob White <rob@blue-wave.net>
19 PKG_BUILD_PARALLEL:=1
20 PKG_LICENSE:=GPL-2.0+
21
22 include $(INCLUDE_DIR)/package.mk
23
24
25 define Package/opennds
26 SUBMENU:=Captive Portals
27 SECTION:=net
28 CATEGORY:=Network
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:=nodogsplash nodogsplash2
33 endef
34
35 define Package/opennds/description
36 openNDS is a Captive Portal solution that offers an instant way to provide restricted access to the Internet.
37 With little or no configuration, a dynamically generated and adaptive splash page sequence is automatically served.
38 Internet access is granted by either a click to continue button, or after credential verification.
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.
42 endef
43
44 define Package/opennds/install
45
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/opennds $(1)/usr/bin/
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
49
50 $(INSTALL_DIR) $(1)/etc/opennds/htdocs/images
51 $(INSTALL_DIR) $(1)/etc/config
52 $(INSTALL_DIR) $(1)/etc/init.d
53 $(INSTALL_DIR) $(1)/etc/uci-defaults
54 $(INSTALL_DIR) $(1)/usr/lib/opennds
55 $(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/opennds/htdocs/
56 $(CP) $(PKG_BUILD_DIR)/resources/splash.css $(1)/etc/opennds/htdocs/
57 $(CP) $(PKG_BUILD_DIR)/resources/status.html $(1)/etc/opennds/htdocs/
58 $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/opennds/htdocs/images/
59 $(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/config/opennds $(1)/etc/config/
60 $(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/init.d/opennds $(1)/etc/init.d/
61 $(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/etc/uci-defaults/40_opennds $(1)/etc/uci-defaults/
62 $(CP) $(PKG_BUILD_DIR)/linux_openwrt/opennds/files/usr/lib/opennds/restart.sh $(1)/usr/lib/opennds/
63 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/binauth/binauth_log.sh $(1)/usr/lib/opennds/
64 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/PreAuth/login.sh $(1)/usr/lib/opennds/
65 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/get_client_interface.sh $(1)/usr/lib/opennds/
66 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/get_client_token.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/unescape.sh $(1)/usr/lib/opennds/
69 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/authmon.sh $(1)/usr/lib/opennds/
70 $(CP) $(PKG_BUILD_DIR)/forward_authentication_service/libs/dnsconfig.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/
75 endef
76
77 define Package/opennds/postrm
78 #!/bin/sh
79 uci delete firewall.opennds
80 uci commit firewall
81 endef
82
83 define Package/opennds/conffiles
84 /etc/config/opennds
85 endef
86
87 $(eval $(call BuildPackage,opennds))