diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-shells/rssh | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-shells/rssh')
-rw-r--r-- | app-shells/rssh/Manifest | 6 | ||||
-rw-r--r-- | app-shells/rssh/files/rssh-2.3.4_p3-autotools.patch | 33 | ||||
-rw-r--r-- | app-shells/rssh/metadata.xml | 11 | ||||
-rw-r--r-- | app-shells/rssh/rssh-2.3.4.ebuild | 37 | ||||
-rw-r--r-- | app-shells/rssh/rssh-2.3.4_p3.ebuild | 46 |
5 files changed, 133 insertions, 0 deletions
diff --git a/app-shells/rssh/Manifest b/app-shells/rssh/Manifest new file mode 100644 index 000000000000..40f21a7db4fb --- /dev/null +++ b/app-shells/rssh/Manifest @@ -0,0 +1,6 @@ +AUX rssh-2.3.4_p3-autotools.patch 1016 BLAKE2B d820619518dcea2a2c2a968451c71ab79baf322c9677dabe6ea6aa10253da35731446261854eab3a15c6d1f8885d9441f0614a6d836456fdb3f1a35d0e938303 SHA512 af3de7f5855d1feb3145684ecfd64fa29716a8d7ca9cf29bfaa0567de1ee32f5aa67bd53f408fcb87bdba94f9501769027f5725b25b8c19dda3250c00a00f228 +DIST rssh-2.3.4.tar.gz 113315 BLAKE2B 5f214c21af475da6754a9b233edd680bcfe2eefeb55b6899e18f834c016a0520c8acafcdab5701d594ea5998482a754c170b2f615418c47fe3dee429ba507812 SHA512 c1a77abdf4abe5f936fb1c9c008fc81fabf7b624d69ed31fe2ae5619dfa4a79f1d4a4f2daa5291a36d40353fa2168e74e5ba61294230d702fcdc88ae0d520487 +DIST rssh_2.3.4-3.debian.tar.xz 27364 BLAKE2B 400bbcc7540d23eec8309be83a2976b5393cf1fab42a4aa85481f9577b82974503756a9803d31a4e832551789c12c52df90180cf263a60aa324f0cc15e1a9f64 SHA512 963d51c0a806090f8008b1f83ca3a0bc271f789e1388c4f4de993e61d705458be4163ba74ebb4fccea454b6ab08239b0a7c2b067bfe7ab222033b9785cb79a90 +EBUILD rssh-2.3.4.ebuild 844 BLAKE2B 04a1a51d8c01546743c85596726d0222d7e7b75b1cd779c227e08713934321007ef6f91dbf84a3a65b46b0e8fed9e2782ab85aafe0b17e2ef83b1e4ea9977b7a SHA512 a355eb2fa29e1d9e0df88aa8673d8f0d677623c36636a35ffff52e1d7c3f761f26f2b87db826207fc6964a4b4b92e7aa2090664a584f58c2918ab2862f8f4a38 +EBUILD rssh-2.3.4_p3.ebuild 1264 BLAKE2B a236479142c86335dd5a45714a214912efeea8f76389f3875f79e7a904f8825713166fe5cd5de8decafbb792ab838087396dc31424c16e1d894ea02402f065f8 SHA512 f1722d018643b1170609af05b34964b1d5e93820843dbd110696b8e45307e0e42694f78ae9adf01200520cd624c095efc27d7d0d79beccd1df4efbad8edd198a +MISC metadata.xml 327 BLAKE2B 98ff0a2a3e40e186edaf434a7ca62711b7d95721804f799cdf97a3383122d7d6aa03d9081a3e025c0ec6b6db02b2f42bde64be8cf8212abb8dd8fcd0b3ac4c6a SHA512 832309f815fa92e689864e8cbe0319be98560dde39e870c840b74453f6498c89ece302e14e43e101b25ac0595df9c379ddc9fac856c2ec4d52afa80de9caa2bb 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..e365f24c8302 --- /dev/null +++ b/app-shells/rssh/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <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 +} |