diff options
author | Matteo Bernardini | 2024-05-25 07:08:59 +0200 |
---|---|---|
committer | Matteo Bernardini | 2024-09-21 07:19:56 +0200 |
commit | c27a691fbaca08586897e870f1db67220549d76a (patch) | |
tree | 02d65914b7ae3cc4919679aa942b2bd2a0b96748 | |
parent | 836322ffac84441c918f831e83e1de88f0abe990 (diff) | |
download | slackbuilds-wsdd2.tar.gz |
network/wsdd2: Removed (added to Slackware).wsdd2
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r-- | network/wsdd2/README | 34 | ||||
-rw-r--r-- | network/wsdd2/README.allowip6 | 17 | ||||
-rw-r--r-- | network/wsdd2/doinst.sh | 26 | ||||
-rw-r--r-- | network/wsdd2/rc.wsdd2 | 58 | ||||
-rw-r--r-- | network/wsdd2/slack-desc | 19 | ||||
-rw-r--r-- | network/wsdd2/wsdd2.SlackBuild | 112 | ||||
-rw-r--r-- | network/wsdd2/wsdd2.info | 10 | ||||
-rw-r--r-- | network/wsdd2/wsdd2.patch | 11 |
8 files changed, 0 insertions, 287 deletions
diff --git a/network/wsdd2/README b/network/wsdd2/README deleted file mode 100644 index d164e3196a..0000000000 --- a/network/wsdd2/README +++ /dev/null @@ -1,34 +0,0 @@ -wsdd2 (WSD/LLMNR Discovery/Name Service Daemon) - -Provides samba share discovery for clients who don't support netbios -or are running ip6 (which netbios does not support). -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" -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: 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 - -#start wsdd2 daemon if samba is configured -if [ -x /etc/rc.d/rc.wsdd2 ]; then - /etc/rc.d/rc.wsdd2 start -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 diff --git a/network/wsdd2/README.allowip6 b/network/wsdd2/README.allowip6 deleted file mode 100644 index 85009e9325..0000000000 --- a/network/wsdd2/README.allowip6 +++ /dev/null @@ -1,17 +0,0 @@ -It may be obvious, but its easy to forget; to access samba shares -using ip6 you need to allow ip6 addresses access to the server. If -you want to limit access to local ip6 addresses and you are using -the "hosts allow" option in smb.conf then add the following -address/masks to the end of any ip4 addresses you alread have listed - - fc00::/7 fe80::/64 ::1 - -this will allow link-local, unique-local, and local loop ip6 addresses - -Even if a machine has a public ip6 address, it will also have a -link-local one for ip6 sublayer operations of the Neighbor Discovery -Protocol as well as for some other protocols such as DHCPv6 - -if you are using a firewall, don't forget to allow access to port -5357 (tcp) and 3702 (udp) otherwise wsdd2 will not work. - diff --git a/network/wsdd2/doinst.sh b/network/wsdd2/doinst.sh deleted file mode 100644 index 194630ea25..0000000000 --- a/network/wsdd2/doinst.sh +++ /dev/null @@ -1,26 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - chmod +x $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/rc.d/rc.wsdd2.new diff --git a/network/wsdd2/rc.wsdd2 b/network/wsdd2/rc.wsdd2 deleted file mode 100644 index 1fcf58f995..0000000000 --- a/network/wsdd2/rc.wsdd2 +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# -# /etc/rc.d/rc.wsdd2 -# -# start/stop/restart the wsdd2 daemon. -# -# To make wsdd2 start automatically at boot make sure this -# file is executable, and add the following entry to rc.local -# (uncommented) - -# if [ -x /etc/rc.d/rc.wsdd2 ]; then -# /etc/rc.d/rc.wsdd2 start -# fi - -# you may also add the following entry to rc.local_shutdown -# (uncommented) - -# if [ -x /etc/rc.d/rc.wsdd2 ]; then -# /etc/rc.d/rc.wsdd2 stop -# fi - -wsdd2_start() { - if [ -r /etc/samba/smb.conf -a -x /etc/rc.d/rc.samba -a -x /usr/sbin/wsdd2 ]; then - echo "Starting wsdd2: /usr/bin/wsdd2 -d" - /usr/sbin/wsdd2 -d - elif [ ! -r /etc/samba/smb.conf ]; then - echo "ERROR: samba not configured, so wsdd2 has no service to advertise" - fi -} -wsdd2_stop() { - #check something is running before trying to kill it. - if [ "x`ps -A|grep ' wsdd2'|wc -l`" != "x0" ]; then - killall wsdd2 - fi -} -wsdd2_restart() { - wsdd2_stop - sleep 1 - wsdd2_start -} -case "$1" in -'start') - #we don't want to run this more than once, - #so kill off any instance already running - wsdd2_stop - wsdd2_start - ;; -'stop') - wsdd2_stop - ;; -'restart') - wsdd2_restart - ;; -*) - # default is start - wsdd2_start -esac - diff --git a/network/wsdd2/slack-desc b/network/wsdd2/slack-desc deleted file mode 100644 index 41cfbcc117..0000000000 --- a/network/wsdd2/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -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: This is based on the NETGEAR implimentation. -wsdd2: -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.com/Netgear/wsdd2 diff --git a/network/wsdd2/wsdd2.SlackBuild b/network/wsdd2/wsdd2.SlackBuild deleted file mode 100644 index 072cf3d55d..0000000000 --- a/network/wsdd2/wsdd2.SlackBuild +++ /dev/null @@ -1,112 +0,0 @@ -#!/bin/bash - -# Slackware build script for wsdd2 - -# Copyright 2020,2022 Tim Dickson Scotland -# All rights reserved. -# -# Redistribution and use of this script, with or without modification, is -# permitted provided that the following conditions are met: -# -# 1. Redistributions of this script must retain the above copyright -# notice, this list of conditions and the following disclaimer. -# -# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED -# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; -# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR -# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -cd $(dirname $0) ; CWD=$(pwd) - -PRGNAM=wsdd2 -VERSION=${VERSION:-1.8.7} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} - -if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) ARCH=i586 ;; - arm*) ARCH=arm ;; - *) ARCH=$( uname -m ) ;; - esac -fi - -# If the variable PRINT_PACKAGE_NAME is set, then this script will report what -# the name of the created package would be, and then exit. This information -# could be useful to other scripts. -if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then - echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" - exit 0 -fi - -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" - LIBDIRSUFFIX="" -elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" - LIBDIRSUFFIX="64" -else - SLKCFLAGS="-O2" - LIBDIRSUFFIX="" -fi - -set -e -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION -chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; - -#we are going to have to fix Makefile as we don't want systemd stuff -sed -i "/systemd/d" Makefile - -#patch the source to remove generally useless warning -# ie. warning about missing (entirely optional) parameters in smb.conf -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 - -#copy over the rc file -mkdir -p $PKG/etc/rc.d -cp -a $CWD/rc.${PRGNAM} $PKG/etc/rc.d/rc.${PRGNAM}.new -chown root:root $PKG/etc/rc.d/rc.${PRGNAM}.new -# now for docs -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/README.allowip6 > $PKG/usr/doc/$PRGNAM-$VERSION/README.allowip6 -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE - diff --git a/network/wsdd2/wsdd2.info b/network/wsdd2/wsdd2.info deleted file mode 100644 index a839c31ffe..0000000000 --- a/network/wsdd2/wsdd2.info +++ /dev/null @@ -1,10 +0,0 @@ -PRGNAM="wsdd2" -VERSION="1.8.7" -HOMEPAGE="https://github.com/Netgear/wsdd2" -DOWNLOAD="https://github.com/Netgear/wsdd2/archive/1.8.7/wsdd2-1.8.7.tar.gz" -MD5SUM="6f59c63f07c8f42f05469d8020c0a604" -DOWNLOAD_x86_64="" -MD5SUM_x86_64="" -REQUIRES="" -MAINTAINER="Tim Dickson" -EMAIL="dickson.tim@googlemail.com" diff --git a/network/wsdd2/wsdd2.patch b/network/wsdd2/wsdd2.patch deleted file mode 100644 index aec9c4baaa..0000000000 --- a/network/wsdd2/wsdd2.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- 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; |