NOTES 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. --- building a package with a QI recipe ---
  2. ------------------------------------------
  3. ------------------------------------------
  4. 0) The short version, once all is said up:
  5. mkdir ~/Sources/recipes/network/curl
  6. cd ~/Sources/recipes/network/curl
  7. cp ~/Sources/templets/recipe .
  8. vi recipe
  9. qi -b recipe
  10. qi -i /var/cache/qi/packages/i586/network/curl*tlz
  11. recipe explanation:
  12. http://dragora.org/repo.fsl/doc/trunk/qi/doc/qi.html#Recipes
  13. recipe example
  14. http://git.savannah.nongnu.org/cgit/dragora.git/plain/recipes/networking/curl/recipe
  15. build directory structure:
  16. http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes
  17. important paths:
  18. /etc/qirc # qi configuration file
  19. /usr/src/qi/recipes/{archive, build, patches, recipes, sources}
  20. #sources containint the downloaded source tarballs
  21. /var/cache/qi/packages/ # resulting tlz packages
  22. /var/lib/qi/ # saved recipes and info about the installed packages
  23. ------------------------------------------
  24. ------------------------------------------
  25. 1) create a build directory similar to this STRUCTURE
  26. http://git.savannah.nongnu.org/cgit/dragora.git/tree/recipes
  27. Something like:
  28. mkdir -p Sources/recipes
  29. mkdir Sources/recipes/{devel,libs,tools,networking, x-apps}
  30. according to the packages you will build
  31. -----
  32. 1b) get a recipe TEMPLET:
  33. mkdir ~/Sources/templets
  34. wget http://git.savannah.nongnu.org/cgit/dragora.git/plain/recipes/networking/curl/recipe
  35. explanation of a recipe:
  36. http://dragora.org/repo.fsl/doc/trunk/qi/doc/qi.html#Recipes
  37. More recipe templets and another idea how the build directory may look:
  38. https://notabug.org/mprodrigues/d3-recipes
  39. ------------------------------------------
  40. ------------------------------------------
  41. 2.a) create RECIPE file
  42. mkdir ~/Sources/recipes/networking/curl
  43. cd ~/Sources/recipes/networking/curl
  44. cp ~/Sources/templets/recipe .
  45. vim recipe # and edit according to the package
  46. might be a good idea to have the source tarball for ./configure and such:
  47. awk -F= '/fetch/ { print $2 }' | xargs wget
  48. You can copy it, so qi won't fetch it again:
  49. cp *tar.gz /usr/src/qi/sources
  50. -----
  51. 2.b) build with qi
  52. qi -b recipe
  53. directory for qi build is:
  54. /usr/share/qi/build
  55. -----------------------------------------
  56. -----------------------------------------
  57. 3.c) INSTALL the result:
  58. qi -i /var/cache/qi/packages
  59. recipes will be saved at:
  60. /var/lib/qi/
  61. 3.b) remove packages
  62. qi -d /usr/pkg/*tlz