--- /dev/null
+= How to build the Debian package of `psensor` from GIT
+:docinfo2:
+:icons: font
+
+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`:
+link:raspbian.pbuilderrc[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
+
+* https://wiki.debian.org/git-pbuilder
+* https://www.debian.org/doc/manuals/maint-guide/build.en.html
\ No newline at end of file
* link:ubuntu.html[Psensor on Ubuntu]
* link:remote.html[Remote monitoring]
* link:contribute.html[How to contribute to psensor]
+* link:build_debian_pkg.html[How to build the debian package of psensor]
* link:faq.html[FAQ]
== Contact
--- /dev/null
+# pbuilderrc file for raspbian
+
+# specific to raspbian
+OS=raspbian
+ARCHITECTURE=armhf
+# use the correct keyring for raspbian
+DEBOOTSTRAPOPTS=( '--variant=buildd' '--keyring=/usr/share/keyrings/raspbian-archive-keyring.gpg')
+MIRRORSITE=http://archive.raspbian.org/raspbian/
+
+# debian distribution: sid, jessie, testing
+DISTRIBUTION=testing
+
+COMPONENTS="main"
+
+DEBOOTSTRAP=qemu-debootstrap
+
+# allow network so pbuilder can install build dependencies automaticaly
+USENETWORK=yes
\ No newline at end of file
asciidoctor $OPTS src/psensor/ubuntu.adoc -D www/psensor/
asciidoctor $OPTS src/psensor/remote.adoc -D www/psensor
asciidoctor $OPTS src/psensor/contribute.adoc -D www/psensor/
+asciidoctor $OPTS src/psensor/build_debian_pkg.adoc -D www/psensor/
+cp src/psensor/raspbian.pbuilderrc www/psensor
OPTS="-a linkcss -a stylesheet=../style.css"
<li>
<p>Added Polish translation (hawkeye116477).</p>
</li>
+<li>
+<p>Fixed GtkDialog mapped without a transient parent (Francis
+Chin). (LP: #1642696).</p>
+</li>
</ul>
</div>
</div>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-10-02 16:03:41 CEST
+Last updated 2016-12-21 21:46:18 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-08-23 03:41:38 CEST
+Last updated 2016-12-18 19:12:21 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-08-23 03:41:38 CEST
+Last updated 2016-12-18 19:12:21 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-07-04 09:56:32 CEST
+Last updated 2016-12-18 19:07:34 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-08-23 03:41:38 CEST
+Last updated 2016-12-18 19:12:21 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
<p><a href="contribute.html">How to contribute to psensor</a></p>
</li>
<li>
+<p><a href="build_debian_pkg.html">How to build the debian package of psensor</a></p>
+</li>
+<li>
<p><a href="faq.html">FAQ</a></p>
</li>
</ul>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-07-04 09:56:29 CEST
+Last updated 2017-01-24 20:10:44 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-07-04 09:56:29 CEST
+Last updated 2016-12-18 19:07:34 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2016-07-04 09:56:25 CEST
+Last updated 2016-12-18 19:07:34 CET
</div>
</div>
-Feed: <a href="https://wpitchoune.net/news/feed.xml">RSS 2.0</a>
</body>
</html>
\ No newline at end of file