Upgrade nodogplash (#2256)
[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_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 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=+libpthread
30 TITLE:=Open public network gateway daemon
31 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 URL:=http://kokoro.ucsd.edu/nodogsplash/
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default,\
40 --enable-static \
41 --enable-shared \
42 )
43 endef
44
45 define Build/Compile
46 mkdir -p $(PKG_INSTALL_DIR)/usr/{share{,/doc/$(PKG_NAME)-$(PKG_VERSION)},lib,include{,/nodogsplash},bin,sbin}/
47 $(MAKE) -C $(PKG_BUILD_DIR) \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 mkinstalldirs="$(SHELL) $(PKG_BUILD_DIR)/config/mkinstalldirs" \
50 install
51 endef
52
53 define Package/nodogsplash/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/usr/lib/
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,nodogsplash))