From 5b64e4bae111fa10af1af5efb10110a339bfd121 Mon Sep 17 00:00:00 2001 From: pav Date: Fri, 20 Aug 2004 22:29:47 +0000 Subject: - Convert to OPTIONS PR: ports/70723 Submitted by: Ying-Chieh Chen --- ftp/hsftp/Makefile | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/ftp/hsftp/Makefile b/ftp/hsftp/Makefile index ff64c74ad2c..58d13b59765 100644 --- a/ftp/hsftp/Makefile +++ b/ftp/hsftp/Makefile @@ -19,25 +19,17 @@ MAKEFILE= makefile MAN1= hsftp.1 PLIST_FILES= bin/hsftp +OPTIONS= OPENSSH "Build with OpenSSH support" off + +.include + .if defined(WITH_OPENSSH) -RUN_DEPENDS= ssh:${PORTSDIR}/security/openssh +RUN_DEPENDS+= ssh:${PORTSDIR}/security/openssh CONFIGURE_ARGS+= --with-openssh .endif -pre-everything:: -.if !defined(WITH_OPENSSH) - @${ECHO_MSG} - @${ECHO_MSG} "If you would like build hsftp with OpenSSH support" - @${ECHO_MSG} "you must set the variable WITH_OPENSSH" - @${ECHO_MSG} -.else - @${ECHO_MSG} - @${ECHO_MSG} "Building hsftp with OpenSSH support" - @${ECHO_MSG} -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/hsftp ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/hsftp.1 ${MANPREFIX}/man/man1 -.include +.include -- cgit