README.md 1.5 KB

Librepush

Librepush is a free implementation of a push server and library for mobile devices. It consists of a server, that is responsible for sending push messages to the device, a mobile service that is responsible for aggregating connections to the server and delivering messages to the correct application, and a library that can be used to communicate with the service and add push notifications to your applications.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Server installation

This repository contains the source code for the server part of librepush.

Requirements

In order to compile librepush server, you will first need gnutls and a c++ compiler:

apt-get install build-essential pkg-config gnutls-dev libmicrohttpd-dev \
   libjsoncpp-dev

Optionaly, if you want to test the resulting binary, you will need valgrind and openssl:

apt-get install openssl valgrind

Building and testing

To compile from the git repository, use autoreconf --install, then follow the instructions to compile from an archive.

To compile from an archive, use configure then make then make install.

To recreate the disribution archive, issue make distcheck.

To test, issue make run or make valgrind if you want to test for potential memory leak.