summaryrefslogtreecommitdiff
path: root/shells
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2008-08-21 14:32:07 +0000
committerPav Lucistnik <pav@FreeBSD.org>2008-08-21 14:32:07 +0000
commit87e50eaccf92e3e675057198fcbe385de0453915 (patch)
tree97f6d353de7a28d457d3370f113f4ce37def298f /shells
parent- Change pre-install: target to pre-su-install: since user and group are (diff)
- Readd shells/rssh without rsync support. I'm still actively using it.
Notes
Notes: svn path=/head/; revision=218955
Diffstat (limited to '')
-rw-r--r--shells/Makefile1
-rw-r--r--shells/rssh/Makefile42
-rw-r--r--shells/rssh/distinfo3
-rw-r--r--shells/rssh/pkg-descr6
-rw-r--r--shells/rssh/pkg-plist6
5 files changed, 58 insertions, 0 deletions
diff --git a/shells/Makefile b/shells/Makefile
index 588180ed4ab8..7e04bc3b1f02 100644
--- a/shells/Makefile
+++ b/shells/Makefile
@@ -28,6 +28,7 @@
SUBDIR += pear-PHP_Shell
SUBDIR += psh
SUBDIR += rc
+ SUBDIR += rssh
SUBDIR += sash
SUBDIR += scponly
SUBDIR += shell-include
diff --git a/shells/rssh/Makefile b/shells/rssh/Makefile
new file mode 100644
index 000000000000..dec1127c7963
--- /dev/null
+++ b/shells/rssh/Makefile
@@ -0,0 +1,42 @@
+# New ports collection makefile for: rssh
+# Date created: Fri Apr 16 02:04:33 CEST 2004
+# Whom: enigmatyc
+#
+# $FreeBSD$
+#
+
+PORTNAME= rssh
+PORTVERSION= 2.3.2
+CATEGORIES= shells security
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= pav@FreeBSD.org
+COMMENT= A Restricted Secure SHell only for sftp or/and scp
+
+GNU_CONFIGURE= yes
+
+MAN1= rssh.1
+MAN5= rssh.conf.5
+
+OPTIONS= RDIST "rdist support" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_RDIST)
+RUN_DEPENDS+= ${LOCALBASE}/bin/rdist6:${PORTSDIR}/net/rdist6
+CONFIGURE_ARGS+=--with-rdist=${LOCALBASE}/bin/rdist6
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -E -e 's,(\$$\(DESTDIR\)\$$\(sysconfdir\)/\$$\$$f),\1.dist,g' \
+ ${WRKSRC}/Makefile.in
+
+post-install:
+ @${ECHO_MSG} "updating /etc/shells"
+ @${CP} /etc/shells /etc/shells.bak
+ @(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
+ ${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
+ @${RM} /etc/shells.bak
+
+.include <bsd.port.post.mk>
diff --git a/shells/rssh/distinfo b/shells/rssh/distinfo
new file mode 100644
index 000000000000..80706272d762
--- /dev/null
+++ b/shells/rssh/distinfo
@@ -0,0 +1,3 @@
+MD5 (rssh-2.3.2.tar.gz) = 65712f2c06ff5fc6fc783bc8c2e4e1ba
+SHA256 (rssh-2.3.2.tar.gz) = 8569a07dd96c8f70d0310186b37bbb2e8e591807ac1d1bd0990c02bfd467ba57
+SIZE (rssh-2.3.2.tar.gz) = 113959
diff --git a/shells/rssh/pkg-descr b/shells/rssh/pkg-descr
new file mode 100644
index 000000000000..cfb3de2a129c
--- /dev/null
+++ b/shells/rssh/pkg-descr
@@ -0,0 +1,6 @@
+rssh is a Restricted Secure SHell that allow only the use of sftp
+or scp. It could be use when you need an account (and a valid
+shell) in order to execute sftp or scp but when you don't want to
+give the possibility to log in to this user.
+
+WWW: http://www.pizzashack.org/rssh/index.shtml
diff --git a/shells/rssh/pkg-plist b/shells/rssh/pkg-plist
new file mode 100644
index 000000000000..4bfa5f99c1a6
--- /dev/null
+++ b/shells/rssh/pkg-plist
@@ -0,0 +1,6 @@
+@comment $FreeBSD$
+bin/rssh
+@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells; rm -f /etc/shells.bak
+@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells; rm -f /etc/shells.bak
+etc/rssh.conf.dist
+libexec/rssh_chroot_helper