2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
:=0.9_beta9.9
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://kokoro.ucsd.edu
/nodogsplash
/ \
16 http
://kokoro.ucsd.edu
/nodogsplash
/old
/
17 PKG_MD5SUM
:=96e597977717610186ed09ebd7fa54cf
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/nodogsplash
22 SUBMENU
:=Captive Portals
26 TITLE
:=Open public network gateway daemon
27 URL
:=http
://kokoro.ucsd.edu
/nodogsplash
/
30 define Package
/nodogsplash
/description
31 Nodogsplash offers a simple way to open a free hotspot providing restricted access to an
32 internet connection. It is intended for use on wireless access points running OpenWRT
33 (but may also work on other Linux-based devices
).
36 define Build
/Configure
37 $(call Build
/Configure
/Default
,\
44 mkdir
-p
$(PKG_INSTALL_DIR
)/usr
/{share
{,/doc
/$(PKG_NAME
)-$(PKG_VERSION
)},lib
,include{,/nodogsplash
},bin
,sbin
}/
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
46 DESTDIR
="$(PKG_INSTALL_DIR)" \
47 mkinstalldirs
="$(SHELL) $(PKG_BUILD_DIR)/config/mkinstalldirs" \
51 define Package
/nodogsplash
/install
52 $(INSTALL_DIR
) $(1)/usr
/bin
53 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
54 $(INSTALL_DIR
) $(1)/usr
/lib
/
55 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/* $(1)/usr
/lib
/
56 $(INSTALL_DIR
) $(1)/etc
/$(PKG_NAME
)
57 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/$(PKG_NAME
).conf
$(1)/etc
/$(PKG_NAME
)/
58 $(CP
) $(PKG_BUILD_DIR
)/htdocs
$(1)/etc
/$(PKG_NAME
)/
59 $(INSTALL_DIR
) $(1)/etc
/init.d
60 $(INSTALL_BIN
) .
/files
/$(PKG_NAME
).init
$(1)/etc
/init.d
/
63 $(eval
$(call BuildPackage
,nodogsplash
))