[net] Firewall Tunnel: Move all programs meant to get tunnel trhough restrictive...
[openwrt/svn-archive/archive.git] / net / ptunnel / Makefile
1 #
2 # Copyright (C) 2006-2009 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.71
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=PingTunnel-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.cs.uit.no/~daniels/PingTunnel
16 PKG_MD5SUM:=9b04771d4fa50abc15a6af690b81c71a
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/PingTunnel
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ptunnel
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Firewall Tunnel
26 DEPENDS:=+libpthread +libpcap
27 TITLE:=Tunnel TCP connections over ICMP packets
28 URL:=http://www.cs.uit.no/~daniels/PingTunnel/
29 endef
30
31 define Package/ptunnel/description
32 ptunnel is an application that allows you to reliably tunnel TCP connections to
33 a remote host using ICMP echo request and reply packets, commonly known as ping
34 requests and replies. It acts as a proxy and can handle sockets and secured
35 identification.
36 endef
37
38 define Package/ptunnel/conffiles
39 /etc/config/ptunnel
40 endef
41
42 # uses GNU configure
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 CC="$(TARGET_CC)" \
47 CFLAGS="$(TARGET_CFLAGS) -Wall -g -I$(STAGING_DIR)/usr/include" \
48 LDOPTS="$(TARGET_LDFLAGS) -lpthread -lpcap" \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 all install
51 endef
52
53 define Package/ptunnel/install
54 $(INSTALL_DIR) $(1)/usr/sbin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/ptunnel $(1)/usr/sbin/
56 $(INSTALL_DIR) $(1)/etc/init.d
57 $(INSTALL_BIN) ./files/ptunnel.init $(1)/etc/init.d/ptunnel
58 $(INSTALL_DIR) $(1)/etc/config
59 $(INSTALL_CONF) ./files/ptunnel.conf $(1)/etc/config/ptunnel
60 endef
61
62 $(eval $(call BuildPackage,ptunnel))