ports_rebrand.sh 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. #!/bin/sh
  2. ########################################
  3. # name: ports_rebrand.sh
  4. # main: jadedctrl
  5. # lisc: isc
  6. # desc: editing obsd ports tree for use
  7. # with lbsd.
  8. ########################################
  9. . ./libdeblob.sh
  10. if test -z "$1"; then
  11. echo "usage: ports_rebrand.sh ports_dir"
  12. else
  13. SRC_DIR="$1"
  14. fi
  15. PATCH_DIR=/tmp/ports_rebrand/
  16. mkdir "$PATCH_DIR" 2> /dev/null
  17. # --------------------------------------
  18. portdirs="archivers astro audio biology books cad chinese comms converters"
  19. portdirs="$portdirs databases devel editors education emulators fonts games geo"
  20. portdirs="$portdirs graphics inputmethods japanese java korean lang mail math"
  21. portdirs="$portdirs meta misc multimedia net news plan9 print productivity"
  22. portdirs="$portdirs security shells sysutils telephony textproc www x11"
  23. # --------------------------------------
  24. rep "ftp.openbsd.org/pub/OpenBSD/snapshots/i386/cd52.iso" \
  25. "ftp.libertybsd.net/pub/LibertyBSD/snapshots/i386/cd64.iso" \
  26. emulators/qemu/pkg/README
  27. rep "ftp.openbsd.org/pub/OpenBSD/snapshots/amd64/cd52.iso" \
  28. "ftp.libertybsd.net/pub/LibertyBSD/snapshots/amd64/cd64.iso" \
  29. emulators/qemu/pkg/README
  30. linedel "\$ ftp ftp://ftp.openbsd.org/pub/OpenBSD/snapshots/sparc/cd52.iso" \
  31. emulators/qemu/pkg/README
  32. rep "install52.fs" "install64.fs" emulators/qemu/pkg/README
  33. rep "install52.iso" "install64.iso" emulators/qemu/pkg/README
  34. rep "OpenBSD" "LibertyBSD" emulators/qemu/pkg/README
  35. rep "ftp.openbsd.org" "ftp.libertybsd.net" \
  36. sysutils/ruby-puppet/4/patches/patch-lib_puppet_provider_package-openbsd_rb
  37. rep "on OpenBSD" "on LibertyBSD" sysutils/sysmon/pkg/README
  38. rep "openbsd.org" "libertybsd.net" sysutils/sysmon/pkg/README
  39. rep "=\"OpenBSD " "=\"LibertyBSD " multimedia/gstreamer-0.10/Makefile.inc
  40. rep "openbsd.org" "libertybsd.net" multimedia/gstreamer-0.10/Makefile.inc
  41. rep "www.openbsd.org" "libertybsd.net" www/lynx/patches/patch-lynx_cfg
  42. apply