FreeBSD Bugzilla – Attachment 216064 Details for
Bug 247626
net/py-wsdd: Update to 0.6.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Update patch to wsdd 0.6.1
wsdd-0.6.1-3.patch (text/plain), 3.42 KB, created by
Hiroo Ono
on 2020-06-30 09:09:05 UTC
(
hide
)
Description:
Update patch to wsdd 0.6.1
Filename:
MIME Type:
Creator:
Hiroo Ono
Created:
2020-06-30 09:09:05 UTC
Size:
3.42 KB
patch
obsolete
>diff --git a/net/py-wsdd/Makefile b/net/py-wsdd/Makefile >index c89bf4e1f..47574a85b 100644 >--- a/net/py-wsdd/Makefile >+++ b/net/py-wsdd/Makefile >@@ -2,7 +2,7 @@ > > PORTNAME= wsdd > DISTVERSIONPREFIX= v >-DISTVERSION= 0.6 >+DISTVERSION= 0.6.1 > CATEGORIES= net python > PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} > >@@ -23,6 +23,9 @@ PLIST_FILES= bin/${PORTNAME} \ > etc/rc.d/${PORTNAME} \ > man/man1/${PORTNAME}.1.gz > >+post-patch: >+ ${REINPLACE_CMD} 's|PYTHON|${PYTHON_CMD}|' ${WRKSRC}/etc/rc.d/${PORTNAME} >+ > do-install: > ${INSTALL_SCRIPT} ${WRKSRC}/src/${PORTNAME}.py \ > ${STAGEDIR}${PREFIX}/bin/${PORTNAME} >diff --git a/net/py-wsdd/distinfo b/net/py-wsdd/distinfo >index b8f37d0e5..bbd9f2e36 100644 >--- a/net/py-wsdd/distinfo >+++ b/net/py-wsdd/distinfo >@@ -1,3 +1,3 @@ >-TIMESTAMP = 1591589990 >-SHA256 (christgau-wsdd-v0.6_GH0.tar.gz) = 9e6caedfa92bc73b3bca2ff22fbb793254160197466a03bc1660fa2bd0bc0b15 >-SIZE (christgau-wsdd-v0.6_GH0.tar.gz) = 27067 >+TIMESTAMP = 1593428212 >+SHA256 (christgau-wsdd-v0.6.1_GH0.tar.gz) = 930dbe2059db29b422a1d433cd4984056064b29fc768ef80cd17dfa69a35c50e >+SIZE (christgau-wsdd-v0.6.1_GH0.tar.gz) = 27254 >diff --git a/net/py-wsdd/files/patch-etc_rc.d_wsdd b/net/py-wsdd/files/patch-etc_rc.d_wsdd >new file mode 100644 >index 000000000..9b82801bc >--- /dev/null >+++ b/net/py-wsdd/files/patch-etc_rc.d_wsdd >@@ -0,0 +1,64 @@ >+--- etc/rc.d/wsdd.orig 2020-06-28 19:10:44 UTC >++++ etc/rc.d/wsdd >+@@ -5,25 +5,54 @@ >+ # BEFORE: login >+ # KEYWORD: shutdown >+ >++# Add the following line in /etc/rc.conf to enable wsdd: >++# >++# wsdd_enable="YES" >++# wsdd_flags="<set as needed>" >++# wsdd_domain="<set if your host is an AD member>" >++# wsdd_group="<set if you want to set the workgroup manually>" >++# >++# Do not specify -d DOMAIN or -w WORKGROUP in wsdd_flags. Instead, set >++# wsdd_domain="DOMAIN" or wsdd_group="WORKGROUP", otherwise it will be >++# overridden by automatically detected workgroup. >++# >++ >+ . /etc/rc.subr >+ >+ name=wsdd >+ rcvar=wsdd_enable >+-wsdd_group=$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null) >+ >++load_rc_config ${name} >++ >++: ${wsdd_suppflags=""} >++: ${wsdd_domain=""} >++: ${wsdd_group=""} >+ : ${wsdd_smb_config_file="/usr/local/etc/smb4.conf"} >+ >+-# try to manually extract workgroup from samba configuration if testparm failed >+-if [ -z "$wsdd_group" ] && [ -r $wsdd_smb_config_file ]; then >+- wsdd_group="$(grep -i '^[[:space:]]*workgroup[[:space:]]*=' $wsdd_smb_config_file | cut -f2 -d= | tr -d '[:blank:]')" >++if [ -z "${wsdd_group}" ]; then >++ # automatic detection of workgroup >++ wsdd_group=$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null) >++ >++ # try to manually extract workgroup from samba configuration if testparm failed >++ if [ -z "$wsdd_group" ] && [ -r $wsdd_smb_config_file ]; then >++ wsdd_group="$(grep -i '^[[:space:]]*workgroup[[:space:]]*=' $wsdd_smb_config_file | cut -f2 -d= | tr -d '[:blank:]')" >++ fi >+ fi >+ >+-if [ -n "$wsdd_group" ]; then >+- wsdd_opts="-w ${wsdd_group}" >++wsdd_opts="" >++if [ -n "${wsdd_suppflags}" ]; then >++ wsdd_opts="${wsdd_suppflags}" >+ fi >++if [ -n "$wsdd_domain" ]; then >++ wsdd_opts="${wsdd_opts} -d ${wsdd_domain}" >++elif [ -n "$wsdd_group" ]; then >++ wsdd_opts="${wsdd_opts} -w ${wsdd_group}" >++fi >+ >+ command="/usr/sbin/daemon" >+-command_args="-u daemon -S /usr/local/bin/wsdd $wsdd_opts" >++procname="PYTHON" >++pidfile="/var/run/${name}.pid" >++command_args="-u daemon -S -p $pidfile /usr/local/bin/wsdd $wsdd_opts" >+ >+ load_rc_config $name >+ run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
hiroo.ono+freebsd
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 247626
:
216035
|
216064
|
216065
|
216297