openwrt/package
Yousong Zhou 0299a4b73e dnsmasq: skip options that are not compiled in
This is to make life easier for users with customized build of
dnsmasq-full variant.  Currently dnsmasq config generated by current
service script will be rejected by dnsmasq build lacking DHCP feature

 - Options like --dhcp-leasefile have default values.  Deleting them
   from uci config or setting them to empty value will make them take on
   default value in the end
 - Options like --dhcp-broadcast are output unconditionally

Tackle this by

 - Check availablility of features from output of "dnsmasq --version"
 - Make a list of options guarded by HAVE_xx macros in src/options.c of
   dnsmasq source code
 - Ignore these options in xappend()

Two things to note in this implementation

 - The option list is not exhaustive.  Supposedly only those options that
   may cause dnsmasq to reject with "unsupported option (check that
   dnsmasq was compiled with DHCP/TFTP/DNSSEC/DBus support)" are taken
   into account here
 - This provides a way out but users' cooperation is still needed.  E.g.
   option dnssec needs to be turned off, otherwise the service script
   will try to add --conf-file pointing to dnssec specific anchor file
   which dnsmasq lacking dnssec support will reject

Resolves FS#2281

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2019-06-09 08:17:52 +00:00
..
base-files base-files: add reboot only button handler 2019-05-30 11:55:49 +02:00
boot layerscape: fix u-boot bootcmd 2019-06-06 15:40:09 +02:00
devel valgrind: Add support for ARM64 architecture 2019-05-14 20:28:41 +02:00
firmware layerscape: drop ppa package 2019-06-06 15:40:09 +02:00
kernel kernel: backport act_ctinfo 2019-06-06 15:41:07 +01:00
libs libunwind: bump to version 1.3.1 2019-06-05 01:13:07 +00:00
network dnsmasq: skip options that are not compiled in 2019-06-09 08:17:52 +00:00
system rpcd: fix init script reload action 2019-06-06 11:27:11 +02:00
utils busybox: add ALTERNATIVES for brctl 2019-06-08 13:51:40 +02:00
Makefile build: add ABI_VERSION to binary package names 2019-01-19 14:32:12 +01:00