1 include $(TOPDIR)/rules.mk
4 PKG_VERSION:=1.2.9a-par
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
8 PKG_SOURCE_URL:=git://gitorious.org/pdnsd/pdnsd.git
9 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE_VERSION:=a8e46ccba7b0fa2230d6c42ab6dcd92926f6c21d
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
15 include $(INCLUDE_DIR)/package.mk
20 SUBMENU:=Web Servers/Proxies
22 TITLE:=Proxy DNS Server
25 define Package/pdnsd/description
26 pdnsd, is an IPv6 capable proxy DNS server with permanent caching (the cache
27 contents are written to hard disk on exit) that is designed to cope with
28 unreachable or down DNS servers (for example in dial-in networking).
30 pdnsd can be used with applications that do dns lookups, eg on startup, and
31 can't be configured to change that behaviour, to prevent the often
32 minute-long hangs (or even crashes) that result from stalled dns queries.
35 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
36 #TARGET_CFLAGS += -ggdb3
38 CMAKE_OPTIONS += -DDEBUG=1
41 --with-cachedir=/var/pdnsd
43 define Package/pdnsd/install
44 $(INSTALL_DIR) $(1)/usr/sbin
45 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pdnsd $(1)/usr/sbin/
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/pdnsd-ctl/pdnsd-ctl $(1)/usr/bin/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/pdnsd.init $(1)/etc/init.d/pdnsd
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/pdnsd.conf $(1)/etc/
55 $(eval $(call BuildPackage,pdnsd))