[net] IP Addresses and Names: Moved DHCP, DNS, mDNS, and DDNS program into IP Address...
[openwrt/svn-archive/archive.git] / net / dudders / Makefile
1 #
2 # Copyright (C) 2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dudders
11 PKG_VERSION:=1.04
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
16 PKG_MD5SUM:=1d368a86f3c284e95d260a94767a8ded
17
18 PKG_BUILD_DEPENDS:=+libopenssl +libgcrypt
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/dudders
25 SECTION:=net
26 CATEGORY:=Network
27 SUBMENU:=IP Addresses and Names
28 TITLE:=DNS Update SIG(0) client
29 MAINTAINER:=Dean Scarff <dos@scarff.id.au>
30 URL:=http://dudders.sourceforge.net/
31 endef
32
33 define Package/dudders/description
34 Dudders is a utility for updating DNS records. It points
35 a domain name to a given IP address, using the RFC2136 DNS
36 UPDATE protocol and a SIG(0) signature. It is designed with
37 embedded systems in mind.
38
39 You must have either libopenssl or libgcrypt installed to
40 use this package.
41 endef
42
43 define Package/dudders/conffiles
44 /etc/config/dudders
45 endef
46
47 EXTRA_CFLAGS:= -DNDEBUG -std=gnu99
48
49 CONFIGURE_ARGS+= \
50 --with-libgcrypt-prefix="$(STAGING_DIR)/usr"
51
52 define Package/dudders/install
53 $(INSTALL_DIR) $(1)/usr/bin
54 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/dudders $(1)/usr/bin/
55 $(INSTALL_DIR) $(1)/usr/lib/dudders
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_gcrypt.so \
57 $(1)/usr/lib/dudders/
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/dudders/crypt_openssl.so \
59 $(1)/usr/lib/dudders/
60 $(INSTALL_DIR) $(1)/etc/config
61 $(INSTALL_CONF) ./files/dudders.conf $(1)/etc/config/dudders
62 $(INSTALL_DIR) $(1)/etc/hotplug.d/iface
63 $(INSTALL_BIN) ./files/dudders.hotplug $(1)/etc/hotplug.d/iface/50-dudders
64 endef
65
66 $(eval $(call BuildPackage,dudders))