nodogsplash: update to 5.0.1
[feed/routing.git] / nodogsplash / 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:=nodogsplash
9 PKG_VERSION:=5.0.1
10 PKG_RELEASE:=1
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13 PKG_SOURCE_URL:=https://codeload.github.com/nodogsplash/nodogsplash/tar.gz/v$(PKG_VERSION)?
14 PKG_HASH:=a5ffa27a69389c6a538418022573ecb56a42bf91f576a97208eaafe89cb0a152
15
16 PKG_MAINTAINER:=Moritz Warning <moritzwarning@web.de>
17 PKG_LICENSE:=GPL-2.0-or-later
18 PKG_LICENSE_FILES:=COPYING
19
20 PKG_FIXUP:=autoreconf
21 PKG_BUILD_PARALLEL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nodogsplash
26 SUBMENU:=Captive Portals
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+libpthread +libmicrohttpd-no-ssl +iptables-nft \
30 +iptables-mod-nat-extra +iptables-mod-ipopt \
31 +iptables-mod-conntrack-extra
32 TITLE:=Open public network gateway daemon
33 URL:=https://github.com/nodogsplash/nodogsplash
34 CONFLICTS:=opennds
35 endef
36
37 define Package/nodogsplash/description
38 Nodogsplash is a Captive Portal that offers a simple way to
39 provide restricted access to the Internet by showing a splash
40 page to the user before Internet access is granted.
41 endef
42
43 define Package/nodogsplash/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nodogsplash $(1)/usr/bin/
46 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc/nodogsplash/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/nodogsplash
52 $(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/nodogsplash/htdocs/
53 $(CP) $(PKG_BUILD_DIR)/resources/splash.css $(1)/etc/nodogsplash/htdocs/
54 $(CP) $(PKG_BUILD_DIR)/resources/status.html $(1)/etc/nodogsplash/htdocs/
55 $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/
56 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/config/nodogsplash $(1)/etc/config/
57 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/init.d/nodogsplash $(1)/etc/init.d/
58 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/uci-defaults/40_nodogsplash $(1)/etc/uci-defaults/
59 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/usr/lib/nodogsplash/restart.sh $(1)/usr/lib/nodogsplash/
60 endef
61
62 define Package/nodogsplash/postrm
63 #!/bin/sh
64 uci delete firewall.nodogsplash
65 uci commit firewall
66 endef
67
68 define Package/nodogsplash/conffiles
69 /etc/config/nodogsplash
70 endef
71
72 $(eval $(call BuildPackage,nodogsplash))