ports/50899: shells/scponly doesn't have a 'chrooted binary' option

Miguel Mendez flynn at energyhq.homeip.net
Sun Apr 13 13:40:12 UTC 2003


>Number:         50899
>Category:       ports
>Synopsis:       shells/scponly doesn't have a 'chrooted binary' option
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 06:40:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Miguel Mendez
>Release:        FreeBSD 5.0-RELEASE-p7 i386
>Organization:
>Environment:
System: FreeBSD isengard.energyhq.tk 5.0-RELEASE-p7 FreeBSD 5.0-RELEASE-p7 #0: Fri Apr 11 10:51:38 CEST 2003 root at isengard.energyhq.tk:/usr/obj/usr/src/sys/ISENGARD i386


	
>Description:
The port is missing a rather useful feature of scponly, being
able to chroot users.
>How-To-Repeat:
	
>Fix:

	

--- scponly.diff begins here ---
diff -ruN scponly.old/Makefile scponly/Makefile
--- scponly.old/Makefile	Fri Feb 21 14:26:58 2003
+++ scponly/Makefile	Sun Apr 13 15:30:02 2003
@@ -7,6 +7,7 @@
 
 PORTNAME=	scponly
 PORTVERSION=	3.4
+PORTREVISION=	1
 CATEGORIES=	shells
 MASTER_SITES=	http://www.sublimation.org/scponly/
 EXTRACT_SUFX=	.tgz
@@ -14,8 +15,20 @@
 MAINTAINER=	mcglk at artlogix.com
 COMMENT=	A tiny shell which only permits scp and sftp
 
+.if defined(CHROOTED_BINARY)
+CONFIGURE_ARGS+=	--enable-chrooted-binary
+PLIST_SUB+=		CHROOTED_BINARY=""
+.else
+PLIST_SUB+=		CHROOTED_BINARY="@comment "
+.endif
+
 MAN8=	scponly.8
 
 GNU_CONFIGURE=	yes
+
+pre-everything::
+		${ECHO_CMD} "--------------------------------------------------"
+		${ECHO_CMD} "If you want chroot support, define CHROOTED_BINARY"
+		${ECHO_CMD} "--------------------------------------------------"
 
 .include <bsd.port.mk>
diff -ruN scponly.old/pkg-plist scponly/pkg-plist
--- scponly.old/pkg-plist	Sun Jan  5 19:30:28 2003
+++ scponly/pkg-plist	Sun Apr 13 15:27:21 2003
@@ -1,3 +1,4 @@
 bin/scponly
+%%CHROOTED_BINARY%%sbin/scponlyc
 etc/scponly/debuglevel
 @dirrm etc/scponly
--- scponly.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list