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