diff options
Diffstat (limited to 'app-shells/rssh/rssh-2.3.4_p3.ebuild')
-rw-r--r-- | app-shells/rssh/rssh-2.3.4_p3.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
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 +} |