DynuIPRefresher/README.md
2020-04-30 15:15:01 +02:00

61 lines
957 B
Markdown

# DynuIPRefresher
A lightweight C++ application to setup a service for refreshing a dynamic IP to the Dynu servers.
## Build
## Basic Build
### Download source files
`git clone https://github.com/Lukas-Heiligenbrunner/DynuIPRefresher.git`
### install build dependencies
`libcurl`
`libconfig`
#### Debian:
`apt install libcurl4-openssl-dev`
#### Fedora:
`dnf install libcurl-devel libconfig-devel`
#### Alpine Linux:
Compiler dependencies:
`apk add make cmake g++`
Lib dependencies:
`apk add libcurl curl-dev libconfig libconfig-dev`
Packaging dependencies:
`apk add dpkg rpm`
#### dependencies for package build
`dpkg` --> debian/ubuntu package
`rpmbuild` --> Fedora/RedHat/CentOS package
### cmake project
cd into downloaded files and Generate makefiles:
`cmake -S . -B build`
### compile project
`make`
[root] install it to the system
`make install`
(optional) create Linux packages
`make package`
### Windows cross build
TODO!