View | Details | Raw Unified | Return to bug 246457
Collapse All | Expand All

(-)net/py-wsdd/Makefile (+1 lines)
Lines 3-8 Link Here
3
PORTNAME=	wsdd
3
PORTNAME=	wsdd
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
DISTVERSION=	0.5
5
DISTVERSION=	0.5
6
PORTREVISION=	1
6
CATEGORIES=	net python
7
CATEGORIES=	net python
7
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
9
(-)net/py-wsdd/files/patch-etc_rc.d_wsdd (+19 lines)
Line 0 Link Here
1
--- etc/rc.d/wsdd.orig	2019-12-16 13:40:38 UTC
2
+++ etc/rc.d/wsdd
3
@@ -9,14 +9,11 @@
4
 
5
 name=wsdd
6
 rcvar=wsdd_enable
7
-wsdd_group=""
8
+wsdd_group=$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null)
9
 
10
-if which testparm >/dev/null 2>/dev/null; then
11
-	wsdd_group=$(testparm -s --parameter-name workgroup 2>/dev/null)
12
-fi
13
+: ${wsdd_smb_config_file="/usr/local/etc/smb4.conf"}
14
 
15
 # try to manually extract workgroup from samba configuration if testparm failed
16
-wsdd_smb_config_file="/usr/local/etc/smb.conf"
17
 if [ -z "$wsdd_group" ] && [ -r $wsdd_smb_config_file ]; then
18
 	wsdd_group="$(grep -i '^[[:space:]]*workgroup[[:space:]]*=' $wsdd_smb_config_file | cut -f2 -d= | tr -d '[:blank:]')"
19
 fi

Return to bug 246457