From: Jean-Philippe Orsini Date: Sat, 28 Jan 2017 23:49:01 +0000 (+0100) Subject: added how to build psensor debian package X-Git-Url: http://git.wpitchoune.net/gitweb/?p=www.git;a=commitdiff_plain;h=2abb92c06432de1a65e045258bc13464dd599d30 added how to build psensor debian package --- diff --git a/src/psensor/build_debian_pkg.adoc b/src/psensor/build_debian_pkg.adoc new file mode 100644 index 0000000..795b059 --- /dev/null +++ b/src/psensor/build_debian_pkg.adoc @@ -0,0 +1,81 @@ += 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 diff --git a/src/psensor/index.adoc b/src/psensor/index.adoc index 8dc0ec0..dac6356 100644 --- a/src/psensor/index.adoc +++ b/src/psensor/index.adoc @@ -106,6 +106,7 @@ Binary packages of `psensor` are available for few Linux distributions: * 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 diff --git a/src/psensor/raspbian.pbuilderrc b/src/psensor/raspbian.pbuilderrc new file mode 100644 index 0000000..d926a37 --- /dev/null +++ b/src/psensor/raspbian.pbuilderrc @@ -0,0 +1,18 @@ +# 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 diff --git a/www-update.sh b/www-update.sh index fed5d14..a067f27 100755 --- a/www-update.sh +++ b/www-update.sh @@ -56,6 +56,8 @@ asciidoctor $OPTS src/psensor/index.adoc -D www/psensor/ 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" diff --git a/www/psensor/NEWS.html b/www/psensor/NEWS.html index d5f9e7e..dfca733 100644 --- a/www/psensor/NEWS.html +++ b/www/psensor/NEWS.html @@ -69,6 +69,10 @@ and default-sensor-alarm-enabled.

  • Added Polish translation (hawkeye116477).

  • +
  • +

    Fixed GtkDialog mapped without a transient parent (Francis +Chin). (LP: #1642696).

    +
  • @@ -1967,9 +1971,8 @@ Initial release -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/README.html b/www/psensor/README.html index af4b650..35beab6 100644 --- a/www/psensor/README.html +++ b/www/psensor/README.html @@ -322,9 +322,8 @@ have extracted the ATI ADL SDK. Other steps are indentical.

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/TODO.html b/www/psensor/TODO.html index 949c322..b3c5d50 100644 --- a/www/psensor/TODO.html +++ b/www/psensor/TODO.html @@ -39,9 +39,8 @@ lm-sensor.

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/contribute.html b/www/psensor/contribute.html index b9f2a2f..32acdac 100644 --- a/www/psensor/contribute.html +++ b/www/psensor/contribute.html @@ -185,9 +185,8 @@ and released under GPL v2 license.

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/faq.html b/www/psensor/faq.html index bd98119..c3d3354 100644 --- a/www/psensor/faq.html +++ b/www/psensor/faq.html @@ -453,9 +453,8 @@ of sensors.conf(5).

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/index.html b/www/psensor/index.html index b37e6d3..ba5f0ca 100644 --- a/www/psensor/index.html +++ b/www/psensor/index.html @@ -207,6 +207,9 @@ don’t hesitate to report it.

    How to contribute to psensor

  • +

    How to build the debian package of psensor

    +
  • +
  • FAQ

  • @@ -246,9 +249,8 @@ or click on:

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/remote.html b/www/psensor/remote.html index 7bfbfab..3d12355 100644 --- a/www/psensor/remote.html +++ b/www/psensor/remote.html @@ -65,9 +65,8 @@ on the desktop computer with the following command line:

    -Feed: RSS 2.0 \ No newline at end of file diff --git a/www/psensor/ubuntu.html b/www/psensor/ubuntu.html index cde69cc..338b63e 100644 --- a/www/psensor/ubuntu.html +++ b/www/psensor/ubuntu.html @@ -142,9 +142,8 @@ make clean all -Feed: RSS 2.0 \ No newline at end of file