diff options
author | Steven Barth <cyrus@openwrt.org> | 2014-06-18 10:04:25 +0000 |
---|---|---|
committer | Steven Barth <cyrus@openwrt.org> | 2014-06-18 10:04:25 +0000 |
commit | 5f64a3e7cebf2cdd166d8e44f41cc614cbd4ee3c (patch) | |
tree | 3bae954a2012f847d6c8a1d39d3a82ce20e10b60 /package/network/services | |
parent | e2430bc65fa90f684fa6440e0bcb57d588d48cc1 (diff) | |
download | mtk-20170518-5f64a3e7cebf2cdd166d8e44f41cc614cbd4ee3c.zip mtk-20170518-5f64a3e7cebf2cdd166d8e44f41cc614cbd4ee3c.tar.gz mtk-20170518-5f64a3e7cebf2cdd166d8e44f41cc614cbd4ee3c.tar.bz2 |
dnsmasq: Add a full variant
This variant includes support for DHCPv6 and DNSSEC.
DNSSEC adds a dependency on libnettle.
Signed-off-by: Andre Heider <a.heider@gmail.com>
SVN-Revision: 41244
Diffstat (limited to 'package/network/services')
-rw-r--r-- | package/network/services/dnsmasq/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index 8473656..34d543f 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -44,6 +44,13 @@ $(call Package/dnsmasq/Default) VARIANT:=dhcpv6 endef +define Package/dnsmasq-full +$(call Package/dnsmasq/Default) + TITLE += (with DHCPv6 and DNSSEC) + DEPENDS:=@IPV6 +kmod-ipv6 +libnettle + VARIANT:=full +endef + define Package/dnsmasq/description It is intended to provide coupled DNS and DHCP service to a LAN. endef @@ -54,12 +61,19 @@ $(call Package/dnsmasq/description) This is a variant with DHCPv6 support endef +define Package/dnsmasq-full/description +$(call Package/dnsmasq/description) + +This is a variant with DHCPv6 and DNSSEC support +endef + define Package/dnsmasq/conffiles /etc/config/dhcp /etc/dnsmasq.conf endef Package/dnsmasq-dhcpv6/conffiles = $(Package/dnsmasq/conffiles) +Package/dnsmasq-full/conffiles = $(Package/dnsmasq/conffiles) TARGET_CFLAGS += -ffunction-sections -fdata-sections TARGET_LDFLAGS += -Wl,--gc-sections @@ -70,6 +84,11 @@ ifeq ($(BUILD_VARIANT),nodhcpv6) COPTS += -DNO_DHCP6 endif +ifeq ($(BUILD_VARIANT),full) + COPTS += -DHAVE_DNSSEC + COPTS += $(if $(CONFIG_LIBNETTLE_MINI),-DNO_GMP,) +endif + MAKE_FLAGS := \ $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS)" \ @@ -91,5 +110,12 @@ endef Package/dnsmasq-dhcpv6/install = $(Package/dnsmasq/install) +define Package/dnsmasq-full/install +$(call Package/dnsmasq/install,$(1)) + $(INSTALL_DIR) $(1)/usr/share/dnsmasq + $(INSTALL_DATA) $(PKG_BUILD_DIR)/trust-anchors.conf $(1)/usr/share/dnsmasq +endef + $(eval $(call BuildPackage,dnsmasq)) $(eval $(call BuildPackage,dnsmasq-dhcpv6)) +$(eval $(call BuildPackage,dnsmasq-full)) |