[Patchteam] New Package Dudders - a utility for updating DNS records
[openwrt.org/packages.git] / net / dudders / Makefile
blob:a/net/dudders/Makefile -> blob:b/net/dudders/Makefile
# $Id$ #
  # Copyright (C) 2010-2011 OpenWrt.org
  #
  # This is free software, licensed under the GNU General Public License v2.
  # See /LICENSE for more information.
  #
   
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
   
PKG_NAME:=dudders PKG_NAME:=dudders
PKG_VERSION:=1.04 PKG_VERSION:=1.04
PKG_RELEASE:=1 PKG_RELEASE:=3
   
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)  
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=@SF/$(PKG_NAME) PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_SHA1SUM:=ae3fc90804698468c8f8e285c2387eb629c25dbf PKG_MD5SUM:=1d368a86f3c284e95d260a94767a8ded
PKG_CAT:=bzcat  
PKG_BUILD_DEPENDS:=+libopenssl +libgcrypt PKG_BUILD_DEPENDS:=+libopenssl +libgcrypt
PKG_FIXUP:=libtool PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
   
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
   
define Package/dudders define Package/dudders
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
SUBMENU:=DNS SUBMENU:=IP Addresses and Names
  DEPENDS:=+libopenssl +libgcrypt +libgpg-error
TITLE:=DNS Update SIG(0) client TITLE:=DNS Update SIG(0) client
MAINTAINER:=<dos@scarff.id.au> MAINTAINER:=Dean Scarff <dos@scarff.id.au>
DEPENDS:=  
URL:=http://dudders.sourceforge.net/ URL:=http://dudders.sourceforge.net/
endef endef
   
define Package/dudders/description define Package/dudders/description
Dudders is a utility for updating DNS records. It points Dudders is a utility for updating DNS records. It points
a domain name to a given IP address, using the RFC2136 DNS a domain name to a given IP address, using the RFC2136 DNS
UPDATE protocol and a SIG(0) signature. It is designed with UPDATE protocol and a SIG(0) signature. It is designed with
embedded systems in mind. embedded systems in mind.
   
You must have either libopenssl or libgcrypt installed to You must have either libopenssl or libgcrypt installed to
use this package. use this package.
endef endef
   
define Package/dudders/conffiles define Package/dudders/conffiles
/etc/config/dudders /etc/config/dudders
endef endef
   
EXTRA_CFLAGS:= -DNDEBUG -std=gnu99 EXTRA_CFLAGS:= -DNDEBUG -std=gnu99
   
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-libgcrypt-prefix="$(STAGING_DIR)/usr" --with-libgcrypt-prefix="$(STAGING_DIR)/usr"
   
define Package/dudders/install define Package/dudders/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dudders $(1)/usr/bin $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dudders $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/dudders $(INSTALL_DIR) $(1)/usr/lib/dudders
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_gcrypt.so \ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_gcrypt.so \
$(1)/usr/lib/dudders $(1)/usr/lib/dudders/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_openssl.so \ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_openssl.so \
$(1)/usr/lib/dudders $(1)/usr/lib/dudders/
$(INSTALL_DIR) $(1)/etc/config $(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/dudders.conf $(1)/etc/config/dudders $(INSTALL_CONF) ./files/dudders.config $(1)/etc/config/dudders
$(INSTALL_DIR) $(1)/etc/hotplug.d/iface $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
$(INSTALL_BIN) ./files/dudders.hotplug $(1)/etc/hotplug.d/iface/30-dudders $(INSTALL_BIN) ./files/dudders.hotplug $(1)/etc/hotplug.d/iface/50-dudders
endef endef
   
$(eval $(call BuildPackage,dudders)) $(eval $(call BuildPackage,dudders))
   
comments