Add nodogsplash (#1765)
[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.8_beta1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://kokoro.ucsd.edu/nodogsplash/
17 PKG_MD5SUM:=f81c69ea46d61455b394f237bcdb3fe4
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/nodogsplash
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+libpthread
29 TITLE:=Open public network gateway daemon
30 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).
34 URL:=http://kokoro.ucsd.edu/nodogsplash/
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 $(CP) $(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))