bmx6: drop package
[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:=2
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 endef
35
36 define Package/nodogsplash/description
37 Nodogsplash is a Captive Portal that offers a simple way to
38 provide restricted access to the Internet by showing a splash
39 page to the user before Internet access is granted.
40 endef
41
42 define Package/nodogsplash/install
43 $(INSTALL_DIR) $(1)/usr/bin
44 $(INSTALL_BIN) $(PKG_BUILD_DIR)/nodogsplash $(1)/usr/bin/
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/ndsctl $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/etc/nodogsplash/htdocs/images
47 $(INSTALL_DIR) $(1)/etc/config
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_DIR) $(1)/etc/uci-defaults
50 $(INSTALL_DIR) $(1)/usr/lib/nodogsplash
51 $(CP) $(PKG_BUILD_DIR)/resources/splash.html $(1)/etc/nodogsplash/htdocs/
52 $(CP) $(PKG_BUILD_DIR)/resources/splash.css $(1)/etc/nodogsplash/htdocs/
53 $(CP) $(PKG_BUILD_DIR)/resources/status.html $(1)/etc/nodogsplash/htdocs/
54 $(CP) $(PKG_BUILD_DIR)/resources/splash.jpg $(1)/etc/nodogsplash/htdocs/images/
55 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/config/nodogsplash $(1)/etc/config/
56 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/init.d/nodogsplash $(1)/etc/init.d/
57 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/etc/uci-defaults/40_nodogsplash $(1)/etc/uci-defaults/
58 $(CP) $(PKG_BUILD_DIR)/openwrt/nodogsplash/files/usr/lib/nodogsplash/restart.sh $(1)/usr/lib/nodogsplash/
59 endef
60
61 define Package/nodogsplash/postrm
62 #!/bin/sh
63 uci delete firewall.nodogsplash
64 uci commit firewall
65 endef
66
67 define Package/nodogsplash/conffiles
68 /etc/config/nodogsplash
69 endef
70
71 $(eval $(call BuildPackage,nodogsplash))