Advertisement
timcowchip

os-prober Pkgfile

May 8th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. # Description: os-prober
  2. # URL: https://packages.debian.org/source/sid/os-prober
  3. # Maintainer: Chris Farrell, timcowchip at gmail dot com
  4. # Depends on: grub2
  5.  
  6. name=os-prober
  7. version=1.63
  8. release=1
  9. source=(http://ftp.de.debian.org/debian/pool/main/o/os-prober/os-prober_1.63.tar.gz)
  10.  
  11. build() {
  12. cd $name-$version
  13.  
  14. # Compile newns
  15. make
  16.  
  17. # Create a hierharchy for os-prober package, and copy files into it.
  18. mkdir -p $PKG/var/lib/$name
  19.  
  20. mkdir -p $PKG/usr/bin
  21. cp linux-boot-prober $PKG/usr/bin
  22. cp os-prober $PKG/usr/bin
  23.  
  24. mkdir -p $PKG/usr/lib/$name
  25. cp newns $PKG/usr/lib/$name
  26.  
  27. mkdir -p $PKG/usr/lib/os-probes
  28. cp os-probes/common/* $PKG/usr/lib/os-probes
  29. mkdir -p $PKG/usr/lib/os-probes/mounted
  30. mkdir -p $PKG/usr/lib/os-probes/mounted/efi
  31. cp os-probes/mounted/common/* $PKG/usr/lib/os-probes/mounted
  32. cp os-probes/mounted/x86/efi/* $PKG/usr/lib/os-probes/mounted/efi
  33. rm -r os-probes/mounted/x86/efi
  34. cp os-probes/mounted/x86/* $PKG/usr/lib/os-probes/mounted
  35.  
  36. mkdir -p $PKG/usr/lib/os-probes/init
  37. cp os-probes/init/common/* $PKG/usr/lib/os-probes/init
  38.  
  39. mkdir -p $PKG/usr/lib/linux-boot-probes
  40. cp linux-boot-probes/common/* $PKG/usr/lib/linux-boot-probes/
  41. mkdir $PKG/usr/lib/linux-boot-probes/mounted
  42. cp linux-boot-probes/mounted/common/* $PKG/usr/lib/linux-boot-probes/mounted
  43. cp linux-boot-probes/mounted/x86/* $PKG/usr/lib/linux-boot-probes/mounted
  44.  
  45. mkdir -p $PKG/usr/share/$name
  46. cp common.sh $PKG/usr/share/$name
  47. chmod +x $PKG/usr/share/$name/common.sh
  48. # End of making os-prober directory hierarchy.
  49.  
  50. tar -cvjf os-prober#1.63-1.pkg.tar.bz2 $PKG/*
  51.  
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement