mirror-rlworkman-current.sh 1.3 KB

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