pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/shells/rssh Initial import of rssh version 2.2.3 into ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/05a85c2ffa3f
branches: trunk
changeset: 492862:05a85c2ffa3f
user: seb <seb%pkgsrc.org@localhost>
date: Wed Apr 20 16:21:15 2005 +0000
description:
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.
diffstat:
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(+), 0 deletions(-)
diffs (114 lines):
diff -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/DESCR Wed Apr 20 16:21:15 2005 +0000
@@ -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 -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/MESSAGE Wed Apr 20 16:21:15 2005 +0000
@@ -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 -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/Makefile Wed Apr 20 16:21:15 2005 +0000
@@ -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@localhost
+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 -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/PLIST Wed Apr 20 16:21:15 2005 +0000
@@ -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 -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/distinfo Wed Apr 20 16:21:15 2005 +0000
@@ -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 -r ebd4b8266de8 -r 05a85c2ffa3f shells/rssh/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/shells/rssh/patches/patch-aa Wed Apr 20 16:21:15 2005 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index