Branch oldpackages for 14.07
[14.07/packages.git] / net / pdnsd / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=pdnsd
4 PKG_VERSION:=1.2.9a-par
5 PKG_RELEASE=$(PKG_SOURCE_VERSION)
6
7 PKG_SOURCE_PROTO:=git
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
12 # PKG_MIRROR_MD5SUM:=
13 # CMAKE_INSTALL:=1
14
15 include $(INCLUDE_DIR)/package.mk
16
17 define Package/pdnsd
18   SECTION:=net
19   CATEGORY:=Network
20   SUBMENU:=Web Servers/Proxies
21   DEPENDS:=+libpthread
22   TITLE:=Proxy DNS Server
23 endef
24
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).
29
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.
33 endef
34
35 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include
36 #TARGET_CFLAGS += -ggdb3
37
38 CMAKE_OPTIONS += -DDEBUG=1
39
40 CONFIGURE_ARGS += \
41                 --with-cachedir=/var/pdnsd
42
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/
48
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/
53 endef
54
55 $(eval $(call BuildPackage,pdnsd))