talimat 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # Tanım: Bir sürücü grubundaki diğer işletim sistemlerini bulmak için yardımcı program.
  2. # URL: https://packages.debian.org/source/sid/os-prober
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. # Grup: sistem
  6. isim=os-prober
  7. surum=1.71
  8. devir=1
  9. kaynak=(http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_1.71.tar.xz)
  10. derle() {
  11. cd $isim-$surum
  12. # Compile newns
  13. make
  14. # Create a hierharchy for os-prober package, and copy files into it.
  15. mkdir -p $PKG/var/lib/$isim
  16. mkdir -p $PKG/usr/bin
  17. cp linux-boot-prober $PKG/usr/bin
  18. cp os-prober $PKG/usr/bin
  19. mkdir -p $PKG/usr/lib/$isim
  20. cp newns $PKG/usr/lib/$isim
  21. mkdir -p $PKG/usr/lib/os-probes
  22. cp os-probes/common/* $PKG/usr/lib/os-probes
  23. mkdir -p $PKG/usr/lib/os-probes/mounted
  24. mkdir -p $PKG/usr/lib/os-probes/mounted/efi
  25. cp os-probes/mounted/common/* $PKG/usr/lib/os-probes/mounted
  26. cp os-probes/mounted/x86/efi/* $PKG/usr/lib/os-probes/mounted/efi
  27. rm -r os-probes/mounted/x86/efi
  28. cp os-probes/mounted/x86/* $PKG/usr/lib/os-probes/mounted
  29. mkdir -p $PKG/usr/lib/os-probes/init
  30. cp os-probes/init/common/* $PKG/usr/lib/os-probes/init
  31. mkdir -p $PKG/usr/lib/linux-boot-probes
  32. cp linux-boot-probes/common/* $PKG/usr/lib/linux-boot-probes/
  33. mkdir $PKG/usr/lib/linux-boot-probes/mounted
  34. cp linux-boot-probes/mounted/common/* $PKG/usr/lib/linux-boot-probes/mounted
  35. cp linux-boot-probes/mounted/x86/* $PKG/usr/lib/linux-boot-probes/mounted
  36. mkdir -p $PKG/usr/share/$isim
  37. cp common.sh $PKG/usr/share/$isim
  38. chmod +x $PKG/usr/share/$isim/common.sh
  39. # End of making os-prober directory hierarchy.
  40. tar -cvjf os-prober#1.70.pkg.tar.bz2 $PKG/*
  41. }