DESCRIPTION:= is obselete
[packages.git] / net / ptunnel / Makefile
1 #
2 # Copyright (C) 2006 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:=ptunnel
12 PKG_VERSION:=0.61
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/ptunnel/
17 PKG_MD5SUM:=b45f73875f2af48f101816672f83a5fe
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/ptunnel
26   SECTION:=net
27   CATEGORY:=Network
28   DEPENDS:=+libpthread +libpcap
29   TITLE:=Tunnel TCP connections over ICMP packets
30   URL:=http://www.cs.uit.no/~daniels/PingTunnel/
31 endef
32
33 define Package/ptunnel/description
34         ptunnel is an application that allows you to reliably tunnel TCP connections to 
35         a remote host using ICMP echo request and reply packets, commonly known as ping 
36         requests and replies. It acts as a proxy and can handle sockets and secured 
37         identification.
38 endef
39
40 # uses GNU configure
41
42 define Build/Compile    
43         $(MAKE) -C $(PKG_BUILD_DIR) \
44                 DESTDIR="$(PKG_INSTALL_DIR)" \
45                 all install
46 endef
47
48 define Package/ptunnel/install  
49         $(INSTALL_DIR) $(1)/usr/sbin
50         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
51 endef
52
53 $(eval $(call BuildPackage,ptunnel))