Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.44 KB

BuildAndInstall-dnsmasq.md

File metadata and controls

24 lines (17 loc) · 1.44 KB

Build and install osMUD-dnsmasq

Build osMUD-dnsmasq in OpenWRT

  1. Clone https://github.com/osmud/dnsmasq
  2. Rename the directory to dnsmasq-2.86 (or whatever the latest is at http://www.thekelleys.org.uk/dnsmasq/)
  3. 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)
  4. Move the dnsmasq-2.86.tar.xz file to the openwrt build space in directory openwrt/dl where openwrt is the root of the project
  5. Ensure the dnsmasq Makefile located in openwrt at package/network/services/dnsmasq/Makefile has the correct PKG_VERSION & PKG_SOURCE_URL is commented out.
  6. Run make package/network/services/dnsmasq/compile to compile only dnsmasq
  7. 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

Install osMUD-dnsmasq on the router

  1. scp osmud-dnsmasq to the router scp dnsmasq_2.86-1_x86_64.ipk [email protected]:/tmp
  2. Remove the old dnsmasq opkg remove dnsmasq
  3. Install your new dnsmasq opkg install /tmp/dnsmasq_2.86-1_x86_64.ipk

Configure osMUD-dnsmasq

Follow the instruction stored in this other file