openwrt/package/network/services
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
..
dnsmasq dnsmasq: skip options that are not compiled in 2019-06-09 08:17:52 +00:00
dropbear dropbear: allow build without dbclient 2019-04-18 22:34:19 +02:00
ead ead: use new protocol setting API since libpcap 1.9.0 2018-07-27 11:17:20 +02:00
hostapd hostapd: fix CVE-2019-9497, CVE-2019-9498, CVE-2019-9499 2019-04-11 11:26:01 +02:00
igmpproxy igmpproxy: drop SSDP packets 2018-07-30 10:43:36 +02:00
ipset-dns
lldpd lldpd: add option to edit hostname 2019-05-11 16:37:11 +02:00
odhcpd odhcpd: update to latest git HEAD (FS#2242) 2019-05-17 08:54:30 +02:00
omcproxy omcproxy: define configuration file 2019-02-27 10:26:14 +01:00
openvpn openvpn: openssl: explicitly depend on deprecated APIs 2019-04-03 10:00:39 +02:00
openvpn-easy-rsa openvpn-easy-rsa: update to 3.0.4 2018-07-30 10:43:38 +02:00
ppp ppp: add config options to tune discovery timeout and attempts 2019-05-31 09:43:10 +02:00
relayd
samba36 samba36: allow build with no ipv6 support 2019-02-17 19:22:39 +01:00
uhttpd Revert "uhttpd: disable concurrent requests by default" 2019-04-23 08:15:46 +02:00
umdns
wireguard wireguard: bump to 0.0.20190601 2019-06-01 14:00:51 +02:00