Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If we install the package as is (in the current environment) the BASEDIR is "/" and we just clear it, but if we will install it to a zone at bootstrap stage it

create package directory and copy Makefile from another package

update Makefile with build flags (CONFIGURE_OPTIONS)

Code Block
languagebash
titlebuild package by:
gmake JOBS=4 install

Create directory 'debs' with structure of files for DEB package build by dpkg-buildpackage.

For example take a look another components

Code Block
languagebash
titlebuild package(s):
gmake JOBS=4 deb

if you want build packages in your component root directory you can add flag WS_DEBS:

Code Block
languagebash
titleexample:
gmake JOBS=4 WS_DEBS=`pwd` deb

as result you can find package at your component directory and be able to install it by 'dpkg -i <your package.deb>'

For more information about environment variables or build flags you can take a look <du2>/make-rules/deb_src.mkcould look like:

Code Block
titleBASEDIR
server# apt -R /zones/du3p03/root reprepro

BASEDIR will be /zones/du3p01/root in the postscript.