summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/rrs')
-rw-r--r--app-shells/rrs/Manifest1
-rw-r--r--app-shells/rrs/files/rrs-1.70-asneeded.patch38
-rw-r--r--app-shells/rrs/metadata.xml12
-rw-r--r--app-shells/rrs/rrs-1.70-r1.ebuild37
-rw-r--r--app-shells/rrs/rrs-1.70.ebuild38
5 files changed, 126 insertions, 0 deletions
diff --git a/app-shells/rrs/Manifest b/app-shells/rrs/Manifest
new file mode 100644
index 000000000000..e58ab31d806b
--- /dev/null
+++ b/app-shells/rrs/Manifest
@@ -0,0 +1 @@
+DIST rrs-1.70.tar.gz 49579 SHA256 ffd9098cf93da5bda65150fe241ec51eb0eb0e37edca038e6a2216bc12546e85 SHA512 58a3d34bd80f2ddaa62112819d83ab2175daf1b9e66605d0b629a15d1fc6b43b482e1a4a763b99a07d85bbb0fa6df339d0dfcc203e3a3da3d5cfdabbd14a4bfa WHIRLPOOL 1825e41907f018dfbbd6678da39695bf34007cdbbd9b47a86b79f32bac9cbd2ae242d147d2fe568153cf52610daf3d039a49c001fba737d2fd0c080c03f5f074
diff --git a/app-shells/rrs/files/rrs-1.70-asneeded.patch b/app-shells/rrs/files/rrs-1.70-asneeded.patch
new file mode 100644
index 000000000000..9ed9ee16fbee
--- /dev/null
+++ b/app-shells/rrs/files/rrs-1.70-asneeded.patch
@@ -0,0 +1,38 @@
+--- Makefile.orig 2004-05-30 02:14:14.000000000 +0200
++++ Makefile 2009-01-03 15:02:19.253460887 +0100
+@@ -8,8 +8,8 @@
+ # if your system doesn't have GNU's getopt_long(), add -DWITHOUT_GNU_GETOPT
+ CFLAGS=-I/usr/local/include -Wall -O2
+ # openpty() is in libutil on most Unix-like operating systems
+-LDFLAGS=-L/usr/local/lib -s -lstdc++ -lm -lutil -lssl -lcrypto
+-LDFLAGSNOSSL=-s -lstdc++ -lm -lutil
++LDFLAGS=-L/usr/local/lib -lstdc++ -lm -lutil -lssl -lcrypto
++LDFLAGSNOSSL=-lstdc++ -lm -lutil
+
+ PREFIX=/usr/local
+ BINDIR=bin
+@@ -36,9 +36,9 @@
+ generic-nossl: clean compile-generic-nossl
+
+ qnx: clean
+- $(MAKE) LDFLAGS="-L/usr/local/lib -s -lsocket -lssl -lcrypto" compile-qnx
++ $(MAKE) LDFLAGS="-L/usr/local/lib -lsocket -lssl -lcrypto" compile-qnx
+ qnx-nossl: clean
+- $(MAKE) LDFLAGSNOSSL="-s -lsocket" compile-qnx-nossl
++ $(MAKE) LDFLAGSNOSSL="-lsocket" compile-qnx-nossl
+
+ distclean: clean
+
+@@ -47,10 +47,10 @@
+
+ ## generic
+ compile-generic:
+- $(CC) $(CFLAGS) $(LDFLAGS) $(LDEXTRA) -o $(out) rrs.c md5.c sha1.c farm9crypt.cc twofish2.cc
++ $(CC) $(CFLAGS) $(LDEXTRA) -o $(out) rrs.c md5.c sha1.c farm9crypt.cc twofish2.cc $(LDFLAGS)
+
+ compile-generic-nossl:
+- $(CC) -DWITHOUT_SSL $(CFLAGS) $$CFLAGS $(LDFLAGSNOSSL) $(LDEXTRA) -o $(out) rrs.c md5.c sha1.c farm9crypt.cc twofish2.cc
++ $(CC) -DWITHOUT_SSL $(CFLAGS) $$CFLAGS $(LDEXTRA) -o $(out) rrs.c md5.c sha1.c farm9crypt.cc twofish2.cc $(LDFLAGSNOSSL)
+
+ ## qnx
+ compile-qnx:
diff --git a/app-shells/rrs/metadata.xml b/app-shells/rrs/metadata.xml
new file mode 100644
index 000000000000..c8670aa8b9f9
--- /dev/null
+++ b/app-shells/rrs/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+ <longdescription/>
+ <upstream>
+ <remote-id type="freecode">rrs</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-shells/rrs/rrs-1.70-r1.ebuild b/app-shells/rrs/rrs-1.70-r1.ebuild
new file mode 100644
index 000000000000..ff48014bf0f2
--- /dev/null
+++ b/app-shells/rrs/rrs-1.70-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Reverse Remote Shell"
+HOMEPAGE="http://freecode.com/projects/rrs"
+SRC_URI="http://www.cycom.se/uploads/36/19/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/"${P}"-asneeded.patch
+ sed -i -e "s/-s //g" Makefile || die
+}
+
+src_compile() {
+ local target=""
+ use ssl || target="-nossl"
+
+ emake generic${target} CFLAGS="${CFLAGS}" LDEXTRA="${LDFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin rrs
+ dodoc CHANGES README
+ doman rrs.1
+}
diff --git a/app-shells/rrs/rrs-1.70.ebuild b/app-shells/rrs/rrs-1.70.ebuild
new file mode 100644
index 000000000000..dd118c129ce7
--- /dev/null
+++ b/app-shells/rrs/rrs-1.70.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Reverse Remote Shell"
+HOMEPAGE="http://freecode.com/projects/rrs"
+SRC_URI="http://www.cycom.se/uploads/36/19/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE="ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+}
+
+src_compile() {
+ local target=""
+ use ssl || target="-nossl"
+
+ sed -i -e "s/-s //g" Makefile || die
+ emake generic${target} CFLAGS="${CFLAGS}" LDEXTRA="${LDFLAGS}" \
+ CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ dobin rrs || die
+ dodoc CHANGES README
+ doman rrs.1
+}