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
/nodogsplash
/nodogsplash
/tar.gz
/v
$(PKG_VERSION
)?
14 PKG_SOURCE
:=nodogsplash-
$(PKG_VERSION
).
tar.gz
15 PKG_HASH
:=ad89af14086982ebb07da6dd079c10e93e31af149e06611649d0dbee79cb8e67
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/nodogsplash-
$(PKG_VERSION
)
18 PKG_MAINTAINER
:=Moritz Warning
<moritzwarning@web.de
>
22 include $(INCLUDE_DIR
)/package.mk
25 define Package
/nodogsplash
26 SUBMENU
:=Captive Portals
29 DEPENDS
:=+libpthread
+iptables-mod-ipopt
+libmicrohttpd
30 TITLE
:=Open public network gateway daemon
31 URL
:=https
://github.com
/nodogsplash
/nodogsplash
32 CONFLICTS
:=nodogsplash2
35 define Package
/nodogsplash
/description
36 Nodogsplash 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
/nodogsplash
/install
45 $(INSTALL_DIR
) $(1)/usr
/bin
46 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/nodogsplash
$(1)/usr
/bin
/
47 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/ndsctl
$(1)/usr
/bin
/
49 $(INSTALL_DIR
) $(1)/etc
/nodogsplash
/htdocs
/images
50 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.html
$(1)/etc
/nodogsplash
/htdocs
/
51 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.css
$(1)/etc
/nodogsplash
/htdocs
/
52 $(CP
) $(PKG_BUILD_DIR
)/resources
/status.html
$(1)/etc
/nodogsplash
/htdocs
/
53 $(CP
) $(PKG_BUILD_DIR
)/resources
/splash.jpg
$(1)/etc
/nodogsplash
/htdocs
/images
/
54 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/nodogsplash
/files
/etc
/config
/nodogsplash
$(1)/etc
/config
/
55 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/nodogsplash
/files
/etc
/init.d
/nodogsplash
$(1)/etc
/init.d
/
56 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/nodogsplash
/files
/etc
/uci-defaults
/40_nodogsplash
$(1)/etc
/uci-defaults
/
57 $(CP
) $(PKG_BUILD_DIR
)/openwrt
/nodogsplash
/files
/usr
/lib
/nodogsplash
/restart.sh
$(1)/usr
/lib
/nodogsplash
/
60 define Package
/nodogsplash
/postrm
62 uci delete firewall.nodogsplash
66 define Package
/nodogsplash
/conffiles
67 /etc
/config
/nodogsplash
70 $(eval
$(call BuildPackage
,nodogsplash
))