summaryrefslogtreecommitdiff
path: root/net/samba4/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'net/samba4/options.mk')
-rw-r--r--net/samba4/options.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/net/samba4/options.mk b/net/samba4/options.mk
index 10d8ad3e59b..6aa604d49aa 100644
--- a/net/samba4/options.mk
+++ b/net/samba4/options.mk
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.12 2020/11/12 06:37:18 adam Exp $
+# $NetBSD: options.mk,v 1.13 2021/05/30 20:02:31 thor Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.samba4
PKG_SUPPORTED_OPTIONS= ads avahi fam ldap pam winbind # cups # cups option is broken for me.
@@ -15,6 +15,11 @@ PKG_SUPPORTED_OPTIONS+= acl
PKG_SUGGESTED_OPTIONS+= ads
.endif
+.if ${OPSYS} == "Linux"
+PKG_SUPPORTED_OPTIONS+= snapper
+PKG_SUGGESTED_OPTIONS+= snapper
+.endif
+
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ads cups fam ldap pam winbind
@@ -108,3 +113,13 @@ CONFIGURE_ARGS+= --enable-avahi
.else
CONFIGURE_ARGS+= --disable-avahi
.endif
+
+.if ${OPSYS} == "Linux"
+PLIST_VARS+= snapper
+. if !empty(PKG_OPTIONS:Msnapper)
+.include "../../sysutils/dbus/buildlink3.mk"
+PLIST.snapper= yes
+. else
+CONFIGURE_ARGS+= --with-shared-modules='!vfs_snapper'
+. endif
+.endif