mirror of
https://github.com/Ponce/slackbuilds
synced 2024-09-29 17:37:55 +02:00
network/wsdd2: Updated for version 1.8.6.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
e37623fcba
commit
105af502a9
6 changed files with 41 additions and 25 deletions
|
@ -1,19 +1,21 @@
|
|||
wsdd2 (WSD/LLMNR Descovery/Name Service Daemon)
|
||||
wsdd2 (WSD/LLMNR Discovery/Name Service Daemon)
|
||||
|
||||
Provides samba share descovery for clients who don't support netbios
|
||||
Provides samba share discovery for clients who don't support netbios
|
||||
or are running ip6 (which netbios does not support).
|
||||
Effectively this allows modern windows computers to find samba
|
||||
shares, and allows you to avoid smb1/smb2 for which there are many
|
||||
exploits in the wild. This is based on the NETGEAR implimentation.
|
||||
This is based on the NETGEAR implimentation.
|
||||
|
||||
NOTE: make sure you allow local ip6 connections in your samba config
|
||||
otherwise there will be no shares found. if you use "hosts allow"
|
||||
then add fc00::/7 fe80::/64 ::1
|
||||
in smb.conf then add fc00::/7 fe80::/64 ::1
|
||||
to the list of your local ip4 addresses so that local ip6 pcs can
|
||||
use your shares.
|
||||
|
||||
NOTE2: make sure ports 5357 (tcp) and 3702 (udp) are open if you
|
||||
are using a firewall.
|
||||
NOTE2: The following ports/addresses also need to be open if you are
|
||||
using a firewall:
|
||||
tcp port 3702 (unicast), and
|
||||
udp ports 3702 ( multicast on ports 239.255.255.250 / ff02::c )
|
||||
tcp port 5355 (unicast), and
|
||||
udp on ports 224.0.0.252 / ff02::1:3 (multicast)
|
||||
|
||||
to get wsdd2 to run automatically on startup add the following lines
|
||||
in /etc/rc.d/rc.local
|
||||
|
@ -26,6 +28,7 @@ fi
|
|||
and to stop it on shutdown, add the following to
|
||||
samba section in /etc/rc.d/rc.local_shutdown
|
||||
|
||||
#stop wsdd2 daemon
|
||||
if [ -x /etc/rc.d/rc.wsdd2 ]; then
|
||||
/etc/rc.d/rc.wsdd2 stop
|
||||
fi
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# To make wsdd2 start automatically at boot make sure this
|
||||
# file is executable, and add the following entry to rc.local
|
||||
# after the samba test (uncommented)
|
||||
# (uncommented)
|
||||
|
||||
# if [ -x /etc/rc.d/rc.wsdd2 ]; then
|
||||
# /etc/rc.d/rc.wsdd2 start
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
# customary to leave one space after the ':' except on otherwise blank lines.
|
||||
|
||||
|-----handy-ruler------------------------------------------------------|
|
||||
wsdd2: wsdd2 (WSD/LLMNR Descovery/Name Service Daemon)
|
||||
wsdd2: wsdd2 (WSD/LLMNR Discovery/Name Service Daemon)
|
||||
wsdd2:
|
||||
wsdd2: Provides samba share browsing for clients who don't support netbios
|
||||
wsdd2: or are running ip6 (which netbios does not support).
|
||||
wsdd2: Effectively this allows modern windows computers to find samba
|
||||
wsdd2: shares, and allows you to avoid smb1/smb2 for which there are many
|
||||
wsdd2: exploits in the wild. This is based on the NETGEAR implimentation.
|
||||
wsdd2: This is based on the NETGEAR implimentation.
|
||||
wsdd2:
|
||||
wsdd2: Don't forget to allow local ip6 connections in your smb.conf file.
|
||||
wsdd2: Don't forget to allow local ip6 connections in your smb.conf file,
|
||||
wsdd2: specifically, fc00::/7 fe80::/64 ::1
|
||||
wsdd2: Also in your firewall, make sure ports 3702 and 5355 are open.
|
||||
wsdd2:
|
||||
wsdd2: Home Page https://github/Andy2244/wsdd2
|
||||
wsdd2: Home Page https://github.com/Netgear/wsdd2
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Slackware build script for wsdd2
|
||||
|
||||
# Copyright 2020 Tim Dickson Scotland
|
||||
# Copyright 2020,2022 Tim Dickson Scotland
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -25,7 +25,7 @@
|
|||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=wsdd2
|
||||
VERSION=${VERSION:-1.8.3.2}
|
||||
VERSION=${VERSION:-1.8.6}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
@ -81,12 +81,14 @@ find -L . \
|
|||
#we are going to have to fix Makefile as we don't want systemd stuff
|
||||
sed -i "/systemd/d" Makefile
|
||||
|
||||
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
|
||||
make install DESTDIR=$PKG MANINSTALLDIR="usr/man" INSTALLPREFIX="usr"
|
||||
#patch the source to remove generally useless warning
|
||||
patch wsdd2.c <${CWD}/wsdd2.patch
|
||||
#note: hopefully upstream will fix this. https://github.com/Netgear/wsdd2/issues/39
|
||||
|
||||
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
|
||||
make install debug_W=-1 debug_L=-1 DESTDIR=$PKG MANDIR="/usr/man" INSTALLPREFIX="usr"
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="wsdd2"
|
||||
VERSION="1.8.3.2"
|
||||
HOMEPAGE="https://github.com/Andy2244/wsdd2"
|
||||
DOWNLOAD="https://github.com/Andy2244/wsdd2/archive/1.8.3.2/wsdd2-1.8.3.2.tar.gz"
|
||||
MD5SUM="6ddc3411776bf102309f8edcde34115a"
|
||||
VERSION="1.8.6"
|
||||
HOMEPAGE="https://github.com/Netgear/wsdd2"
|
||||
DOWNLOAD="https://github.com/Netgear/wsdd2/archive/1.8.6/wsdd2-1.8.6.tar.gz"
|
||||
MD5SUM="c7fee450283fcb009096e4cb47443073"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="%README%"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Tim Dickson"
|
||||
EMAIL="dickson.tim@googlemail.com"
|
||||
|
|
11
network/wsdd2/wsdd2.patch
Normal file
11
network/wsdd2/wsdd2.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- wsdd2.c 2021-08-09 20:22:46.000000000 +0100
|
||||
+++ wsdd2u.c 2022-04-22 11:22:12.125000000 +0100
|
||||
@@ -601,7 +601,7 @@
|
||||
|
||||
char buf[PAGE_SIZE];
|
||||
if (!fgets(buf, sizeof(buf), pp) || !buf[0] || buf[0] == '\n') {
|
||||
- DEBUG(0, W, "cannot read %s from testparm", name);
|
||||
+ DEBUG(1, W, "cannot read %s from testparm", name);
|
||||
result = strdup(_default);
|
||||
} else { // trim whitespace
|
||||
char *p;
|
Loading…
Reference in a new issue