update haserl, security fix
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=ptunnel
11 PKG_VERSION:=0.61
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cti.ecp.fr/~beauxir5/ptunnel/
16 PKG_MD5SUM:=b45f73875f2af48f101816672f83a5fe
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/ptunnel
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+libpthread +libpcap
24 TITLE:=Tunnel TCP connections over ICMP packets
25 URL:=http://www.cs.uit.no/~daniels/PingTunnel/
26 endef
27
28 define Package/ptunnel/description
29 ptunnel is an application that allows you to reliably tunnel TCP connections to
30 a remote host using ICMP echo request and reply packets, commonly known as ping
31 requests and replies. It acts as a proxy and can handle sockets and secured
32 identification.
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/ptunnel/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/etc/init.d
47 $(INSTALL_BIN) ./files/ptunnel.init $(1)/etc/init.d/ptunnel
48 $(INSTALL_DIR) $(1)/etc/config
49 $(INSTALL_DATA) ./files/ptunnel.conf $(1)/etc/config/ptunnel
50 endef
51
52 $(eval $(call BuildPackage,ptunnel))