X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=blobdiff_plain;f=www%2Fpsensor%2Fbuild_debian_pkg.html;fp=www%2Fpsensor%2Fbuild_debian_pkg.html;h=9982389da2a9f4c1a66863f73bf795c3244a100f;hp=0000000000000000000000000000000000000000;hb=e71f36844771356f5d62bf9436a9e23072e9e165;hpb=2abb92c06432de1a65e045258bc13464dd599d30 diff --git a/www/psensor/build_debian_pkg.html b/www/psensor/build_debian_pkg.html new file mode 100644 index 0000000..9982389 --- /dev/null +++ b/www/psensor/build_debian_pkg.html @@ -0,0 +1,148 @@ + + + + + + + +How to build the Debian package of psensor from GIT + + + + + + + + +
+
+
+
+

This document is explaining step by step how to build the Debian +package of psensor directly from the GIT repository.

+
+
+
+
+

Build the Debian package

+
+
+

Install git-buildpackage:

+
+
+
+
sudo apt-get install git-buildpackage
+
+
+
+

Install all build dependencies (you can get it from +the variable Build-depends of the file debian/control):

+
+
+
+
sudo apt-get install ...
+
+
+
+

Checkout the source of psensor and its packaging:

+
+
+
+
git clone https://git.wpitchoune.net/psensor-pkg-debian.git
+
+
+
+

Build the Debian package:

+
+
+
+
cd psensor-pkg-debian.git
+git-buildpackage
+
+
+
+
+
+

Build to another Debian distribution

+
+
+

pbuilder can be used to build psensor to another Debian +distribution than the one used by the build machine.

+
+
+

Installation of pbuilder:

+
+
+
+
apt-get install pbuilder qemu-user-static
+
+
+
+

Create the distribution image:

+
+
+
+
git-pbuilder create --config raspbian.pbuilderrc
+
+
+
+

The variable DISTRIBUTION in the configuration file is specifying +the distribution target of the build. It might be useful for +example to check the compilation on the 'testing' flavor of Debian.

+
+
+

See a configuration example for Raspbian: +raspbian.

+
+
+

To update the image:

+
+
+
+
git-pbuilder update
+
+
+
+

Checkout the source of psensor and its packaging:

+
+
+
+
git clone https://git.wpitchoune.net/psensor-pkg-debian.git
+
+
+
+

And finally, build the Debian package:

+
+
+
+
git-buildpackage --git-pbuilder
+
+
+
+
+
+

References

+ +
+
+ + + \ No newline at end of file