Skip to content

Commit cb7a730

Browse files
author
thor
committed
sysutils/mc: add explicit handling of samba and sftp vfs as options
1 parent 7db9bb3 commit cb7a730

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

sysutils/mc/options.mk

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# $NetBSD: options.mk,v 1.15 2019/11/04 21:28:48 rillig Exp $
1+
# $NetBSD: options.mk,v 1.16 2021/05/30 19:56:38 thor Exp $
22

33
PKG_OPTIONS_VAR= PKG_OPTIONS.mc
44
PKG_OPTIONS_REQUIRED_GROUPS= screen
55
PKG_OPTIONS_GROUP.screen= ncurses slang
6-
PKG_SUPPORTED_OPTIONS= mc-charset x11
6+
PKG_SUPPORTED_OPTIONS= mc-charset x11 smb sftp
77
PKG_SUGGESTED_OPTIONS= mc-charset slang
88

99
.include "../../mk/bsd.options.mk"
@@ -40,3 +40,17 @@ CONFIGURE_ARGS+= --with-screen=ncurses
4040
.else
4141
CONFIGURE_ARGS+= --with-screen=mcslang
4242
.endif
43+
44+
.if !empty(PKG_OPTIONS:Msmb)
45+
CONFIGURE_ARGS+= --enable-vfs-smb
46+
.include "../../net/samba4/buildlink3.mk"
47+
.else
48+
CONFIGURE_ARGS+= --disable-vfs-smb
49+
.endif
50+
51+
.if !empty(PKG_OPTIONS:Msftp)
52+
CONFIGURE_ARGS+= --enable-vfs-sftp
53+
.include "../../security/libssh2/buildlink3.mk"
54+
.else
55+
CONFIGURE_ARGS+= --disable-vfs-sftp
56+
.endif

0 commit comments

Comments
 (0)