From cf92d1087eae8711d98750488e87be6622e5ea54 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Tue, 14 Jun 2016 17:45:24 +0200 Subject: [PATCH] added ppastats --- src/ppastats/ppastats.adoc | 80 ++++++++++++++++++++++++ www-update.sh | 4 ++ www/ppastats/index.html | 1 + www/ppastats/ppastats.html | 147 +++++++++++++++++++++++++++++++++++++++++++++ www/style.css | 24 ++++++-- 5 files changed, 250 insertions(+), 6 deletions(-) create mode 100644 src/ppastats/ppastats.adoc create mode 120000 www/ppastats/index.html create mode 100644 www/ppastats/ppastats.html diff --git a/src/ppastats/ppastats.adoc b/src/ppastats/ppastats.adoc new file mode 100644 index 0000000..6792c9a --- /dev/null +++ b/src/ppastats/ppastats.adoc @@ -0,0 +1,80 @@ += PPAstats +:docinfo2: +:icons: font + +`ppastats` is a command line tool which produces HTML report for viewing +download statistics of an Ubuntu PPA. + +Examples are available at: http://wpitchoune.net/ppastats/ppa. + +The license of `ppastats` is GPL v2. + +`ppastats` works fine with Firefox 6/7, Google Chrome 12 and IE8. + +== Usage + +---- +ppastats jfi psensor-unstable -o /var/www/ppastats +---- + +Generates the HTML report for the PPA: `ppa:jfi/psensor-unstable`. + +Use `ppastats --help` for more options. + +== Installation + +=== Ubuntu + +For Ubuntu, the easiest way to install `ppastats` is to use its +dedicated PPA: + +---- +sudo apt-add-repository ppa:jfi/ppastats +sudo apt-get update +sudo apt-get install ppastats +---- + +=== Compilation + +`ppastats` should compile on any modern Linux distribution, it +requires the `CURL` and `json-c` libraries. + +Download the source archive from: http://wpitchoune.net/ppastats/files. + +For compilation on Ubuntu: + +---- +apt-get install libcurl4-openssl-dev libjson0-dev +./configure +make clean all +---- + +and finally, install `ppastats`: + +---- +sudo make install +---- + +Alternatively, the last development version can be retrieved using GIT: + +---- +git clone git://git.wpitchoune.net/ppastats.git +---- + +To build the Ubuntu package: + +---- +git clone git://git.wpitchoune.net/ppastats-pkg-ubuntu.git +cd ppastats-pkg-ubuntu +git-buildpackage +---- + +== Download + +* link:files[Source archive] + +== Contact + +Bugs and comments can be sent to jeanfi@gmail.com. + +For announces or general information subscribe to link:http://plus.google.com/u/0/115217597639251170338?prsrc=3[ppastats Google+ page]. diff --git a/www-update.sh b/www-update.sh index 4dcfcb1..bacb403 100755 --- a/www-update.sh +++ b/www-update.sh @@ -31,3 +31,7 @@ asciidoctor $OPTS src/psensor/contribute.adoc -D www/psensor/ OPTS="-a linkcss -a stylesheet=style.css -a docinfodir=$RDIR" asciidoctor $OPTS src/index.adoc -D www/ + +OPTS="-a linkcss -a stylesheet=../style.css" + +asciidoctor $OPTS src/ppastats/ppastats.adoc -D www/ppastats/ diff --git a/www/ppastats/index.html b/www/ppastats/index.html new file mode 120000 index 0000000..06dd9f5 --- /dev/null +++ b/www/ppastats/index.html @@ -0,0 +1 @@ +ppastats.html \ No newline at end of file diff --git a/www/ppastats/ppastats.html b/www/ppastats/ppastats.html new file mode 100644 index 0000000..ce39279 --- /dev/null +++ b/www/ppastats/ppastats.html @@ -0,0 +1,147 @@ + + + + + + + +PPAstats + + + + + + + +
+
+
+
+

ppastats is a command line tool which produces HTML report for viewing +download statistics of an Ubuntu PPA.

+
+
+

Examples are available at: http://wpitchoune.net/ppastats/ppa.

+
+
+

The license of ppastats is GPL v2.

+
+
+

ppastats works fine with Firefox 6/7, Google Chrome 12 and IE8.

+
+
+
+
+

Usage

+
+
+
+
ppastats jfi psensor-unstable -o /var/www/ppastats
+
+
+
+

Generates the HTML report for the PPA: ppa:jfi/psensor-unstable.

+
+
+

Use ppastats --help for more options.

+
+
+
+
+

Installation

+
+
+

Ubuntu

+
+

For Ubuntu, the easiest way to install ppastats is to use its +dedicated PPA:

+
+
+
+
sudo apt-add-repository ppa:jfi/ppastats
+sudo apt-get update
+sudo apt-get install ppastats
+
+
+
+
+

Compilation

+
+

ppastats should compile on any modern Linux distribution, it +requires the CURL and json-c libraries.

+
+
+

Download the source archive from: http://wpitchoune.net/ppastats/files.

+
+
+

For compilation on Ubuntu:

+
+
+
+
apt-get install libcurl4-openssl-dev libjson0-dev
+./configure
+make clean all
+
+
+
+

and finally, install ppastats:

+
+
+
+
sudo make install
+
+
+
+

Alternatively, the last development version can be retrieved using GIT:

+
+
+
+
git clone git://git.wpitchoune.net/ppastats.git
+
+
+
+

To build the Ubuntu package:

+
+
+
+
git clone git://git.wpitchoune.net/ppastats-pkg-ubuntu.git
+cd ppastats-pkg-ubuntu
+git-buildpackage
+
+
+
+
+
+
+

Download

+
+
+ +
+
+
+
+

Contact

+
+
+

Bugs and comments can be sent to jeanfi@gmail.com.

+
+
+

For announces or general information subscribe to ppastats Google+ page.

+
+
+
+
+ + + \ No newline at end of file diff --git a/www/style.css b/www/style.css index b50f01f..b4e45cd 100644 --- a/www/style.css +++ b/www/style.css @@ -3,9 +3,10 @@ body { margin: 0; padding: 0; background-color: #fdfdfd; + font-size: 100%; } -div, h2, h3 { +div, h2, h3, nav ul { margin: 0; padding: 0; } @@ -19,14 +20,25 @@ nav { color: white; } -nav ul { - padding: 0; - margin: 0; -} - h1 { margin: 1em 1em 1em 1em; padding: 0; + font-size: 200%; + font-weight: bold; +} + +h2 { + font-size: 160%; + font-weight: bold; +} + +h3 { + font-size: 110%; + font-weight: bold; +} + +h2,h3 { + margin: 0em 0em 1em 0em; } #content { -- 2.7.4