1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools-utils multilib
8 DESCRIPTION="Restricted shell for SSHd"
9 HOMEPAGE="http://rssh.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz
12 mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV/_p/-}.debian.tar.xz"
16 KEYWORDS="~amd64 ~arm ~ppc ~x86"
17 IUSE="static subversion"
21 S="${WORKDIR}/${MY_P}"
22 DOCS=( AUTHORS ChangeLog CHROOT INSTALL README TODO )
25 epatch "${WORKDIR}"/debian/patches/fixes/*.diff "${FILESDIR}/${P}"-autotools.patch
26 use subversion && epatch "${WORKDIR}"/debian/patches/features/subversion.diff
27 AUTOTOOLS_AUTORECONF=1 autotools-utils_src_prepare #due to debian patches
32 --libexecdir="/usr/$(get_libdir)/misc"
33 --with-scp=/usr/bin/scp
34 --with-sftp-server="/usr/$(get_libdir)/misc/sftp-server"
37 autotools-utils_src_configure
41 autotools-utils_src_install
42 if use subversion && [[ -f "${EROOT}"/etc/rssh.conf ]]; then
43 awk -f conf_convert "${EROOT}"/etc/rssh.conf > "${T}/rssh.conf" || die
45 doins "${T}/rssh.conf"