svn commit: r310666 - head/ftp/yafc
Raphael Kubo da Costa
rakuco at FreeBSD.org
Sat Jan 19 22:23:07 UTC 2013
Author: rakuco
Date: Sat Jan 19 22:23:06 2013
New Revision: 310666
URL: http://svnweb.freebsd.org/changeset/ports/310666
Log:
Only install the bash completion file if the newly-added BASH option is set.
No PORTREVISION bump, since BASH is on by default to avoid POLA problems and
thus the plist does not change.
Modified:
head/ftp/yafc/Makefile
Modified: head/ftp/yafc/Makefile
==============================================================================
--- head/ftp/yafc/Makefile Sat Jan 19 22:14:35 2013 (r310665)
+++ head/ftp/yafc/Makefile Sat Jan 19 22:23:06 2013 (r310666)
@@ -11,8 +11,8 @@ COMMENT= Yet another ftp client. Similar
LICENSE= GPLv2 # (or later)
-OPTIONS_DEFINE= NLS SSH EXAMPLES
-OPTIONS_DEFAULT=NLS SSH
+OPTIONS_DEFINE= BASH EXAMPLES NLS SSH
+OPTIONS_DEFAULT=BASH NLS SSH
USE_XZ= yes
USE_OPENSSL= yes
@@ -29,9 +29,7 @@ LDFLAGS+= -L${LOCALBASE}/lib
MAN1= yafc.1
INFO= yafc
PORTEXAMPLES= inputrc yafcrc
-PLIST_FILES= bin/yafc \
- etc/bash_completion.d/yafc
-PLIST_DIRSTRY= etc/bash_completion.d
+PLIST_FILES= bin/yafc
.include <bsd.port.options.mk>
@@ -57,6 +55,14 @@ LIB_DEPENDS+= ssh:${PORTSDIR}/security/l
CONFIGURE_ARGS+= --without-ssh
.endif
+.if ${PORT_OPTIONS:MBASH}
+CONFIGURE_ARGS+= --with-bash-completion=yes
+PLIST_FILES+= etc/bash_completion.d/yafc
+PLIST_DIRSTRY= etc/bash_completion.d
+.else
+CONFIGURE_ARGS+= --with-bash-completion=no
+.endif
+
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
More information about the svn-ports-all
mailing list