diff options
Diffstat (limited to 'net-proxy/pingtunnel')
-rw-r--r-- | net-proxy/pingtunnel/Manifest | 6 | ||||
-rw-r--r-- | net-proxy/pingtunnel/files/pingtunnel-0.72_makefile.patch | 60 | ||||
-rw-r--r-- | net-proxy/pingtunnel/metadata.xml | 9 | ||||
-rw-r--r-- | net-proxy/pingtunnel/pingtunnel-0.72.ebuild | 37 |
4 files changed, 112 insertions, 0 deletions
diff --git a/net-proxy/pingtunnel/Manifest b/net-proxy/pingtunnel/Manifest new file mode 100644 index 000000000000..dcc0750c9724 --- /dev/null +++ b/net-proxy/pingtunnel/Manifest @@ -0,0 +1,6 @@ +AUX pingtunnel-0.72_makefile.patch 1587 SHA256 797b84b27508f5233c9781056c611d8b3834ed788c457234fa52dc24e7533388 SHA512 901258ec0f299441ab65bc38240f735fd46a5faf6c33d8011bc3dd88c40bf85ec267cdf6a7e90bdb8abc7f688fb6332d9571c4949321fa8dfa4403d175f3eb32 WHIRLPOOL 967dfa0634ab2bc4105e1fb86af5a9b987d47adb0d40f049e72ad47c718395c630c8316d09e40e4e4b8706e872932a3fbfa54a8409f819553280d9c24443b81a +DIST PingTunnel-0.72.tar.gz 64188 SHA256 b318f7aa7d88918b6269d054a7e26f04f97d8870f47bd49a76cb2c99c73407a4 SHA512 943fc571ca95bb6af59f2a74458470865a89a502145bb1e5cf9b86159d61d897418d10d100691337f299892af7aba65964624462068a77ef1645890a4abf5d17 WHIRLPOOL a39fe5cc57d87b5977fcec53083a405c5310d74ea857af3a3837c0347d78c217a3e8fc911130a93e2ec1ab43f793104185cfeb7277caf6dc7b70b2c0209d0b74 +EBUILD pingtunnel-0.72.ebuild 694 SHA256 8ea30f03ccbc3bdadd6e08fe534ea7bbc86cf542f5f842b3f3c01ac0141038ec SHA512 648f2e55dc9191dadf6223ef145b883b1705ea0a40d5bcacbfc82eb5e281ae9f7315de160246ba105433fc84cdc8cd80eea3e3fa3dd8c14558a1f86ef9589c69 WHIRLPOOL e4f0f6a26cbcb7f81d0eba9c31b028d57736cf1b13e846d96b01d91430552b7b8f0aad1181e3ec0f18afa5bc4a33ba0ab2f8f2566878c864373e237ed7100aa8 +MISC ChangeLog 2225 SHA256 e5c8b1dedafb17dc52c00857bd437f547d67bb4a2b2c7b539935e0de69d0a654 SHA512 575409fb2a08b6e1233941335ff9e526694ad678d8b4fa1b5f274377d293a6eca15de10d04a09cc68aa7cb9bbda31790ea110d7e92e5329915fc7abc2d2f916e WHIRLPOOL ce8f6b3802f4d6ccb371762a405e40676b244cba16845fcf2e754667856f25fd3d3a214a03624532e30765562d905ebe1bb09f3881b4cd8b190d5da0ec97a7fc +MISC ChangeLog-2015 1522 SHA256 67c784cf87644d7858ff65a0b288560db9b9fda5707a704853dbf6e2628df9fe SHA512 43d8dea81ab100798fec5646f9e4733b14cb58abcc3212ad26349a5c31cc9b70c4d517fc75807085e3d3391fa2624b1ffe920929ec3c98912f3e0444f7da0bdf WHIRLPOOL 20bb50018a91d617d98c79a18db0d36d68700d3d3112c93ea0e05374f1bc173ed5e23e18741236e40a2c074eed4f73f930e62275d346c38f609736c143c27766 +MISC metadata.xml 436 SHA256 5c46b1a986beccf7adc5c23f5c624c243c7203335dfebe9cf3525c2e2483320b SHA512 013ade7657982958b210224c87210ff270c2b045973b93482d1e3758ab2539b1c7cba9b8d4414cc0d86fa53f6edd6158cd28b5f60b2acb2c00d3fc0dea29a049 WHIRLPOOL fef2335cf0bb1f48a1510f7e7945581d2c4944973078ee37a7803631d3666541513def399f1e82340ae0e1cb4de47034cd3cf566cc797e549d5f921a578f4c94 diff --git a/net-proxy/pingtunnel/files/pingtunnel-0.72_makefile.patch b/net-proxy/pingtunnel/files/pingtunnel-0.72_makefile.patch new file mode 100644 index 000000000000..9dce0992cbda --- /dev/null +++ b/net-proxy/pingtunnel/files/pingtunnel-0.72_makefile.patch @@ -0,0 +1,60 @@ +--- Makefile
++++ Makefile
+@@ -2,11 +2,26 @@
+ # (c) 2004-2009 Daniel Stoedle, daniels@cs.uit.no
+ # ptunnel.exe target added by Mike Miller, mike@mikeage.net
+
+-CC = gcc
+-CFLAGS = -Wall -g
+-LDOPTS = -lpthread -lpcap
++# set to 1 to enable debug symbols
++DEBUG=0
++
++# set to 1 to enable selinux support
++SELINUX=0
++
++CC ?= gcc
++CFLAGS += -Wall
++LIBS += -lpthread -lpcap
+ PT_OBJS = ptunnel.o md5.o
+
++ifeq ($(DEBUG),1)
++CFLAGS += -g
++endif
++
++ifeq ($(SELINUX),1)
++CPPFLAGS += -DHAVE_SELINUX
++LIBS += -lselinux
++endif
++
+ WIN32_CC = mingw32-gcc
+ WIN32_CFLAGS = -g -Wall -DWIN32 -I"c:\Program Files\WpdPack\Include"
+ WIN32_LDOPTS = -lwpcap -lwsock32 -L"c:\Program Files\WpdPack\Lib"
+@@ -26,13 +41,13 @@
+
+
+ install: ptunnel
+- install -d $(bindir)/
+- install -d $(mandir)/
+- install ./ptunnel $(bindir)/ptunnel
+- install ./ptunnel.8 $(mandir)/ptunnel.8
++ install -d "$(DESTDIR)/$(bindir)/"
++ install -d "$(DESTDIR)/$(mandir)/"
++ install -m755 ./ptunnel "$(DESTDIR)/$(bindir)/ptunnel"
++ install -m644 ./ptunnel.8 "$(DESTDIR)/$(mandir)/ptunnel.8"
+
+ ptunnel: $(PT_OBJS)
+- $(CC) -o $@ $^ $(LDOPTS) `[ -e /usr/include/selinux/selinux.h ] && echo -lselinux`
++ $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(LIBS)
+
+ ptunnel.exe: $(WIN32_PT_OBJS)
+ $(CC) -o $@ $^ $(WIN32_LDOPTS)
+@@ -47,7 +62,7 @@
+ $(CC) $(CFLAGS) -MM *.c > $@
+
+ %.o:%.c
+- $(CC) $(CFLAGS) `[ -e /usr/include/selinux/selinux.h ] && echo -DHAVE_SELINUX` -c -o $@ $<
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
+
+ %.obj:%.c
+ $(WIN32_CC) $(WIN32_CFLAGS) -c -o $@ $<
diff --git a/net-proxy/pingtunnel/metadata.xml b/net-proxy/pingtunnel/metadata.xml new file mode 100644 index 000000000000..63278481cf70 --- /dev/null +++ b/net-proxy/pingtunnel/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>bircoph@gentoo.org</email> +</maintainer> +<longdescription>Ptunnel is an application that allows you to reliably tunnel TCP connections to a remote host +using ICMP echo request and reply packets, commonly known as ping requests and replies.</longdescription> +</pkgmetadata> diff --git a/net-proxy/pingtunnel/pingtunnel-0.72.ebuild b/net-proxy/pingtunnel/pingtunnel-0.72.ebuild new file mode 100644 index 000000000000..53bc36aeacc6 --- /dev/null +++ b/net-proxy/pingtunnel/pingtunnel-0.72.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils toolchain-funcs + +DESCRIPTION="Tunnel TCP over ICMP" +HOMEPAGE="http://www.cs.uit.no/~daniels/PingTunnel" +SRC_URI="http://www.cs.uit.no/~daniels/PingTunnel/PingTunnel-${PV}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~sh ~x86" +IUSE="doc selinux" + +DEPEND=" + net-libs/libpcap + selinux? ( sys-libs/libselinux ) +" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/PingTunnel + +src_prepare(){ + epatch "${FILESDIR}"/${P}_makefile.patch +} + +src_compile() { + tc-export CC + emake $(usex selinux "SELINUX=1" "SELINUX=0") +} + +src_install() { + default + use doc && dohtml web/* +} |