12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/bin/sh
- # Notes
- # This script synchronizes and installs all packages from the rlworkman
- # repository for slackware64 -current:
- # https://rlworkman.net/pkgs/current/x86_64/
- # It's main purpose is to sync and install Xfce 4.14 packages, which are
- # the only ones in the repository for now (dated 08/2019).
- # Note: Greybird is the default theme, so don't forget to install:
- # gtk-engines, gtk-engines-unico, murrine from SlackBuilds.org for GTK2
- # support. Thanks to Robby Workman for the great work.
- # Set rlworkmandir to a directory of your choice. Default: /root/rlworkman
- # You will need to be root.
- # If you are using slackpkg, don't forget to blacklist [0-9]+_rlw
- # Otherwise the packages will get overwritten by the stock packages
- # on the next 'slackpkg clean-system' run.
- set -e
- rlworkmandir="/root/rlworkman"
- mkdir -p "$rlworkmandir"
- cd "$rlworkmandir"
- URL=rsync://slackware.uk/people/rlworkman/current/x86_64/
- md5sum1=$(find "$rlworkmandir" -name "*.t?z" | md5sum)
- rsync -ruhv --progress --include=*/ --include=*t?z \
- --delete --exclude=* "$URL" ./ 2>&1 | tee rsync.log
- md5sum2=$(find "$rlworkmandir" -name "*.t?z" | md5sum)
- if [ "$md5sum1" = "$md5sum2" ]; then
- printf "%s\n" "No changes detected. Exiting."
- exit
- fi
- upgradepkg --reinstall --install-new *.t?z 2>&1 | tee install.log
|