2 # Copyright (C) 2010-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=1d368a86f3c284e95d260a94767a8ded
18 PKG_BUILD_DEPENDS:=+libopenssl +libgcrypt
22 include $(INCLUDE_DIR)/package.mk
24 define Package/dudders
27 SUBMENU:=IP Addresses and Names
28 DEPENDS:=+libopenssl +libgcrypt +libgpg-error
29 TITLE:=DNS Update SIG(0) client
30 MAINTAINER:=Dean Scarff <dos@scarff.id.au>
31 URL:=http://dudders.sourceforge.net/
34 define Package/dudders/description
35 Dudders is a utility for updating DNS records. It points
36 a domain name to a given IP address, using the RFC2136 DNS
37 UPDATE protocol and a SIG(0) signature. It is designed with
38 embedded systems in mind.
40 You must have either libopenssl or libgcrypt installed to
44 define Package/dudders/conffiles
48 EXTRA_CFLAGS:= -DNDEBUG -std=gnu99
51 --with-libgcrypt-prefix="$(STAGING_DIR)/usr"
53 define Package/dudders/install
54 $(INSTALL_DIR) $(1)/usr/bin
55 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dudders $(1)/usr/bin/
56 $(INSTALL_DIR) $(1)/usr/lib/dudders
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_gcrypt.so \
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_openssl.so \
61 $(INSTALL_DIR) $(1)/etc/config
62 $(INSTALL_CONF) ./files/dudders.config $(1)/etc/config/dudders
63 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
64 $(INSTALL_BIN) ./files/dudders.hotplug $(1)/etc/hotplug.d/iface/50-dudders
67 $(eval $(call BuildPackage,dudders))