How to build npd6 for OpenWRT - npd6/npd6 GitHub Wiki

Introduction

A bug report was raised regarding how to build npd6 for OpenWRT. User coolspace04 very kindly updated the bug with this information.

It may yet be possible to integrate this into the main build system. However pending that, this info may be useful.

Details

There are two kinds of ways for building npd6 for openwrt. One is build from source, the other one is build using openwrt sdk. Here, I will talk about build using openwrt sdk.

Assuming that you've got openwrt sdk for your router:

  1. Download the attached rar file, unpack. EDIT: Since migration to Github, get file here: https://github.com/npd6/npd6/releases/download/1.0.0/npd6.rar

  2. Goto package folder in openwrt sdk, create a folder named npd6. Copy the all the things unpacked in step 2 into this folder. Things will be like this

    OpenWrt SDK folder -> Package->npd6 ->files ->patches ->Makefile

  3. Depends on the version of npd6 you want to build, you will need to make some changes to two files, the makefile and the patch file in patches folder.

  4. Change the PKG_Version and PKG_MD5SUM in makefile. PKG_MD5SUM is md5 hash result of npd6 source file, such as it should be md5 hash of npd6-1.0.0.tar.gz for 1.0.0 release.

  5. Make changes to the patch file in patches folder. It very simple.

  6. Open a cmd window, goto openwrt sdk folder, make, and you'll get your results.

For building with openwrt sources, most steps are the same, but you should add this package to a feed to let it work with openwrt building system.

Also see http://wiki.openwrt.org/doc/devel/feeds