diff --git a/README.md b/README.md index f16c42a..3989d0d 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,54 @@ # DynuIPRefresher +## Build + +### Linux +Download source files + `git clone https://github.com/Lukas-Heiligenbrunner/DynuIPRefresher.git` +cd into downloaded files and Generate makefiles: + +`cmake .` + +compile project + +`make` + +install it to the system + +`make install` + +#### Create a Debian package + +rename Project folder to lower case: + `mv DynuIPRefresher iprefresher` `cd iprefresher` +pack source in a tar.gz archive + `tar -zcvf iprefresher-1.0.tar.gz *` +create debian/ folder and create example config files + `dh_make -f iprefresher-1.0.tar.gz` -`mv iprefresher-1.0.tar.gz ../` +recently packed archive is useless now, delete it + +`rm iprefresher-1.0.tar.gz` + +move to debian/ folder: `cd debian` +remove useless files: + `rm *.ex *.EX README.Debian README.source ` +edit control file + `nano control` ```Source: iprefresher @@ -32,6 +65,7 @@ Description: a dynu.net ip refresher written in c++ a dynu.net ip refresher written in c++ ``` +buld .deb package `dpkg-buildpackage -S -us -uc `