summaryrefslogtreecommitdiff
path: root/net-im/reaim
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/reaim')
-rw-r--r--net-im/reaim/Manifest6
-rw-r--r--net-im/reaim/files/reaim21
-rw-r--r--net-im/reaim/metadata.xml8
-rw-r--r--net-im/reaim/reaim-0.8-r2.ebuild36
4 files changed, 71 insertions, 0 deletions
diff --git a/net-im/reaim/Manifest b/net-im/reaim/Manifest
new file mode 100644
index 000000000000..2a29f7ada74a
--- /dev/null
+++ b/net-im/reaim/Manifest
@@ -0,0 +1,6 @@
+AUX reaim 541 SHA256 99157f216c7a57d26aa2f79e8c6685dbd4f49072d049f1f2014066d0e703a6ba SHA512 ba5bf5c556e0d50225b28511a96b609fb705491367469086eb67203681c63b9fef22a2650a59977445cd7c8a3d8b0bd50578e68e024e3869a90cdb89354047d4 WHIRLPOOL c18b0b2094be92640e3ff50371681ba3d24b43c31ef5eecd76477baa9fd8f041cf070f199cfb3363a95eb127d1a46fe2f88f29537d7412063e6795850eebda38
+DIST reaim-0.8.tar.gz 39944 SHA256 8a530d8b2ee40c63dd71f20657f324252732632778928ecccaea2a237be19eb5 SHA512 7a1517e7adf52f2b1b6ec7e4a55c8c74ab099fdf1a654f41b6a0ac13dff39d4706551977d53c2db6f5154cd42f96f14087d2866f563883db9c07b3400ec986b0 WHIRLPOOL 069debf6b8eb5a2b4742ede40642673c922bf8c1ced8f42ad90ba6d3aaca0fcaa41d4ef59cc3ea8cee45abbcdc7fd4b3852f092e9875f32fd0cf0bdf5e8061e8
+EBUILD reaim-0.8-r2.ebuild 685 SHA256 95f4ec220bbe6abfe5e9b1cfa058165698b571b405309db4655d27453f2ac0af SHA512 1d594e9cfeac434e3b9780bbc12a591710f9642382d94965484a907b2bd1b3a5179920eacf50aa5293ba748eb9e9237272aafd298841062bfe9e300d47e5abe7 WHIRLPOOL 5296ee3c99ba0ba5cec60639395a8f9ddc2edfc58f8f452d3007686609f8365060dba705677ec3b7f0412e604eca351afc4c4e372a25b90b7c887347a834e129
+MISC ChangeLog 2852 SHA256 f541207a743983b91fe1fbdb2264434215457e2ff4c06e0df7bba0a9659b98d2 SHA512 0916125159f204caccf7d0fbf967c905cc80830c0df0eda4aba0cc304156bc8c7d329285a4ca49e6707dcfc717c16541271b58a726a2bd2ce79479c58e0f7267 WHIRLPOOL 7a9c7c96af9978e36ef442a4c2afc91ecf2f992af61b704ea99694c9af5085f714d2f9c301de0c1e3556e8b20a3f723a108c0c673c10e48b1a40a5053a91a354
+MISC ChangeLog-2015 1297 SHA256 e4f7ccb7a3c98259b7046ed1dfa0dbf60e37c8e20842544f9c14a530fcf4f34d SHA512 56a1649299d6b912642e3747bf872509c1b4318bc03cb579e33ec76cc225022307369427b4530e5aaa763ef170770001fd3d2b2b36be797c9691a16144dcd3c1 WHIRLPOOL 43899972c099bd5847395eee27fed1ccef9dc6cb9b46cb071660ab18cedc52b58d796addf81790b3f3d36a7f8e0f7909cb04af1378b996816607a4123b8ad070
+MISC metadata.xml 242 SHA256 08ef0829236364b3c4191d6b2243792d0afa84505f4f591cd0f3fa1645158082 SHA512 e52f13e1042e04bd69519b36a795de14ba97c9f0be16cbc00ca570c6a1588f3d84cfefcd5b7e3332bbdafbf947e2a44b31c736eabcd9e82958a76798944982b1 WHIRLPOOL 8a0906fc778dfe626025dfb1306b1ee55abfbf70af247e29a28506db03b6f609ddb9efd53916c6bde7c594df6266e4b6fda9d3100b4e74b8805caa33d7dbaf66
diff --git a/net-im/reaim/files/reaim b/net-im/reaim/files/reaim
new file mode 100644
index 000000000000..83c4de5ff38e
--- /dev/null
+++ b/net-im/reaim/files/reaim
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+depend() {
+ need net iptables
+}
+
+start() {
+ ebegin "Starting reaim"
+ iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5190 -j REDIRECT --to-ports 5190
+ start-stop-daemon --start --quiet --exec /usr/sbin/reaim
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping reaim"
+ iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 5190 -j REDIRECT --to-ports 5190
+ start-stop-daemon --stop --quiet --exec /usr/sbin/reaim
+ eend $?
+}
diff --git a/net-im/reaim/metadata.xml b/net-im/reaim/metadata.xml
new file mode 100644
index 000000000000..7951268cae31
--- /dev/null
+++ b/net-im/reaim/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">reaim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-im/reaim/reaim-0.8-r2.ebuild b/net-im/reaim/reaim-0.8-r2.ebuild
new file mode 100644
index 000000000000..f2f98fe678d0
--- /dev/null
+++ b/net-im/reaim/reaim-0.8-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="AIM transport proxy over NAT firewalls"
+HOMEPAGE="http://reaim.sourceforge.net/"
+SRC_URI="mirror://sourceforge/reaim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=">=sys-apps/sed-4"
+RDEPEND="net-firewall/iptables"
+
+pkg_setup() {
+ tc-export CC
+}
+
+src_prepare() {
+ sed -i -e 's/gcc/$(CC) $(CFLAGS) $(LDFLAGS)/' \
+ -e 's/ -g / /' Makefile || die "sed failed" #365863
+ default
+}
+
+src_install() {
+ local HTML_DOCS=( html )
+ einstalldocs
+ doman reaim.8
+ dosbin reaim
+ doinitd "${FILESDIR}"/reaim
+}