summaryrefslogtreecommitdiff
path: root/package/pdnsd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/pdnsd/Makefile')
-rw-r--r--package/pdnsd/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/pdnsd/Makefile b/package/pdnsd/Makefile
index 045cb953d..a6f8041aa 100644
--- a/package/pdnsd/Makefile
+++ b/package/pdnsd/Makefile
@@ -13,6 +13,9 @@ PKG_DEPENDS:= libpthread
PKG_URL:= http://www.phys.uu.nl/~rombouts/pdnsd.html
PKG_SITES:= http://www.phys.uu.nl/~rombouts/pdnsd/releases/
+PKG_FLAVOURS:= WITH_IPV6
+PKGFD_WITH_IPV6:= enable IPv6 support
+
PKG_HOST_DEPENDS:= !netbsd
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-par.tar.gz
@@ -23,6 +26,12 @@ $(eval $(call PKG_template,PDNSD,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG
CONFIGURE_ARGS+= --with-target=Linux
+ifneq (${ADK_PACKAGE_PDNSD_WITH_IPV6},)
+CONFIGURE_ARGS+= --enable-ipv6
+else
+CONFIGURE_ARGS+= --disable-ipv6
+endif
+
post-install:
$(INSTALL_DIR) $(IDIR_PDNSD)/etc
${INSTALL_DATA} ./files/pdnsd.conf ${IDIR_PDNSD}/etc/