Also add BuildRequires: docbook-style-xsl

Closes #419

Reviewed-by: Stef Walter <stefw@redhat.com>
agent: Support more than one channel in the cockpit-agent

Fixes #256
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Send multiple channels for same host/user to same agent

Now that the agent has support for multiple channels we can
send multiple channels for the same host (and user, in case
it's different) down the same transport and to the same agent.

The webservice times out a agent after 30 seconds of there
being no channel around on it.

Fixes #256
Closes #272
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Add perl-JavaScript-Minifier to build dependencies

To get more realistic testing

Closes #423
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Accept G_MAXSSIZE as a known 'unlimited' memory limit

It seems like 3.10.x kernels produce unlimited memory limits
like this:

$ cat memory.limit_in_bytes
9223372036854775807

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Don't enumerate cgroups that contain slashes

Due to a completely broken json-glib generation of JSON. See:

http://bugzilla.gnome.org/show_bug.cgi?id=727593

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Don't require cgroups in both memory/cpuacct

Don't require a cgorup to be in both memory and cpuacct before we
start monitoring information in either of those places.

Once both cgroups disappear, then we consider the cgroup to be
gone.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Makefile: Don't use /usr/bin/install for D-Bus policy.

See https://bugs.freedesktop.org/show_bug.cgi?id=77168

Fixes #410.
configure.ac: Use automake subdir-objects flag

To make automake 1.14 happy

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Handle the case where hostnamed is not active or available

This is code path should be resilient to the hostnamed service
not running. In addition, allows us to test in places where
no systemd is running.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Fix link ordering to cope with picky compilers

The gcc compiler in Ubuntu 12.04 complains when linking these
libraries and archives out of order.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Disable various Gio plugins and backends

These are totally not relevant in a daemon process like ours. This
includes gvfs, gsettings, and the proxy resolver.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Add m4 include directory to autogen.sh

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
configure.ac: Don't use PKG_CHECK_VAR from recent pkg.m4

Older versions of pkg-config on some of our target platforms don't
have this macro.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Add support for building with travis-ci.org

This means putting in a .travis.yml file.

We use packages from the latest trusty version of ubuntu in order to
get the build to succeed, as well building jsl as part of our build.
libgsystem and storaged are also not available, so we bring in enough
for cockpit to get past 'make check'

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
configure.ac: Add --enable-strict option to build with Werror

This lets us run our automated testing and personal development
machines in a stricter mode than other builders.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Fix a bunch of warnings that are raised by clang 3.3

Some of these are serious, such as the ones in CockpitRestJson
and others are innocuous, but seem worth fixing so we can rely
on the warnings.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Don't use ifconfig, as it's less available on linux

Use the 'ip' command to test for the presence of an interface
instead.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
* Fixed the path to the IP binary to be more compatible
agent: Document and implement cancelling of restjson requests.

Fixes #372
Closes #344

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Tell the channel when a restjson request is cancelled.

Fixes #372
Closes #444

Reviewed-by: Stef Walter <stefw@redhat.com>