2019-05-10 21:09:30 +00:00
|
|
|
|
# DynuIPRefresher
|
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
## Build
|
2019-05-11 10:18:24 +00:00
|
|
|
|
## Basic Build
|
2019-05-11 09:16:59 +00:00
|
|
|
|
Download source files
|
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`git clone https://github.com/Lukas-Heiligenbrunner/DynuIPRefresher.git`
|
2019-05-10 21:14:25 +00:00
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
cd into downloaded files and Generate makefiles:
|
|
|
|
|
|
|
|
|
|
`cmake .`
|
|
|
|
|
|
|
|
|
|
compile project
|
|
|
|
|
|
|
|
|
|
`make`
|
|
|
|
|
|
|
|
|
|
install it to the system
|
|
|
|
|
|
|
|
|
|
`make install`
|
|
|
|
|
|
2019-05-11 10:18:24 +00:00
|
|
|
|
### Build a Debian package
|
|
|
|
|
Download source files
|
|
|
|
|
|
|
|
|
|
`git clone https://github.com/Lukas-Heiligenbrunner/DynuIPRefresher.git`
|
2019-05-11 09:16:59 +00:00
|
|
|
|
|
|
|
|
|
rename Project folder to lower case:
|
|
|
|
|
|
2019-05-11 10:18:24 +00:00
|
|
|
|
`mv DynuIPRefresher iprefresher-1.0`
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 10:18:24 +00:00
|
|
|
|
`cd iprefresher-1.0`
|
2019-05-10 21:14:25 +00:00
|
|
|
|
|
2019-05-11 10:23:57 +00:00
|
|
|
|
remove .idea folder because it´s useless in this case:
|
|
|
|
|
|
|
|
|
|
`rm -Rf .idea`
|
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
pack source in a tar.gz archive
|
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`tar -zcvf iprefresher-1.0.tar.gz *`
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
create debian/ folder and create example config files
|
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`dh_make -f iprefresher-1.0.tar.gz`
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
recently packed archive is useless now, delete it
|
|
|
|
|
|
|
|
|
|
`rm iprefresher-1.0.tar.gz`
|
|
|
|
|
|
|
|
|
|
move to debian/ folder:
|
2019-05-10 21:14:25 +00:00
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`cd debian`
|
2019-05-10 21:14:25 +00:00
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
remove useless files:
|
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`rm *.ex *.EX README.Debian README.source `
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 09:16:59 +00:00
|
|
|
|
edit control file
|
|
|
|
|
|
2019-05-11 10:22:31 +00:00
|
|
|
|
`rm control`
|
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`nano control`
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 09:28:12 +00:00
|
|
|
|
```
|
|
|
|
|
Source: iprefresher
|
2019-05-10 21:09:30 +00:00
|
|
|
|
Section: net
|
|
|
|
|
Priority: optional
|
|
|
|
|
Maintainer: Lukas Heiligenbrunner <lukas@unknown>
|
|
|
|
|
Build-Depends: debhelper (>= 10)
|
|
|
|
|
Standards-Version: 4.1.2
|
|
|
|
|
|
|
|
|
|
Package: iprefresher
|
|
|
|
|
Architecture: any
|
|
|
|
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
|
|
|
|
Description: a dynu.net ip refresher written in c++
|
2019-05-10 21:15:05 +00:00
|
|
|
|
a dynu.net ip refresher written in c++
|
|
|
|
|
```
|
2019-05-11 10:22:31 +00:00
|
|
|
|
return to main folder
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 10:22:31 +00:00
|
|
|
|
`cd ..`
|
2019-05-10 21:09:30 +00:00
|
|
|
|
|
2019-05-11 10:22:31 +00:00
|
|
|
|
buld .deb package
|
2019-05-10 21:14:25 +00:00
|
|
|
|
|
2019-05-10 21:11:01 +00:00
|
|
|
|
`dpkg-buildpackage -us -uc `
|
2019-05-11 10:23:57 +00:00
|
|
|
|
|
|
|
|
|
### Windows cross build
|
|
|
|
|
TODO!
|