mirror of the now-defunct rocklinux.org
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.

128 lines
6.6 KiB

  1. Variables used in the package build scripts
  2. ===========================================
  3. config ........ Name of the active configuration ($base/config/$config/..)
  4. extraver ...... version text after the fist whitespace, or $rockver
  5. rockver ....... ROCK Linux Version (including rel. date for snapshots)
  6. pkg ........... name of the package we are building
  7. ver ........... package Version (from *.desc - until first whitespace)
  8. desc_[A-Z] .... Data from the *.desc file
  9. id ............ unique ID for this Build-Pkg invocation
  10. arch .......... architecture (subdir name in architecture)
  11. target ........ target distribution (subdir name in targets)
  12. stagelevel .... stagelevel (0-1 = crossbuild, 2-8 = native, 9 = rebuild)
  13. arch_sizeof_long_long .... arch setting from architecture/*/archtest.out
  14. arch_sizeof_int .......... arch setting from architecture/*/archtest.out
  15. arch_machine ............. arch setting from architecture/*/archtest.out
  16. arch_sizeof_char_p ....... arch setting from architecture/*/archtest.out
  17. arch_sizeof_long ......... arch setting from architecture/*/archtest.out
  18. arch_bigendian ........... arch setting from architecture/*/archtest.out
  19. arch_sizeof_short ........ arch setting from architecture/*/archtest.out
  20. arch_target .............. arch setting from architecture/*/archtest.out
  21. arch_build ............... like 'arch_target' - but for the build host
  22. archdir ....... directory containing the package tar files (download/..)
  23. confdir ....... directory containing the package build config (package/..)
  24. targetdir ..... directory containing the target config (target/...)
  25. builddir ...... directory in which the package is build (src.$id)
  26. base .......... ROCK Linux sources base directory
  27. root .......... root directory (usually '/')
  28. xroot ......... real root (/R.work/build/... when in chroot mode)
  29. prefix ........ install prefix (usually '/usr' or '/opt/...')
  30. prefix_auto ... '1' = you may auto-detect a better value for $prefix in *.conf
  31. build_log ..... Big build log file ... (Build-Target only)
  32. build_pkgs .... Packagfiles go here .. (Build-Target only)
  33. build_root .... Chroot dir name ...... (Build-Target only)
  34. bindir ........ where the binaries (programs) should be installed
  35. sbindir ....... where the system binaries should be installed
  36. libdir ........ where the library files should be installed
  37. sysconfdir .... where the configuration should be installed (i.e. etc)
  38. localstatedir . where the variable data should be installed (i.e. var)
  39. datadir ....... where the arch-indep. data should be installed (i.e. share)
  40. docdir ........ where the documentation should be installed
  41. mandir ........ where the info man pages should be installed
  42. infodir ....... where the info files should be installed
  43. autoextract ... '0' = skip automatic untar
  44. autopatch ..... '0' = skip automatic patching
  45. chownsrcdir ... '0' = don't make a chown to root after extracting the $srctar
  46. srctar ........ filename of source tar file ('auto' = autodetect)
  47. srcdir ........ directory in source tar file ('auto' = autodetect)
  48. xsrctar ....... filename of source tar file after 'auto' has been processed
  49. xsrcdir ....... directory in source tar file after 'auto' has been processed
  50. taropt ........ tar options for extracting
  51. createprefix .. '0' = skip creation for directory skeleton for $prefix
  52. createdocs .... '0' = skip automatic copying of documentation files
  53. custmain ...... command to execute instead of 'configure, make, make install'
  54. mainfunction .. alternate main function instead of build_this_package()
  55. prepare ....... command to execute before main build-block
  56. prepatch ...... command to execute before automatic patching
  57. patchfiles .... list of patchfiles found in $confdir
  58. postpatch ..... command to execute after automatic patching
  59. patchopt ...... options passed to the patch program
  60. preconf ....... command to execute before running configure
  61. runconf ....... set to '0' if you want to skip running configure
  62. autogen ....... set to '1' if you want to run the autogen script
  63. confopt ....... options for GNU autoconf './configure'
  64. extraconfopt .. options which should be appended to $confopt by set_confopt()
  65. configprefix .. variable declarations only for GNU autoconf './configure'
  66. configscript .. script file name of the GNU autoconf configure script
  67. runxmkmf ...... set to '0' if you want to skip running 'xmkmf'
  68. runmkpl ....... set to '0' if you want to skip running 'perl Makefile.PL'
  69. premake ....... command to execute before running 'make'
  70. makeopt ....... options for 'make' (default = ' ')
  71. inmake ........ command to execute between 'make' and 'make install'
  72. makeinstopt ... options for 'make install' (default = 'install')
  73. postmake ...... command to execute after running 'make install'
  74. postflist ..... command to execute after creating the flist
  75. postinstall ... command to execute after finishing all the standard stuff
  76. finish ........ command to execute after everything else outside build-block
  77. crossnative ... has the value 'cross' or 'native'
  78. archprefix .... prefix for binutils and compiler binaries (for cross-building)
  79. flistdel ...... regex describing files which shouldn't go to package db
  80. flistrfilter .. regex describing which lines to ignore in flist rlog
  81. flistroot ..... list of top-level directories which should be used for flist
  82. check_shared ...... Check for files which are shared with other packages
  83. check_usrlocal .... Check for files which are installed in usr/local
  84. check_badfiles .... Check for files which are registered 'bad files'
  85. BUILDCC ....... C compiler for helper apps (usually that's just 'cc')
  86. BUILD_CC ...... C compiler for helper apps (must be the same as $BUILDCC)
  87. HOSTCC ........ C compiler for helper apps (must be the same as $BUILDCC)
  88. HOST_CC ....... C compiler for helper apps (must be the same as $BUILDCC)
  89. MAKE .......... make executable name (including -j option according to Config)
  90. CC ............ C compiler executable name for target architecture
  91. CXX ........... C++ compiler executable name for target architecture
  92. STRIP ......... strip executable name for target architecture
  93. LD ............ ld executable name for target architecture
  94. AR ............ ar executable name for target architecture
  95. RANLIB ........ ranlib executable name for target architecture
  96. AS ............ as executable name for target architecture
  97. GASP .......... gasp executable name for target architecture
  98. NM ............ nm executable name for target architecture
  99. CC_WRAPPER_* ...... configuration for C compiler wrapper
  100. CXX_WRAPPER_* ..... configuration for C++ compiler wrapper
  101. KCC_WRAPPER_* ..... configuration for Kernel C compiler wrapper
  102. F77_WRAPPER_* ..... configuration for Fortran 77 compiler wrapper
  103. STRIP_WRAPPER_* ... configuration for strip wrapper
  104. ROCKCFG_* ..... configuration from 'Config' file