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