summaryrefslogtreecommitdiff
path: root/app-shells/rssh
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/rssh')
-rw-r--r--app-shells/rssh/Manifest8
-rw-r--r--app-shells/rssh/files/rssh-2.3.4_p3-autotools.patch33
-rw-r--r--app-shells/rssh/metadata.xml15
-rw-r--r--app-shells/rssh/rssh-2.3.4.ebuild37
-rw-r--r--app-shells/rssh/rssh-2.3.4_p3.ebuild46
5 files changed, 139 insertions, 0 deletions
diff --git a/app-shells/rssh/Manifest b/app-shells/rssh/Manifest
new file mode 100644
index 000000000000..80caef8e83df
--- /dev/null
+++ b/app-shells/rssh/Manifest
@@ -0,0 +1,8 @@
+AUX rssh-2.3.4_p3-autotools.patch 1016 SHA256 1d0ad8bb9ccf6190e82477fe5f008ededfe42fe539b5ffd32958b044da5c45bd SHA512 af3de7f5855d1feb3145684ecfd64fa29716a8d7ca9cf29bfaa0567de1ee32f5aa67bd53f408fcb87bdba94f9501769027f5725b25b8c19dda3250c00a00f228 WHIRLPOOL 072275f009eb660dbe6d2d04a8d6ee63a14f9d4e92e29d8ebf8f0a1ebe87a127fc19968c67c5e4231110e30505f8bb063931aaa8b274a689b660ebe02da04b87
+DIST rssh-2.3.4.tar.gz 113315 SHA256 f30c6a760918a0ed39cf9e49a49a76cb309d7ef1c25a66e77a41e2b1d0b40cd9 SHA512 c1a77abdf4abe5f936fb1c9c008fc81fabf7b624d69ed31fe2ae5619dfa4a79f1d4a4f2daa5291a36d40353fa2168e74e5ba61294230d702fcdc88ae0d520487 WHIRLPOOL a2fa86922780bdc5f34536aa5840a76902841024b0bc35220098e9d40e087c28578c37417c92ffca5035898c47f50d5de5d18609a3087ceb25eb532bd6b26092
+DIST rssh_2.3.4-3.debian.tar.xz 27364 SHA256 077b304c423349f2771207b0da20b0aef4a8e5baa9c51dcacd37fe2134bee70b SHA512 963d51c0a806090f8008b1f83ca3a0bc271f789e1388c4f4de993e61d705458be4163ba74ebb4fccea454b6ab08239b0a7c2b067bfe7ab222033b9785cb79a90 WHIRLPOOL 127f922d7595c3f3dc68be7b87f2b4043fa433c1e115232b6bac35cc924b280f161c976ab59cca92da846653ea4b5d5c3e33592e4f72593ec8dd07bd6c891c34
+EBUILD rssh-2.3.4.ebuild 844 SHA256 33d3e04c830c537a6975ea3b3db1b84e105c17f374a0c0c5971e66eeea5556d1 SHA512 a355eb2fa29e1d9e0df88aa8673d8f0d677623c36636a35ffff52e1d7c3f761f26f2b87db826207fc6964a4b4b92e7aa2090664a584f58c2918ab2862f8f4a38 WHIRLPOOL 03a24ca8c3b953bff133a5a5134c08dc92683981cedf91c01e892a73ea4c20461f58f0fcbee4511374641c4946fc038840c5809f1906178fb929bd66cf7a334d
+EBUILD rssh-2.3.4_p3.ebuild 1264 SHA256 aa06ffdc3d7f2354a10c17a63e0f0a84f6edc8bfc8391e1f6f57c56ab92de839 SHA512 f1722d018643b1170609af05b34964b1d5e93820843dbd110696b8e45307e0e42694f78ae9adf01200520cd624c095efc27d7d0d79beccd1df4efbad8edd198a WHIRLPOOL dd4480c01e0c3b415569c6e794eaea2f5a85a40547f02caed51634b85f541449afe232b1d497d2dba2a401c2b89b4157ca38ce85e84312eb8454570f0284a1ef
+MISC ChangeLog 2384 SHA256 31d32978a8072688451bc14f602301f7f3e0db361fa09357b402a0d32889539d SHA512 05d41abf1f56a08d3835e5fef450f508c22254814c0896eef65e7e197d221e7b04526b6e9b426eba25f5bd5cbfbacd92d34b53114728d0afd6e68379558641cb WHIRLPOOL 6f7add836b1bd32dd018bc65b52585b9a8220283d472c2c7e3828cf35a82d3d9f8b896a91816691fd1bde5e9f3ca1483fc4056ede72ae94f00f0c8e19b5a634a
+MISC ChangeLog-2015 5108 SHA256 081ad4d9c423b2882b7f3cc11ccb768e32f9b2f3da2dd7db56359cbf3866037c SHA512 4b62cc821210893eb8d2663cfb89da471fbdb1a2f718dcdd4c6bcdd79a30b0ad7f85ba0833a66a71692de4207eefec271d1e39d71c6ec88649f1e0d671958354 WHIRLPOOL 959175c63a67aef570654f9b4aa5e021974e25fa11fd177ed7dbf5a812c68c49f660beb35c94138c9f3d6ddbc942a4f1ff801fc48dea35b3e940c63ad5fb2f29
+MISC metadata.xml 447 SHA256 7a4fffdf805d7648d3b5238839d9af8f7e61ffeedb47c0745a1d9f41349c1444 SHA512 a4c7656b447d234cdbbc246eb5613667d2943cdf1caeb81649e66afe4e35f5fba0c673344a2a79c464aff17c0eae9e2bbf556ab4d0a8ac4ce2bfee6afbd68dc1 WHIRLPOOL 47b6d3d4f939af764b8d9db9b1b42cddb698ca0c1421b870a5dfe6beabc69096392da03607b2d0ac4b3b807c892df021ccdcbde1b8943b1f00ee40526f997a1b
diff --git a/app-shells/rssh/files/rssh-2.3.4_p3-autotools.patch b/app-shells/rssh/files/rssh-2.3.4_p3-autotools.patch
new file mode 100644
index 000000000000..8030eda525f3
--- /dev/null
+++ b/app-shells/rssh/files/rssh-2.3.4_p3-autotools.patch
@@ -0,0 +1,33 @@
+diff -Naur rssh-2.3.4.orig/configure.ac rssh-2.3.4/configure.ac
+--- rssh-2.3.4.orig/configure.ac 2013-11-15 16:11:21.301056547 -0700
++++ rssh-2.3.4/configure.ac 2013-11-15 16:11:51.471424233 -0700
+@@ -13,12 +13,6 @@
+ AC_PROG_MAKE_SET
+ AC_CHECK_TOOL([STRIP],[strip])
+
+-if test yes = "$GCC" ; then
+- defcflags="-O2 -Wall -Wshadow"
+-else
+- echo "Using default flags"
+-fi
+-
+ # Checks for libraries.
+
+ # Checks for header files.
+diff -Naur rssh-2.3.4.orig/Makefile.am rssh-2.3.4/Makefile.am
+--- rssh-2.3.4.orig/Makefile.am 2013-11-15 16:11:21.301056547 -0700
++++ rssh-2.3.4/Makefile.am 2013-11-15 16:12:28.581876494 -0700
+@@ -15,7 +15,7 @@
+ base=`echo @PACKAGE_STRING@|tr " " "-"`
+
+ install-exec-hook:
+- chmod u+s $(libexecdir)/rssh_chroot_helper
++ chmod u+s $(DESTDIR)/$(libexecdir)/rssh_chroot_helper
+
+ rpm: dist
+ rpmbuild -ta --sign $(base).tar.gz
+@@ -24,3 +24,4 @@
+ gpg -ba --default-key ddm@pizzashack.org $(base).tar.gz
+ mv $(base).tar.gz.asc $(base).tar.gz.sig
+
++AM_CPPFLAGS += -I. -I$(srcdir)
diff --git a/app-shells/rssh/metadata.xml b/app-shells/rssh/metadata.xml
new file mode 100644
index 000000000000..899d5f85d4e1
--- /dev/null
+++ b/app-shells/rssh/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>opensource@andmarios.com</email>
+ <name>Marios Andreopoulos</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>junghans@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">rssh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-shells/rssh/rssh-2.3.4.ebuild b/app-shells/rssh/rssh-2.3.4.ebuild
new file mode 100644
index 000000000000..c7f65ae63eff
--- /dev/null
+++ b/app-shells/rssh/rssh-2.3.4.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+inherit eutils multilib
+
+DESCRIPTION="Restricted shell for SSHd"
+HOMEPAGE="http://rssh.sourceforge.net/"
+SRC_URI="mirror://sourceforge/rssh/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 ~arm ppc x86"
+IUSE="static"
+
+RDEPEND="virtual/ssh"
+
+src_prepare() {
+ epatch_user
+
+ sed -i 's:chmod u+s $(:chmod u+s $(DESTDIR)$(:' Makefile.in || die
+ # respect CFLAGS, bug #450458
+ sed -i -e '/$(CC) -c/s/$(CPPFLAGS)/$(CFLAGS)/' Makefile.in || die
+}
+
+src_configure() {
+ econf \
+ --libexecdir="/usr/$(get_libdir)/misc" \
+ --with-scp=/usr/bin/scp \
+ --with-sftp-server="/usr/$(get_libdir)/misc/sftp-server" \
+ $(use_enable static)
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+ dodoc AUTHORS ChangeLog CHROOT INSTALL README TODO
+}
diff --git a/app-shells/rssh/rssh-2.3.4_p3.ebuild b/app-shells/rssh/rssh-2.3.4_p3.ebuild
new file mode 100644
index 000000000000..d122e75c3c05
--- /dev/null
+++ b/app-shells/rssh/rssh-2.3.4_p3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools-utils multilib
+
+DESCRIPTION="Restricted shell for SSHd"
+HOMEPAGE="http://rssh.sourceforge.net/"
+MY_P="${P/%_p*}"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
+ mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p/-}.debian.tar.xz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~x86"
+IUSE="static subversion"
+
+RDEPEND="virtual/ssh"
+
+S="${WORKDIR}/${MY_P}"
+DOCS=( AUTHORS ChangeLog CHROOT INSTALL README TODO )
+
+src_prepare() {
+ epatch "${WORKDIR}"/debian/patches/fixes/*.diff "${FILESDIR}/${P}"-autotools.patch
+ use subversion && epatch "${WORKDIR}"/debian/patches/features/subversion.diff
+ AUTOTOOLS_AUTORECONF=1 autotools-utils_src_prepare #due to debian patches
+}
+
+src_configure() {
+ local myeconfargs=(
+ --libexecdir="/usr/$(get_libdir)/misc"
+ --with-scp=/usr/bin/scp
+ --with-sftp-server="/usr/$(get_libdir)/misc/sftp-server"
+ $(use_enable static)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ if use subversion && [[ -f "${EROOT}"/etc/rssh.conf ]]; then
+ awk -f conf_convert "${EROOT}"/etc/rssh.conf > "${T}/rssh.conf" || die
+ insinto /etc
+ doins "${T}/rssh.conf"
+ fi
+}