From ae04c577137352d7416fc53ceddf69fb63c0c8f3 Mon Sep 17 00:00:00 2001 From: seb Date: Wed, 20 Apr 2005 16:21:15 +0000 Subject: Initial import of rssh version 2.2.3 into the NetBSD Packages Collection. Based on rssh package in pkgsrc-wip by pancake at phreaker dot net, slightly modified and updated to latest version by myself. Claim stewardship. Rssh is a restricted shell for use with OpenSSH, allowing only scp and/or sftp. For example, if you have a server which you only want to allow users to copy files off of via scp, without providing shell access, you can use rssh to do that. --- shells/rssh/DESCR | 4 ++++ shells/rssh/MESSAGE | 7 ++++++ shells/rssh/Makefile | 53 ++++++++++++++++++++++++++++++++++++++++++++ shells/rssh/PLIST | 7 ++++++ shells/rssh/distinfo | 6 +++++ shells/rssh/patches/patch-aa | 13 +++++++++++ 6 files changed, 90 insertions(+) create mode 100644 shells/rssh/DESCR create mode 100644 shells/rssh/MESSAGE create mode 100644 shells/rssh/Makefile create mode 100644 shells/rssh/PLIST create mode 100644 shells/rssh/distinfo create mode 100644 shells/rssh/patches/patch-aa (limited to 'shells/rssh') diff --git a/shells/rssh/DESCR b/shells/rssh/DESCR new file mode 100644 index 00000000000..c3316acd21d --- /dev/null +++ b/shells/rssh/DESCR @@ -0,0 +1,4 @@ +Rssh is a restricted shell for use with OpenSSH, allowing only scp +and/or sftp. For example, if you have a server which you only want +to allow users to copy files off of via scp, without providing +shell access, you can use rssh to do that. diff --git a/shells/rssh/MESSAGE b/shells/rssh/MESSAGE new file mode 100644 index 00000000000..1208ca3ab10 --- /dev/null +++ b/shells/rssh/MESSAGE @@ -0,0 +1,7 @@ +=========================================================================== +$NetBSD: MESSAGE,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $ + +You should configure PermitUserEnvironment in your sshd_config to no. +If you do not do this, it will be possible for users to circumvent rssh. + +=========================================================================== diff --git a/shells/rssh/Makefile b/shells/rssh/Makefile new file mode 100644 index 00000000000..1ea24be42cd --- /dev/null +++ b/shells/rssh/Makefile @@ -0,0 +1,53 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $ +# + +DISTNAME= rssh-2.2.3 +CATEGORIES= shells security +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rssh/} + +MAINTAINER= seb@NetBSD.org +HOMEPAGE= http://www.pizzashack.org/rssh/ +COMMENT= Restricted shell allowing only scp and/or sftp + +GNU_CONFIGURE= yes +USE_PKGINSTALL= yes + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} + +.if !exists(/usr/include/wordexp.h) +PKG_SKIP_REASON+= "${PKGNAME} requires wordexp(3)" +.endif + +EGDIR= ${PREFIX}/share/examples/rssh +INSTALLATION_DIRS= share/examples/rssh +CONF_FILES= ${EGDIR}/rssh.conf ${PKG_SYSCONFDIR}/rssh.conf +PKG_SHELL?= ${PREFIX}/bin/rssh + +SPECIAL_PERMS+= ${PREFIX}/libexec/rssh_chroot_helper ${SETUID_ROOT_PERMS} + +BUILD_DEFS+= RSSH_SCP_PATH +BUILD_DEFS+= RSSH_SFTP_SERVER_PATH +BUILD_DEFS+= RSSH_CVS_PATH +BUILD_DEFS+= RSSH_RDIST_PATH +BUILD_DEFS+= RSSH_RSYNC_PATH + +.if defined(RSSH_SCP_PATH) && !empty(RSSH_SCP_PATH) +CONFIGURE_ARGS+= --with-scp=${RSSH_SCP_PATH} +.endif +.if defined(RSSH_SFTP_SERVER_PATH) && !empty(RSSH_SFTP_SERVER_PATH) +CONFIGURE_ARGS+= --with-sftp-server=${RSSH_SFTP_SERVER_PATH} +.endif +.if defined(RSSH_CVS_PATH) && !empty(RSSH_CVS_PATH) +CONFIGURE_ARGS+= --with-cvs=${RSSH_CVS_PATH} +.endif +.if defined(RSSH_RDIST_PATH) && !empty(RSSH_RDIST_PATH) +CONFIGURE_ARGS+= --with-rdist=${RSSH_RDIST_PATH} +.endif +.if defined(RSSH_RSYNC_PATH) && !empty(RSSH_RSYNC_PATH) +CONFIGURE_ARGS+= --with-rsync=${RSSH_RSYNC_PATH} +.endif + +post-install: + ${INSTALL_DATA} ${WRKSRC}/rssh.conf ${EGDIR}/rssh.conf + +.include "../../mk/bsd.pkg.mk" diff --git a/shells/rssh/PLIST b/shells/rssh/PLIST new file mode 100644 index 00000000000..ff06c963ab2 --- /dev/null +++ b/shells/rssh/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $ +bin/rssh +libexec/rssh_chroot_helper +man/man1/rssh.1 +man/man5/rssh.conf.5 +share/examples/rssh/rssh.conf +@dirrm share/examples/rssh diff --git a/shells/rssh/distinfo b/shells/rssh/distinfo new file mode 100644 index 00000000000..9049eff0a76 --- /dev/null +++ b/shells/rssh/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $ + +SHA1 (rssh-2.2.3.tar.gz) = e59e6d638937de12042f91649e98e33b686e435f +RMD160 (rssh-2.2.3.tar.gz) = e0b9b05e349794ccb32a217eaabf5abb364a1e85 +Size (rssh-2.2.3.tar.gz) = 107216 bytes +SHA1 (patch-aa) = 0424bd8d705c8981cdd9076ba9a1d5eb59a192f3 diff --git a/shells/rssh/patches/patch-aa b/shells/rssh/patches/patch-aa new file mode 100644 index 00000000000..c18da0851f8 --- /dev/null +++ b/shells/rssh/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2005/04/20 16:21:15 seb Exp $ + +--- Makefile.in.orig 2004-06-19 08:31:32.000000000 +0200 ++++ Makefile.in +@@ -550,7 +550,7 @@ info-am: + + install-data-am: install-man + +-install-exec-am: install-binPROGRAMS install-dist_sysconfDATA \ ++install-exec-am: install-binPROGRAMS \ + install-libexecPROGRAMS + @$(NORMAL_INSTALL) + $(MAKE) $(AM_MAKEFLAGS) install-exec-hook -- cgit v1.2.3