| 1 |
D_Bus/Ada |
| 2 |
========= |
| 3 |
|
| 4 |
The D_Bus/Ada library provides an Ada binding to the D-Bus message bus used for |
| 5 |
inter-process communication on most modern Linux desktop systems. |
| 6 |
|
| 7 |
|
| 8 |
Licence |
| 9 |
------- |
| 10 |
-------------------------------------------------------------------------------- |
| 11 |
Copyright (C) 2011-2024 Reto Buerki <[email protected]>. Free use of this |
| 12 |
software is granted under the terms of the GNAT Modified General Public License |
| 13 |
(GMGPL). |
| 14 |
-------------------------------------------------------------------------------- |
| 15 |
|
| 16 |
|
| 17 |
Download |
| 18 |
-------- |
| 19 |
|
| 20 |
Release version |
| 21 |
~~~~~~~~~~~~~~~ |
| 22 |
The current release version of D_Bus/Ada is available at |
| 23 |
https://www.codelabs.ch/download/. |
| 24 |
|
| 25 |
Verify a Release |
| 26 |
~~~~~~~~~~~~~~~~ |
| 27 |
To verify the integrity and authenticity of the distribution tarball type the |
| 28 |
following commands: |
| 29 |
|
| 30 |
$ wget -q https://www.codelabs.ch/keys/DBF6D7E1095FD0D9.asc -O - | gpg --import |
| 31 |
$ gpg --verify libdbusada-{version}.tar.bz2.sig |
| 32 |
|
| 33 |
The key fingerprint of the public key ('0xDBF6D7E1095FD0D9') is: |
| 34 |
|
| 35 |
Key fingerprint = 298F 4B32 C3C4 1D88 5949 86F3 DBF6 D7E1 095F D0D9 |
| 36 |
|
| 37 |
Development version |
| 38 |
~~~~~~~~~~~~~~~~~~~ |
| 39 |
The current development version of D_Bus/Ada is available through its git |
| 40 |
repository: |
| 41 |
|
| 42 |
$ git clone https://git.codelabs.ch/dbus-ada.git |
| 43 |
|
| 44 |
A browsable version of the repository is available here: |
| 45 |
https://git.codelabs.ch/?p=dbus-ada.git. |
| 46 |
|
| 47 |
|
| 48 |
Build |
| 49 |
----- |
| 50 |
To compile D_Bus/Ada on your system, you need to have the following software |
| 51 |
installed: |
| 52 |
|
| 53 |
* GNAT compiler: |
| 54 |
https://www.gnu.org/software/gnat |
| 55 |
|
| 56 |
* Ahven (Test-Framework): |
| 57 |
http://ahven.stronglytyped.org |
| 58 |
|
| 59 |
* D-Bus development files and libraries |
| 60 |
https://www.freedesktop.org/wiki/Software/dbus |
| 61 |
|
| 62 |
* Glib with D-Bus support |
| 63 |
|
| 64 |
|
| 65 |
Testing |
| 66 |
------- |
| 67 |
Before you install D_Bus/Ada on your system, you might want to test the library |
| 68 |
and verify that everything works as expected. D_Bus/Ada contains an unit test |
| 69 |
suite which can be run by entering the following command: |
| 70 |
|
| 71 |
$ make tests |
| 72 |
|
| 73 |
|
| 74 |
Installation |
| 75 |
------------ |
| 76 |
To install D_Bus/Ada on your system, type the following: |
| 77 |
|
| 78 |
$ make PREFIX=/usr/local install |
| 79 |
|
| 80 |
If no `PREFIX` is specified, `$(HOME)/libraries` is used as install destination. |
| 81 |
|
| 82 |
|
| 83 |
Examples |
| 84 |
-------- |
| 85 |
D_Bus/Ada provides example code to demonstrate the usage of the D_Bus/Ada API. |
| 86 |
To build all examples type the following: |
| 87 |
|
| 88 |
$ make examples |
| 89 |
|
| 90 |
You can start an example application like so: `obj/examples/list_names`. |