Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2007 01:57:38 GMT
From:      Volker Werth<volker@vwsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/109214: [Patch] scponly: make port options visible with dialog
Message-ID:  <200702160157.l1G1vcQq071136@www.freebsd.org>
Resent-Message-ID: <200702160200.l1G20D5e082302@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         109214
>Category:       ports
>Synopsis:       [Patch] scponly: make port options visible with dialog
>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:   Fri Feb 16 02:00:12 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Volker Werth
>Release:        RELENG_6
>Organization:
>Environment:
>Description:
port shells/scponly has some knobs which are not screened to the user while installing. Following is a patch to make these options visible to the user to make him selections.
In the default install scponly does not support scp. It took me some time to figure out these knobs are there and causing scp not to work in the default install (yes... I know there's a hint in the UPDATING file, I found it later).
I've choosen to append an underscore to the OPTION names not to conflict with default (system wide) knobs.
>How-To-Repeat:
cd /usr/ports/shells/scponly && make install clean
and have scponly not being able to handle scp connections.
>Fix:
--- Makefile.old        Sun Aug  6 21:45:37 2006
+++ Makefile.new        Fri Feb 16 02:30:22 2007
@@ -88,7 +88,37 @@
 
 PATCH_STRIP=   -p1
 
+OPTIONS=       \
+       WILDCARDS_      "wildcard processing"   on      \
+       GFTP_           "gftp compatibility"    on      \
+       CHROOT_         "use chroot (UID root)" off     \
+       RSYNC_          "rsync compatibility"   off     \
+       SCP_            "enable scp"            off     \
+       SFTP_LOGGING_   "sftp logging"          off     \
+       SVN_            "svn compatibility"     off     \
+       SVNSERVE_       "svn compatibility (svn+ssh)"   off     \
+       UNISON_         "unison compatibility"  off     \
+       WINSCP_         "WinSCP compatibility"  off     \
+       NOPORTDOCS_     "do not build documentation"    off
+
 .include <bsd.port.pre.mk>
+
+.for o in CHROOT RSYNC SCP SFTP_LOGGING SVN SVNSERVE UNISON WINSCP
+.if defined( WITH_${o}_ )
+WITH_SCPONLY_${o}=${WITH_${o}_}
+.undef WITH_${o}_
+.endif
+.endfor
+.for o in WILDCARDS GFTP
+.if defined( WITHOUT_${o}_ )
+WITHOUT_SCPONLY_${o}=${WITHOUT_${o}_}
+.undef WITHOUT_${o}_
+.endif
+.endfor
+
+.if defined(WITH_NOPORTDOCS_)
+NOPORTSDOCS=true
+.undef WITH_NOPORTDOCS_
+.endif
 
 .if defined(SCPONLY_DEFAULT_CHDIR) && !empty(SCPONLY_DEFAULT_CHDIR)
 CONFIGURE_ARGS+=--with-default-chdir=${SCPONLY_DEFAULT_CHDIR}

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702160157.l1G1vcQq071136>