]> git.ipfire.org Git - ipfire-2.x.git/commit - make.sh
wsdd: Install wsdd - fixes bug13445
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 10 Jan 2024 13:30:20 +0000 (14:30 +0100)
committerDaniel Weismüller <daniel.weismueller@ipfire.org>
Thu, 11 Jan 2024 15:00:58 +0000 (16:00 +0100)
commit605217e96f9c4b99fe66ca8c610cdf58e7797947
tree40f048bc0f588bb38cc29ffdd73f82b665139f83
parent4c7266a39e990db15498a7541ed7b0ad74184986
wsdd: Install wsdd - fixes bug13445

- lfs and toorfile created for wsdd
- wsdd added to make.sh script
- created install/update/uninstall scripts for wsdd that create an unpriveleged user and
   group.
- initscript created for wsdd. As wsdd is a python3 script, when it is run as a daemon the
   pidof command does not find any pid for wsdd. So a directory/file for a pid file was
   created. This is then passed to the loadproc and killproc commands. After the loadproc
   command has been created the pid is extracted from the ps aux command and put into the
   pid file. This then works when running the killproc command for it to know what to go
   and stop. The statusproc command does not have the ability to feed in the pid from a
   pid file and so it fails to find a running wsdd as it uses the pidof command. Code was
   added to the status section of the initscript to check if the pid file exists and if so
   to print the same command as used with the statusproc command, and also the same
   wording if the pid file does not exist because wsdd is not running.
- info from the ethernet/settings file is used to identify if only green0 is available or
   if blue0 is also used and based on this the appropriate interface commands are added to
   the wsdd command.
- wsdd is also set up to run in a chroot
- Has been tested on my vm testbed, initially by editing the files on the vm clone. After
   everything confiremd to be working, the build was successfully carried out and the
   .ipfire package was copied to a new vm clone installed and shown to perform as expected.
   This test only confirms that wsdd is correctly installed and started. Shutsdown and
   restarts on reboot successfully. Confirmed from the ps aux info that wsdd has been
   started with the correct options. Thge testing can not evaluate if wsdd enables windows
   systems newer than version 7 top be able to detect the samba shares as I have no
   windows systems.

Fixes: Bug13445
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/rootfiles/packages/wsdd [new file with mode: 0644]
lfs/wsdd [new file with mode: 0644]
make.sh
src/initscripts/packages/wsdd [new file with mode: 0644]
src/paks/wsdd/install.sh [new file with mode: 0644]
src/paks/wsdd/uninstall.sh [new file with mode: 0644]
src/paks/wsdd/update.sh [new file with mode: 0644]