--- /dev/null
+diff -Naur scponly-4.1.orig/configure scponly-4.1/configure
+--- scponly-4.1.orig/configure 2005-04-13 14:29:53.000000000 +0900
++++ scponly-4.1/configure 2005-04-17 17:18:00.000000000 +0900
+@@ -1,6 +1,8 @@
+ #! /bin/sh
+ # Guess values for system-dependent variables and create Makefiles.
+-# Generated by GNU Autoconf 2.59.
++# Generated by GNU Autoconf 2.59 for scponly 4.1.
++#
++# Report bugs to <joe@sublimitation.org>.
+ #
+ # Copyright (C) 2003 Free Software Foundation, Inc.
+ # This configure script is free software; the Free Software Foundation
+@@ -265,13 +267,12 @@
+ : ${ac_max_here_lines=38}
+
+ # Identity of this package.
+-PACKAGE_NAME=
+-PACKAGE_TARNAME=
+-PACKAGE_VERSION=
+-PACKAGE_STRING=
+-PACKAGE_BUGREPORT=
++PACKAGE_NAME='scponly'
++PACKAGE_TARNAME='scponly'
++PACKAGE_VERSION='4.1'
++PACKAGE_STRING='scponly 4.1'
++PACKAGE_BUGREPORT='joe@sublimitation.org'
+
+-ac_unique_file="scponly.c"
+ # Factoring default headers for most tests.
+ ac_includes_default="\
+ #include <stdio.h>
+@@ -778,7 +779,7 @@
+ # Omit some internal or obsolete options to make the list less imposing.
+ # This message is too long to be a string in the A/UX 3.1 sh.
+ cat <<_ACEOF
+-\`configure' configures this package to adapt to many kinds of systems.
++\`configure' configures scponly 4.1 to adapt to many kinds of systems.
+
+ Usage: $0 [OPTION]... [VAR=VALUE]...
+
+@@ -838,7 +839,9 @@
+ fi
+
+ if test -n "$ac_init_help"; then
+-
++ case $ac_init_help in
++ short | recursive ) echo "Configuration of scponly 4.1:";;
++ esac
+ cat <<\_ACEOF
+
+ Optional Features:
+@@ -879,6 +882,7 @@
+ Use these variables to override the choices made by `configure' or to help
+ it to find libraries and programs with nonstandard names/locations.
+
++Report bugs to <joe@sublimitation.org>.
+ _ACEOF
+ fi
+
+@@ -974,6 +978,8 @@
+ test -n "$ac_init_help" && exit 0
+ if $ac_init_version; then
+ cat <<\_ACEOF
++scponly configure 4.1
++generated by GNU Autoconf 2.59
+
+ Copyright (C) 2003 Free Software Foundation, Inc.
+ This configure script is free software; the Free Software Foundation
+@@ -986,7 +992,7 @@
+ This file contains any messages produced by compilers while
+ running configure, to aid debugging if configure makes a mistake.
+
+-It was created by $as_me, which was
++It was created by scponly $as_me 4.1, which was
+ generated by GNU Autoconf 2.59. Invocation command line was
+
+ $ $0 $@
+@@ -1314,25 +1320,13 @@
+
+
+
+-PACKAGE=scponly
+-cat >>confdefs.h <<\_ACEOF
+-#define PACKAGE 1
+-_ACEOF
+
+-PACKAGE_NAME=scponly
+-cat >>confdefs.h <<\_ACEOF
+-#define PACKAGE_NAME 1
+-_ACEOF
+
+-PACKAGE_VERSION=4.1
+-cat >>confdefs.h <<\_ACEOF
+-#define PACKAGE_VERSION 1
+-_ACEOF
+
+-PACKAGE_BUGREPORT=joe@sublimation.org
+-cat >>confdefs.h <<\_ACEOF
+-#define PACKAGE_BUGREPORT 1
+-_ACEOF
++
++
++
++
+
+ ac_config_headers="$ac_config_headers config.h"
+
+@@ -4803,9 +4797,9 @@
+ echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
+ (
+ cat <<\_ASBOX
+-## ------------------------------------------ ##
+-## Report this to the AC_PACKAGE_NAME lists. ##
+-## ------------------------------------------ ##
++## ------------------------------------ ##
++## Report this to joe@sublimitation.org ##
++## ------------------------------------ ##
+ _ASBOX
+ ) |
+ sed "s/^/$as_me: WARNING: /" >&2
+@@ -5844,7 +5838,7 @@
+ } >&5
+ cat >&5 <<_CSEOF
+
+-This file was extended by $as_me, which was
++This file was extended by scponly $as_me 4.1, which was
+ generated by GNU Autoconf 2.59. Invocation command line was
+
+ CONFIG_FILES = $CONFIG_FILES
+@@ -5904,7 +5898,7 @@
+
+ cat >>$CONFIG_STATUS <<_ACEOF
+ ac_cs_version="\\
+-config.status
++scponly config.status 4.1
+ configured by $0, generated by GNU Autoconf 2.59,
+ with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+diff -Naur scponly-4.1.orig/configure.in scponly-4.1/configure.in
+--- scponly-4.1.orig/configure.in 2005-04-13 14:29:44.000000000 +0900
++++ scponly-4.1/configure.in 2005-04-17 17:17:40.000000000 +0900
+@@ -9,15 +9,16 @@
+
+ dnl
+ dnl Say what we are:
+-AC_INIT([scponly.c])
+-PACKAGE=scponly
+-AC_DEFINE(PACKAGE)
+-PACKAGE_NAME=scponly
+-AC_DEFINE(PACKAGE_NAME)
+-PACKAGE_VERSION=4.1
+-AC_DEFINE(PACKAGE_VERSION)
+-PACKAGE_BUGREPORT=joe@sublimation.org
+-AC_DEFINE(PACKAGE_BUGREPORT)
++dnl AC_INIT([scponly.c])
++AC_INIT([scponly],[4.1],[joe@sublimitation.org])
++dnl PACKAGE=scponly
++dnl AC_DEFINE(PACKAGE)
++dnl PACKAGE_NAME=scponly
++dnl AC_DEFINE(PACKAGE_NAME)
++dnl PACKAGE_VERSION=4.1
++dnl AC_DEFINE(PACKAGE_VERSION)
++dnl PACKAGE_BUGREPORT=joe@sublimation.org
++dnl AC_DEFINE(PACKAGE_BUGREPORT)
+ dnl AC_CONFIG_SRCDIR([helper.c])
+ AC_CONFIG_HEADER([config.h])
+
--- /dev/null
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/scponly/scponly-4.1.ebuild,v 1.1 2005/09/19 23:11:36 matsuu Exp $
+
+inherit eutils
+
+DESCRIPTION="A tiny pseudoshell which only permits scp and sftp"
+HOMEPAGE="http://www.sublimation.org/scponly/"
+SRC_URI="http://www.sublimation.org/scponly/${P}.tgz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="virtual/libc
+ net-misc/openssh"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ epatch ${FILESDIR}/${P}-gentoo.patch
+}
+
+src_compile() {
+ PATH="${PATH}:/usr/$(get_libdir)/misc" \
+ econf \
+ --enable-rsync-compat \
+ --enable-chrooted-binary \
+ || die "./configure failed"
+# --enable-svn-compat\ # subversion SCS cli compatibility
+# --enable-svnserv-compat\ # subversion SCS svnserve compatibility
+ emake || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB README TODO
+ dodoc setup_chroot.sh
+}
+
+pkg_postinst() {
+ einfo "Setting up chroot in pkg_postinst was removed. Please setup manually."
+}