How to build DEB package in userland (dilos-userland)

Prepare build environment and build package


NOTE:

Please use user 'root' for userland build,
	because we have to update directory tree and files to use correct permissions
	and it is possible now only by user 'root'

Your /etc/apt/sources.list should have the lines:

sources.list
deb https://apt.dilos.org/dilos dilos2 main contrib non-free
Add unstable repo to /etc/apt/sources.list
deb-src https://apt.dilos.org/dilos dilos2 main contrib non-free

update existing packages:
apt-get update
install packages:
apt-get install \
	gmake \
	build-essential \
    git

for clone/access to repo 'du2' you have to create account on bitbucket and ask to provide you access by info: http://www.dilos.org/conact-me

clone repo:
git clone https://bitbucket.org/dilos/du2.git
go to components directory:
cd du2/components
preparation to build a package
cd <du2>/components/apt
gmake prep
you are ready to build your package from userland, for example: apt
cd <du2>/components/apt
gmake JOBS=4 deb

( where JOBS - how much parallel build processes you want to use )

You can find your package(s) at: <du2>/i386/debs

How to create new package

create package directory and copy Makefile from another package

update Makefile with build flags (CONFIGURE_OPTIONS)

build 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

build package(s):
gmake JOBS=4 deb

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

example:
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.mk