- Clone https://github.com/osmud/dnsmasq
- Rename the directory to dnsmasq-2.86 (or whatever the latest is at http://www.thekelleys.org.uk/dnsmasq/)
- Package the project by running the command
tar -cJf dnsmasq-2.86.tar.xz dnsmasq-2.86/
(note its important to be at this directory level so that the tar.xz is compressed the same way as the original dnsmasq) - Move the
dnsmasq-2.86.tar.xz
file to the openwrt build space in directoryopenwrt/dl
where openwrt is the root of the project - Ensure the dnsmasq Makefile located in openwrt at
package/network/services/dnsmasq/Makefile
has the correctPKG_VERSION
&PKG_SOURCE_URL
is commented out. - Run
make package/network/services/dnsmasq/compile
to compile only dnsmasq - If you are trying to build only this package you will need to configure the compile environment according to the target device
- For a docker container use x86_64 architecture
This builds dnsmasq to be something like bin/packages/x86_64/base/dnsmasq_2.86-1_x86_64.ipk
- scp osmud-dnsmasq to the router
scp dnsmasq_2.86-1_x86_64.ipk [email protected]:/tmp
- Remove the old dnsmasq
opkg remove dnsmasq
- Install your new dnsmasq
opkg install /tmp/dnsmasq_2.86-1_x86_64.ipk
Follow the instruction stored in this other file