DESCR

scponly is an alternative shell for system administrators who would like to
allow remote users to both read and write local files without providing any
remote execution privileges.

The only commands allowed are "scp" (for ssh1), "sftp-server" (for ssh2") and
"ls". Arguments to these commands are passed along unmolested.

Makefile

# $NetBSD: Makefile,v 1.14 2010/05/07 12:02:44 jmmv Exp $

DISTNAME= scponly-4.8
PKGREVISION= 1
CATEGORIES= shells security
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=scponly/}
EXTRACT_SUFX= .tgz

MAINTAINER= snj@NetBSD.org
HOMEPAGE= http://sublimation.org/scponly/wiki/
COMMENT= Shell that only permits sftp

GNU_CONFIGURE= yes

PKG_DESTDIR_SUPPORT= user-destdir

USE_TOOLS+= chgrp chmod chown echo id ln ls mkdir mv pwd rm rmdir
CONFIGURE_ENV+= scponly_PROG_CHGRP=${TOOLS_CHGRP:Q}
CONFIGURE_ENV+= PROG_CHMOD=${TOOLS_CHMOD:Q}
CONFIGURE_ENV+= scponly_PROG_CHMOD=${TOOLS_CHMOD:Q}
CONFIGURE_ENV+= PROG_CHOWN=${TOOLS_CHOWN:Q}
CONFIGURE_ENV+= scponly_PROG_CHOWN=${TOOLS_CHOWN:Q}
CONFIGURE_ENV+= ac_cv_path_scponly_PROG_ECHO=${TOOLS_ECHO:Q}
CONFIGURE_ENV+= scponly_PROG_ID=${TOOLS_ID:Q}
CONFIGURE_ENV+= scponly_PROG_LN=${TOOLS_LN:Q}
CONFIGURE_ENV+= scponly_PROG_LS=${TOOLS_LS:Q}
CONFIGURE_ENV+= scponly_PROG_MKDIR=${TOOLS_MKDIR:Q}
CONFIGURE_ENV+= scponly_PROG_MV=${TOOLS_MV:Q}
CONFIGURE_ENV+= scponly_PROG_PWD=${TOOLS_PWD_CMD:Q}
CONFIGURE_ENV+= PROG_RM=${TOOLS_RM:Q}
CONFIGURE_ENV+= scponly_PROG_RM=${TOOLS_RM:Q}
CONFIGURE_ENV+= scponly_PROG_RMDIR=${TOOLS_RMDIR:Q}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
PKG_SHELL= bin/scponly
PKG_SYSCONFSUBDIR= scponly

EGDIR= ${PREFIX}/share/examples/scponly
CONF_FILES= ${EGDIR}/debuglevel ${PKG_SYSCONFDIR}/debuglevel

.include "../../mk/bsd.pkg.mk"

PLIST

@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:14:21 joerg Exp $
bin/scponly
man/man8/scponly.8
share/examples/scponly/debuglevel

distinfo

$NetBSD: distinfo,v 1.7 2009/03/06 00:12:28 snj Exp $

SHA1 (scponly-4.8.tgz) = 154de34901ce22fd9d406f6e02cddc440c435afc
RMD160 (scponly-4.8.tgz) = de6b58fcb8108d42a1576c69003e9136b9417869
Size (scponly-4.8.tgz) = 101687 bytes
SHA1 (patch-aa) = ea2c67fa7d872e88744606a513d73d6767b9a180