Add nufw
[openwrt/svn-archive/archive.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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/ptunnel
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+libpthread +libpcap
28 TITLE:=Tunnel TCP connections over ICMP packets
29 URL:=http://www.cs.uit.no/~daniels/PingTunnel/
30 endef
31
32 define Package/ptunnel/description
33 ptunnel is an application that allows you to reliably tunnel TCP connections to
34 a remote host using ICMP echo request and reply packets, commonly known as ping
35 requests and replies. It acts as a proxy and can handle sockets and secured
36 identification.
37 endef
38
39 # uses GNU configure
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 DESTDIR="$(PKG_INSTALL_DIR)" \
44 all install
45 endef
46
47 define Package/ptunnel/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
50 $(INSTALL_DIR) $(1)/etc/init.d
51 $(INSTALL_BIN) ./files/ptunnel.init $(1)/etc/init.d/ptunnel
52 $(INSTALL_DIR) $(1)/etc/config
53 $(INSTALL_DATA) ./files/ptunnel.conf $(1)/etc/config/ptunnel
54 endef
55
56 $(eval $(call BuildPackage,ptunnel))