Devuan fork of gpsd
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
777 B

  1. #! /bin/sh
  2. # preinst script for gpsd
  3. #
  4. # see: dh_installdeb(1)
  5. set -e
  6. case "$1" in
  7. install)
  8. ;;
  9. upgrade)
  10. if dpkg --compare-versions "$2" lt 2.34; then
  11. dpkg-divert --package gpsd --remove --rename \
  12. --divert /usr/bin/gpsd.gpsdrive /usr/bin/gpsd || true
  13. dpkg-divert --package gpsd --remove --rename \
  14. --divert /usr/share/man/man1/gpsd.gpsdrive.1.gz \
  15. /usr/share/man/man1/gpsd.1.gz || true
  16. fi
  17. ;;
  18. abort-upgrade)
  19. ;;
  20. *)
  21. echo "preinst called with unknown argument \`$1'" >&2
  22. exit 1
  23. ;;
  24. esac
  25. # dh_installdeb will replace this with shell code automatically
  26. # generated by other debhelper scripts.
  27. #DEBHELPER#
  28. exit 0