b0ef87775268153b7d6e03a4e5e448709ab19e88
[openwrt/svn-archive/archive.git] / net / nodogsplash / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nodogsplash
12 PKG_VERSION:=0.9_beta9.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://kokoro.ucsd.edu/nodogsplash/ \
17 http://kokoro.ucsd.edu/nodogsplash/old/
18 PKG_MD5SUM:=96e597977717610186ed09ebd7fa54cf
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nodogsplash
23 SUBMENU:=Captive Portals
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libpthread
27 TITLE:=Open public network gateway daemon
28 URL:=http://kokoro.ucsd.edu/nodogsplash/
29 endef
30
31 define Package/nodogsplash/description
32 Nodogsplash offers a simple way to open a free hotspot providing restricted access to an
33 internet connection. It is intended for use on wireless access points running OpenWRT
34 (but may also work on other Linux-based devices).
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default,\
39 --enable-static \
40 --enable-shared \
41 )
42 endef
43
44 define Build/Compile
45 mkdir -p $(PKG_INSTALL_DIR)/usr/{share{,/doc/$(PKG_NAME)-$(PKG_VERSION)},lib,include{,/nodogsplash},bin,sbin}/
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 mkinstalldirs="$(SHELL) $(PKG_BUILD_DIR)/config/mkinstalldirs" \
49 install
50 endef
51
52 define Package/nodogsplash/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/lib/
56 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
57 endef
58
59 $(eval $(call BuildPackage,nodogsplash))