DESCRIPTION:= is obselete
[packages.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_beta8
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:=74269856452b9ef6d8719a6b46bae56d
19 PKG_CAT:=zcat
20
21 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
22 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/nodogsplash
27   SUBMENU:=Captive Portals
28   SECTION:=net
29   CATEGORY:=Network
30   DEPENDS:=+libpthread
31   TITLE:=Open public network gateway daemon
32   URL:=http://kokoro.ucsd.edu/nodogsplash/
33 endef
34
35 define Package/nodogsplash/description
36         Nodogsplash offers a simple way to open a free hotspot providing restricted access to an
37         internet connection. It is intended for use on wireless access points running OpenWRT
38         (but may also work on other Linux-based devices).
39 endef
40
41 define Build/Configure
42         $(call Build/Configure/Default,\
43                 --enable-static \
44                 --enable-shared \
45         )
46 endef
47
48 define Build/Compile    
49         mkdir -p $(PKG_INSTALL_DIR)/usr/{share{,/doc/$(PKG_NAME)-$(PKG_VERSION)},lib,include{,/nodogsplash},bin,sbin}/
50         $(MAKE) -C $(PKG_BUILD_DIR) \
51                 DESTDIR="$(PKG_INSTALL_DIR)" \
52                 mkinstalldirs="$(SHELL) $(PKG_BUILD_DIR)/config/mkinstalldirs" \
53                 install
54 endef
55
56 define Package/nodogsplash/install      
57         $(INSTALL_DIR) $(1)/usr/bin
58         $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
59         $(INSTALL_DIR) $(1)/usr/lib/
60         $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
61 endef
62
63 $(eval $(call BuildPackage,nodogsplash))