2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
14 PKG_MD5SUM
:=b45f73875f2af48f101816672f83a5fe
16 PKG_SOURCE_URL
:=http
://www.cti.ecp.fr
/~beauxir5
/ptunnel
/
17 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/ptunnel
28 DEPENDS
:=+libpthread
+libpcap
29 TITLE
:=Tunnel TCP connections over ICMP packets
30 DESCRIPTION
:=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
\\\
34 URL
:=http
://www.cs.uit.no
/~daniels
/PingTunnel
/
37 define Build
/Configure
38 $(call Build
/Configure
/Default
,--enable-shared \
40 --with-gnu-ld
, BUILD_CC
=$(TARGET_CC
) \
42 $(TARGET_CONFIGURE_OPTS
) \
43 CFLAGS
="$(TARGET_CFLAGS)" \
44 CPPFLAGS
="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
45 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
47 td_cv_buggygetaddrinfo
="no")
51 rm -rf
$(PKG_INSTALL_DIR
)
52 mkdir
-p
$(PKG_INSTALL_DIR
)
53 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
54 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 define Package
/ptunnel
/install
59 install -m0755
-d
$(1)/usr
/sbin
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/sbin
/ptunnel
$(1)/usr
/sbin
/
63 $(eval
$(call BuildPackage
,ptunnel
))