ports/109214: [Patch] scponly: make port options visible with dialog

Volker Werth volker at vwsoft.com
Fri Feb 16 02:00:13 UTC 2007


>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:



More information about the freebsd-ports-bugs mailing list